This repository has been archived by the owner on Mar 16, 2021. It is now read-only.
1.0.0 RC1
Pre-release
Pre-release
Get it
compile 'net.grandcentrix.tray:tray:1.0.0-rc1'
Changelog
- Android M Auto Backup feature support (see the Documentation)
- split up database for user and device specific data (device specific data can now be excluded from the auto backup)
TrayPreferences
has now an optional 3. constructor parameterTrayStorage.Type
,USER
orDEVICE
indicating the internal database (required for Android M Auto Backup). Default isUSER
- New methods and changes
PreferenceAccessor#wipe()
clears the preference data and it's internal data (version)TrayPreferences#annexModule(String name)
imports a module by name and wipes it afterwards. This allows renaming of preferences without losing dataAbstractTrayPreference#annex(ModularizedStorage<TrayItem>)
allows a storage to import another storage, wipes the imported afterwardsPreference
#onCreate(...)
and#onUpgrade(...)
aren't abstract anymore because they don't require an implementation
- Deprecations (will be removed soon)
TrayAppPreferences
is now deprecated. UseAppPreferences
instead (renaming)TrayModulePreferences
is now deprecated. UseTrayPreferences
instead to extend from for your own Preferences
- Internal structure
- new package structure. merged packages
accessor
,migration
andstorage
intocore
- package
provider
contains aTrayStorage
implementation with aContentProvider
. Is easy exchangeable with anotherTrayStorage
implementation ModularizedTrayPreference
is now calledAbstractTrayPreference
ModularizedStorage
was renamed toTrayStorage
- new package structure. merged packages