@blueid/access-capacitor 0.90.0 → 0.91.0

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.
@@ -10,18 +10,15 @@
10
10
  <key>HeadersPath</key>
11
11
  <string>Headers</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64_x86_64-simulator</string>
13
+ <string>ios-arm64</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>libCBlueIDAccess.a</string>
16
16
  <key>SupportedArchitectures</key>
17
17
  <array>
18
18
  <string>arm64</string>
19
- <string>x86_64</string>
20
19
  </array>
21
20
  <key>SupportedPlatform</key>
22
21
  <string>ios</string>
23
- <key>SupportedPlatformVariant</key>
24
- <string>simulator</string>
25
22
  </dict>
26
23
  <dict>
27
24
  <key>BinaryPath</key>
@@ -29,15 +26,16 @@
29
26
  <key>HeadersPath</key>
30
27
  <string>Headers</string>
31
28
  <key>LibraryIdentifier</key>
32
- <string>ios-arm64</string>
29
+ <string>macos-arm64_x86_64</string>
33
30
  <key>LibraryPath</key>
34
31
  <string>libCBlueIDAccess.a</string>
35
32
  <key>SupportedArchitectures</key>
36
33
  <array>
37
34
  <string>arm64</string>
35
+ <string>x86_64</string>
38
36
  </array>
39
37
  <key>SupportedPlatform</key>
40
- <string>ios</string>
38
+ <string>macos</string>
41
39
  </dict>
42
40
  <dict>
43
41
  <key>BinaryPath</key>
@@ -45,7 +43,7 @@
45
43
  <key>HeadersPath</key>
46
44
  <string>Headers</string>
47
45
  <key>LibraryIdentifier</key>
48
- <string>macos-arm64_x86_64</string>
46
+ <string>ios-arm64_x86_64-simulator</string>
49
47
  <key>LibraryPath</key>
50
48
  <string>libCBlueIDAccess.a</string>
51
49
  <key>SupportedArchitectures</key>
@@ -54,7 +52,9 @@
54
52
  <string>x86_64</string>
55
53
  </array>
56
54
  <key>SupportedPlatform</key>
57
- <string>macos</string>
55
+ <string>ios</string>
56
+ <key>SupportedPlatformVariant</key>
57
+ <string>simulator</string>
58
58
  </dict>
59
59
  </array>
60
60
  <key>CFBundlePackageType</key>
@@ -351,6 +351,12 @@ internal class BlueDeviceBluetooth: BlueDevice, CBPeripheralDelegate {
351
351
 
352
352
  try blueDisconnectBluetoothPeripheral(peripheral)
353
353
 
354
+ // Remove all signals in case of disconnection, as some of them may not have been properly removed in the event of an abnormal disconnection, such as a timeout.
355
+ if (peripheral.state == .disconnected) {
356
+ blueRemoveSignal(group: "blePeripheral", name: "didUpdateValueFor")
357
+ blueRemoveSignal(group: "blePeripheral", name: "didWriteValueFor")
358
+ }
359
+
354
360
  blueNotifyUpdatedDevice(self)
355
361
  }
356
362
 
@@ -404,7 +404,7 @@ public func blueTerminalRun<HandlerResult>(
404
404
  } catch let error {
405
405
  blueActiveDevice = nil
406
406
 
407
- if !wasConnected && device.isConnected {
407
+ if !wasConnected {
408
408
  do {
409
409
  try device.disconnect()
410
410
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-capacitor",
3
- "version": "0.90.0",
3
+ "version": "0.91.0",
4
4
  "description": "Capacitor JS plugin for the BlueID Access SDK",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",