Skip to content

Add gradle-wrapper.properties and set Gradle to 8.13#280

Merged
droibit merged 3 commits into
developfrom
fix/example/gradle-wrapper-8.13
Nov 23, 2025
Merged

Add gradle-wrapper.properties and set Gradle to 8.13#280
droibit merged 3 commits into
developfrom
fix/example/gradle-wrapper-8.13

Conversation

@droibit

@droibit droibit commented Nov 23, 2025

Copy link
Copy Markdown
Owner

This pull request updates Gradle configuration and related .gitignore rules for the Android example projects in both flutter_custom_tabs and flutter_custom_tabs_android. The main changes focus on standardizing Gradle wrapper usage and improving the .gitignore patterns to better handle Gradle and build artifacts.

Gradle configuration updates:

  • Added a gradle-wrapper.properties file specifying Gradle 8.13 and standard wrapper settings in both flutter_custom_tabs/example/android/gradle/wrapper/ and flutter_custom_tabs_android/example/android/gradle/wrapper/.

.gitignore improvements:

  • Updated .gitignore files in both flutter_custom_tabs/example/android/ and flutter_custom_tabs_android/example/android/ to ignore Gradle wrapper files and directories more precisely, including **/gradle-wrapper.jar, .gradle/, .cxx/, gradlew, and gradlew.bat, while removing outdated or redundant patterns.

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 flutter/flutter#176467 (comment) for details.
@droibit droibit added this to the 2.5.0 milestone Nov 23, 2025
@droibit droibit self-assigned this Nov 23, 2025
Copilot AI review requested due to automatic review settings November 23, 2025 16:48
@droibit droibit added the enhancement New feature or request label Nov 23, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes Gradle wrapper configuration across both example projects by adding gradle-wrapper.properties files that specify Gradle 8.13, and refines .gitignore patterns to better manage Gradle-related files. The changes allow the Gradle wrapper properties to be version controlled while ignoring the wrapper binaries and generated artifacts.

Key Changes

  • Added gradle-wrapper.properties files specifying Gradle 8.13 in both example Android projects
  • Updated .gitignore patterns to selectively ignore Gradle wrapper executables and JAR files while allowing properties to be tracked
  • Consolidated and modernized .gitignore patterns for Gradle artifacts

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
flutter_custom_tabs_android/example/android/gradle/wrapper/gradle-wrapper.properties Added Gradle 8.13 wrapper configuration with standard distribution settings
flutter_custom_tabs_android/example/android/.gitignore Refined Gradle ignore patterns to allow wrapper properties while ignoring executables; however, the /build pattern was inadvertently removed
flutter_custom_tabs/example/android/gradle/wrapper/gradle-wrapper.properties Added Gradle 8.13 wrapper configuration with standard distribution settings
flutter_custom_tabs/example/android/.gitignore Refined Gradle ignore patterns to allow wrapper properties while ignoring executables; however, the /build pattern was inadvertently removed

Comment thread flutter_custom_tabs_android/example/android/.gitignore
Comment thread flutter_custom_tabs/example/android/.gitignore
@droibit droibit merged commit d716c14 into develop Nov 23, 2025
0 of 2 checks passed
@droibit droibit deleted the fix/example/gradle-wrapper-8.13 branch November 23, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants