-
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
Parent PR for updating compileSdk 33 #17947
Conversation
Errors were disabled temporarily to be able to fix all errors in separate PRS. It'll be re-enabled after all errors have been fixed.
These functions were changed with Android 13.
These functions were changed with Android 13.
These functions were changed with Android 13.
📲 You can test these changes on WordPress by downloading wordpress-installable-build-pr17947-3143cc1.apk
|
📲 You can test these changes on Jetpack by downloading jetpack-installable-build-pr17947-3143cc1.apk
|
👋 @irfano ! FYI: I just reviewed the first 8 commits which effectively create this parent PS: I also quickly smoke tested both, the |
Activity's onBackPressed was deprecated on Android 13.
Activity's onBackPressed was deprecated on Android 13.
This just makes the code shorter by using an extension function.
OnBackPressedCallback was temporarily disabled to allow the system to handle the back button event.
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
@irfano 👋 I'm still testing, but wanted to communicate earlier something that looks like a crash, and it's not reproducible with 21.9-rc-2. It happens when I try to select a category for a new story post:
az_recorder_20230316_151551.mp4I reproduced it on Samsung A31 with Android 12 and the latest JP installable from this PR. It's not reproducible with Pixel 7 + Android 13, and also not reproducible with JP 21.9-rc-2 on both devices. I'll come back soon with info if it's rep on Emulator, so there might be some useful logs (I don't know how to retrieve the logs from the device after the app crash). |
I could reproduce the case above with
|
Great job, @pachlava! Good catch! It probably caused crashes in other areas too. |
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/JetpackRemoteInstallActivity.kt # WordPress/src/main/java/org/wordpress/android/ui/JetpackRemoteInstallFragment.kt # WordPress/src/main/java/org/wordpress/android/ui/jpfullplugininstall/install/JetpackFullPluginInstallActivity.kt
Hey @irfano! Thank you for the fix 🙇 The installable from d49b8d7 does not crash 👍 I did not notice anything else, apart from two things that are not caused by this PR:
Thank you! UPD: just found out that the second point is on purpose (p5T066-3Ue-p2#comment-14484) |
These files weren't removed by mistake in the last commit.
I didn't go for a thorough test this time, but JP plugin remote installation worked in the latest installable for me, I checked on both Android 12 and 13. |
Fixes #17790
This PR,
feature/update-compile-sdk-33
),Next required tasks that will be merged into
feature/update-compile-sdk-33
via separate PRs:onBackPressed
warnings: Update deprecated back pressed event #18019Intent
andBundle
warnings: Update deprecated Intent and Bundle functions #18061readParcelable
warnings and addandroid.permission.POST_NOTIFICATIONS
: Update deprecated Parcel functions #18068PackageManager
warnings: Update deprecated PackageManager functions #18077To test:
Regression Notes
As this affects a lot of classes, every screen may be impacted.
What I did to test those areas of impact (or what existing automated tests I relied on)
I smoke-tested notifications and screen navigations.
What automated tests I added (or what prevented me from doing so)
None. This doesn't add any new functionality to the app.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.