forked from simmons/valence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (63 loc) · 1.82 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import java.text.SimpleDateFormat
apply plugin: 'com.android.application'
def formatISO(date) {
def df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'")
df.setTimeZone(TimeZone.getTimeZone("UTC"))
return df.format(date)
}
def secSinceEpoc(date) {
return (int) date.getTime() / 1000
}
def buildTime = new Date()
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.gmail.at.android.bondvnc"
minSdkVersion 14
targetSdkVersion 21
// Use the current timestamp in seconds as the version number.
// Note: This value will overflow a signed int in 2038 ( = 1970 + (2**31 / (60*60*24*365)))
versionCode secSinceEpoc(buildTime)
versionName "1.0." + secSinceEpoc(buildTime) + "." + formatISO(buildTime)
resValue "string", "app_name", "BondVNC"
resValue "string", "about_version", 'Version: ' + versionName
resValue "string", "about_build_date", 'Build: ' + formatISO(buildTime)
}
buildTypes {
debug {
applicationIdSuffix ".debug"
debuggable true
resValue "string", "app_name", "BondVNC-Dev"
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
signingConfigs {
release {
keyAlias 'com.gmail.at.android.bondvnc'
}
}
sourceSets.main {
manifest.srcFile file('AndroidManifest.xml')
assets {
srcDir 'assets'
}
java {
srcDir 'src'
}
res {
srcDir 'res'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile project(':netlib')
compile project(':xmlfoo')
compile project(':motelib')
}