Skip to content

Commit 7fef603

Browse files
committed
fix: desugar build error
1 parent 7870157 commit 7fef603

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

core-sdk-samples/higgs-shop-sample-app/app/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ plugins {
1212

1313
android {
1414
namespace = "com.mparticle.example.higgsshopsampleapp"
15-
compileSdk = 34
15+
compileSdk = 35
1616
defaultConfig {
1717
applicationId = "com.mparticle.example.higgsshopsampleapp"
1818
minSdk = 24
19-
targetSdk = 34
19+
targetSdk = 35
2020
versionCode = buildVersionCode()
2121
versionName = "0.14.1-SNAPSHOT"
2222
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
@@ -49,6 +49,7 @@ android {
4949
}
5050
}
5151
compileOptions {
52+
isCoreLibraryDesugaringEnabled = true
5253
sourceCompatibility = JavaVersion.VERSION_17
5354
targetCompatibility = JavaVersion.VERSION_17
5455
}
@@ -59,6 +60,7 @@ android {
5960
}
6061

6162
dependencies {
63+
coreLibraryDesugaring(libs.desugar.jdk.libs)
6264
// AndroidX BOM
6365
implementation(platform(libs.androidx.compose.bom))
6466
implementation(libs.androidx.compose.runtime.runtime)

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ runner = "1.4.0"
4242
truth = "1.4.0"
4343
truthVersion = "1.1.3"
4444
uiTestJunit4 = "1.3.0"
45+
desugarJdkLibs = "2.1.5"
4546

4647
[libraries]
4748
androidx-compose-bom = { module = "androidx.compose:compose-bom", version.ref = "composeBom" }
@@ -92,6 +93,7 @@ org-jetbrains-kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlin
9293
play-services-ads-identifier = { module = "com.google.android.gms:play-services-ads-identifier", version.ref = "playServicesAdsIdentifier" }
9394
squareup-logging-interceptor = { module = "com.squareup.okhttp3:logging-interceptor" }
9495
truth = { module = "com.google.truth:truth", version.ref = "truthVersion" }
96+
desugar-jdk-libs = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desugarJdkLibs" }
9597

9698
[plugins]
9799
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }

0 commit comments

Comments
 (0)