@react-native-ohos/react-native-system-setting 1.7.7-rc.1 → 1.7.7-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +57 -57
- package/CHANGELOG.md +206 -0
- package/COMMITTERS.md +7 -0
- package/LICENSE +21 -21
- package/LICENSE.md +21 -21
- package/OAT.xml +81 -0
- package/RCTSystemSetting.podspec +20 -20
- package/README.OpenSource +10 -10
- package/README.md +15 -15
- package/SystemSetting.d.ts +81 -81
- package/SystemSetting.js +347 -347
- package/Utils.js +11 -11
- package/harmony/react_native_system_setting/Index.ets +28 -27
- package/harmony/react_native_system_setting/build-profile.json5 +31 -31
- package/harmony/react_native_system_setting/hvigorfile.ts +6 -6
- package/harmony/react_native_system_setting/obfuscation-rules.txt +17 -17
- package/harmony/react_native_system_setting/oh-package.json5 +10 -10
- package/harmony/react_native_system_setting/src/main/cpp/CMakeLists.txt +5 -3
- package/harmony/react_native_system_setting/src/main/cpp/SystemSettingPackage.h +36 -0
- package/harmony/react_native_system_setting/src/main/cpp/{RNSystemSettingPackage.h → generated/RNOH/generated/BaseReactNativeSystemSettingPackage.h} +65 -76
- package/harmony/react_native_system_setting/src/main/cpp/{ReactNativeSystemSetting.cpp → generated/RNOH/generated/turbo_modules/ReactNativeSystemSetting.cpp} +47 -54
- package/harmony/react_native_system_setting/src/main/cpp/{ReactNativeSystemSetting.h → generated/RNOH/generated/turbo_modules/ReactNativeSystemSetting.h} +16 -21
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/ComponentDescriptors.h +22 -0
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/EventEmitters.cpp +18 -0
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/EventEmitters.h +19 -0
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/Props.cpp +21 -0
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/Props.h +20 -0
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/ShadowNodes.cpp +19 -0
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/ShadowNodes.h +25 -0
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/States.cpp +18 -0
- package/harmony/react_native_system_setting/src/main/cpp/generated/react/renderer/components/react_native_system_setting/States.h +23 -0
- package/harmony/react_native_system_setting/src/main/ets/Logger.ts +63 -63
- package/harmony/react_native_system_setting/src/main/ets/{RNSystemSettingPackage.ts → RNSystemSettingPackage.ets} +52 -51
- package/harmony/react_native_system_setting/src/main/ets/RNSystemSettingTurboModule.ts +346 -361
- package/harmony/react_native_system_setting/src/main/ets/generated/components/ts.ts +5 -5
- package/harmony/react_native_system_setting/src/main/ets/generated/index.ets +5 -8
- package/harmony/react_native_system_setting/src/main/ets/generated/ts.ts +6 -9
- package/harmony/react_native_system_setting/src/main/ets/generated/turboModules/ReactNativeSystemSetting.ts +78 -86
- package/harmony/react_native_system_setting/src/main/ets/generated/turboModules/ts.ts +5 -8
- package/harmony/react_native_system_setting/src/main/module.json5 +9 -9
- package/harmony/react_native_system_setting/src/main/resources/base/element/string.json +8 -8
- package/harmony/react_native_system_setting/src/main/resources/en_US/element/string.json +8 -8
- package/harmony/react_native_system_setting/src/main/resources/zh_CN/element/string.json +8 -8
- package/harmony/react_native_system_setting/src/mock/mock-config.json5 +2 -0
- package/harmony/react_native_system_setting/src/ohosTest/ets/test/Ability.test.ets +35 -0
- package/harmony/react_native_system_setting/src/ohosTest/ets/test/List.test.ets +5 -0
- package/harmony/react_native_system_setting/src/ohosTest/ets/testability/TestAbility.ets +47 -0
- package/harmony/react_native_system_setting/src/ohosTest/ets/testability/pages/Index.ets +17 -0
- package/harmony/react_native_system_setting/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ets +90 -0
- package/harmony/react_native_system_setting/src/ohosTest/module.json5 +36 -0
- package/harmony/react_native_system_setting/src/ohosTest/resources/base/element/color.json +8 -0
- package/harmony/react_native_system_setting/src/ohosTest/resources/base/element/string.json +16 -0
- package/harmony/react_native_system_setting/src/ohosTest/resources/base/media/icon.png +0 -0
- package/harmony/react_native_system_setting/src/ohosTest/resources/base/profile/test_pages.json +5 -0
- package/harmony/react_native_system_setting/src/test/List.test.ets +5 -0
- package/harmony/react_native_system_setting/src/test/LocalUnit.test.ets +33 -0
- package/harmony/react_native_system_setting/{ts.ts → ts.ets} +24 -24
- package/harmony/react_native_system_setting.har +0 -0
- package/iOS.md +101 -0
- package/package.json +48 -46
- package/src/ReactRNSystemSetting.ts +108 -112
- package/harmony/react_native_system_setting/BuildProfile.ets +0 -6
package/API.md
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
## API
|
|
2
|
-
|
|
3
|
-
**All are static method, and all GET mothods return a promise**
|
|
4
|
-
|
|
5
|
-
**Maybe [codes](https://github.com/c19354837/react-native-system-setting/blob/master/SystemSetting.js) is best document**
|
|
6
|
-
|
|
7
|
-
> Some APIs are marked with an asterisk at the beginning, and it means you need declare permission for Androidn since V1.5.0, see [Android Permission](https://github.com/c19354837/react-native-system-setting#android-permission)
|
|
8
|
-
>
|
|
9
|
-
> Some APIs which start with `swtich` or containt `bluetooth` are disabled for iOS since V1.7.0, you can [enable it](https://github.com/c19354837/react-native-system-setting/blob/master/iOS.md#ios) in a few steps.
|
|
10
|
-
|
|
11
|
-
method | description
|
|
12
|
-
------ | -----------
|
|
13
|
-
**Volume**|
|
|
14
|
-
getVolume(type:string) => Promise | Get the system volume. <br><br>`type` must be one of `music`, `call`, `system`, `ring`, `alarm`, `notification`, default is `music`
|
|
15
|
-
setVolume(val:float, config:object) | Set the system volume by specified value, from 0 to 1. 0 for mute, and 1 is max volume.<br><br> `config` can be `{type: 'music', playSound:true, showUI:true}`<br><br> `type` : must be one of `music`, `call`, `system`, `ring`, `alarm`, `notification`, default is `music`.(Android only) <br>`playSound`: Whether to play a sound when changing the volume, default is `false`(Android only)<br>`showUI`: Show a toast containing the current volume, default is `false`(Android & iOS)<br><br> **since 1.2.2**
|
|
16
|
-
addVolumeListener(callback) | Listen the volume changing, and it will return the listener. More info see [the example](https://github.com/c19354837/react-native-system-setting/blob/master/examples/SystemSettingExample/index.js#L42)
|
|
17
|
-
removeVolumeListener(listener)| Remove listener when it no longer needed.
|
|
18
|
-
---|---
|
|
19
|
-
**Brightness**|
|
|
20
|
-
getBrightness() => Promise | Get the system brightness.
|
|
21
|
-
setBrightness(val:float) => Promise | Set the system brightness by specified value, from 0 to 1. 0 for brightless, and 1 is max.<br><br>Return false if permission deny ( iOS always be true
|
|
22
|
-
\* setBrightnessForce(val:float) => Promise| In Android, if the screen mode is auto, SystemSetting.setBrightness() will not work. You can call this to change the screen mode to MANUAL first. <br><br>Return false if permission deny ( iOS always be true
|
|
23
|
-
\* setAppBrightness(val:float)| For Android, `setBrightness()` or `setBrightnessForce()` will change the system's brightness, while this just changes the app's brightness, and it has no permission trouble.<br><br> For iOS, it's same with `setBrightness()`.
|
|
24
|
-
getAppBrightness() => Promise | Get the app brightness, and it will returns system brightness if you haven't call `setAppBrightness(val)` yet. (iOS allways returns system brightness)
|
|
25
|
-
getScreenMode() => Promise| (Only for Android, iOS will return -1). Get the screen mode, 0 is manual, while 1 is automatic.
|
|
26
|
-
\* setScreenMode(mode:int) => Promise|(Only for Android, iOS cannot change it). Change the screen mode, 0 is manual, while 1 is automatic.<br><br>Return false if permission deny ( iOS always be true
|
|
27
|
-
grantWriteSettingPermission()| open app setting page. It's user-friendly when you need some permission. Normally, you can call it if `setScreenMode()`, `setBrightness()` or `setBrightnessForce()` return false
|
|
28
|
-
\* saveBrightness()|It will save current brightness and screen mode.
|
|
29
|
-
restoreBrightness() => Promise|Restore brightness and screen mode back to saveBrightness(). While iOS only restore the brightness, Android will restore both. <br><br>You should call this before setBrightness() or setBrightnessForce(). <br><br>It will return the saved brightness.
|
|
30
|
-
---|---
|
|
31
|
-
**Wifi**|
|
|
32
|
-
\* isWifiEnabled() => Promise|Get wifi state, true if wifi is on.
|
|
33
|
-
switchWifi(complete)|It will open **Wifi Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call.
|
|
34
|
-
\*\* switchWifiSilence(complete)|It will open wifi if the wifi is off, and close wifi when the wifi is on now. When it has done, the `complete` will be call.<br/>In android, it's done programmatically. <br><br>In iOS, I cannot do that by code for system limiting, so it just calls `switchWifi(complete)`<br><br>You need declare `android.permission.CHANGE_WIFI_STATE` in your AndroidManifest.xml, see [detail](https://github.com/c19354837/react-native-system-setting#android-permission)
|
|
35
|
-
addWifiListener(callback) => Promise| Listen the wifi state changing, and it will return the listener. (Android only)
|
|
36
|
-
---|---
|
|
37
|
-
**Location**|
|
|
38
|
-
isLocationEnabled() => Promise|Get location state, true if location is on.
|
|
39
|
-
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.
|
|
40
|
-
addLocationListener(callback) => Promise| Listen the location state changing, and it will return the listener. (Android only)
|
|
41
|
-
getLocationMode() => Promise| Get current location mode code: `0` - 'off', `1` - 'gps', `2` - 'network', `3` - 'gps & network'. (Android only)
|
|
42
|
-
addLocationModeListener(callback) => Promise| Listen the location mode changing, and it will return the listener. (Android only)
|
|
43
|
-
---|---
|
|
44
|
-
**Bluetooth**|
|
|
45
|
-
\* isBluetoothEnabled() => Promise|Get bluetooth state, true if bluetooth is on.
|
|
46
|
-
switchBluetooth(complete)|It will open **System Bluetooth Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call.
|
|
47
|
-
\*\* switchBluetoothSilence(complete)|It will open bluetooth if the bluetooth is off, and close bluetooth when the bluetooth is on now. When it has done, the `complete` will be call.<br/>In android, it's done programmatically. <br><br>In iOS, I cannot do that by code for system limiting, so it just calls `switchBluetooth(complete)`<br><br>You need declare `android.permission.BLUETOOTH_ADMIN` in your AndroidManifest.xml, see [detail](https://github.com/c19354837/react-native-system-setting#android-permission)
|
|
48
|
-
addBluetoothListener(callback) => Promise| Listen the bluetooth state changing, and it will return the listener.
|
|
49
|
-
---|---
|
|
50
|
-
**Airplane**|
|
|
51
|
-
isAirplaneEnabled() => Promise|Get airplane state, true if airplane is on. <br><br>It will always return `true` for iOS if your device has no SIM card, see [detail](https://github.com/c19354837/react-native-system-setting/issues/37)
|
|
52
|
-
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.
|
|
53
|
-
addAirplaneListener(callback) => Promise| Listen the airplane state changing, and it will return the listener. (Android only)
|
|
54
|
-
---|---
|
|
55
|
-
**Other**|
|
|
56
|
-
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 [Private API](https://github.com/c19354837/react-native-system-setting/blob/master/iOS.md#private-api).<br><br>`false` means that your app will not upload to App Store, and you can use any APIs at will.
|
|
57
|
-
removeListener(listener)| you can use this to remove the listener which return by `add*Listener(callback)`
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
**All are static method, and all GET mothods return a promise**
|
|
4
|
+
|
|
5
|
+
**Maybe [codes](https://github.com/c19354837/react-native-system-setting/blob/master/SystemSetting.js) is best document**
|
|
6
|
+
|
|
7
|
+
> Some APIs are marked with an asterisk at the beginning, and it means you need declare permission for Androidn since V1.5.0, see [Android Permission](https://github.com/c19354837/react-native-system-setting#android-permission)
|
|
8
|
+
>
|
|
9
|
+
> Some APIs which start with `swtich` or containt `bluetooth` are disabled for iOS since V1.7.0, you can [enable it](https://github.com/c19354837/react-native-system-setting/blob/master/iOS.md#ios) in a few steps.
|
|
10
|
+
|
|
11
|
+
method | description
|
|
12
|
+
------ | -----------
|
|
13
|
+
**Volume**|
|
|
14
|
+
getVolume(type:string) => Promise | Get the system volume. <br><br>`type` must be one of `music`, `call`, `system`, `ring`, `alarm`, `notification`, default is `music`
|
|
15
|
+
setVolume(val:float, config:object) | Set the system volume by specified value, from 0 to 1. 0 for mute, and 1 is max volume.<br><br> `config` can be `{type: 'music', playSound:true, showUI:true}`<br><br> `type` : must be one of `music`, `call`, `system`, `ring`, `alarm`, `notification`, default is `music`.(Android only) <br>`playSound`: Whether to play a sound when changing the volume, default is `false`(Android only)<br>`showUI`: Show a toast containing the current volume, default is `false`(Android & iOS)<br><br> **since 1.2.2**
|
|
16
|
+
addVolumeListener(callback) | Listen the volume changing, and it will return the listener. More info see [the example](https://github.com/c19354837/react-native-system-setting/blob/master/examples/SystemSettingExample/index.js#L42)
|
|
17
|
+
removeVolumeListener(listener)| Remove listener when it no longer needed.
|
|
18
|
+
---|---
|
|
19
|
+
**Brightness**|
|
|
20
|
+
getBrightness() => Promise | Get the system brightness.
|
|
21
|
+
setBrightness(val:float) => Promise | Set the system brightness by specified value, from 0 to 1. 0 for brightless, and 1 is max.<br><br>Return false if permission deny ( iOS always be true
|
|
22
|
+
\* setBrightnessForce(val:float) => Promise| In Android, if the screen mode is auto, SystemSetting.setBrightness() will not work. You can call this to change the screen mode to MANUAL first. <br><br>Return false if permission deny ( iOS always be true
|
|
23
|
+
\* setAppBrightness(val:float)| For Android, `setBrightness()` or `setBrightnessForce()` will change the system's brightness, while this just changes the app's brightness, and it has no permission trouble.<br><br> For iOS, it's same with `setBrightness()`.
|
|
24
|
+
getAppBrightness() => Promise | Get the app brightness, and it will returns system brightness if you haven't call `setAppBrightness(val)` yet. (iOS allways returns system brightness)
|
|
25
|
+
getScreenMode() => Promise| (Only for Android, iOS will return -1). Get the screen mode, 0 is manual, while 1 is automatic.
|
|
26
|
+
\* setScreenMode(mode:int) => Promise|(Only for Android, iOS cannot change it). Change the screen mode, 0 is manual, while 1 is automatic.<br><br>Return false if permission deny ( iOS always be true
|
|
27
|
+
grantWriteSettingPermission()| open app setting page. It's user-friendly when you need some permission. Normally, you can call it if `setScreenMode()`, `setBrightness()` or `setBrightnessForce()` return false
|
|
28
|
+
\* saveBrightness()|It will save current brightness and screen mode.
|
|
29
|
+
restoreBrightness() => Promise|Restore brightness and screen mode back to saveBrightness(). While iOS only restore the brightness, Android will restore both. <br><br>You should call this before setBrightness() or setBrightnessForce(). <br><br>It will return the saved brightness.
|
|
30
|
+
---|---
|
|
31
|
+
**Wifi**|
|
|
32
|
+
\* isWifiEnabled() => Promise|Get wifi state, true if wifi is on.
|
|
33
|
+
switchWifi(complete)|It will open **Wifi Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call.
|
|
34
|
+
\*\* switchWifiSilence(complete)|It will open wifi if the wifi is off, and close wifi when the wifi is on now. When it has done, the `complete` will be call.<br/>In android, it's done programmatically. <br><br>In iOS, I cannot do that by code for system limiting, so it just calls `switchWifi(complete)`<br><br>You need declare `android.permission.CHANGE_WIFI_STATE` in your AndroidManifest.xml, see [detail](https://github.com/c19354837/react-native-system-setting#android-permission)
|
|
35
|
+
addWifiListener(callback) => Promise| Listen the wifi state changing, and it will return the listener. (Android only)
|
|
36
|
+
---|---
|
|
37
|
+
**Location**|
|
|
38
|
+
isLocationEnabled() => Promise|Get location state, true if location is on.
|
|
39
|
+
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.
|
|
40
|
+
addLocationListener(callback) => Promise| Listen the location state changing, and it will return the listener. (Android only)
|
|
41
|
+
getLocationMode() => Promise| Get current location mode code: `0` - 'off', `1` - 'gps', `2` - 'network', `3` - 'gps & network'. (Android only)
|
|
42
|
+
addLocationModeListener(callback) => Promise| Listen the location mode changing, and it will return the listener. (Android only)
|
|
43
|
+
---|---
|
|
44
|
+
**Bluetooth**|
|
|
45
|
+
\* isBluetoothEnabled() => Promise|Get bluetooth state, true if bluetooth is on.
|
|
46
|
+
switchBluetooth(complete)|It will open **System Bluetooth Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call.
|
|
47
|
+
\*\* switchBluetoothSilence(complete)|It will open bluetooth if the bluetooth is off, and close bluetooth when the bluetooth is on now. When it has done, the `complete` will be call.<br/>In android, it's done programmatically. <br><br>In iOS, I cannot do that by code for system limiting, so it just calls `switchBluetooth(complete)`<br><br>You need declare `android.permission.BLUETOOTH_ADMIN` in your AndroidManifest.xml, see [detail](https://github.com/c19354837/react-native-system-setting#android-permission)
|
|
48
|
+
addBluetoothListener(callback) => Promise| Listen the bluetooth state changing, and it will return the listener.
|
|
49
|
+
---|---
|
|
50
|
+
**Airplane**|
|
|
51
|
+
isAirplaneEnabled() => Promise|Get airplane state, true if airplane is on. <br><br>It will always return `true` for iOS if your device has no SIM card, see [detail](https://github.com/c19354837/react-native-system-setting/issues/37)
|
|
52
|
+
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.
|
|
53
|
+
addAirplaneListener(callback) => Promise| Listen the airplane state changing, and it will return the listener. (Android only)
|
|
54
|
+
---|---
|
|
55
|
+
**Other**|
|
|
56
|
+
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 [Private API](https://github.com/c19354837/react-native-system-setting/blob/master/iOS.md#private-api).<br><br>`false` means that your app will not upload to App Store, and you can use any APIs at will.
|
|
57
|
+
removeListener(listener)| you can use this to remove the listener which return by `add*Listener(callback)`
|
|
58
58
|
openAppSystemSettings()| open app's setting page
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# V1.7.6
|
|
2
|
+
**2020-10-11**
|
|
3
|
+
|
|
4
|
+
fix TypeScript definitions
|
|
5
|
+
|
|
6
|
+
# V1.7.5
|
|
7
|
+
**2020-09-02**
|
|
8
|
+
|
|
9
|
+
adds TypeScript definitions, see [detail](https://github.com/c19354837/react-native-system-setting/pull/116)
|
|
10
|
+
|
|
11
|
+
# V1.7.4
|
|
12
|
+
**2020-01-30**
|
|
13
|
+
|
|
14
|
+
typo: `grantWriteSettingPremission()` -> `grantWriteSettingPermission`, see [detail](https://github.com/c19354837/react-native-system-setting/issues/97)
|
|
15
|
+
|
|
16
|
+
# V1.7.3
|
|
17
|
+
**2019-10-03**
|
|
18
|
+
|
|
19
|
+
fix bug: `setBrightness()` will cause a crash in iOS 13, see [detail](https://github.com/c19354837/react-native-system-setting/pull/89)
|
|
20
|
+
|
|
21
|
+
# V1.7.2
|
|
22
|
+
**2019-02-14**
|
|
23
|
+
|
|
24
|
+
new API: `addLocationModeListener()`, only works in Android
|
|
25
|
+
|
|
26
|
+
# V1.7.1
|
|
27
|
+
**2018-12-30**
|
|
28
|
+
|
|
29
|
+
new API: `openAppSystemSettings` will open app setting page
|
|
30
|
+
|
|
31
|
+
# V1.7.0
|
|
32
|
+
**2018-09-30**
|
|
33
|
+
|
|
34
|
+
add preprocessor `PRIVATE_API` which can enable `switch*()` function, see [detail](https://github.com/c19354837/react-native-system-setting/issues/58)
|
|
35
|
+
|
|
36
|
+
`setAppStore()` is deprecated.
|
|
37
|
+
|
|
38
|
+
breaking change: remove `BLUETOOTH` by default.
|
|
39
|
+
|
|
40
|
+
# V1.6.0
|
|
41
|
+
**2018-09-19**
|
|
42
|
+
|
|
43
|
+
bluetooth issues for App Store, see [detail](https://github.com/c19354837/react-native-system-setting/issues/55)
|
|
44
|
+
|
|
45
|
+
# V1.5.3
|
|
46
|
+
**2018-08-20**
|
|
47
|
+
|
|
48
|
+
fix bug: `setVolume()` may cause a crash, see [detail](https://github.com/c19354837/react-native-system-setting/pull/54)
|
|
49
|
+
|
|
50
|
+
# V1.5.2
|
|
51
|
+
**2018-08-05**
|
|
52
|
+
|
|
53
|
+
`setVolume()` may crash in >= Android M, see [detail](https://github.com/c19354837/react-native-system-setting/pull/48)
|
|
54
|
+
|
|
55
|
+
RN 0.56.+ compatible, [Use project-wide properties and new dependency](https://github.com/c19354837/react-native-system-setting/pull/46)
|
|
56
|
+
|
|
57
|
+
# V1.5.1
|
|
58
|
+
**2018-08-02**
|
|
59
|
+
|
|
60
|
+
show System Volume UI by default for iOS, see [detail](https://github.com/c19354837/react-native-system-setting/pull/43)
|
|
61
|
+
|
|
62
|
+
# V1.5.0
|
|
63
|
+
**2018-07-10**
|
|
64
|
+
|
|
65
|
+
breaking change: remove default Android permission, see [detail](https://github.com/c19354837/react-native-system-setting/pull/44)
|
|
66
|
+
|
|
67
|
+
# V1.4.6
|
|
68
|
+
**2018-06-20**
|
|
69
|
+
|
|
70
|
+
fix bug: `switchAirplane()` will open Bluetooth Setting Page for iOS.
|
|
71
|
+
|
|
72
|
+
# V1.4.5
|
|
73
|
+
**2018-06-07**
|
|
74
|
+
|
|
75
|
+
fix bug: Exception handling for Volume Event, see [detail](https://github.com/c19354837/react-native-system-setting/issues/39)
|
|
76
|
+
|
|
77
|
+
# V1.4.4
|
|
78
|
+
**2018-05-27**
|
|
79
|
+
|
|
80
|
+
new API: `getLocationMode()`, see [detail](https://github.com/c19354837/react-native-system-setting/issues/35)
|
|
81
|
+
|
|
82
|
+
fix bug: all listener may get `null` sometime
|
|
83
|
+
|
|
84
|
+
# V1.4.3
|
|
85
|
+
**2018-05-21**
|
|
86
|
+
|
|
87
|
+
for iOS - override `+(BOOL)requiresMainQueueSetup` to remove warning
|
|
88
|
+
|
|
89
|
+
# V1.4.2
|
|
90
|
+
**2018-05-07**
|
|
91
|
+
|
|
92
|
+
new API: `addLocationListener()`, only works in Android
|
|
93
|
+
|
|
94
|
+
new API: `addAirplaneListener()`, only works in Android
|
|
95
|
+
|
|
96
|
+
# V1.4.1
|
|
97
|
+
**2018-04-23**
|
|
98
|
+
|
|
99
|
+
new API: `addWifiListener()`, only works in Android
|
|
100
|
+
|
|
101
|
+
new API: `addBluetoothListener()`, Android & iOS
|
|
102
|
+
|
|
103
|
+
# V1.4.0
|
|
104
|
+
**2018-04-21**
|
|
105
|
+
|
|
106
|
+
new API: `setAppStore()`, it will avoid some troubles when you submit app to App Store, see [detail](https://github.com/c19354837/react-native-system-setting/issues/28)
|
|
107
|
+
|
|
108
|
+
# V1.3.0
|
|
109
|
+
**2018-04-15**
|
|
110
|
+
|
|
111
|
+
new API: `switchBluetoothSilence()`, see [detail](https://github.com/c19354837/react-native-system-setting/blob/master/API.md)
|
|
112
|
+
|
|
113
|
+
**breaking change**: remove `android.permission.CHANGE_WIFI_STATE` from [AndroidManifest.xml](https://github.com/c19354837/react-native-system-setting/blob/master/android/src/main/AndroidManifest.xml). If you want to call `switchWifiSilence()`, you should declare the permission in your Androidmanifest.xml, see [detail](https://github.com/c19354837/react-native-system-setting#powerful-api)
|
|
114
|
+
|
|
115
|
+
# V1.2.5
|
|
116
|
+
**2018-04-07**
|
|
117
|
+
|
|
118
|
+
fix bug - `setVolume(val, config)` will cause a crash when `type` is null, see [detail](https://github.com/c19354837/react-native-system-setting/issues/22)
|
|
119
|
+
|
|
120
|
+
fix bug - `grantWriteSettingPermission()` navigates to the wrong page, see [detail](https://github.com/c19354837/react-native-system-setting/issues/24)
|
|
121
|
+
|
|
122
|
+
# V1.2.4
|
|
123
|
+
**2018-03-14**
|
|
124
|
+
|
|
125
|
+
fix bug - `isLocationEnabled` return `false` when locate by network only, see [detail](https://github.com/c19354837/react-native-system-setting/issues/19)
|
|
126
|
+
|
|
127
|
+
# V1.2.3
|
|
128
|
+
**2018-02-26**
|
|
129
|
+
|
|
130
|
+
fix bug - `setVolume` will show the `MPVolumeView` in the upper left corner, see [detail](https://github.com/c19354837/react-native-system-setting/issues/17)
|
|
131
|
+
|
|
132
|
+
# V1.2.2
|
|
133
|
+
**2018-02-25**
|
|
134
|
+
|
|
135
|
+
use `MPVolumeView` to get/set volume for iOS.
|
|
136
|
+
|
|
137
|
+
change API `setVolume(val, type)` to `setVolume(val, config)`, see [detail](https://github.com/c19354837/react-native-system-setting/issues/15)
|
|
138
|
+
|
|
139
|
+
# V1.2.1
|
|
140
|
+
**2018-01-21**
|
|
141
|
+
|
|
142
|
+
Supported Cocoapods, see [detail](https://github.com/c19354837/react-native-system-setting/issues/10)
|
|
143
|
+
|
|
144
|
+
# V1.2.0
|
|
145
|
+
**2018-01-07**
|
|
146
|
+
|
|
147
|
+
new API: `isAirplaneEnabled()` & `switchAirplane(complete)`, see [detail](https://github.com/c19354837/react-native-system-setting/blob/master/API.md)
|
|
148
|
+
|
|
149
|
+
# V1.1.1
|
|
150
|
+
**2018-01-03**
|
|
151
|
+
|
|
152
|
+
Supported >= iOS 8.0.
|
|
153
|
+
|
|
154
|
+
new API: `setAppBrightness(val:float)` & `getAppBrightness()`, see [detail](https://github.com/c19354837/react-native-system-setting/blob/master/API.md)
|
|
155
|
+
|
|
156
|
+
# V1.1.0
|
|
157
|
+
**2017-12-14**
|
|
158
|
+
|
|
159
|
+
Check permission when write setting, see [detail](https://github.com/c19354837/react-native-system-setting#runtime-permission-for-android-6)
|
|
160
|
+
|
|
161
|
+
# V1.0.8
|
|
162
|
+
**2017-11-27**
|
|
163
|
+
|
|
164
|
+
Now you can change volume by type (Android only), see [detail](https://github.com/c19354837/react-native-system-setting/issues/5)
|
|
165
|
+
|
|
166
|
+
# V1.0.7
|
|
167
|
+
**2017-08-19**
|
|
168
|
+
|
|
169
|
+
support RN 0.47, see [detail](https://github.com/c19354837/react-native-system-setting/issues/1)
|
|
170
|
+
|
|
171
|
+
# V1.0.6
|
|
172
|
+
**2017-07-23**
|
|
173
|
+
|
|
174
|
+
support switching bluetooth state
|
|
175
|
+
|
|
176
|
+
# V1.0.5
|
|
177
|
+
**2017-07-15**
|
|
178
|
+
|
|
179
|
+
support switching location state
|
|
180
|
+
|
|
181
|
+
API change : `switchWifi()` and `switchWifiSilence()`, see [detail](https://github.com/c19354837/react-native-system-setting/blob/master/API.md)
|
|
182
|
+
|
|
183
|
+
# V1.0.4
|
|
184
|
+
**2017-06-16**
|
|
185
|
+
|
|
186
|
+
support switching wifi state
|
|
187
|
+
|
|
188
|
+
# V1.0.3
|
|
189
|
+
**2017-06-05**
|
|
190
|
+
|
|
191
|
+
Save & Restore for brightness
|
|
192
|
+
|
|
193
|
+
# V1.0.2
|
|
194
|
+
**2017-06-03**
|
|
195
|
+
|
|
196
|
+
Add listener for volume
|
|
197
|
+
|
|
198
|
+
# V1.0.1
|
|
199
|
+
**2017-05-31**
|
|
200
|
+
|
|
201
|
+
Add screen mode (Android only)
|
|
202
|
+
|
|
203
|
+
# V1.0.0
|
|
204
|
+
**2017-05-30**
|
|
205
|
+
|
|
206
|
+
Support volume and brightness
|
package/COMMITTERS.md
ADDED
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018 Ninty
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Ninty
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/LICENSE.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018 Ninty
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Ninty
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/OAT.xml
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<configuration>
|
|
3
|
+
<oatconfig>
|
|
4
|
+
<licensefile>LICENSE</licensefile>
|
|
5
|
+
<policylist>
|
|
6
|
+
<policy name="projectPolicy" desc="">
|
|
7
|
+
<policyitem type="license" name="MIT" path=".*" desc="license under the MIT"/>
|
|
8
|
+
</policy>
|
|
9
|
+
<policy name="projectPolicy" desc="">
|
|
10
|
+
<policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="Process that runs independently, invoked by the X process."/>
|
|
11
|
+
<policyitem type="compatibility" name="Apache-2.0" path=".*" desc="不影响兼容性"/>
|
|
12
|
+
<policyitem type="compatibility" name="BSDStyleLicense" path=".*" desc="不影响兼容性" />
|
|
13
|
+
<policyitem type="compatibility" name="MIT" path=".*" desc="不影响兼容性" />
|
|
14
|
+
<policyitem type="compatibility" name="GPLStyleLicense" path=".*" desc="不影响兼容性" />
|
|
15
|
+
</policy>
|
|
16
|
+
</policylist>
|
|
17
|
+
<filefilterlist>
|
|
18
|
+
<filefilter name="copyrightPolicyFilter" desc="Filters for compatibility,license header policies">
|
|
19
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
|
|
20
|
+
<filteritem type="filename" name="LICENSE" desc="版权文件,不添加版权头"/>
|
|
21
|
+
<filteritem type="filename" name="hvigorw" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
22
|
+
<filteritem type="filename" name="hvigorw.bat" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
23
|
+
<filteritem type="filename" name="*.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
|
|
24
|
+
<filteritem type="filename" name="*.d.ts" desc="类型文件,非业务代码,不添加许可证头"/>
|
|
25
|
+
<filteritem type="filename" name="react-native.config.js" desc="原库文件,不手动修改"/>
|
|
26
|
+
|
|
27
|
+
<filteritem type="filepath" name="index.js" desc="入口文件,不添加许可证头"/>
|
|
28
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
29
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/test/Ability.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
30
|
+
<filteritem type="filepath" name="src/ReactRNSystemSetting.ts" desc="codegen生成文件,"/>
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
<filteritem type="filepath" name="scripts/rnpm-prelink.js" desc="原库文件,不手动修改"/>
|
|
34
|
+
<filteritem type="filepath" name="harmony/react_native_video_cache/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
35
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
|
|
36
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/BuildProfile.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
37
|
+
<filteritem type="filepath" name="harmonyreact_native_system_setting/src/ohosTest/ets/test/Ability.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
38
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/test/List.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
39
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/test/List.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
40
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/test/LocalUnit.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
41
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/testability/TestAbility.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
42
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/testability/pages/Index.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
43
|
+
<filteritem type="filename" name=".npmrc" desc="项目配置文件,不添加版权头"/>
|
|
44
|
+
<filteritem type="filename" name="*.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
|
|
45
|
+
<filteritem type="filepath" name="Utils.js" desc="原库文件,不做修改"/>
|
|
46
|
+
<filteritem type="filepath" name="SystemSetting.js" desc="原库文件,不做修改"/>
|
|
47
|
+
<filteritem type="filepath" name="src/ReactRNSystemSetting.ts" desc="codegen生成文件"/>
|
|
48
|
+
</filefilter>
|
|
49
|
+
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
|
|
50
|
+
<filteritem type="filepath" name="index.js" desc="入口文件,不添加许可证头"/>
|
|
51
|
+
<filteritem type="filepath" name="Utils.js" desc="原库文件,不做修改"/>
|
|
52
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
|
|
53
|
+
<filteritem type="filepath" name="SystemSetting.js" desc="原库文件,不做修改"/>
|
|
54
|
+
<filteritem type="filepath" name="src/ReactRNSystemSetting.ts" desc="codegen生成文件"/>
|
|
55
|
+
|
|
56
|
+
<filteritem type="filepath" name="scripts/.*" desc="原库文件,不手动修改"/>
|
|
57
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
|
|
58
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/BuildProfile.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
59
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/test/Ability.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
60
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/test/List.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
61
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/test/List.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
62
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/test/LocalUnit.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
63
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/testability/TestAbility.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
64
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/testability/pages/Index.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
65
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
66
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/ets/test/Ability.test.ets" desc="DevEco Studio自动生成,不手动修改"/>
|
|
67
|
+
<filteritem type="filename" name="react-native.config.js" desc="原库文件,不手动修改"/>
|
|
68
|
+
<filteritem type="filename" name="LICENSE" desc="版权文件,不添加版权头"/>
|
|
69
|
+
<filteritem type="filename" name="hvigorw" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
70
|
+
<filteritem type="filename" name="hvigorw.bat" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
71
|
+
<filteritem type="filename" name=".npmrc" desc="项目配置文件,不添加版权头"/>
|
|
72
|
+
<filteritem type="filename" name="*.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
|
|
73
|
+
<filteritem type="filename" name="*.d.ts" desc="类型文件,非业务代码,不添加许可证头"/>
|
|
74
|
+
</filefilter>
|
|
75
|
+
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for copyright header policies">
|
|
76
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting.har" desc="项目打包文件" />
|
|
77
|
+
<filteritem type="filepath" name="harmony/react_native_system_setting/src/ohosTest/resources/base/media/icon.png" desc="DevEco Studio自动生成,不手动修改" />
|
|
78
|
+
</filefilter>
|
|
79
|
+
</filefilterlist>
|
|
80
|
+
</oatconfig>
|
|
81
|
+
</configuration>
|
package/RCTSystemSetting.podspec
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
require 'json'
|
|
2
|
-
pjson = JSON.parse(File.read('package.json'))
|
|
3
|
-
|
|
4
|
-
Pod::Spec.new do |s|
|
|
5
|
-
|
|
6
|
-
s.name = "RCTSystemSetting"
|
|
7
|
-
s.version = pjson["version"]
|
|
8
|
-
s.homepage = pjson["homepage"]
|
|
9
|
-
s.summary = pjson["description"]
|
|
10
|
-
s.license = pjson["license"]
|
|
11
|
-
s.author = { "Ninty" => "c19354837@hotmail.com" }
|
|
12
|
-
|
|
13
|
-
s.ios.deployment_target = '7.0'
|
|
14
|
-
|
|
15
|
-
s.source = { :git => "https://github.com/c19354837/react-native-system-setting", :tag => "v#{s.version}" }
|
|
16
|
-
s.source_files = 'ios/*.{h,m}'
|
|
17
|
-
s.preserve_paths = "**/*.js"
|
|
18
|
-
|
|
19
|
-
s.dependency 'React'
|
|
20
|
-
end
|
|
1
|
+
require 'json'
|
|
2
|
+
pjson = JSON.parse(File.read('package.json'))
|
|
3
|
+
|
|
4
|
+
Pod::Spec.new do |s|
|
|
5
|
+
|
|
6
|
+
s.name = "RCTSystemSetting"
|
|
7
|
+
s.version = pjson["version"]
|
|
8
|
+
s.homepage = pjson["homepage"]
|
|
9
|
+
s.summary = pjson["description"]
|
|
10
|
+
s.license = pjson["license"]
|
|
11
|
+
s.author = { "Ninty" => "c19354837@hotmail.com" }
|
|
12
|
+
|
|
13
|
+
s.ios.deployment_target = '7.0'
|
|
14
|
+
|
|
15
|
+
s.source = { :git => "https://github.com/c19354837/react-native-system-setting", :tag => "v#{s.version}" }
|
|
16
|
+
s.source_files = 'ios/*.{h,m}'
|
|
17
|
+
s.preserve_paths = "**/*.js"
|
|
18
|
+
|
|
19
|
+
s.dependency 'React'
|
|
20
|
+
end
|
package/README.OpenSource
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"Name": "react-native-system-setting",
|
|
4
|
-
"License": "MIT",
|
|
5
|
-
"License File": "https://github.com/c19354837/react-native-system-setting/blob/master/LICENSE.md",
|
|
6
|
-
"Version Number": "1.7.6",
|
|
7
|
-
"Owner" : "xiafeng@huawei.com",
|
|
8
|
-
"Upstream URL": "https://github.com/c19354837/react-native-system-setting",
|
|
9
|
-
"Description": "provide some system setting APIs. Volume, brightness, wifi, location, bluetooth, airplane..."
|
|
10
|
-
}
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"Name": "react-native-system-setting",
|
|
4
|
+
"License": "MIT",
|
|
5
|
+
"License File": "https://github.com/c19354837/react-native-system-setting/blob/master/LICENSE.md",
|
|
6
|
+
"Version Number": "1.7.6",
|
|
7
|
+
"Owner" : "xiafeng@huawei.com",
|
|
8
|
+
"Upstream URL": "https://github.com/c19354837/react-native-system-setting",
|
|
9
|
+
"Description": "provide some system setting APIs. Volume, brightness, wifi, location, bluetooth, airplane..."
|
|
10
|
+
}
|
|
11
11
|
]
|
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
# @react-native-ohos/react-native-system-setting
|
|
3
|
-
|
|
4
|
-
本项目基于 [react-native-system-setting](https://github.com/c19354837/react-native-system-setting)
|
|
5
|
-
|
|
6
|
-
## 文档地址 / Documentation URL
|
|
7
|
-
|
|
8
|
-
[中文 / Chinese](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-system-setting.md)
|
|
9
|
-
|
|
10
|
-
[英文 / English](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-system-setting.md)
|
|
11
|
-
|
|
12
|
-
## 请悉知 / Acknowledgements
|
|
13
|
-
|
|
14
|
-
本项目基于 [The MIT License (MIT)](https://github.com/c19354837/react-native-system-setting/blob/master/LICENSE.md) ,请自由地享受和参与开源。
|
|
15
|
-
|
|
1
|
+
|
|
2
|
+
# @react-native-ohos/react-native-system-setting
|
|
3
|
+
|
|
4
|
+
本项目基于 [react-native-system-setting@1.7.6](https://github.com/c19354837/react-native-system-setting/tree/V1.7.6)
|
|
5
|
+
|
|
6
|
+
## 文档地址 / Documentation URL
|
|
7
|
+
|
|
8
|
+
[中文 / Chinese](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-system-setting.md)
|
|
9
|
+
|
|
10
|
+
[英文 / English](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-system-setting.md)
|
|
11
|
+
|
|
12
|
+
## 请悉知 / Acknowledgements
|
|
13
|
+
|
|
14
|
+
本项目基于 [The MIT License (MIT)](https://github.com/c19354837/react-native-system-setting/blob/master/LICENSE.md) ,请自由地享受和参与开源。
|
|
15
|
+
|