Today I noticed that my debug build broke because the BuildConfig.VERSION_NAME
now returns
1.6-debug
instead of
1.6
which is how it used to work before. Does anyone know if there's any documentation changes around this change?
If you're building the debug variant, it now appends -debug
when you call BuildConfig.VERSION_NAME
which is not the case before.
Regardless of whether it's a release or debug build, the value of BuildConfig.VERSION_NAME
is always the same.
defaultConfig {
applicationId "com.myapplication.id"
minSdkVersion 21
targetSdkVersion 29
versionCode 106
versionName "1.6"
multiDexEnabled true //important
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
minifyEnabled false
useProguard false
debuggable true
buildConfigField "Boolean", "DEBUG_MODE", "true"
versionNameSuffix "-debug"
}
}