From 4d90b1d9e075e83c67a2450919d3821b093c6773 Mon Sep 17 00:00:00 2001 From: Thomson Thomas Date: Thu, 20 Nov 2025 14:49:56 -0500 Subject: [PATCH] chore: Update Android Gradle plugin and SDK versions - 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 --- example/android/app/build.gradle | 6 ++++-- example/android/gradle/wrapper/gradle-wrapper.properties | 2 +- example/android/settings.gradle | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 201fd5a..c7b540d 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -30,11 +30,12 @@ if (flutterVersionName == null) { android { namespace "com.mparticle.mparticle_flutter_sdk_example" - compileSdkVersion 34 + compileSdkVersion 35 compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 + coreLibraryDesugaringEnabled = true } kotlinOptions { @@ -49,7 +50,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.mparticle.mparticle_flutter_sdk_example" minSdkVersion 21 - targetSdkVersion 33 + targetSdkVersion 35 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } @@ -68,6 +69,7 @@ flutter { } dependencies { + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5' implementation 'com.mparticle:android-core:5+' implementation 'com.mparticle:android-rokt-kit:5+' diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 628d33c..7aeeb11 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 7e477b6..bc95f9f 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -19,7 +19,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.3.0" apply false + id "com.android.application" version "8.6.0" apply false id "org.jetbrains.kotlin.android" version "1.9.23" apply false }