-
Notifications
You must be signed in to change notification settings - Fork 25.2k
feat: adopt AGP v9 #57038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hurali97
wants to merge
8
commits into
facebook:main
Choose a base branch
from
hurali97:bump-to-agp9
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+67
−67
Open
feat: adopt AGP v9 #57038
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
87d49e2
chore: bump agp to 9.2.1
hurali97 74bfd7f
feat: use agp9 for core
hurali97 2367bc6
feat: replace deprecated APIs
hurali97 24e305f
fix: comment out the fallbacks
hurali97 3b3e2a3
fix: deprecated APIs
hurali97 305b41a
fix: use androidx.collection with implementation
hurali97 e895962
refactor: unnecessary pattern filter
hurali97 440e25d
feat: enable opt outs in helloworld template
hurali97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [versions] | ||
| agp = "8.12.0" | ||
| agp = "9.2.1" | ||
| gson = "2.8.9" | ||
| guava = "31.0.1-jre" | ||
| javapoet = "1.13.0" | ||
|
|
||
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,10 +6,11 @@ compileSdk = "36" | |
| buildTools = "36.0.0" | ||
| ndkVersion = "27.1.12297006" | ||
| # Dependencies versions | ||
| agp = "8.12.0" | ||
| agp = "9.2.1" | ||
| androidx-annotation = "1.6.0" | ||
| androidx-appcompat = "1.7.0" | ||
| androidx-autofill = "1.3.0" | ||
| androidx-collection = "1.4.0" | ||
| androidx-benchmark-macro-junit4 = "1.3.3" | ||
| androidx-profileinstaller = "1.4.1" | ||
| androidx-swiperefreshlayout = "1.1.0" | ||
|
|
@@ -56,6 +57,7 @@ androidx-annotation = { module = "androidx.annotation:annotation", version.ref = | |
| androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" } | ||
| androidx-appcompat-resources = { module = "androidx.appcompat:appcompat-resources", version.ref = "androidx-appcompat" } | ||
| androidx-autofill = { module = "androidx.autofill:autofill", version.ref = "androidx-autofill" } | ||
| androidx-collection = { module = "androidx.collection:collection", version.ref = "androidx-collection" } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| androidx-benchmark-macro-junit4 = { group = "androidx.benchmark", name = "benchmark-macro-junit4", version.ref = "androidx-benchmark-macro-junit4" } | ||
| androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso-core" } | ||
| androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-junit" } | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,6 @@ | |
|
|
||
| plugins { | ||
| alias(libs.plugins.android.test) | ||
| alias(libs.plugins.kotlin.android) | ||
| } | ||
|
|
||
| android { | ||
|
|
||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,8 @@ reactNativeArchitectures=arm64-v8a | |
| newArchEnabled=true | ||
| hermesEnabled=true | ||
| edgeToEdgeEnabled=false | ||
|
|
||
| # Opt out of built-in kotlin and new DSL behavior that ships with AGP 9. | ||
| # Starting from AGP 10.x these opt outs will be removed. | ||
| android.builtInKotlin=false | ||
| android.newDsl=false | ||
|
Comment on lines
+17
to
+18
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Enabling the opt-outs for hello-world to match the behavior of template |
||
Oops, something went wrong.
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.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we good removing those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe so. After removing those and bumping to AGP v9.2.1 - there were build issues that have already been fixed as part of this PR, so we should be good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweet