-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Bump AGP to 7.1.1 and fix bundle inclusion in release mode (#3…
…3057) Summary: Upgrade Android Gradle to 7.1.0 on template and fix a bug where the bundle was not getting included when building the app in release mode Closes #33002 Closes #33018 Closes #33046 Potentially fixes #33029 ## Changelog [Android] [Changed] - Bump AGP to 7.1.0 and fix bundle inclusion in release mode Pull Request resolved: #33057 Test Plan: 1. Run `./scripts/test-manual-e2e.sh` 2. Select `A new RN app using the template` and `Android` 3. Test app on the emulator 4. Open Android studio build the app using release variant 4. Check the release apk using Android studio "Analyze APK" tool and ensure the bundle is included ![image](https://user-images.githubusercontent.com/11707729/152700410-3bcb80b0-35b6-4bdc-bf57-98a42a29e5a6.png) Reviewed By: ShikaSD Differential Revision: D34076884 Pulled By: cortinico fbshipit-source-id: da4392af37e08e22dbcafba38476fd712141474a
- Loading branch information
1 parent
235f168
commit 200488e
Showing
6 changed files
with
28 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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
200488e
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.
Hello, this fix is not included in the latest release of RN 0.68 and the
react.gradle
file is different. I had to take it from the master repo in order to fix the problem. Could you please publish this fix in the released react-native version on NPM?Thank you!
200488e
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.
Hello, this fix is not included in the latest release of RN 0.68 and the
react.gradle
file is different. I had to take it from the master repo in order to fix the problem. Could you please publish this fix in the released react-native version on NPM?Thank you!
200488e
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.
Hi @marf
This fix will land in 0.69 together with the bump for AGP 7.1
If you're on RN 0.68, you should stick to AGP 7.0.x
200488e
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.
Hi @cortinico thank you for the info.
I suggest the team update the upgrade helper guide because it suggests updating to 7.1 in the upgrading guide even though it does not work. It took me several hours to figure out why it was not working having followed the upgrading suggestions line by line.
200488e
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.
Hi @cortinico thank you for the info.
I suggest the team update the upgrade helper guide because it suggests updating to 7.1 in the upgrading guide even though it does not work. It took me several hours to figure out why it was not working having followed the upgrading suggestions line by line.
200488e
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.
Can you please link to where this is being suggested?
200488e
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.
Sorry my mistake, I must have not read it correctly! Now I have seen 7.0.X both in the migration guide and also in the upgrade helper tool!
Thank you again for the support!
200488e
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.
Sorry, my mistake! I must have not read it correctly! Now I have seen 7.0.X both in the migration guide and also in the upgrade helper tool!
Thank you again for the support!