-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
51 lines (43 loc) · 915 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
buildscript
{
repositories
{
mavenCentral()
}
dependencies
{
classpath "com.android.tools.build:gradle:1.5.+"
}
}
apply plugin: "android"
repositories
{
mavenCentral()
}
dependencies
{
compile "com.android.support:appcompat-v7:23.0.+"
compile 'com.jpardogo.materialtabstrip:library:1.0.9'
}
android
{
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig
{
minSdkVersion 14
targetSdkVersion 23
versionCode "git rev-list --count HEAD".execute().text as int
versionName "git describe --tags".execute().text[1..-2] // strip v and newline
}
buildTypes
{
debug
{
applicationIdSuffix ".debug"
}
}
applicationVariants.all { variant ->
variant.resValue "string", "version", "v" + variant.versionName + " (" + variant.versionCode + ")"
}
}