Skip to content

Commit 8e8bf89

Browse files
authored
chore: Update Android Gradle plugin and SDK versions (#58)
- Upgrade Android Gradle plugin from 8.3.0 to 8.6.0 - Update compileSdkVersion and targetSdkVersion - Enable core library desugaring and add dependency for desugar_jdk_libs - Upgrade Gradle wrapper from 8.6 to 8.7
1 parent 1c62a4c commit 8e8bf89

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

example/android/app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ if (flutterVersionName == null) {
3030
android {
3131
namespace "com.mparticle.mparticle_flutter_sdk_example"
3232

33-
compileSdkVersion 34
33+
compileSdkVersion 35
3434

3535
compileOptions {
3636
sourceCompatibility JavaVersion.VERSION_17
3737
targetCompatibility JavaVersion.VERSION_17
38+
coreLibraryDesugaringEnabled = true
3839
}
3940

4041
kotlinOptions {
@@ -49,7 +50,7 @@ android {
4950
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
5051
applicationId "com.mparticle.mparticle_flutter_sdk_example"
5152
minSdkVersion 21
52-
targetSdkVersion 33
53+
targetSdkVersion 35
5354
versionCode flutterVersionCode.toInteger()
5455
versionName flutterVersionName
5556
}
@@ -68,6 +69,7 @@ flutter {
6869
}
6970

7071
dependencies {
72+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
7173
implementation 'com.mparticle:android-core:5+'
7274

7375
implementation 'com.mparticle:android-rokt-kit:5+'

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919

2020
plugins {
2121
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
22-
id "com.android.application" version "8.3.0" apply false
22+
id "com.android.application" version "8.6.0" apply false
2323
id "org.jetbrains.kotlin.android" version "1.9.23" apply false
2424
}
2525

0 commit comments

Comments
 (0)