All Versions
9
Latest Version
Avg Release Cycle
21 days
Latest Release
3240 days ago

Changelog History

  • v3.0.2 Changes

    August 03, 2015

    โœ‚ Removed

    • โœ‚ Removed compiler check for PreferenceBinder.bind and PreferenceBinder.unbind method calls pending testing and stability improvement to the feature
  • v3.0.1 Changes

    August 02, 2015

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed NullPointerException when using this library in classes with abstract methods.
    • โšก๏ธ Updated bind/unbind statement checker to look in scopes inside methods.
  • v3.0.0 Changes

    July 25, 2015

    ๐Ÿ”„ Changed

    • ๐Ÿ†• New annotation @BindPref replaces both @InjectPreference and @OnPreferenceChanged. The listen flag now defaults to true
    • All instances of "inject", "injector", and "injection" have been replaced with "bind", "binding", and "binding".
    • 0๏ธโƒฃ @PreferenceDefault annotated fields now apply globally (application-wide) rather than just for their containing class.

    โž• Added

    • ๐Ÿ‘€ @BindPref annotation may now be used on certain widget types (fields), to automatically bind the preference value to a widget's method. See README.md for details.
    • Compiler now checks for PreferenceBinder.bind and PreferenceBinder.unbind (when necessary) method calls in classes with @BindPref annotations.
  • v2.2.1 Changes

    March 28, 2015

    ๐Ÿ›  Fixed

    • ๐Ÿ‘€ Set minSdk to 4, to prevent unnecessary permissions being added by default (see this reference for explanation)
  • v2.2.0 Changes

    March 01, 2015

    โž• Added

    • Optional "listen" flag for @InjectPreference annotation as shorthand for also adding @OnPreferenceChange annotation to the same element
    • OnPreferenceChange annotations on methods can now contain multiple keys (if the method has zero parameters)

    ๐Ÿ”„ Changed

    • โšก๏ธ Method calls now always occur after field updates for any given preference key (for both initialization and updates)
    • Annotated methods can now contain zero parameters, to disregard the preference value.
  • v2.1.1 Changes

    February 25, 2015

    โž• Added

    • PreferenceInjector.bind(Fragment target) method. The Context can be inferred from the Fragment.
    • PreferenceInjector.bind(Service target) method. The Context can be inferred from the Service.
  • v2.1.0 Changes

    February 19, 2015

    โž• Added

    • 0๏ธโƒฃ @PreferenceDefault annotation, to specify injection values when none exists in the SharedPreferences file

    ๐Ÿ›  Fixed

    • String and Set<String> are now properly recognized as valid types
  • v2.0.0 Changes

    February 19, 2015

    ๐Ÿ”„ Changed

    • โœ‚ Removed initialize flag from @OnPreferenceChange annotation, @InjectPreference can now be applied to methods instead
    • โœ‚ Removed autoUpdate flag from @InjectPreference annotation, @OnPreferenceChange can now be applied to fields instead
    • PreferenceInjector.unbind no longer needs to be called if no @OnPreferenceChange annotations exist
  • v1.0 Changes

    February 18, 2015

    โž• Added

    • @InjectPreference and code generation for it
    • @OnPreferenceChange and code generation for it