Releases: muzei/muzei
Muzei API 3.1.0
No changes over Muzei API 3.1 Alpha 1. It is compatible with Muzei 3.0.2 and higher.
Include the Muzei API in your app by adding the dependency to your build.gradle
:
implementation "com.google.android.apps.muzei:muzei-api:3.1.0"
Muzei API 3.1.0 Alpha 1
Muzei API 3.1.0 Alpha 1 includes a number of functional and API changes. It is compatible with Muzei 3.0.2 and higher.
- #587 allows a
MuzeiArtProvider
to implementisArtworkValid(Artwork)
to confirm that anArtwork
that being opened is still valid, even if the image is cached. - #588 ensures that
onInvalidArtwork(Artwork)
is called in cases where you return false fromisArtworkValid()
- #589 treats all non-IOExceptions (rather than just any
SecurityException
) coming fromopenFile
as permanent errors resulting in a callback toonInvalidArtwork
. - #590 - static methods in
ProviderContract.Artwork
have been deprecated, with alternatives now encapsulated in the newProviderClient
interface- Methods that took a
Class
can now be accessed by usingProviderContract.getProviderClient(Context, Class)
- Methods that took a
String authority
can now be accessed by usingProviderContract.getProviderClient(Context, String)
MuzeiArtProvider
itself now implementsProviderClient
, ensuring that the same APIs are also available directly withinMuzeiArtProvider
- The helper method
ProviderContract.Artwork.getContentUri(String authority)
is now available viaProviderContract.getContentUri(String)
.
- Methods that took a
- #591 provides an
addArtwork
API onProviderClient
that takes multiple Artwork, allowing batch inserts - #592 provides a
setArtwork
API onProviderClient
that takes multiple Artwork, automatically deleting any Artwork not in the given list
See milestone for full change details.
Include the Muzei API in your app by adding the dependency to your build.gradle
:
implementation "com.google.android.apps.muzei:muzei-api:3.1.0-alpha01"
Muzei API 3.0
No changes over Muzei API 3.0 RC 1.
Include the Muzei API in your app by adding the dependency to your build.gradle
:
implementation "com.google.android.apps.muzei:muzei-api:3.0.0"
Muzei API 3.0 RC 1
No changes over Muzei API 3.0 Beta 3.
Muzei API 3.0 Beta 3
Muzei API 3.0 Beta 2
Beta 2 makes a number of important changes:
- #578 prevents SQL injection issues on
MuzeiArtProvider.query
- #576 ensures that the default implementation of
MuzeiArtProvider.openFile
does not crash when usingcontent://
URIs for yourpersistentUri
and the sourceContentProvider
throws arbitrary errors.
See milestone for full change details.
Muzei API 3.0 Beta 1
No significant changes over 3.0.0-alpha04.
Muzei API 3.0 Alpha 4
Alpha 4 makes a number of important changes:
- Breaking Change: The
ProviderContract.Artwork
methods that took aComponentName
have been removed in favor for ones that take anauthority
String - theauthority
attached to yourMuzeiArtProvider
is now its unique key - As a result of the
authority
change, yourreplacement
metadata value used to swap from your oldMuzeiArtSource
to yourMuzeiArtProvider
should now be yourauthority
, although putting in the class name of yourMuzeiArtProvider
is still supported MuzeiArtProvider
now provides an optimized implementation ofapplyBatch
andbulkInsert
- The
ProviderContract.Artwork.getContentUri
method no longer returns content URIs for disabledMuzeiArtProvider
s - Fixed a bug when inserting artwork with an existing token
See milestone for full change details.
Muzei API 3.0 Alpha 3
api3.0.0-alpha3 Update version code for Muzei 3.0 Alpha 5 & API 3.0.0-alpha03
Muzei API 3.0 Alpha 2
api3.0.0-alpha2 Upgrade to WorkManager 1.0.0-alpha08