Skip to content

Releases: yatatsu/AutoBundle

5.0.2

03 Feb 20:40
Compare
Choose a tag to compare
  • AndroidX support. #31
    • If you want to use with support-v4 library, please use 4.x version.

4.1.1

31 Jan 21:46
Compare
Choose a tag to compare
  • Fix for newer JavaPoet version 1.11.0. #29

4.1.0

19 Jan 16:49
Compare
Choose a tag to compare
  • library module support (#27)

For this feature, following methods in AutoBundleBindingDispatcher turn to return boolean as binding result.

  • AutoBundleBindingDispatcher#bind(Object, Bundle)
  • AutoBundleBindingDispatcher#bind(Object)
  • AutoBundleBindingDispatcher#pack(Object, Bundle)

4.0.0

09 Jan 15:19
Compare
Choose a tag to compare

See detail in each PR or issue.

  • Support android.support.annotations. #23
    • e.g. @IntDef, @StringDef.
  • Support @Nullable and @NonNull annotations. #25
    • Add annotations for generated codes.
    • New dependency with com.android.support:support-annotations library.
  • Any class support. d0567e5
    • even not subtype of Activity, Service, Receiver or Fragment
    • use XXXAutoBundle.Builder#bundle() that returns Bundle.
  • Remove intent-binding method from dispatcher. 73f7d0c
  • Use primitive type if field type is boxed. 4268798
    • e.g. Integer treated as int.
  • Rename builder class name. a88aaa5
changes Before After
builder class IntentBuilder or FragmentBuilder Builder
method for builder createIntentBuilder() or createFragmentBuilder() builder()

3.1.1

28 Aug 12:13
Compare
Choose a tag to compare
  • Fix syntax error when using custom setter method. #16

3.1.0

02 Aug 15:48
Compare
Choose a tag to compare
  • Replace name comparison to instanceof operator in bind method. #12

3.0.0

11 Jun 17:14
Compare
Choose a tag to compare
  • 🎉 Revive AutoBundle class without reflection. #9 cbe1759

Before

FooActivityAutoBundle.bind(this, getIntent());

After

// no need to build for resolving `AutoBundle` class
AutoBundle.bind(this, getIntent());

2.0.0

05 Mar 21:12
Compare
Choose a tag to compare

This is a major update. There are some breaking changes.

  • Support setter/getter. You can specify method with @AutoBundleGetter / @AutoBundleSetter. 0c7081f
  • Remove AutoBundle class for avoiding reflection. Use {YourTargetClass}AutoBundle instead. 5ae9cf3

To follow these changes, please check README and example.

1.0.2

05 Mar 19:36
Compare
Choose a tag to compare

Fix code generation for builder class. e2d8691

1.0.1

02 Feb 07:57
Compare
Choose a tag to compare

Fix retention policy of @AutoBundleField annotation. 4c56e9f .