-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Upgrade gradle to 7.1.1 & Android Gradle Plugin to 4.2.2 #15076
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
Conversation
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APKs: |
1f5818f to
5adccea
Compare
8b6e756 to
07cb054
Compare
jkmassel
left a comment
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 smoke tested this using FluxC as a composite build (since it has an associated PR to update Gradle) and it worked great, and also tested the PR in isolation.
The editor and login both worked great, so I think this is good to go.
|
At first builds were working but trying to run on my phone kept failing with "Unable to determine application id" error, whatever variant I tried. I then tried "Build > Clean Project" then "Build > Rebuild Project" but still got the same issue. Then tried "File > Invalidate Caches / Restart", rebooted AS, tried yet another Gradle Sync, then rebuilt the project and it finally launched. So I figured I'd leave that info here in case anyone has trouble building after the transition and the PR gets merged. I then decided to smoke-test Jetpack – given Jeremy already tested WP and that JP is often overlooked and forgotten when testing things 😛 – and it worked. I was unable to test composite builds with gutenberg, because my I tried following the instructions in |
|
@AliSoftware It looks like you might have mixed things up a bit, so at this point you may need to clean things up before it works, but here are the instructions if you were to start from scratch: (since all PRs are merged at this point, please run them in the In WordPress-Android:
In gb-mobile:
Then you can run the app normally. You don't need to test this anymore but I think it's important for you to be familiar with how to setup gb-mobile. Please let me know if you have any issues. |
|
Yep that's exactly the instructions I followed, and:
Those |
|
Ahh.. I see. Let me know if you want to look into the nvm installation errors on Slack together. You can use our Docker image if you prefer not to deal with it at all, but you'd need to map out the metro server port for it, so you might want to add a docker-compose configuration on top of it. It might be worth adding the docker-compose configuration in gb-mobile so it can be easily run with just a |
This PR upgrades Gradle to 7.1.1 and Android Gradle Plugin to 4.2.2. The changes in the PR are minimal as all the necessary changes have been made in other PRs and already got merged. Besides the upgrades, the PR references the Gradle 7 branch of FluxC, gutenberg-mobile & stories-android libraries so that it can all be tested in this PR.
Note that I am leaving this PR as a draft because all Gradle 7 upgrade PRs need to be merged together. We'll merge all 3 libraries first and update the references before merging this PR.
To test:
npm install & npm run start:resetfrom gutenberg-mobile folder to start the metro server. You'll also need to donvm usefromgutenberg-mobile/gutenbergfolder before runningnpm installor you might have errors.Regression Notes
Potential unintended areas of impact
Probably N/A - The build file changes should only impact whether the project builds or not. However, since Android Gradle Plugin is updated, it's hard to be sure that nothing else will be impacted.
What I did to test those areas of impact (or what existing automated tests I relied on)
Manual tests and current CI checks mostly around the build
What automated tests I added (or what prevented me from doing so)
N/A
PR submission checklist:
RELEASE-NOTES.txtif necessary.