From 060f8162d55167cd8dbef471fe10edf1c1c3f0e2 Mon Sep 17 00:00:00 2001 From: Ivan Baranov Date: Fri, 27 Nov 2015 17:31:54 +0300 Subject: [PATCH] Prepare for release. --- README.md | 14 +++++++------- gradle.properties | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4aee30d..e82e64c 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Usage ##### Observing devices ```java -rxBluetooth.observeDevices(this) +rxBluetooth.observeDevices() .observeOn(AndroidSchedulers.mainThread()) .subscribeOn(Schedulers.io()) .subscribe(new Action1() { @@ -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)) @@ -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)) @@ -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)) @@ -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)) @@ -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() { @@ -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 diff --git a/gradle.properties b/gradle.properties index 62ba17a..8a65623 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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