-
Notifications
You must be signed in to change notification settings - Fork 116
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
Update minSdkVersion
(from 21
to 24
)
#1017
Conversation
This will now make sure that from now on all modules will be pointing to the same 'min/compile/targetSdkVersion' versions, making such upgrades much more straightforward as that will apply to all modules. This will alleviate the risk of forgetting to update a specific module, or set of modules due to an oversight.
A quick analysis showed that updating to 'minSdkVersion = 24' added two 'ObsoleteSdkInt' new warnings on the 'aztec' library module. All these newly created warnings will be dealt with in subsequent commits. Also, any existing such warnings will be resolved too.
Those test, and more so, their specific 'expected' outcome are being documented so that when they get fixed, it becomes evident what was changed and why. This is done in order to make it easier to reason about what went wrong and whether main source code needs to be updated as well, that is, since there was no other explicit change but the 'minSdkVersion' to '24' update that caused those failures.
Some of the failures were caused due to the '<em>' and '<strong>' needing to be the other way around. Other failures were caused due to the '<i>' and '<s>' needing to be the other way around. While, some more failure were caused due to the '<a href="xyz">', '<b>' and/or '<s>' needing to be the other way around. This test failures are most probably related to Robolectric, and the fact that the '@config(sdk = [23])' had to be removed, thus implicitly updated, and all that, due to the 'minSdkVersion' to '24' change. However, there is also a slight possibility that this is a breaking change due to the 'minSdkVersion' to '24' update. Thus, this change need to be verified and tested.
Warning Message: "Unnecessary; SDK_INT is always >= 24" These 'VERSION.SDK_INT >= Build.VERSION_CODES.M/N' checks are no longer necessary as the 'minSdkVersion' is now '24'. As such, the if condition has been simplified.
Warning Message: "Unnecessary; SDK_INT is always >= 24" These 'tools:targetApi="jelly_bean_mr1"' and 'tools:targetApi="lollipop"' attributes are no longer necessary as the 'minSdkVersion' is now '24'.
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.
@ParaskP7 I finally managed to spare some time to check this today 🙂. I tested the Aztec version using the value 1017-29e499974e6e2c450112ce3dd74c86b033e78cd6
in Gutenberg and the build failed because the minSdkVersion
in Gutenberg is 21
(reference). Therefore, we'd also have to bump the minSdkVersion
there to 24
in order to include these changes.
Apart from that, I did a quick check locally by manually changing the minSdkVersion
to 24
and didn't find any issue when testing. However, I'd like to devote further time to this before confirming that everything is ok. As we discussed internally, I won't have the bandwidth to take a look until Nov 25th, 2022. I'll let you know when I have the results, thanks 🙇 !
NOTE: Changes from this PR and #1016 could be merged if it's blocking other projects, Aztec is versioned in Gutenberg so this won't impact until we bump the Aztec version there.
👋 @fluiddot !
😃 You are the best, thank you for finding this spare time, now enjoy your AFK without thinking about it, we can back to that after your return! 🙇
Yea, that's absolutely expected. 👍
Thank for for bumping Gutenberg's
This is totally fine, please enjoy your AFK. After you're back we can pick it up were we left it and continue from there, this is not urgent work. 💯
Thank you for saying that, but as these changes are not urgent, nor blocking other projects, at least as far as I am aware, I suggest we do it right and once, after everything is tested, as supposed to, and only then merge these changes to |
…id into build/update-min-sdk-version-to-24
…id into build/update-min-sdk-version-to-24 � Conflicts: � aztec/src/test/kotlin/org/wordpress/aztec/PreformatTest.kt
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.
LGTM 🎊 !
I checked the changes in Gutenberg both in the demo app and using WordPress-Android and I haven't found any issues.
@ParaskP7 I'd like to note that I couldn't check what's coming to Aztec in Gutenberg. In relation to this, I'm wondering if we should create a GitHub release for releasing a new Aztec version with all the changes, wdyt?
Good point, I'll prepare a PR next week to bump |
👋 @fluiddot ! Thank you so much for the review and testing, and on both, Aztec plus Gutenberg, you are awesome! 🙇 ❤️ 🥇
Yes, I think this is a very good idea Carlos, as soon as we merge this PR, I'll go ahead and create a new Aztec release. 💯
Perfect, thank you Carlos! 🙇 Afterwards, and when that new version of Gutenberg get released, which would contain the
Perfecto, let me then merge this PR now and create a new Aztec version for you, I'll let you know when that is done! 🙏 |
Yes, usually when we upgrade the Aztec version in Gutenberg we also do it in WordPress-Android, so, all Aztec references point to the same version 👍 .
Great, thank you @ParaskP7 ! |
@ParaskP7 I'm afraid I won't have the bandwidth to update Aztec and the |
👋 @fluiddot and thanks for the heads-up! ❤️ Please don't feel stressed about this update of FYI: The only blocker I am envisioning is on your side, in terms that if Gutenberg is not updated soon, next time you would want to use a newer version of |
Great, thank you very much @ParaskP7 for elaborating on the potential blockers regarding not updating Gutenberg 🙇. I wouldn't like to postpone it too much, but I'm glad to know that it's not blocking other work.
Good point, we'll note that. |
To close the loop: Here are the PRs in Gutenberg to update
Once they are approved and merged, I'll create an alpha version of Gutenberg Mobile and update the Aztec version in WordPress-Android. |
Great, thanks for the update and for working on that @fluiddot ! 🚀 ❤️ 🙇 |
This PR upgrades FluxC to
minSdkVersion
to24
. This has been unblocked because:WPAndroid
was already onminSdkVersion = 24
, for some time now (see here).DOAndroid
has been recently upgraded tominSdkVersion = 24
as well (here and commit).As part of this
minSdkVersion = 24
upgrade the below changes were also applied in order to fix any additional warnings that this change brought-up:Warnings Resolution List:
Test List:
Warning (⚠️ ): Please be very mindful of this fix test failures change and verify that this is not a breaking change of some sorts. See commit description for more info.
Test
app
and see if it is working as expected.Review
@fluiddot as per the discussion on updating and testing gutenberg as well, this might be a good opportunity for you see what's coming to
Aztec
. As such, it might be good if we merge this change along with merging the equivalentminSdkVersion = 24
upgrade on gutenberg, that is, when that gets ready by you. PS: there is no time pressure here.PS: Also, and based on this comment of yours, it might be better for your to perform a quick check in gutenberg using this PR instead, and not #1016 in order to save yourself some time, as this one includes that in it as well.
Merge instructions
trunk
.trunk
.trunk
.[PR] Not Ready For Merge]
label.trunk
.Make sure strings will be translated:
strings.xml
as a part of the integration PR.