Change buildConfig to be disabled for Android libraries and enabled for applications also enabled for ui legacy
This commit is contained in:
parent
1ba071bfb3
commit
451bad2970
4 changed files with 12 additions and 4 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -10,6 +10,10 @@ android {
|
||||||
targetSdk = ThunderbirdProjectConfig.androidSdkTarget
|
targetSdk = ThunderbirdProjectConfig.androidSdkTarget
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildFeatures {
|
||||||
|
buildConfig = true
|
||||||
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
isCoreLibraryDesugaringEnabled = true
|
isCoreLibraryDesugaringEnabled = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,10 @@ android {
|
||||||
targetSdk = ThunderbirdProjectConfig.androidSdkTarget
|
targetSdk = ThunderbirdProjectConfig.androidSdkTarget
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildFeatures {
|
||||||
|
buildConfig = false
|
||||||
|
}
|
||||||
|
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = ThunderbirdProjectConfig.javaVersion.toString()
|
jvmTarget = ThunderbirdProjectConfig.javaVersion.toString()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue