AGP 9.0 migration#2719
Conversation
|
Hi. Thanks. Glad to see you contributing again. Does F-Droid now support AGP 9 (ref)? Believe their build servers are one reason we're stuck with AGP 8.x, or may be we can split the build steps to use AGP 8 or 9 depending on the variant? |
|
Thanks |
There was a problem hiding this comment.
Pull request overview
This PR migrates the Android build to the AGP 9.x / newer Gradle toolchain, updating wrapper scripts, centralizing dependency repositories, and modernizing module build configuration (variant API + Kotlin compiler options).
Changes:
- Introduces
dependencyResolutionManagementinsettings.gradleand removes common repos fromallprojects. - Updates Gradle wrapper (scripts +
gradle-wrapper.properties) to a newer Gradle distribution. - Bumps AGP/Kotlin and multiple Android library dependency versions; migrates ABI versionCode logic to the
androidComponentsAPI.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
settings.gradle |
Adds centralized repository management via dependencyResolutionManagement. |
gradlew.bat |
Updates Windows Gradle wrapper script logic/behavior. |
gradlew |
Updates POSIX Gradle wrapper script template. |
gradle/wrapper/gradle-wrapper.properties |
Updates Gradle distribution URL and wrapper settings. |
build.gradle |
Bumps AGP/Kotlin tooling; adjusts repository configuration; updates clean task. |
app/build.gradle |
Migrates variant/output versionCode logic; updates Kotlin compiler configuration and dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| include ':app',':tun2socks' | ||
|
|
||
| dependencyResolutionManagement { | ||
| repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) |
| plugins { | ||
| id 'com.android.application' | ||
| id 'com.google.devtools.ksp' | ||
| id 'kotlin-android' | ||
| } |
| echo. 1>&2 | ||
| echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | ||
| echo location of your Java installation. 1>&2 | ||
|
|
||
| goto fail | ||
| "%COMSPEC%" /c exit 1 |
| echo. 1>&2 | ||
| echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | ||
| echo location of your Java installation. 1>&2 | ||
|
|
||
| goto fail | ||
| "%COMSPEC%" /c exit 1 |
No description provided.