-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (44 loc) · 1.7 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.61'
ext.android_gradle_version = '3.5.3'
ext.green_dao_version = '3.2.2'
ext.FIELD_LOG_FILE = "LOG_FILE"
ext.FIELD_LOG_CONSOLE = "LOG_CONSOLE"
ext.KEY_LOG_FILE = "logToFile"
ext.KEY_LOG_CONSOLE = "logToConsole"
final commonProp = new Properties()
commonProp.load(new FileInputStream(new File(rootDir, "common.properties")))
println("common.properties:\n$commonProp")
ext.commonProp = commonProp
ext.buildInfo = [
'compileSdkVersion': Integer.parseInt(commonProp['compileSdkVersion']),
'buildToolsVersion': commonProp['buildToolsVersion'],
'versionCode' : Integer.parseInt(commonProp['versionCode']),
'versionName' : commonProp['versionName'],
'targetSdkVersion' : Integer.parseInt(commonProp['targetSdkVersion']),
'minSdkVersion' : Integer.parseInt(commonProp['minSdkVersion'])
]
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$android_gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.lyc:app-inject-plugin:0.4.0"
classpath "org.greenrobot:greendao-gradle-plugin:$green_dao_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}