-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.gradle
42 lines (34 loc) · 1.63 KB
/
config.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
static def buildTime() {
return new Date().format("yyMMddHH", TimeZone.getTimeZone("GMT+08:00")).toString()
}
ext {
plugins = [
library : 'com.android.library',
application : 'com.android.application',
]
android = [
applicationId : "com.hsj.sample",
compileSdkVersion : 29,
buildToolsVersion : "29.0.3",
minSdkVersion : 19,
targetSdkVersion : 29,
versionCode : Integer.parseInt(buildTime()),
versionName : "1.0.0",
]
dependencies = [
//Test
testInstrumentationRunner : 'androidx.test.runner.AndroidJUnitRunner',
testJunit : 'junit:junit:4.13',
testExt : 'androidx.test.ext:junit:1.1.2',
testEspresso : 'androidx.test.espresso:espresso-core:3.3.0',
//JetPack
core : 'androidx.core:core:1.3.1',
multidex : 'androidx.multidex:multidex:2.0.1',
appcompat : 'androidx.appcompat:appcompat:1.2.0',
annotations : 'androidx.annotation:annotation:1.1.0',
material : 'com.google.android.material:material:1.2.0',
constraint_layout : 'androidx.constraintlayout:constraintlayout:2.0.1',
//LeakCanary
leak_canary : 'com.squareup.leakcanary:leakcanary-android:2.4',
]
}