Migrate to AGP 9.0 built-in Kotlin support#435
Merged
Conversation
- Remove deprecated kotlin.android plugin from build.gradle.kts - Remove deprecated gradle.properties settings (builtInKotlin, newDsl, etc.) - Enables AGP 9.0's modern built-in Kotlin support - Eliminates deprecation warnings
Add android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false to suppress the build warning about dependency constraints optimization.
Code Coverage Report |
Extract the following embedded versions to [versions] section for consistent dependency management: - robolectric: 4.16.1 - google-services plugin: 4.4.4 - firebase-crashlytics plugin: 3.0.6 - kotlinx-kover plugin: 0.9.8 This improves centralized version management and maintainability.
- metro: 0.13.1 → 0.13.2 - firebaseBom: 34.11.0 → 34.12.0 - firebaseCrashlytics: 3.0.6 → 3.0.7 - kotlinxSerializationJson: 1.10.0 → 1.11.0 - kotlinxSerializationProperties: 1.10.0 → 1.11.0 - Remove unused android-library plugin definition
📊 APK Size AnalysisComparing APKDEX |
- Use .set() method for reportsDestination property (new DSL style) - Use layout.buildDirectory.dir() instead of .asFile.get().resolve() - Remove deprecated enableKotlinVersionCompatibilityChecks property - Update documentation links to point to 0.13.2 docs Metro 0.13.2 uses typed properties with .set() methods instead of direct assignment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR migrates the project to Android Gradle Plugin (AGP) 9.0's built-in Kotlin support, eliminating deprecation warnings and modernizing the build configuration.
Changes
org.jetbrains.kotlin.androidfromapp/build.gradle.ktsandroid.builtInKotlin=false,android.newDsl=falseandroid.generateSyncIssueWhenLibraryConstraintsAreEnabled=falseto suppress build warningsBenefits
✅ Clean build output with zero warnings
✅ Uses AGP 9.0's modern built-in Kotlin support
✅ Improved build performance
✅ No more deprecation warnings
Build Status
./gradlew assembleDebug- SUCCESS (300ms)Related
See: https://kotl.in/gradle/agp-built-in-kotlin for AGP 9.0 migration details