@onekeyfe/hd-transport-react-native 0.2.6 → 0.2.7
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/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -219,7 +219,7 @@ class ReactNativeBleTransport {
|
|
|
219
219
|
reject(error);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
if (reactNative.Platform.OS === 'android') {
|
|
222
|
+
if (reactNative.Platform.OS === 'android' && reactNative.Platform.Version >= 31) {
|
|
223
223
|
this.Log.debug('requesting permissions, please wait...');
|
|
224
224
|
const resultConnect = yield reactNative.PermissionsAndroid.requestMultiple([
|
|
225
225
|
reactNative.PermissionsAndroid.PERMISSIONS.BLUETOOTH_CONNECT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-react-native",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"lint:fix": "eslint . --fix"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@onekeyfe/hd-shared": "^0.2.
|
|
23
|
-
"@onekeyfe/hd-transport": "^0.2.
|
|
22
|
+
"@onekeyfe/hd-shared": "^0.2.7",
|
|
23
|
+
"@onekeyfe/hd-transport": "^0.2.7",
|
|
24
24
|
"react-native-ble-manager": "^8.1.0",
|
|
25
25
|
"react-native-ble-plx": "^2.0.3"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "41a6913cc49d8b0fc0df0edcfe68dc5f91acb5a4"
|
|
28
28
|
}
|
package/src/index.ts
CHANGED
|
@@ -103,7 +103,7 @@ export default class ReactNativeBleTransport {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
if (Platform.OS === 'android') {
|
|
106
|
+
if (Platform.OS === 'android' && Platform.Version >= 31) {
|
|
107
107
|
this.Log.debug('requesting permissions, please wait...');
|
|
108
108
|
|
|
109
109
|
const resultConnect = await PermissionsAndroid.requestMultiple([
|