-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Migrate app update checker to AndroidX Work #7975
Conversation
I assume this is a typo and you meant AndroidX Work
I think that's not a big issue, since AndroidX Work was going to be added anyway by #2335 |
Damn, and I checked it over like three times too LOL, fixed
👍 |
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.
Thank you! Note: this should be tested well, otherwise we might encounter the same problems that forced us to do 2 hotfix releases in a row a while ago ;-)
eb44a86
to
2638d14
Compare
2638d14
to
b271473
Compare
b271473
to
b8b97fa
Compare
Updated the attached testing APK. |
SonarCloud Quality Gate failed. |
Any updates on this? |
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 tested on API 19 and API 31 three different situations (last update check expired -> notification, last update check not expired -> nothing, manual update check -> notification) and I can confirm it works. Thank you and sorry for the delay :-)
What is it?
Description of the changes in your PR
IntentService is deprecated, so I migrated to what was supposed to be its replacement (JobIntentService, which is also now deprecated), and then I migrated to AndroidX Work (which is now the recommended replacement).
Unfortunately this means yet another library, but it is what it is. Overall, this change only adds around 101 KB to the release build.
I tested these changes on API 29. I checked the manual update button in settings and it works.
Here's more info:
Here's another PR in which I made this change: AntennaPod/AntennaPod#5742
Fixes the following issue(s)
APK testing
app-release updateCheckerWorker.zip
This is a specially generated APK where the
isReleaseApk()
method always returns true (thus guaranteeing that the update notification will always be displayed). Also the applicationId is slightly changed to allow side-by-side installation. This is only for testing purposes.Due diligence