-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariants.gradle
32 lines (27 loc) · 931 Bytes
/
variants.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
ext {
configuration = [
package : "net.amigochi.amigochi",
compileSdkVersion: 23,
targetSdkVersion : 23,
minSdkVersion : 19,
buildToolsVersion: "23.0.2",
]
backend = [
url: [
debug : '""',
release: '""'
]
]
preferencesName = [
debug : '"AmigochiSharedPrefs"',
release: '"AchiShPs"'
]
// gitVersion = 'git rev-list HEAD --first-parent --count'.execute().text.trim().toInteger()
// versionCode = gitVersion
versionMajor = 0 //Major final release
versionMinor = 0 //Feature
versionPatch = 1
//Patch (ok, this is a little lie, because we were using this as release at first...)
versionCode = versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName = "${versionMajor}.${versionMinor}.${versionPatch}"
}