Update deprecated PackageManager functions#18077
Update deprecated PackageManager functions#18077irfano merged 2 commits intofeature/update-compile-sdk-33from
Conversation
These functions were deprecated on Android 13.
Generated by 🚫 dangerJS |
|
|||||||||||
| 💡 Scan this QR code with your Android phone to download and install the APK directly on it. | ||
| App | WordPress | |
| Build Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 6c1911c | |
|
|||||||||||
| 💡 Scan this QR code with your Android phone to download and install the APK directly on it. | ||
| App | Jetpack | |
| Build Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 6c1911c | |
ParaskP7
left a comment
There was a problem hiding this comment.
👋 @irfano !
I have reviewed and tested this PR as per the instructions, everything works as expected, good job! 🌟 🌟 🌟
Suggestion (💡): Although the changes you made is VERY straightforward, when the parent PR is to be tested, I would suggest testing these ActivityInfo + PackageInfo changes too, which seems to be mainly touching the below app classes/functionalities:
DeepLinkingIntentReceiverActivity.ktCc @zwarmLocalMigrationContentProvider.ktCc @mkevinsJetpackAppMigrationFlowUtils.ktCc @ovitrifAppStatus.ktCc @RenanLukas
I've cc'ed a bunch of people here, that I've seen have been working on those lately, just to be on the safe side in case we are missing something obvious.
I haven't tested all cases on possible impacted features. However, I have tested the results of |
|
Great, thanks @irfano and definitely, feel free to merge this whenever you're ready! 🚀 |


This PR is part of a parent PR to update compileSdk to 33.
PackageManager#getActivityInfo(ComponentName, int)andPackageManager#getPackageInfo(String, int)were deprecated on Android 13. Extension functions have been added toCopatExtensionsto replace deprecated functions.To test:
Being able to build and basic smoke test should be enough.
Regression Notes
Potential unintended areas of impact
N/A
What I did to test those areas of impact (or what existing automated tests I relied on)
N/A
What automated tests I added (or what prevented me from doing so)
This doesn't introduce any change, so no tests added.
PR submission checklist:
RELEASE-NOTES.txtif necessary.