-
Notifications
You must be signed in to change notification settings - Fork 247
/
build.gradle
96 lines (90 loc) · 3.25 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'//kapt 插件
android {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
signingConfigs {
releaseConfig
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
compileSdkVersion 28
defaultConfig {
applicationId "com.wrbug.developerhelper"
minSdkVersion 21
targetSdkVersion 27
versionCode 100040
versionName "1.0.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"
}
}
buildTypes {
debug {
versionNameSuffix "-debug"
if (signingConfigs.releaseConfig != null) {
signingConfig signingConfigs.releaseConfig
}
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
implementation 'com.google.code.gson:gson:2.8.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.yhaolpz:FloatWindow:1.0.9'
implementation project(':basecommon')
kapt "com.android.databinding:compiler:3.1.4"
implementation 'com.elvishew:xlog:1.6.1'
implementation 'org.jetbrains.anko:anko-commons:0.10.8'
//dagger2
implementation 'com.google.dagger:dagger:2.16'
// https://mvnrepository.com/artifact/dom4j/dom4j
implementation 'dom4j:dom4j:1.6.1'
implementation 'com.evrencoskun.library:tableview:0.8.8'
implementation 'gdut.bsx:share2:0.9.3'
kapt 'com.google.dagger:dagger-compiler:2.16'
implementation project(':xposedmodule')
implementation 'de.blox:graphview:0.5.0'
implementation project(':basemoduleimport')
implementation project(':ipc')
}
kapt {
generateStubs = true
}
Properties props = new Properties()
def propFile = file('../signing.properties')
if (propFile.canRead()) {
props.load(new FileInputStream(propFile))
if (props != null &&
props.containsKey('SIGN_FILE') && props.containsKey('SIGN_PASSWORD') &&
props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {
android.signingConfigs.releaseConfig.storeFile = file(props['SIGN_FILE'])
android.signingConfigs.releaseConfig.storePassword = props['SIGN_PASSWORD']
android.signingConfigs.releaseConfig.keyAlias = props['KEY_ALIAS']
android.signingConfigs.releaseConfig.keyPassword = props['KEY_PASSWORD']
} else {
println 'release build not found signing properties'
android.buildTypes.release.signingConfig = null
}
} else {
println 'release build not found signing file'
android.buildTypes.release.signingConfig = null
}