diff --git a/CHANGELOG.md b/CHANGELOG.md index f53bc24d54..8791a59bf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +# 1.6.1 (Feb 6, 2017) + +* Allow the default layout resource to be specified in the EpoxyModelClass class annotation [(#109)](https://github.com/airbnb/epoxy/pull/109) [(#111)](https://github.com/airbnb/epoxy/pull/111) +* Allow the `createNewHolder` method to be omitted and generated automatically [(#105)](https://github.com/airbnb/epoxy/pull/105) +* Generate a subclass for abstract model classes if the EpoxyModelClass annotation is present [(#105)](https://github.com/airbnb/epoxy/pull/105) +* Allow strings as model ids [(#107)](https://github.com/airbnb/epoxy/pull/107) +* Add instructions to readme for avoiding memory leaks [(#106)](https://github.com/airbnb/epoxy/pull/106) +* Add model callbacks for view attached/detached from window, and onFailedToRecycleView [(#104)](https://github.com/airbnb/epoxy/pull/104) +* Improve documentation on model unbind behavior [(#103)](https://github.com/airbnb/epoxy/pull/103) +* Fix generated methods from super classes that have var args [(#100)](https://github.com/airbnb/epoxy/pull/100) +* Remove apt dependency [(#95)](https://github.com/airbnb/epoxy/pull/95) +* Add `removeAllModels` method to EpoxyAdapter [(#94)](https://github.com/airbnb/epoxy/pull/94) +* Use actual param names when generating methods from super classes [(#85)](https://github.com/airbnb/epoxy/pull/85) + # 1.5.0 (11/21/2016) * Fixes models being used in separate modules diff --git a/README.md b/README.md index 414642772f..1b78e173d3 100755 --- a/README.md +++ b/README.md @@ -30,15 +30,15 @@ Gradle is the only supported build configuration, so just add the dependency to ```groovy dependencies { - compile 'com.airbnb.android:epoxy:1.5.0' + compile 'com.airbnb.android:epoxy:1.6.1' } ``` Optionally, if you want to use the [attributes for generated helper classes](#annotations) you must also provide the annotation processor as a dependency. ```groovy dependencies { - compile 'com.airbnb.android:epoxy:1.5.0' - annotationProcessor 'com.airbnb.android:epoxy-processor:1.5.0' + compile 'com.airbnb.android:epoxy:1.6.1' + annotationProcessor 'com.airbnb.android:epoxy-processor:1.6.1' } ``` @@ -452,6 +452,7 @@ If the model class is abstract, and only has `EpoxyAttribute` annotations, a gen A model class annotated with `@EpoxyModelClass` will always have a subclass generated. There are several cases where it may be useful to use this alongside, or instead of, `EpoxyAttribute`. 1. `getDefaultLayout` may be left unimplemented and the default layout resource can instead be specified as a parameter to the `EpoxyModelClass` annotation. The generated model will include a `getDefaultLayout` implementation that returns that value. + * **Note**: This does not currently work in library projects or modules, but support for that is coming soon! 2. If you are using `EpoxyModelWithHolder` (see [Using View Holders](#view-holders)) you can leave the `createNewHolder` method unimplemented and the generated class will contain a default implementation that creates a new holder by calling a no argument constructor of the holder class. diff --git a/gradle.properties b/gradle.properties index b6e3281ff7..7573c18980 100755 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=1.5.0 +VERSION_NAME=1.6.1 GROUP=com.airbnb.android POM_DESCRIPTION=Epoxy is a system for composing complex screens with a ReyclerView in Android. POM_URL=https://github.com/airbnb/epoxy