Skip to content

Commit

Permalink
Merge pull request #92 from trello/dlew/prep-0.5.0
Browse files Browse the repository at this point in the history
Preparing v0.5.0
  • Loading branch information
dlew committed Feb 27, 2016
2 parents 1a1cd62 + 8509968 commit 56a401d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.5.0 (2016-02-27)

There are a few methods which have been **deprecated** and will be removed in a future release. Each one has a drop-in
replacement (and currently calling the deprecated version just routes to the new one):

* `bindUntilActivityEvent()` and `bindUntilFragmentEvent()` -> `bindUntilEvent()`
* `bindView()` -> `bind()`

The other changes mostly involve opening up the API for more customization:

* [#78](https://github.com/trello/RxLifecycle/pull/78): Added rxlifecycle-kotlin (adds some extensions)
* [#79](https://github.com/trello/RxLifecycle/pull/79): Made bindUntilEvent() public, deprecated more specific calls
* [#82](https://github.com/trello/RxLifecycle/pull/82): Opened up bind() methods for public consumption
* [#83](https://github.com/trello/RxLifecycle/pull/83), [#85](https://github.com/trello/RxLifecycle/pull/85): Added
annotations for better lint checking
* [#88](https://github.com/trello/RxLifecycle/pull/88): Use `.equals()` instead of == for event comparison (for
custom event support with the newly opened-up `bind()`)
* [#89](https://github.com/trello/RxLifecycle/pull/89): Make OutsideLifecycleException public (for anyone who wants
to write their own `bind()` implementations)

## 0.4.0 (2015-12-10)

* [#62](https://github.com/trello/RxLifecycle/pull/62), [#67](https://github.com/trello/RxLifecycle/pull/67): Added
Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,16 @@ public class MyActivity extends NaviActivity {
}
```

If you want some kotlin goodness, you can use bind() syntax
If you want some Kotlin goodness, you can use built-in extensions:

```java
myObservable
.bindToLifecycle(myView)
.subscribe { }

```

```java
myObservable
.bindUntilEvent(myRxActivity, STOP)
.subscribe { }

```

## Unsubscription
Expand All @@ -100,16 +96,16 @@ yourself and call `unsubscribe()` when appropriate.
## Installation

```gradle
compile 'com.trello:rxlifecycle:0.4.0'
compile 'com.trello:rxlifecycle:0.5.0'
// If you want pre-written Activities and Fragments you can subclass as providers
compile 'com.trello:rxlifecycle-components:0.4.0'
compile 'com.trello:rxlifecycle-components:0.5.0'
// If you want to use Navi for providers
compile 'com.trello:rxlifecycle-navi:0.4.0'
compile 'com.trello:rxlifecycle-navi:0.5.0'
// If you wat to use Kotlin syntax
compile 'com.trello:rxlifecycle-kotlin:0.4.0'
compile 'com.trello:rxlifecycle-kotlin:0.5.0'
```

## License
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GROUP=com.trello
VERSION_NAME=0.4.0-SNAPSHOT
VERSION_CODE=5
VERSION_NAME=0.5.0-SNAPSHOT
VERSION_CODE=6

POM_URL=https://github.com/trello/RxLifecycle
POM_SCM_URL=https://github.com/trello/RxLifecycle
Expand Down

0 comments on commit 56a401d

Please sign in to comment.