App: fix Gradle to work with AGP 9.0 #52
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR updates the project's build infrastructure to use Android Gradle Plugin (AGP) 9.0.0 and JDK 21. It also streamlines the Gradle build logic and updates the development environment requirements.
Changes
🛠 Build & Dependencies
agpversion from8.13.2to9.0.0.sourceCompatibilityandtargetCompatibilitytoJavaVersion.VERSION_21.jvmToolchainto21.renovate_check.yml,tag_create_release.yml) to use JDK 21.2.59.2.3.4(aligned with Kotlin2.3.0).jetbrainsKotlinAndroidplugin as it's now handled by the Android Application and Compose Compiler plugins.
⚙️ Gradle Logic Improvements
BaseAppModuleExtensionwith the publicApplicationExtensionin build utility functions.releaseSigningproperty to conditionally enable release signing.setOutputFileName) that relied on internal AGP APIs.android.nonFinalResIds=trueingradle.propertiesfor better build performance and compatibility with modern AGP.
📝 Documentation