Stub module always use release build

This commit is contained in:
vvb2060
2020-12-06 06:30:45 +08:00
committed by topjohnwu
parent 38d0f85deb
commit 0b4dd63d36
2 changed files with 8 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ buildscript {
dependencies {
classpath("com.android.tools.build:gradle:4.1.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:${vNav}")
// NOTE: Do not place your application dependencies here; they belong
@@ -27,7 +27,7 @@ buildscript {
}
}
tasks.register("clean",Delete::class){
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
@@ -110,12 +110,12 @@ subprojects {
buildTypes {
signingConfigs.getByName("config").also {
getByName("debug") {
// If keystore exists, sign the APK with custom signature
if (it.storeFile?.exists() == true)
signingConfig = it
signingConfig = if (it.storeFile?.exists() == true) it
else signingConfigs.getByName("debug")
}
getByName("release") {
signingConfig = it
signingConfig = if (it.storeFile?.exists() == true) it
else signingConfigs.getByName("debug")
}
}
}