|
|
@@ -1,8 +1,9 @@
|
|
|
-apply plugin: 'com.android.application'
|
|
|
-apply plugin: 'kotlin-android'
|
|
|
-apply plugin: 'kotlin-android-extensions'
|
|
|
-apply plugin: 'kotlin-kapt'
|
|
|
-apply plugin: "androidx.navigation.safeargs.kotlin"
|
|
|
+plugins {
|
|
|
+ id 'com.android.application'
|
|
|
+ id 'kotlin-android'
|
|
|
+ id 'kotlin-kapt'
|
|
|
+ id 'androidx.navigation.safeargs.kotlin'
|
|
|
+}
|
|
|
|
|
|
android {
|
|
|
compileSdkVersion 29
|
|
|
@@ -23,12 +24,14 @@ android {
|
|
|
"room.expandProjection": "true"]
|
|
|
}
|
|
|
}
|
|
|
+ ndkVersion "21.3.6528147"
|
|
|
buildFeatures {
|
|
|
dataBinding true
|
|
|
}
|
|
|
- flavorDimensions "1.2.1"
|
|
|
}
|
|
|
|
|
|
+ flavorDimensions "1.2.4"
|
|
|
+
|
|
|
aaptOptions {
|
|
|
noCompress "webp" //表示不让aapt压缩的文件后缀
|
|
|
}
|
|
|
@@ -61,13 +64,13 @@ android {
|
|
|
productFlavors {
|
|
|
|
|
|
kids {
|
|
|
- versionName "1.2.2"
|
|
|
- dimension "1.2.1"
|
|
|
+ versionName "1.2.3"
|
|
|
+ dimension "1.2.3"
|
|
|
}
|
|
|
|
|
|
child {
|
|
|
- versionName "1.2.2"
|
|
|
- dimension "1.2.1"
|
|
|
+ versionName "1.2.4"
|
|
|
+ dimension "1.2.4"
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -101,11 +104,9 @@ android {
|
|
|
android.applicationVariants.all { variant ->
|
|
|
variant.outputs.each { output ->
|
|
|
if ("release" == buildType.name)
|
|
|
- output.outputFileName =
|
|
|
- "${variant.productFlavors[0].name}_${defaultConfig.versionCode}_v${variant.productFlavors[0].versionName}_release.apk"
|
|
|
+ output.outputFileName = "${variant.productFlavors[0].name}_${defaultConfig.versionCode}_v${variant.productFlavors[0].versionName}_release.apk"
|
|
|
else
|
|
|
- output.outputFileName =
|
|
|
- "${variant.productFlavors[0].name}_v${defaultConfig.versionName}.apk"
|
|
|
+ output.outputFileName = "${variant.productFlavors[0].name}_v${defaultConfig.versionName}.apk"
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -140,23 +141,22 @@ dependencies {
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
- implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
|
|
|
- implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
|
|
|
+ implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
|
|
|
+ implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
|
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
|
- implementation 'androidx.core:core-ktx:1.3.1'
|
|
|
- implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
|
|
|
+ implementation 'androidx.core:core-ktx:1.5.0-alpha05'
|
|
|
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
|
implementation 'androidx.viewpager2:viewpager2:1.0.0'
|
|
|
- implementation 'androidx.paging:paging-runtime:2.1.2'
|
|
|
- implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
|
- implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0'
|
|
|
- implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
|
|
|
- implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
|
|
|
- implementation 'androidx.lifecycle:lifecycle-reactivestreams:2.2.0'
|
|
|
- implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
|
|
|
- implementation 'androidx.navigation:navigation-ui-ktx:2.3.0'
|
|
|
- implementation 'androidx.room:room-runtime:2.2.5'
|
|
|
- implementation 'androidx.room:room-ktx:2.2.5'
|
|
|
+ implementation 'androidx.paging:paging-runtime-ktx:3.0.0-alpha12'
|
|
|
+ implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.0-rc01'
|
|
|
+ implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.0-rc01'
|
|
|
+ implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-rc01'
|
|
|
+ implementation 'androidx.lifecycle:lifecycle-reactivestreams-ktx:2.3.0-rc01'
|
|
|
+ implementation 'androidx.navigation:navigation-fragment-ktx:2.3.2'
|
|
|
+ implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'
|
|
|
+ implementation 'androidx.room:room-runtime:2.3.0-alpha04'
|
|
|
+ implementation 'androidx.room:room-ktx:2.3.0-alpha04'
|
|
|
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
|
|
implementation 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
|
@@ -165,7 +165,7 @@ dependencies {
|
|
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
|
|
|
|
- implementation 'com.tencent.bugly:crashreport:3.1.9'
|
|
|
+ implementation 'com.tencent.bugly:crashreport:3.3.3'
|
|
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
|
implementation 'com.github.SheHuan:NiceImageView:1.0.5'
|