Skip to content

Commit 1b5de1e

Browse files
committed
V1.5.2
1 parent 5328acf commit 1b5de1e

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# V1.5.2
2+
**2018-08-05**
3+
4+
`setVolume(0)` may crash in >= Android M, see [detail](https://github.com/c19354837/react-native-system-setting/pull/48)
5+
16
# V1.5.1
27
**2018-08-02**
38

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ Default permissions are removed since V1.5.0, see [this PR](https://github.com/c
273273

274274
> There are some different APIs that end with `silence`. They can do the job programmatically without direct user consent. These APIs maybe useful when you develop a system management app. Or, you should call `switchWifi()` & `switchBluetooth()` to get a better user experience
275275
276+
### Do Not Disturb
277+
278+
`setVolume()` may cause a crash: **Not allowed to change Do Not Disturb state**. See [detail](https://github.com/c19354837/react-native-system-setting/issues/48).
279+
276280
### Runtime permission for Android 6+
277281

278282
Change *brightness* and *screen mode* need `android.permission.WRITE_SETTINGS` which user can disable it in phone Setting. When you call `setScreenMode()`, `setBrightness()` or `setBrightnessForce()` , it will return false if the app has no permission, and you can call `SystemSetting.grantWriteSettingPremission()` to guide user to app setting page. see [example](https://github.com/c19354837/react-native-system-setting/tree/master/examples/SystemSettingExample)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-system-setting",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "provide some system setting APIs. Volume, brightness, wifi, location, bluetooth, airplane...",
55
"main": "SystemSetting.js",
66
"homepage": "https://github.com/c19354837/react-native-system-setting",

0 commit comments

Comments
 (0)