Repository navigation
build(android): upgrade to Gradle 9.7.1 and AGP 9.4.1 - #831
Merged
Merged
Conversation
Gradle 9.6+ removed the internal APIs AGP 8.x relies on, so 9.7.1 requires AGP 9. Mirrors the oss-weather upgrade. - Gradle 9.7.1, AGP 9.4.1, androidx baselineprofile plugin 1.5.0 - android.newDsl=false: app.gradle still uses applicationVariants, which the AGP 9 DSL removes (temporary opt-out, gone in AGP 10) - run the gradle.properties merge hook before prepareNativeApp - drop the kotlin-android plugin (AGP 9 built-in Kotlin), including in the nativeprocessor include.gradle, and the removed kotlinOptions - replace Project.exec with ExecOperations - enable the Gradle build cache Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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
documentscannerandcardwallet. Gradle 9.6+ removed the internal APIs AGP 8.x relies on, so 9.7.1 requires AGP 9. Mirrors the oss-weather upgrade.android.newDsl=false:app.gradlestill usesapplicationVariants, which the AGP 9 DSL removes (temporary opt-out, gone in AGP 10).gradle.propertiesmerge hook now runsbefore-prepareNativeApp, so it is in place before Gradle first runs.kotlin-androidplugin (AGP 9 has built-in Kotlin), including inplugin-nativeprocessor/platforms/android/include.gradle, and the removedkotlinOptions.Project.execreplaced byExecOperations. Gradle build cache enabled.Testing
./gradlew assembleDebugon Gradle 9.7.1 passes fordocumentscanner,createProguardincluded.cardwallet, release builds, theplugin-nativeprocessor/src-nativestandalone aar build (own AGP 8.2.2 setup, untouched).ns build androidcurrently fails in webpack withTS2614(Itemnot exported fromMainList.svelte), unrelated to this change, so a full CLI build and an on-device run are still needed. Likely requires the matching nativescript-cli vendor script fixes (fix(android): make vendored gradle scripts work with Gradle 9.x and AGP 9 Akylas/nativescript-cli#9).chore: subcommit (toolssubmodule bump) that was ahead oforigin/main.🤖 Generated with Claude Code