Fix debuggable build types

Change-Id: Ie3ecf462cac81bd462c48ad161521b18836325b9
pull/1837/head
Tomáš Mlynarič 3 years ago
parent f47caa6db4
commit c6647d20df

@ -62,8 +62,6 @@ android {
proguardFiles("benchmark-rules.pro") proguardFiles("benchmark-rules.pro")
// FIXME enabling minification breaks access to demo backend. // FIXME enabling minification breaks access to demo backend.
isMinifyEnabled = false isMinifyEnabled = false
// Keep the build type debuggable so we can attach a debugger if needed.
isDebuggable = true
applicationIdSuffix = ".benchmark" applicationIdSuffix = ".benchmark"
} }
} }

@ -33,7 +33,8 @@ android {
// release build (for example, with minification on). It's signed with a debug key // release build (for example, with minification on). It's signed with a debug key
// for easy local/CI testing. // for easy local/CI testing.
val benchmark by creating { val benchmark by creating {
isDebuggable = false // Keep the build type debuggable so we can attach a debugger if needed.
isDebuggable = true
signingConfig = signingConfigs.getByName("debug") signingConfig = signingConfigs.getByName("debug")
matchingFallbacks.add("release") matchingFallbacks.add("release")
} }
@ -58,4 +59,4 @@ androidComponents {
beforeVariants { beforeVariants {
it.enable = it.buildType == "benchmark" it.enable = it.buildType == "benchmark"
} }
} }

Loading…
Cancel
Save