6 classpath 'com.android.tools.build:gradle:1.3.1'
7 classpath 'org.ajoberstar:grgit:1.4.1'
10 apply plugin: 'com.android.application'
13 compile 'com.android.support:appcompat-v7:23.1.1'
14 compile 'com.android.support:design:23.1.1'
15 compile 'com.android.support:preference-v7:23.1.1'
16 compile 'com.android.support:preference-v14:23.1.1'
20 git = org.ajoberstar.grgit.Grgit.open(file('.'))
21 gitVersionCode = git.log().size()
22 gitVersionName = "${git.describe()}"
26 compileSdkVersion 'android-23'
27 buildToolsVersion '23.0.1'
33 versionCode gitVersionCode
34 versionName gitVersionName
35 resValue "string", "app_name", "SaveMySugar"
36 setProperty("archivesBaseName", "SaveMySugar-$versionName")
42 proguardFile getDefaultProguardFile('proguard-android.txt')
48 tasks.withType(JavaCompile) {
49 options.compilerArgs << "-Xlint:deprecation"
50 options.compilerArgs << "-Xlint:unchecked"