All Versions
9
Latest Version
Avg Release Cycle
21 days
Latest Release
3382 days ago
Changelog History
Changelog History
-
v3.0.2 Changes
August 03, 2015โ Removed
- โ Removed compiler check for
PreferenceBinder.bind
andPreferenceBinder.unbind
method calls pending testing and stability improvement to the feature
- โ Removed compiler check for
-
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
. Thelisten
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
andPreferenceBinder.unbind
(when necessary) method calls in classes with@BindPref
annotations.
- ๐ New annotation
-
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.
- Optional "listen" flag for
-
v2.1.1 Changes
February 25, 2015โ Added
PreferenceInjector.bind(Fragment target)
method. TheContext
can be inferred from theFragment
.PreferenceInjector.bind(Service target)
method. TheContext
can be inferred from theService
.
-
v2.1.0 Changes
February 19, 2015โ Added
- 0๏ธโฃ
@PreferenceDefault
annotation, to specify injection values when none exists in theSharedPreferences
file
๐ Fixed
String
andSet<String>
are now properly recognized as valid types
- 0๏ธโฃ
-
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
- โ Removed
-
v1.0 Changes
February 18, 2015โ Added
- @InjectPreference and code generation for it
- @OnPreferenceChange and code generation for it