Skip to content

Instantly share code, notes, and snippets.

View albinmathew's full-sized avatar

Albin Mathew albinmathew

View GitHub Profile
@albinmathew
albinmathew / .gitignore
Created May 25, 2015 08:22
Git ignore file for gradle based android studio development. This also includes eclipse gitignore template
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion
*.iml
## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:
# User-specific stuff:
@albinmathew
albinmathew / proguard-rules.pro
Created May 25, 2015 08:05
An example of proguard rule in android gradle build
# By default, the flags in this file are appended to flags specified
# in /usr/share/android-studio/data/sdk/tools/proguard/proguard-android.txt
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
##---------------Begin: proguard configuration common for all Android apps ----------
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
@albinmathew
albinmathew / build.gradle
Created May 25, 2015 08:02
An example configuration for proguard-rules.pro
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
applicationId "com.abc.example"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"