Skip to content

Latest commit

 

History

History
296 lines (207 loc) · 22.2 KB

CHANGELOG.md

File metadata and controls

296 lines (207 loc) · 22.2 KB

3.6.0 (June 18, 2019)

  • New Preloader system with glide extensions airbnb#766
  • Fixed model click listener crashing on nested model airbnb#767

3.5.1 (May 21, 2019)

  • Bumped Kotlin to 1.3.31

3.5.0 (May 8, 2019)

  • New Converted EpoxyRecyclerView to Kotlin (you may need to update your usage for this). Also added built in support for EpoxyRecyclerView#withModels for easy inline model building with Kotlin.
  • Fixed Crashes in visibility tracking

3.4.2 (April 18, 2019)

  • Fixed Kotlin default param handling had issues with overloaded functions

3.4.1 (April 16, 2019)

  • New Support kotlin default parameters in @ModelView classes (airbnb#722)

3.4.0 (April 10, 2019)

  • New Generate OnModelCheckedChangeListener override for props of type CompoundButton.OnCheckedChangeListener (airbnb#725)
  • New Extract ID generation methods to new public IdUtils class (airbnb#724)
  • Changed Reset controller state on failed model build (airbnb#720)
  • Changed Disabled the auto-detach behavior on Carousels by default (airbnb#688)

3.3.0 (Feb 5, 2019)

  • Fixed Two issues related to the recent EpoxyModelGroup changes (airbnb#676)

3.2.0 (Jan 21, 2019)

  • New Enable recycling of views within EpoxyModelGroup (airbnb#657)
  • New Add support to tracking visibility in nested RecyclerViews (airbnb#633)
  • New Add method to clear cache in paging controller (airbnb#586)
  • Fix Crashes from synchronization in PagedListEpoxyController (airbnb#656)
  • Fix Get onSwipeProgressChanged callbacks on return to original item position (airbnb#654)

3.1.0 (Dec 4, 2018)

  • Fix Memory leak in debug mode is removed (airbnb#613)
  • Fix For visibility callbacks, wrong visibility when the view becomes not visible (airbnb#619)

3.0.0 (Nov 13, 2018)

  • Breaking Migrated to androidx packages (Big thanks to jeffreydelooff!)

  • Breaking The Carousel.Padding class changed the ordering of its parameters to match Android's ordering of "left, top, right, bottom". (airbnb#536 thanks to martinbonnin)

    This change won't break compilation, so you must manually change your parameter ordering, otherwise you will get unexpected padding results.

2.19.0 (Oct 18, 2018)

This release adds built in support for monitoring visibility of views in the RecyclerView. (airbnb#560)

Usage instructions and details are in the wiki - https://github.com/airbnb/epoxy/wiki/Visibility-Events

Huge thanks to Emmanuel Boudrant for contributing this!

2.18.0 (Sep 26, 2018)

  • New A new PagedListEpoxyController to improve integration with the Android Paging architecture component (#533 Thanks to Yigit!) With this change the old PagingEpoxyController has been deprecated, and the wiki is updated.

  • New Add databinding option to not auto apply DoNotHash (#539)

  • Fixed Fix AsyncEpoxyController constructor to correctly use boolean setting (#537)

  • Fixed app_name is removed from module manifests (#543 Thanks @kettsun0123!)

2.17.0 (Sep 6, 2018)

  • New Add support for setting the Padding via resource or directly in dp (airbnb#528 Thanks to pwillmann!)
  • Fixed Strip kotlin metadata annotation from generated classes (airbnb#523)
  • Fixed Reflect the annotations declared in constructor params (airbnb#519 Thanks to Shaishav Gandhi!)

2.16.4 (Aug 29, 2018)

  • New EpoxyAsyncUtil and AsyncEpoxyController make it easier to use Epoxy's async behavior out of the box
  • New Epoxy's background diffing posts messages back to the main thread asynchronously so they are not blocked by waiting for vsync

2.16.3 (Aug 24, 2018)

  • New Add AsyncEpoxyController for easy access to async support. Change background diffing to post asynchronously to the main thread (airbnb#509)

2.16.2 (Aug 23, 2018)

  • Fix Kotlin lambdas can be used in model constructors (airbnb#501)
  • New Added function to check whether a model build is pending (airbnb#506)

2.16.1 (Aug 15, 2018)

  • Fix Update EpoxyController async model building so threading works with tests (airbnb#504)

2.16.0 (Aug 7, 2018)

  • New EpoxyController now supports asynchronous model building and diffing by allowing you to provide a custom Handler to run these tasks. See the wiki for more details.

  • New The EpoxyController#addModelBuildListener method was added to support listening for when model changes are dispatched to the recyclerview.

2.15.0 (July 29, 2018)

  • New Added kotlin sample code for building models. Updated wiki with info (https://github.com/airbnb/epoxy/wiki/Kotlin-Model-Examples)

  • Fix Generated kotlin extension functions now work with Models with type variables (airbnb#478)

  • Fix Backup is not enabled in manifest now (airbnb#481)

  • Fix Click listener setter on generated model has correct nullability annotation (airbnb#458)

  • Fix Avoid kotlin crash using toString on lambdas (airbnb#482)

  • Fix If EpoxyModelGroup has annotations the generated class now calls super methods correctly. (airbnb#483)

2.14.0 (June 27, 2018)

  • New Experimental support for creating Epoxy models from arbitrary data formats (#450)

2.13.0 (June 19, 2018)

  • Fix Reduce memory usage in model groups and differ (#433)
  • Fix Support for wildcards in private epoxy attributes (#451)
  • Fix Generated Kotlin Extensions Don't Adhere to Constructor Nullability (#449)
  • Fix Infinite loop in annotation processor (#447)

2.12.0 (April 18, 2018)

  • Breaking Several updates to the Paging Library integration were made (airbnb#421)

  • New The Paris library is now officially supported to allow dynamically styling RecyclerView items though Epoxy models. See the wiki for more info.

2.11.0 (April 7, 2018)

  • Fix Make databinding work with Android Studio 3.1 (airbnb#418)
  • Make EpoxyController#isBuildingModels public (airbnb#406

2.10.0 (February 25, 2018)

  • Improved Allow the Model_ class suffix for models generated via @ModelView to be customized (airbnb#402 Big thanks to geralt-encore!)

2.9.0 (January 29, 2018)

  • Improved Global defaults for EpoxyController settings. Set duplicate filtering and exception handlers for all your controllers. (airbnb#394)

  • Improved Add @NonNull annotations in EpoxyModel for better Kotlin interop

  • Fixed Model click listeners now rebind correctly on partial model diffs (airbnb#393)

  • Fixed Update Android Paging library to fix placeholder support (Thanks @wkranich! airbnb#360)

  • Fixed Improve error message for inaccessible private fields (airbnb#388)

2.8.0 (December 22, 2017)

  • New Use @ModelProp directly on fields to avoid creating a setter (airbnb#343)

  • New Set EpoxyRecyclerView item spacing via xml attribute (airbnb#364)

  • New More flexibility over setting Carousel padding values (airbnb#369)

  • New Allow custom EpoxyModelGroup root view (airbnb#370)

  • Fixed Public visibility settings of the Carousel snap helper settings (airbnb#356)

  • Fixed Add more nullability annotations to better support Kotlin

  • Fixed Saving view state now works better (airbnb#367)

2.7.3 (November 21, 2017)

  • Fixed When a model changed and a partial update was bound to an existing view the wrong values could be set for prop groups (airbnb#347)

2.7.2 (October 28, 2017)

  • Fixed Using EpoxyDataBindingPattern could result in the wrong package being used for the BR class in generated models.

2.7.1 (October 24, 2017)

Several fixes:

2.7.0 (October 17, 2017)

  • New If a @ModelView generated model has a custom base class the generated model will now inherit constructors from the base class (airbnb#315)

  • New Use the EpoxyDataBindingPattern annotation to specify a naming pattern for databinding layouts. This removes the need to declare every databinding layout explicitly (Wiki - airbnb#319)

  • New If a view with @ModelView implements an interface then the generated model will implement a similar interface, enabling polymorphism with models. Wiki

  • Improvement PagingEpoxyController now has getters to access the underlying data lists (Thanks to @pcqpcq - airbnb#317)

  • Improvement EpoxyModelGroup now supports partial rebinds (airbnb#316)

2.6.0 (October 10, 2017)

Kotlin

  • Improvement Disable kotlin extension function generation with the annotation processor flag disableEpoxyKotlinExtensionGeneration (airbnb#309)
  • Fix If a model has a non empty constructor the generated extension function will now use it.

2.5.1 (October 2, 2017)

  • Fixed The wrong import was being generated for models using a view holder in 2.5.0 (airbnb#294)
  • Fixed Fix generated code failing to compile if a subclass of View.OnClickListener is used as an attribute (airbnb#296)

2.5.0 (September 14, 2017)

  • New Feature Epoxy now generates a Kotlin DSL to use when building models in your EpoxyController! See the wiki for details
  • New Feature You can use the autoLayout parameter in @ModelView instead of needing to create a layout resource for defaultLayout. Epoxy will then create your view programmatically (airbnb#282).

Breaking

  • The onSwipeProgressChanged callback in EpoxyTouchHelper had a Canvas parameter added (airbnb#280). You will need to update any of your usages to add this. Sorry for the inconvenience; this will hopefully help you add better swipe animations.

2.4.0 (September 4, 2017)

  • Improvement If you are setting options on a @ModelProp and have no other annotation parameters you can now omit the explicit options = param name (airbnb#268)

  • Improvement If you are using @TextProp you can now specify a default string via a string resource (airbnb#269)

  • Fixed EpoxyModelGroup was not binding model click listeners correctly (airbnb#267)

  • Fixed A model created with @ModelView could fail to compile if it had nullable prop overloads (airbnb#274)

Potentially Breaking Fix

A model created with @ModelView with a click listener had the wrong setter name for the model click listener overload (airbnb#275)

If you were setting this you will need to update the setter name. If you were setting the click listener to null you may now have to cast it.

2.3.0 (August 16, 2017)

  • New An AfterPropsSet annotation for use in @ModelView classes. This allows initialization work to be done after all properties are bound from the model. (airbnb#242)
  • New Annotations TextProp and CallbackProp as convenient replacements for ModelProp. (airbnb#260)
  • New Easy support for dragging and swiping via the EpoxyTouchHelper class. https://github.com/airbnb/epoxy/wiki/Touch-Support
  • Change Added the method getRootView to the view holder class in EpoxyModelGroup and made the bind methods on EpoxyModelGroup non final. This allows access to the root view of the group.
  • Change Generated models will now inherit class annotations from the base class (airbnb#255 Thanks geralt-encore!)

2.2.0 (June 19, 2017)

  • Main Feature Models can now be completely generated from a custom view via annotations on the view. This should completely remove the overhead of creating a model manually in many cases! For more info, see the wiki

  • New Lowered the minimum SDK from 16 to 14.

  • New Models that have a View.OnLongClickListener as an EpoxyAttribute will now have an overloaded setter on the generated model that allows you to set a long click listener that will return the model, view, and adapter position. This is very similar to the View.OnClickListener support added in 2.0.0, but for long click listeners. Upgrade Note If you were setting a long click listener value to null anywhere you will need to now cast that to View.OnLongClickListener because of the new overloaded method.

  • New id overload on EpoxyModel to define a model id with multiple strings

  • New Option in EpoxyAttribute to not include the attribute in the generated toString method (Thanks to @geralt-encore!)

  • New @AutoModel models are now inherited from usages in super classes (Thanks to @geralt-encore!)

  • Fixed Generated getters could recursively call themselves (Thanks to @geralt-encore!)

2.1.0 (May 9, 2017)

  • New: Support for Android Data Binding! Epoxy will now generate an EpoxyModel directly from a Data Binding xml layout, and handle all data binding details automatically. Thanks to @geralt-encore for helping with this! See more details in the wiki.
  • New: Support for Litho. Epoxy will now generate an EpoxyModel for Litho Layout Specs. See more details in the wiki.
  • New: Support for implicitly adding AutoModels to an EpoxyController, this let's you drop the extra .addTo(this) line. More details and instructions here

2.0.0 (March 25, 2017)

  • New: The EpoxyController class helps you manage even models better. This should be used instead of the original EpoxyAdapter in most places. Read more about EpoxyController in the wiki.
  • Change: In the new EpoxyController, the diffing algorithm uses both equals and hashCode on each model to check for changes. This is a change from the EpoxyAdapter where only hashCode was used. Generated models have both hashCode and equals implemented properly already, but if you have any custom hashCode implementations in your models make sure you have equals implemented as well.
  • New: Models that have a View.OnClickListener as an EpoxyAttribute will now have an overloaded setter on the generated model that allows you to set a click listener that will return the model, view, and adapter position. Upgrade Note If you were setting a click listener value to null anywhere you will need to now cast that to View.OnClickListener because of the new overloaded method.
  • New: Attach an onBind/onUnbind listener directly to a model instead of overriding the onModelBound method. Generated models will have methods created to set this listener and handle the callback for you.
  • New: Support for creating models in Kotlin (Thanks to @geralt-encore! airbnb#144)
  • New: EpoxyModelWithView supports creating a View programmatically instead of inflating from XML.
  • New: EpoxyModelGroup supports grouping models together in arbitrary formations.
  • New: Instead of setting attribute options like @EpoxyAttribute(hash = false) you should now do @EpoxyAttribute(DoNotHash). You can also set other options like that.
  • New: Annotation processor options can now be set via gradle instead of with PackageEpoxyConfig
  • New: In an EpoxyController, if a model with the same id changes state Epoxy will include its previous state as a payload in the change notification. The new model will have its bind(view, previouslyBoundModel) method called so it can compare what changed since the previous model, and so it can update the view with only the data that changed.

1.7.5 (Feb 21, 2017)

  • New: Models inherit layouts specified in superclass @EpoxyModelClass annotations #119
  • New: Support module configuration options #124

1.6.2 (Feb 8, 2017)

  • New: Support layout resource annotations in library projects (airbnb#116)

1.6.1 (Feb 6, 2017)

  • Allow the default layout resource to be specified in the EpoxyModelClass class annotation (#109) (#111)
  • Allow the createNewHolder method to be omitted and generated automatically (#105)
  • Generate a subclass for abstract model classes if the EpoxyModelClass annotation is present (#105)
  • Allow strings as model ids (#107)
  • Add instructions to readme for avoiding memory leaks (#106)
  • Add model callbacks for view attached/detached from window, and onFailedToRecycleView (#104)
  • Improve documentation on model unbind behavior (#103)
  • Fix generated methods from super classes that have var args (#100)
  • Remove apt dependency (#95)
  • Add removeAllModels method to EpoxyAdapter (#94)
  • Use actual param names when generating methods from super classes (#85)

1.5.0 (11/21/2016)

  • Fixes models being used in separate modules
  • Generates a reset() method on each model to reset annotated fields to their defaults.
  • Changes @EpoxyAttribute(hash = false) to still differentiate between null and non null values in the hashcode implementation
  • Adds a notifyModelChanged method to EpoxyAdapter that allows a payload to be specified
  • Generates a toString() method on all generated model classes that includes the values of all annotated fields.

1.4.0 (10/13/2016)

  • Optimizations to the diffing algorithm
  • Setters on generated classes are not created if an @EpoxyAttribute field is marked as final
  • Adds @EpoxyModelClass annotation to force a model to have a generated class, even if it doesn't have any @EpoxyAttribute fields
  • Fix to not generate methods for package private @EpoxyAttribute fields that are in a different package from the generated class
  • Have generated classes duplicate any super methods that have the model as the return type to help with chaining

1.3.0 (09/15/2016)

  • Add support for using the view holder pattern with models. See the readme for more information.
  • Throw an exception if EpoxyAdapter#notifyDataSetChanged() is called when diffing is enabled. It doesn't make sense to allow this alongside diffing, and calling this is most likely to be an accidental mixup with notifyModelsChanged().
  • Some performance improvements with the diffing algorithm.

1.2.0 (09/07/2016)

  • Change signature of EpoxyAdapter#onModelBound to include the model position
  • Fix EpoxyModel hashcode to include the layout specified by getDefaultLayout
  • Enforce that the id of an EpoxyModel cannot change once it has been added to the adapter
  • Add optional hash parameter to the EpoxyAttribute annotation to exclude a field from being included in the generated hashcode method.

1.1.0 (08/24/2016)

  • Initial release