Disable BuildConfig generating by default
MODIFY
leakcanary-android-instrumentation/build.gradle
leakcanary-android-instrumentation/build.gradle
@@ -21,6 +21,7 @@ android {
minSdk versions.minSdk
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
+ buildFeatures.buildConfig = false
lintOptions {
disable 'GoogleAppIndexingWarning'
// junit references java.lang.management

MODIFY
leakcanary-android-process/build.gradle
leakcanary-android-process/build.gradle
@@ -14,6 +14,7 @@ android {
defaultConfig {
minSdk versions.minSdk
}
+ buildFeatures.buildConfig = false
lintOptions {
disable 'GoogleAppIndexingWarning'
// junit references java.lang.management

MODIFY
leakcanary-android-utils/build.gradle
leakcanary-android-utils/build.gradle
@@ -14,6 +14,7 @@ android {
defaultConfig {
minSdk versions.minSdk
}
+ buildFeatures.buildConfig = false
lintOptions {
disable 'GoogleAppIndexingWarning'
error 'ObsoleteSdkInt'

MODIFY
leakcanary-android/build.gradle
leakcanary-android/build.gradle
@@ -14,6 +14,7 @@ android {
defaultConfig {
minSdk versions.minSdk
}
+ buildFeatures.buildConfig = false
lintOptions {
disable 'GoogleAppIndexingWarning'
// junit references java.lang.management

MODIFY
leakcanary-object-watcher-android-androidx/build.gradle
leakcanary-object-watcher-android-androidx/build.gradle
@@ -17,6 +17,7 @@ android {
minSdk versions.minSdk
consumerProguardFiles 'consumer-proguard-rules.pro'
}
+ buildFeatures.buildConfig = false
lintOptions {
disable 'GoogleAppIndexingWarning'
error 'ObsoleteSdkInt'

MODIFY
leakcanary-object-watcher-android-support-fragments/build.gradle
leakcanary-object-watcher-android-support-fragments/build.gradle
@@ -17,6 +17,7 @@ android {
minSdk versions.minSdk
consumerProguardFiles 'consumer-proguard-rules.pro'
}
+ buildFeatures.buildConfig = false
lintOptions {
disable 'GoogleAppIndexingWarning'
error 'ObsoleteSdkInt'

MODIFY
plumber-android/build.gradle
plumber-android/build.gradle
@@ -19,6 +19,7 @@ android {
minSdk versions.minSdk
consumerProguardFiles 'consumer-proguard-rules.pro'
}
+ buildFeatures.buildConfig = false
lintOptions {
disable 'GoogleAppIndexingWarning'
error 'ObsoleteSdkInt'

Disable BuildConfig generating by default