|
|
@@ -17,27 +17,33 @@ android {
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
vectorDrawables { useSupportLibrary = true }
|
|
|
// signingConfigs {
|
|
|
-// register("release") {
|
|
|
-// storeFile = file(project.extra["RELEASE_STORE_FILE"] as String)
|
|
|
-// storePassword = project.extra["RELEASE_STORE_PASSWORD"] as String
|
|
|
-// keyAlias = project.extra["RELEASE_KEY_ALIAS"] as String
|
|
|
-// keyPassword = project.extra["RELEASE_KEY_PASSWORD"] as String
|
|
|
+// if (project.extra.has("RELEASE_STORE_FILE")) {
|
|
|
+// register("release") {
|
|
|
+// storeFile = file(project.extra["RELEASE_STORE_FILE"] as String)
|
|
|
+// storePassword = project.extra["RELEASE_STORE_PASSWORD"] as String
|
|
|
+// keyAlias = project.extra["RELEASE_KEY_ALIAS"] as String
|
|
|
+// keyPassword = project.extra["RELEASE_KEY_PASSWORD"] as String
|
|
|
+// }
|
|
|
// }
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
buildTypes {
|
|
|
named("release").configure {
|
|
|
isMinifyEnabled = true
|
|
|
isShrinkResources = true
|
|
|
- proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
|
-// signingConfig = signingConfigs.getByName("release")
|
|
|
+ proguardFiles(
|
|
|
+ getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
+ "proguard-rules.pro"
|
|
|
+ )
|
|
|
+// signingConfig = signingConfigs.maybeCreate("release")
|
|
|
}
|
|
|
named("debug").configure {
|
|
|
isMinifyEnabled = false
|
|
|
- proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
|
+ proguardFiles(
|
|
|
+ getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
+ "proguard-rules.pro"
|
|
|
+ )
|
|
|
}
|
|
|
}
|
|
|
compileOptions {
|
|
|
@@ -47,13 +53,9 @@ android {
|
|
|
kotlinOptions {
|
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
|
}
|
|
|
-
|
|
|
testOptions {
|
|
|
unitTests.isIncludeAndroidResources = true
|
|
|
}
|
|
|
- lintOptions{
|
|
|
- disable = mutableSetOf("MissingTranslation")
|
|
|
- }
|
|
|
applicationVariants.all{
|
|
|
outputs.all {
|
|
|
(this as com.android.build.gradle.internal.api.BaseVariantOutputImpl).outputFileName = "${applicationId}.apk"
|
|
|
@@ -88,38 +90,4 @@ dependencies {
|
|
|
implementation("androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha02")
|
|
|
kapt("androidx.hilt:hilt-compiler:1.0.0-alpha02")
|
|
|
kapt("com.google.dagger:hilt-android-compiler:2.29-alpha")
|
|
|
-
|
|
|
- // Test libs
|
|
|
-
|
|
|
- testImplementation("androidx.test:core:1.3.0")
|
|
|
-
|
|
|
- testImplementation("androidx.test:runner:1.3.0")
|
|
|
- testImplementation("androidx.test:rules:1.3.0")
|
|
|
-
|
|
|
- testImplementation("androidx.test.ext:junit:1.1.2")
|
|
|
- testImplementation("androidx.test.ext:truth:1.3.0")
|
|
|
- testImplementation("com.google.truth:truth:1.0")
|
|
|
-
|
|
|
-
|
|
|
- testImplementation("androidx.arch.core:core-testing:2.1.0")
|
|
|
- testImplementation("androidx.fragment:fragment-testing:1.2.5")
|
|
|
-
|
|
|
- testImplementation("org.robolectric:robolectric:4.4")
|
|
|
-
|
|
|
- testImplementation("org.mockito:mockito-core:2.24.5")
|
|
|
-
|
|
|
- testImplementation("androidx.test.espresso:espresso-core:3.3.0")
|
|
|
-
|
|
|
- testImplementation("com.google.dagger:hilt-android-testing:2.29-alpha")
|
|
|
- kaptTest("com.google.dagger:hilt-android-compiler:2.29-alpha")
|
|
|
-
|
|
|
- androidTestImplementation("androidx.room:room-testing:2.2.5")
|
|
|
- androidTestImplementation("androidx.test:runner:1.3.0")
|
|
|
- androidTestImplementation("androidx.test:rules:1.3.0")
|
|
|
- androidTestImplementation("androidx.annotation:annotation:1.1.0")
|
|
|
- androidTestImplementation("androidx.test:runner:1.3.0")
|
|
|
- androidTestImplementation("androidx.test:rules:1.3.0")
|
|
|
- androidTestImplementation("androidx.arch.core:core-testing:2.1.0")
|
|
|
- androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
|
|
|
- androidTestImplementation("androidx.test.espresso:espresso-intents:3.3.0")
|
|
|
}
|