From 957a7c4c19cc8f76eb5d8a22e276aeaa8ae86097 Mon Sep 17 00:00:00 2001 From: Shinya Kumagai Date: Mon, 24 Nov 2025 01:45:18 +0900 Subject: [PATCH 1/3] Add gradle-wrapper.properties and set Gradle to 8.13 Add `gradle-wrapper.properties` to the example Android projects and set `distributionUrl` to `https://services.gradle.org/distributions/gradle-8.13-bin.zip` to fix build failures when building the example with recent Flutter toolchains. Reason: Newer Flutter versions (3.22/3.27+ and above) use Kotlin APIs (e.g. `filePermissions`) that require Gradle 8.3+. Old Gradle wrappers cause Kotlin unresolved reference errors during the example's Android build. See https://github.com/flutter/flutter/issues/176467#issuecomment-3369359113 for details. --- flutter_custom_tabs/example/android/.gitignore | 14 ++++++-------- .../gradle/wrapper/gradle-wrapper.properties | 5 +++++ .../example/android/.gitignore | 16 +++++++--------- .../gradle/wrapper/gradle-wrapper.properties | 5 +++++ 4 files changed, 23 insertions(+), 17 deletions(-) create mode 100644 flutter_custom_tabs/example/android/gradle/wrapper/gradle-wrapper.properties create mode 100644 flutter_custom_tabs_android/example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/flutter_custom_tabs/example/android/.gitignore b/flutter_custom_tabs/example/android/.gitignore index 78258935..ff4ec6fe 100644 --- a/flutter_custom_tabs/example/android/.gitignore +++ b/flutter_custom_tabs/example/android/.gitignore @@ -13,14 +13,12 @@ local.properties projectFilesBackup/ output.json -# Gradle files -/.gradle -/build -/gradle -/gradlew -/gradlew.bat - -.DS_Store +# Gradle +**/gradle-wrapper.jar +.gradle/ +gradlew +gradlew.bat +.cxx/ # Flutter files GeneratedPluginRegistrant.java diff --git a/flutter_custom_tabs/example/android/gradle/wrapper/gradle-wrapper.properties b/flutter_custom_tabs/example/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..e6045a98 --- /dev/null +++ b/flutter_custom_tabs/example/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip diff --git a/flutter_custom_tabs_android/example/android/.gitignore b/flutter_custom_tabs_android/example/android/.gitignore index a186b30f..ff4ec6fe 100644 --- a/flutter_custom_tabs_android/example/android/.gitignore +++ b/flutter_custom_tabs_android/example/android/.gitignore @@ -13,14 +13,12 @@ local.properties projectFilesBackup/ output.json -# Gradle files -/.gradle -/build -/gradle -/gradlew -/gradlew.bat - -.DS_Store +# Gradle +**/gradle-wrapper.jar +.gradle/ +gradlew +gradlew.bat +.cxx/ # Flutter files -GeneratedPluginRegistrant.java \ No newline at end of file +GeneratedPluginRegistrant.java diff --git a/flutter_custom_tabs_android/example/android/gradle/wrapper/gradle-wrapper.properties b/flutter_custom_tabs_android/example/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..e6045a98 --- /dev/null +++ b/flutter_custom_tabs_android/example/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip From 7ca74fd77dcf947d82e9d9f6a9c3dda527e6b548 Mon Sep 17 00:00:00 2001 From: Shinya Kumagai Date: Mon, 24 Nov 2025 01:53:39 +0900 Subject: [PATCH 2/3] Update flutter_custom_tabs_android/example/android/.gitignore Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- flutter_custom_tabs_android/example/android/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/flutter_custom_tabs_android/example/android/.gitignore b/flutter_custom_tabs_android/example/android/.gitignore index ff4ec6fe..f466896e 100644 --- a/flutter_custom_tabs_android/example/android/.gitignore +++ b/flutter_custom_tabs_android/example/android/.gitignore @@ -21,4 +21,5 @@ gradlew.bat .cxx/ # Flutter files +build/ GeneratedPluginRegistrant.java From 59ae4d3c71cf1c563ca2af77d6fc8c114352ef6c Mon Sep 17 00:00:00 2001 From: Shinya Kumagai Date: Mon, 24 Nov 2025 01:56:22 +0900 Subject: [PATCH 3/3] Update flutter_custom_tabs/example/android/.gitignore --- flutter_custom_tabs/example/android/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/flutter_custom_tabs/example/android/.gitignore b/flutter_custom_tabs/example/android/.gitignore index ff4ec6fe..f466896e 100644 --- a/flutter_custom_tabs/example/android/.gitignore +++ b/flutter_custom_tabs/example/android/.gitignore @@ -21,4 +21,5 @@ gradlew.bat .cxx/ # Flutter files +build/ GeneratedPluginRegistrant.java