react-native-ble-manager 8.4.1 → 8.4.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.
@@ -21,6 +21,11 @@ def safeExtGet(prop, fallback) {
21
21
 
22
22
  android {
23
23
  compileSdkVersion safeExtGet("compileSdkVersion", 30)
24
+
25
+ compileOptions {
26
+ sourceCompatibility JavaVersion.VERSION_1_8
27
+ targetCompatibility JavaVersion.VERSION_1_8
28
+ }
24
29
 
25
30
  defaultConfig {
26
31
  minSdkVersion safeExtGet("minSdkVersion", 21)
@@ -331,8 +331,11 @@ public class Peripheral extends BluetoothGattCallback {
331
331
  readCallback, registerNotifyCallback, requestMTUCallback);
332
332
  for (Callback currentCallback : callbacks) {
333
333
  if (currentCallback != null) {
334
- currentCallback.invoke("Device disconnected");
335
- }
334
+ try {
335
+ currentCallback.invoke("Device disconnected");
336
+ } catch (Exception e) {
337
+ e.printStackTrace();
338
+ } }
336
339
  }
337
340
  if (connectCallback != null) {
338
341
  connectCallback.invoke("Connection error");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ble-manager",
3
- "version": "8.4.1",
3
+ "version": "8.4.3",
4
4
  "description": "A BLE module for react native.",
5
5
  "main": "BleManager",
6
6
  "types": "./index.d.ts",