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:
Marco Romano 2023-10-19 11:00:32 +02:00 committed by GitHub
parent 9aa4c59516
commit 79d2941fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 7 deletions

View file

@ -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)

View file

@ -55,6 +55,4 @@ dependencies {
androidTestImplementation(libs.test.truth)
androidTestImplementation(libs.test.runner)
androidTestImplementation(projects.libraries.sessionStorage.test)
coreLibraryDesugaring(libs.android.desugar)
}

View file

@ -45,8 +45,6 @@ dependencies {
testImplementation(libs.test.turbine)
testImplementation(libs.coroutines.test)
testImplementation(libs.sqldelight.driver.jvm)
coreLibraryDesugaring(libs.android.desugar)
}
sqldelight {

View file

@ -31,7 +31,6 @@ fun CommonExtension<*, *, *, *, *>.androidConfig(project: Project) {
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

View file

@ -32,9 +32,13 @@ plugins {
android {
androidConfig(project)
composeConfig(libs)
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
}
dependencies {
commonDependencies(libs)
composeDependencies(libs)
coreLibraryDesugaring(libs.android.desugar)
}

View file

@ -32,9 +32,13 @@ plugins {
android {
androidConfig(project)
composeConfig(libs)
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
}
dependencies {
commonDependencies(libs)
composeDependencies(libs)
coreLibraryDesugaring(libs.android.desugar)
}

View file

@ -29,8 +29,12 @@ plugins {
android {
androidConfig(project)
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
}
dependencies {
commonDependencies(libs)
coreLibraryDesugaring(libs.android.desugar)
}

View file

@ -65,5 +65,4 @@ dependencies {
implementation(projects.services.toolbox.impl)
implementation(projects.libraries.featureflag.impl)
implementation(libs.coroutines.core)
coreLibraryDesugaring(libs.android.desugar)
}