Change buildConfig to be disabled for Android libraries and enabled for applications also enabled for ui legacy

This commit is contained in:
Wolf Montwé 2023-02-16 16:49:50 +01:00
parent 1ba071bfb3
commit 451bad2970
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72
4 changed files with 12 additions and 4 deletions

View file

@ -67,6 +67,10 @@ dependencies {
android { android {
namespace 'com.fsck.k9.ui' namespace 'com.fsck.k9.ui'
buildFeatures {
buildConfig = true
}
buildTypes { buildTypes {
debug { debug {
def useNewSetupUi = project.hasProperty('k9mail.useNewSetupUi') ? project.property('k9mail.useNewSetupUi') : "false" def useNewSetupUi = project.hasProperty('k9mail.useNewSetupUi') ? project.property('k9mail.useNewSetupUi') : "false"

View file

@ -11,10 +11,6 @@ fun CommonExtension<*, *, *, *>.configureSharedConfig() {
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
} }
buildFeatures {
buildConfig = true
}
compileOptions { compileOptions {
sourceCompatibility = ThunderbirdProjectConfig.javaVersion sourceCompatibility = ThunderbirdProjectConfig.javaVersion
targetCompatibility = ThunderbirdProjectConfig.javaVersion targetCompatibility = ThunderbirdProjectConfig.javaVersion

View file

@ -10,6 +10,10 @@ android {
targetSdk = ThunderbirdProjectConfig.androidSdkTarget targetSdk = ThunderbirdProjectConfig.androidSdkTarget
} }
buildFeatures {
buildConfig = true
}
compileOptions { compileOptions {
isCoreLibraryDesugaringEnabled = true isCoreLibraryDesugaringEnabled = true
} }

View file

@ -11,6 +11,10 @@ android {
targetSdk = ThunderbirdProjectConfig.androidSdkTarget targetSdk = ThunderbirdProjectConfig.androidSdkTarget
} }
buildFeatures {
buildConfig = false
}
kotlinOptions { kotlinOptions {
jvmTarget = ThunderbirdProjectConfig.javaVersion.toString() jvmTarget = ThunderbirdProjectConfig.javaVersion.toString()
} }