-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Upgrade Gradle to 5.4.1 & Gradle plugin to 3.5.1 #10583
Conversation
Generated by 🚫 dangerJS |
You can test the changes on this Pull Request by downloading the APK here. |
@malinajirka If you have any extra time, do you think you could take a look at the test issue. I have looked into it and it looks like it's related to Robolectric version, however upgrading that creates another issue. Once I manually add the I think this might be the last step to upgrade the Gradle version. We have some lint issues, but they seem rather straightforward to fix, although there are quite a few of them, so I am thinking we do that in a separate PR first. |
Thanks Oguz! ;) The current change set LGTM! I've updated Robolectric version to 4.3. When I run Regarding the lint issues StaticFieldLeak - This set of errors is pretty weird as they should be suppressed through the DefaultLocale, DiffUtilEquals - These seem like issues we should probably fix 🤔 @maxme @hypest I'm not sure how much related this is, but just to be safe. Could you please confirm these changes won't break the Gutenberg development flow. Thanks! |
I've temporarily increased the no output timeout to 30 minutes so the CI would have enough time to download the file and store it into a cache. It seems that it worked as expected, so the only thing left is fixing the lint issues ;). |
Thank you for your help @malinajirka! 🙇 I've separated the lint PR #10593, let's discuss the issues there and merged it into this branch when it's ready. |
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.
As mentioned in #10593 (review) I tested the changes and everything seems to be working as expected.
I'm approving this PR to speed things up but I'd feel safer if someone from the Gutenberg team verified it doesn't break their development flow.
Really great job @oguzkocer !!
👋 @malinajirka and @oguzkocer ! This is great! Thanks for taking this on. I am seeing a build failure from this branch when I run Build error logs
I have seen an error similar to this in a different context, so it is possible there is something going on with my setup, but I don't see this error when I build off of I am still in support rotation today, so I can't dig into this now, but I would be happy to take a closer look at this on Monday if you'd like. |
String.capitalize(Locale) call crates a lint error claiming that the default locale usage is a source of bugs. This should not happen when we are already passing a locale to it. In order to get around this issue, a wrapper extension method is introduced so we can suppress the lint warning in a single place, document the reason for it and make it easy to remove it in the future.
Following up on the issue with building gutenberg from source enabled. I merged a fix for that that will be included in the gutenberg-mobile release that should get merged into the If you would like to merge this sooner (i.e., this week), just let me know. I'll just need to do two quick things to make that possible:
|
…rrors Fixing Gradle 5.4.1 lint errors
You can test the changes on this Pull Request by downloading the APK here. |
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.
Building gutenberg from source is working great for me now. Thanks @oguzkocer !
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.
Did a quick review of the code and tested the app randomly as well. LGTM! Thank you, everyone.
Thanks for checking the gutenberg flow @mchowning, and thanks @oguzkocer for doing this change. |
This PR upgrades Gradle version to 5.4.1 and Gradle plugin version to 3.5.1. While doing this upgrade I ended up having to upgrade WellSql wordpress-mobile/wellsql#14 and FluxC wordpress-mobile/WordPress-FluxC-Android#1397. I also had a lot of different build errors related to
Volley
and some other dependencies, so I added/upgraded/excluded related dependencies. I aimed for the smallest set of changes for this upgrade and this was the best I could get. Let me know if any of these changes don't make sense or unnecessary.I am opening this PR as a Draft PR since it depends on the linked FluxC PR and we'll need to update the FluxC version before we can merge this PR.
To test:
Do a clean build and make sure the app builds and works as expected.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.