Include desugaring lib also in library modules (#1604)
## Type of change - [ ] Feature - [ ] Bugfix - [x] Technical - [ ] Other : ## Content Includes the `coreLibraryDesugaring(libs.android.desugar)` dependency in all modules which use one of our gradle plugins. ## Motivation and context Right now desugaring is enabled also in library modules but the desugar dependency is not included in those. This causes some unwanted side effects such as being unable to run compose previews in an emu. This change will also include the desugar dependency in those libraries.
This commit is contained in:
parent
643fe1a5e5
commit
fb02f698d7
8 changed files with 12 additions and 7 deletions
|
|
@ -203,7 +203,6 @@ dependencies {
|
|||
implementation(projects.appnav)
|
||||
anvil(projects.anvilcodegen)
|
||||
|
||||
coreLibraryDesugaring(libs.android.desugar)
|
||||
implementation(libs.appyx.core)
|
||||
implementation(libs.androidx.splash)
|
||||
implementation(libs.androidx.core)
|
||||
|
|
|
|||
|
|
@ -55,6 +55,4 @@ dependencies {
|
|||
androidTestImplementation(libs.test.truth)
|
||||
androidTestImplementation(libs.test.runner)
|
||||
androidTestImplementation(projects.libraries.sessionStorage.test)
|
||||
|
||||
coreLibraryDesugaring(libs.android.desugar)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ dependencies {
|
|||
testImplementation(libs.test.turbine)
|
||||
testImplementation(libs.coroutines.test)
|
||||
testImplementation(libs.sqldelight.driver.jvm)
|
||||
|
||||
coreLibraryDesugaring(libs.android.desugar)
|
||||
}
|
||||
|
||||
sqldelight {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ fun CommonExtension<*, *, *, *, *>.androidConfig(project: Project) {
|
|||
}
|
||||
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,9 +32,13 @@ plugins {
|
|||
android {
|
||||
androidConfig(project)
|
||||
composeConfig(libs)
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonDependencies(libs)
|
||||
composeDependencies(libs)
|
||||
coreLibraryDesugaring(libs.android.desugar)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,9 +32,13 @@ plugins {
|
|||
android {
|
||||
androidConfig(project)
|
||||
composeConfig(libs)
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonDependencies(libs)
|
||||
composeDependencies(libs)
|
||||
coreLibraryDesugaring(libs.android.desugar)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,12 @@ plugins {
|
|||
|
||||
android {
|
||||
androidConfig(project)
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
commonDependencies(libs)
|
||||
coreLibraryDesugaring(libs.android.desugar)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,5 +65,4 @@ dependencies {
|
|||
implementation(projects.services.toolbox.impl)
|
||||
implementation(projects.libraries.featureflag.impl)
|
||||
implementation(libs.coroutines.core)
|
||||
coreLibraryDesugaring(libs.android.desugar)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue