Skip to content
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

[RNMobile] Upgrade Gradle to 8.2.1 and AGP to 8.1.0 #52872

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
cc1ca68
Build: Move android related gradle properties to its own group for aztec
ParaskP7 Jul 19, 2023
eb29afb
Deps: Extract agp version to settings build gradle for aztec
ParaskP7 Jul 19, 2023
22ed356
Deps: Extract publish to s3 version to settings build gradle for aztec
ParaskP7 Jul 19, 2023
3c2cd6f
Deps: Add versions groups to root build gradle for aztec
ParaskP7 Jul 19, 2023
dd97556
Deps: Extract androidx legacy version to root build gradle for aztec
ParaskP7 Jul 19, 2023
2a66c7a
Deps: Extract androidx gridlayout version to root build gradle for aztec
ParaskP7 Jul 19, 2023
0767c4e
Deps: Extract androidx cardview version to root build gradle for aztec
ParaskP7 Jul 19, 2023
d9af77e
Deps: Extract androidx appcompat version to root build gradle for aztec
ParaskP7 Jul 19, 2023
7c2c07b
Deps: Extract androidx recyclerview version to root bld gradle for aztec
ParaskP7 Jul 19, 2023
3569054
Deps: Extract junit version to root build gradle for aztec
ParaskP7 Jul 19, 2023
62ac0b8
Build: Upgrade gradle to 8.1.1 for aztec (1/2)
ParaskP7 Jul 19, 2023
f63df55
Build: Upgrade agp to 8.0.2 for aztec
ParaskP7 Jul 19, 2023
57acd33
Build: Move package from android manifest to build files for aztec
ParaskP7 Jul 19, 2023
ba72061
Build: Upgrade gradle to 8.1.1 for aztec (2/2)
ParaskP7 Jul 19, 2023
c0d9c1a
Build: Migrate dsl properties from lint options to lint for aztec
ParaskP7 Jul 19, 2023
c106962
Build: Upgrade gradle to 8.2.1 for aztec
ParaskP7 Jul 19, 2023
ab9d379
Build: Move android related gradle prop. to its own group for bridge
ParaskP7 Jul 19, 2023
60a411f
Deps: Extract agp version to settings build gradle for bridge
ParaskP7 Jul 19, 2023
9ceb140
Deps: Extract publish to s3 version to settings build gradle for bridge
ParaskP7 Jul 19, 2023
143c768
Deps: Extract facebook fresco react native related version for bridge
ParaskP7 Jul 19, 2023
e60fa86
Deps: Extract google material version to root build gradle for bridge
ParaskP7 Jul 19, 2023
fc5ad2a
Deps: Extract wordpress utils version to root build gradle for bridge
ParaskP7 Jul 19, 2023
ab4ba07
Deps: Extract junit version to root build gradle for bridge
ParaskP7 Jul 19, 2023
61b8972
Build: Upgrade gradle to 8.1.1 for bridge (1/2)
ParaskP7 Jul 19, 2023
565f0b8
Build: Upgrade agp to 8.0.2 for bridge
ParaskP7 Jul 19, 2023
4592d13
Build: Move package from android manifest to build files for bridge
ParaskP7 Jul 19, 2023
41ba3ac
Build: Enable build config build feature for bridge
ParaskP7 Jul 19, 2023
f80c182
Build: Upgrade gradle to 8.1.1 for bridge (2/2)
ParaskP7 Jul 19, 2023
47210b7
Build: Migrate dsl properties from lint options to lint for bridge
ParaskP7 Jul 19, 2023
fb26a88
Build: Upgrade gradle to 8.2.1 for bridge
ParaskP7 Jul 19, 2023
1d6ffba
Build: Upgrade gradle to 8.2.1 for editor
fluiddot Jul 21, 2023
a3ce586
Build: Upgrade agp to 8.0.2 for editor
fluiddot Jul 21, 2023
7f6f343
Build: Move package from android manifest to build files for editor
fluiddot Jul 21, 2023
9469e37
Build: Enable build config build feature for editor
fluiddot Jul 21, 2023
4794892
Patch `react-native-gradle` package
fluiddot Jul 21, 2023
6eba537
Include correct `react-native-aztec` project in bridge
fluiddot Jul 21, 2023
693c0fe
Use newer version of React Native Gradle plugin
fluiddot Jul 24, 2023
bf340a4
Make `else` statement one-line format in editor's `settings.gradle`
fluiddot Jul 24, 2023
66a02f9
Remove aztec project inclusion when publishing bridge binaries
fluiddot Jul 25, 2023
f1738ff
Use Java 17 in Android E2E tests
fluiddot Jul 25, 2023
86c5dc2
Update publish-to-s3 Gradle plugin to 0.8.0
fluiddot Jul 25, 2023
ced1fc9
Revert removing package from AndroidManifest
fluiddot Jul 25, 2023
67ca6bd
Add inline comment to remind updating package name
fluiddot Jul 25, 2023
0cf7e42
Add `.java-version` file to use Java 17
fluiddot Jul 26, 2023
d031dfd
Merge branch 'trunk' into rnmobile/0.69.4-upgrade-gradle-to-8.2.1-and…
fluiddot Jul 28, 2023
1ba4251
Bump Android Gradle Plugin to `8.1.0`
fluiddot Jul 28, 2023
665c586
Remove `react-native-gradle` patch
fluiddot Jul 27, 2023
7fead25
Update `react-native-editor` changelog
fluiddot Jul 28, 2023
6300536
Merge branch 'trunk' into rnmobile/0.69.4-upgrade-gradle-to-8.2.1-and…
fluiddot Jul 28, 2023
0f7ee31
Remove TODO inline comment in `build.gradle`
fluiddot Jul 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.wordpress.mobile.ReactNativeGutenbergBridge">

Copy link
Contributor Author

@fluiddot fluiddot Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The React Native CLI fetches the package attribute from AndroidManifest files, so we can't remove it. Otherwise, we encounter the following error when installing the Pods for the demo project:

error Failed to build the app: No package name found. Found errors in gutenberg-mobile/gutenberg/node_modules/@wordpress/react-native-bridge/android/react-native-bridge/src/main/AndroidManifest.xml.

This can be tested by removing the package attribute and running the command npx react-native config (this command is used behind the scenes when installing the Pods).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is okay (safe) to keep this package definition here @fluiddot , that is, as long as we make sure to have the same namespace defined on the inner react-native-bridge/build.gradle level, just we already did. 👍

PS: We just need to not forget to update one without the other, that is, if we ever need to do something like that anyway (but I doubt that this will be happening anytime soon). 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is okay (safe) to keep this package definition here @fluiddot , that is, as long as we make sure to have the same namespace defined on the inner react-native-bridge/build.gradle level, just we already did. 👍

PS: We just need to not forget to update one without the other, that is, if we ever need to do something like that anyway (but I doubt that this will be happening anytime soon). 🤷

Good point. I think having an inline comment in both build.gradle and AndroidManifest.xml files reminding this would be helpful to avoid forgetting that both need to be updated. I'll add this 💨 .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I applied my above suggestion in 67ca6bd.

<queries>
<intent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.gutenberg">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Loading