Skip to content

Commit

Permalink
V1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
c19354837 committed May 7, 2018
1 parent 3fe65e6 commit a4fd179
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ addWifiListener(callback):Promise| Listen the wifi state changing, and it will r
**Location**|
isLocationEnabled():Promise|Get location state, true if location is on.
switchLocation(complete)|It will open **System Location Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call.
addLocationListener(callback):Promise| Listen the location state changing, and it will return the listener. (Android only)
---|---
**Bluetooth**|
isBluetoothEnabled():Promise|Get bluetooth state, true if bluetooth is on.
Expand All @@ -43,6 +44,7 @@ addBluetoothListener(callback):Promise| Listen the bluetooth state changing, and
**Airplane**|
isAirplaneEnabled():Promise|Get airplane state, true if airplane is on.
switchAirplane(complete)|It will open **System Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call.
addAirplaneListener(callback):Promise| Listen the airplane state changing, and it will return the listener. (Android only)
---|---
**Other**|
setAppStore(isAppStore:bool)| `true` means that you'll submit your app to App Store. In order to throught the App Store review, it has some side effects, see [App Store](https://github.com/c19354837/react-native-system-setting#app-store).<br><br>`false` means that your app will not upload to App Store, and you can use any APIs at will.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# V1.4.2
**2018-05-07**

new API: `addLocationListener()`, only works in Android

new API: `addAirplaneListener()`, only works in Android

# V1.4.1
**2018-04-23**

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-system-setting",
"version": "1.4.1",
"version": "1.4.2",
"description": "provide some system setting APIs. Volume, brightness, wifi, location, bluetooth, airplane...",
"main": "SystemSetting.js",
"homepage": "https://github.com/c19354837/react-native-system-setting",
Expand Down

0 comments on commit a4fd179

Please sign in to comment.