From bd451fb24b7111ba63363ed1b7ba8de54398eab0 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Thu, 11 Jun 2026 13:24:26 +0200 Subject: [PATCH] chore(example): bump Android Gradle plugin and Kotlin toolchain Updates the example app's Android toolchain to AGP 8.6.0 and Kotlin 1.9.22, adds the Flutter-migrator gradle.properties flags, and the generated MainActivity engine-configuration override. Extracted from the passkeys PR (#858) as unrelated maintenance. --- .../kotlin/com/auth0/auth0_flutter_example/MainActivity.kt | 5 +++++ auth0_flutter/example/android/gradle.properties | 4 ++++ auth0_flutter/example/android/settings.gradle | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/auth0_flutter/example/android/app/src/main/kotlin/com/auth0/auth0_flutter_example/MainActivity.kt b/auth0_flutter/example/android/app/src/main/kotlin/com/auth0/auth0_flutter_example/MainActivity.kt index 3726d88b8..d1eb59d15 100644 --- a/auth0_flutter/example/android/app/src/main/kotlin/com/auth0/auth0_flutter_example/MainActivity.kt +++ b/auth0_flutter/example/android/app/src/main/kotlin/com/auth0/auth0_flutter_example/MainActivity.kt @@ -1,6 +1,11 @@ package com.auth0.auth0_flutter_example import io.flutter.embedding.android.FlutterFragmentActivity +import io.flutter.embedding.engine.FlutterEngine +import io.flutter.plugin.common.MethodChannel class MainActivity: FlutterFragmentActivity() { + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + } } diff --git a/auth0_flutter/example/android/gradle.properties b/auth0_flutter/example/android/gradle.properties index 692ca3cd2..2d0b0d458 100644 --- a/auth0_flutter/example/android/gradle.properties +++ b/auth0_flutter/example/android/gradle.properties @@ -7,3 +7,7 @@ org.gradle.jvmargs=-Xmx1536M \ android.useAndroidX=true android.enableJetifier=true android.jetifier.ignorelist=bcprov-jdk15on +# This builtInKotlin flag was added automatically by Flutter migrator +android.builtInKotlin=false +# This newDsl flag was added automatically by Flutter migrator +android.newDsl=false diff --git a/auth0_flutter/example/android/settings.gradle b/auth0_flutter/example/android/settings.gradle index df37de8ab..57bb17329 100644 --- a/auth0_flutter/example/android/settings.gradle +++ b/auth0_flutter/example/android/settings.gradle @@ -18,8 +18,8 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.3.0" apply false - id "org.jetbrains.kotlin.android" version "1.9.10" apply false + id "com.android.application" version "8.6.0" apply false + id "org.jetbrains.kotlin.android" version "1.9.22" apply false } include ':app' \ No newline at end of file