|
@@ -1,3 +1,5 @@
|
|
1
|
+@file:Suppress("CAST_NEVER_SUCCEEDS")
|
|
2
|
+
|
1
|
3
|
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
|
2
|
4
|
plugins {
|
3
|
5
|
alias(libs.plugins.androidApplication)
|
|
@@ -10,7 +12,7 @@ android {
|
10
|
12
|
|
11
|
13
|
defaultConfig {
|
12
|
14
|
applicationId = "com.xhly.manageapp"
|
13
|
|
- minSdk = 24
|
|
15
|
+ minSdk = 26
|
14
|
16
|
targetSdk = 30
|
15
|
17
|
versionCode = 1
|
16
|
18
|
versionName = "1.0"
|
|
@@ -23,13 +25,41 @@ android {
|
23
|
25
|
viewBinding{
|
24
|
26
|
enable=true
|
25
|
27
|
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+ signingConfigs {
|
|
31
|
+ create("keystore") {
|
|
32
|
+ keyAlias = "xinghuo"
|
|
33
|
+ keyPassword = "xhkjedu"
|
|
34
|
+ storeFile = file("xinghuo.keystore")
|
|
35
|
+ storePassword = "xhkjedu"
|
|
36
|
+ }
|
|
37
|
+ }
|
|
38
|
+
|
26
|
39
|
buildTypes {
|
27
|
|
- release {
|
|
40
|
+ /* release {
|
|
41
|
+ isMinifyEnabled = false
|
|
42
|
+ proguardFiles(
|
|
43
|
+ getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
44
|
+ "proguard-rules.pro"
|
|
45
|
+ )
|
|
46
|
+ }*/
|
|
47
|
+ val signConfig=signingConfigs.getByName("keystore")
|
|
48
|
+ getByName("release") {
|
28
|
49
|
isMinifyEnabled = false
|
29
|
50
|
proguardFiles(
|
30
|
51
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
31
|
52
|
"proguard-rules.pro"
|
32
|
53
|
)
|
|
54
|
+ signingConfig=signConfig
|
|
55
|
+ }
|
|
56
|
+ getByName("debug") {
|
|
57
|
+ isMinifyEnabled = false
|
|
58
|
+ proguardFiles(
|
|
59
|
+ getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
60
|
+ "proguard-rules.pro"
|
|
61
|
+ )
|
|
62
|
+ signingConfig=signConfig
|
33
|
63
|
}
|
34
|
64
|
}
|
35
|
65
|
compileOptions {
|
|
@@ -50,6 +80,9 @@ android {
|
50
|
80
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
51
|
81
|
}
|
52
|
82
|
}
|
|
83
|
+ lint {
|
|
84
|
+ abortOnError=false
|
|
85
|
+ }
|
53
|
86
|
}
|
54
|
87
|
|
55
|
88
|
dependencies {
|