react-native-ble-manager 11.5.5 → 11.5.6

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.
@@ -1,11 +1,20 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="it.innove">
2
+ package="it.innove"
3
+ xmlns:tools="http://schemas.android.com/tools">
3
4
 
4
- <uses-permission android:name="android.permission.BLUETOOTH" />
5
- <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
6
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
7
-
8
- <uses-feature
9
- android:name="android.hardware.bluetooth_le"
10
- android:required="false" />
5
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
6
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
7
+ <uses-permission
8
+ android:name="android.permission.BLUETOOTH"
9
+ android:maxSdkVersion="30" />
10
+ <uses-permission
11
+ android:name="android.permission.BLUETOOTH_ADMIN"
12
+ android:maxSdkVersion="30" />
13
+ <uses-permission
14
+ android:name="android.permission.BLUETOOTH_SCAN"
15
+ android:usesPermissionFlags="neverForLocation"
16
+ tools:targetApi="s" />
17
+ <uses-permission
18
+ android:name="android.permission.BLUETOOTH_CONNECT"
19
+ tools:targetApi="s" />
11
20
  </manifest>
@@ -1025,7 +1025,7 @@ class BleManager: RCTEventEmitter, CBCentralManagerDelegate, CBPeripheralDelegat
1025
1025
 
1026
1026
  if let error = error {
1027
1027
  NSLog("Error reading descriptor value for \(descriptor.uuid) on characteristic \(descriptor.characteristic!.uuid) :\(error)")
1028
- invokeAndClearDictionary(&readDescriptorCallbacks, withKey: key, usingParameters: [error, NSNull()])
1028
+ invokeAndClearDictionary(&readDescriptorCallbacks, withKey: key, usingParameters: [error.localizedDescription, NSNull()])
1029
1029
  return
1030
1030
  }
1031
1031
 
@@ -1073,7 +1073,7 @@ class BleManager: RCTEventEmitter, CBCentralManagerDelegate, CBPeripheralDelegat
1073
1073
 
1074
1074
  if let error = error {
1075
1075
  NSLog("Error \(characteristic.uuid) :\(error)")
1076
- invokeAndClearDictionary(&readCallbacks, withKey: key, usingParameters: [error, NSNull()])
1076
+ invokeAndClearDictionary(&readCallbacks, withKey: key, usingParameters: [error.localizedDescription, NSNull()])
1077
1077
  return
1078
1078
  }
1079
1079
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ble-manager",
3
- "version": "11.5.5",
3
+ "version": "11.5.6",
4
4
  "description": "A BLE module for react native.",
5
5
  "repository": {
6
6
  "type": "git",