feat: enable AGP v9 in BGP - #448
Merged
Merged
Conversation
hurali97
force-pushed
the
hur/bgp-agp-9-compliance
branch
from
September 17, 2026 08:37
91a60a4 to
90c093a
Compare
hurali97
force-pushed
the
hur/bgp-agp-9-compliance
branch
from
September 28, 2026 10:26
90c093a to
02802bb
Compare
hurali97
marked this pull request as ready for review
September 28, 2026 10:27
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The cacheable task does not declare all directories it writes, risking missing outputs on cache hits.
Review effort: Lite
Findings: 1
What changed in this PR
Updates the Brownfield Gradle plugin for AGP 9 and RN 0.87 compatibility.
Changes:
- Upgrades Gradle to 9.4.1.
- Updates AGP and Android tooling dependencies.
- Adds caching support to
MergeClassesTask.
| File | Summary |
|---|---|
gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/shared/MergeClassesTask.kt |
Adds task caching, but all generated destinations must be declared as outputs. |
gradle-plugins/react/brownfield/gradle/wrapper/gradle-wrapper.properties |
Upgrades the Gradle wrapper. |
gradle-plugins/react/brownfield/gradle/libs.versions.toml |
Updates AGP and Android tooling versions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This was referenced Sep 28, 2026
KisaneNeko
pushed a commit
to KisaneNeko/react-native-brownfield
that referenced
this pull request
Sep 29, 2026
With AGP compileOnly the app provides AGP at runtime, but a plugin built against AGP 9.2.1 references AGP 9 only classes and fails on AGP 8 apps: Expo 57 (AGP 8.12) failed with NoClassDefFoundError com/android/build/api/dsl/AndroidLibrarySourceSet. Built against 8.5.2 (the version before callstack#448) it applies on both AGP 8.12.0 and 9.2.1.
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 requires RN App to be v0.87.0 and Expo to be updated and released to the newer version.
Test plan