tray v1.0.0 Release Notes

Release Date: 2015-09-21 // over 8 years ago
  • 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 parameter TrayStorage.Type, USER or DEVICE indicating the internal database (required for Android M Auto Backup). Default is USER
    • ๐Ÿ†• 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 data
      • AbstractTrayPreference#annex(ModularizedStorage<TrayItem>) allows a storage to import another storage, wipes the imported afterwards
      • Preference #onCreate(...) and #onUpgrade(...) aren't abstract anymore because they don't require an implementation
    • ๐Ÿ—„ Deprecations (will be removed soon)
      • TrayAppPreferences is now deprecated. Use AppPreferences instead (renaming)
      • TrayModulePreferences is now deprecated. Use TrayPreferences instead to extend from for your own Preferences
    • Internal structure
      • new package structure. merged packages accessor, migration and storage into core
      • package provider contains a TrayStorage implementation with a ContentProvider. Is easy exchangeable with another TrayStorage implementation
      • ModularizedTrayPreference is now called AbstractTrayPreference
      • ModularizedStorage was renamed to TrayStorage

Previous changes from v0.9.2

    • getContext() is working in TrayModulePreference#onCreate
    • ๐Ÿ’… applied new code style