Skip to content

Commit c18702f

Browse files
committed
Update to latest AA code changes.
1 parent 4ee1bfd commit c18702f

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/api/sharedpreferences/EditorHelper.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ protected StringPrefEditorField<T> stringField(String key) {
4747
return new StringPrefEditorField<T>(cast(), key);
4848
}
4949

50+
protected StringSetPrefEditorField<T> stringSetField(String key) {
51+
return new StringSetPrefEditorField<T>(cast(), key);
52+
}
53+
5054
protected BooleanPrefEditorField<T> booleanField(String key) {
5155
return new BooleanPrefEditorField<T>(cast(), key);
5256
}

AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/api/sharedpreferences/StringSetPrefEditorField.java renamed to AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/api/sharedpreferences/StringSetPrefEditorField.java

File renamed without changes.

AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/api/sharedpreferences/StringSetPrefField.java renamed to AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/api/sharedpreferences/StringSetPrefField.java

File renamed without changes.

‎AndroidAnnotations/androidannotations/src/test/java/org/androidannotations/generation/SharedPrefsApiDependenciesTest.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
import org.androidannotations.api.sharedpreferences.SharedPreferencesHelper;
3434
import org.androidannotations.api.sharedpreferences.StringPrefEditorField;
3535
import org.androidannotations.api.sharedpreferences.StringPrefField;
36+
import org.androidannotations.api.sharedpreferences.StringSetPrefEditorField;
37+
import org.androidannotations.api.sharedpreferences.StringSetPrefField;
3638
import org.androidannotations.manifest.SomeClass;
3739
import org.androidannotations.utils.AAProcessorTestHelper;
3840
import org.junit.Before;
@@ -54,7 +56,9 @@ public class SharedPrefsApiDependenciesTest extends AAProcessorTestHelper {
5456
SharedPreferencesCompat.class,//
5557
SharedPreferencesHelper.class,//
5658
StringPrefEditorField.class,//
57-
StringPrefField.class //
59+
StringPrefField.class, //
60+
StringSetPrefEditorField.class,//
61+
StringSetPrefField.class //
5862
};
5963

6064
@Before

0 commit comments

Comments
 (0)