Update to Muzei API 3.4, fixing issues on Android 10+ #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade all the way up to the new Muzei API 3.4. This has a number of implications that affected quite a bit of code:
compileSdkVersion
of 30. This required updating to Android Gradle Plugin 4.0.1 as well as AndroidX dependencies of WorkManager and Multidex.BingImageOfTheDayArtSource
(every Muzei user has upgraded to Muzei 3.0+ by this point).COMMAND_ID_OPEN
has been removed entirely - that behavior is already handled by Muzei when you tap on the title on Muzei. It was Muzei API 3.2 that fixed that on Android 10+ devices.getCommandActions()
API fixes the 'Share current Bing image' action on Android 10+ devices. By keeping the old APIs as well, we maintain backward compatibility with Muzei 3.3 users (although they'll still need to upgrade to Muzei 3.4 to get a working action). It now shows as a Share icon on Muzei 3.4.BingImageContentProvider
to act as the stand in forFileProvider
that directly talks toBingImageOfTheDayArtProvider
.Fixes #9