Skip to content

Commit

Permalink
Prepare for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
IvBaranov committed Nov 27, 2015
1 parent db04f25 commit 060f816
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Usage

##### Observing devices
```java
rxBluetooth.observeDevices(this)
rxBluetooth.observeDevices()
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.subscribe(new Action1<BluetoothDevice>() {
Expand All @@ -51,7 +51,7 @@ rxBluetooth.observeDevices(this)
To observe just `ACTION_DISCOVERY_STARTED`:

```java
rxBluetooth.observeDiscovery(this)
rxBluetooth.observeDiscovery()
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.filter(Action.isEqualTo(BluetoothAdapter.ACTION_DISCOVERY_STARTED))
Expand All @@ -65,7 +65,7 @@ rxBluetooth.observeDiscovery(this)
To observe both `ACTION_DISCOVERY_STARTED` and `ACTION_DISCOVERY_FINISHED`:

```java
rxBluetooth.observeDiscovery(this)
rxBluetooth.observeDiscovery()
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.filter(Action.isEqualTo(BluetoothAdapter.ACTION_DISCOVERY_STARTED, BluetoothAdapter.ACTION_DISCOVERY_FINISHED))
Expand All @@ -79,7 +79,7 @@ rxBluetooth.observeDiscovery(this)
##### Observing bluetooth state

```java
rxBluetooth.observeBluetoothState(this)
rxBluetooth.observeBluetoothState()
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.filter(Action.isEqualTo(BluetoothAdapter.STATE_ON))
Expand All @@ -101,7 +101,7 @@ BluetoothAdapter.STATE_TURNING_OFF
##### Observing scan mode

```java
rxBluetooth.observeScanMode(this)
rxBluetooth.observeScanMode()
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.filter(Action.isEqualTo(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE))
Expand All @@ -122,7 +122,7 @@ BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE
#### Getting the profile proxy object

```java
rxBluetooth.observeBluetoothProfile(this, myProfile)
rxBluetooth.observeBluetoothProfile(myProfile)
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.subscribe(new Action1<ServiceEvent>() {
Expand Down Expand Up @@ -150,7 +150,7 @@ rxBluetooth.closeProfileProxy(int profile, BluetoothProfile proxy);
Download
--------
```groovy
compile 'com.github.ivbaranov:rxbluetooth:0.0.4'
compile 'com.github.ivbaranov:rxbluetooth:0.0.5'
```

Contributing
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ MIN_SDK_VERSION=11
TARGET_SDK_VERSION=23

# Current library version
VERSION_NAME=0.0.4
VERSION_CODE=4
VERSION_NAME=0.0.5
VERSION_CODE=5

# Dependency versions (library)
SUPPORT_LIBRARY_VERSION=23.1.1
Expand Down

0 comments on commit 060f816

Please sign in to comment.