@blueid/access-capacitor 0.89.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.
@@ -36,7 +36,7 @@ public struct BlueOssSidCreateMobileCommand: BlueCommand {
36
36
 
37
37
  ossSidMobileOutputSizeMutable.pointee = ossSidMobileOutputSize
38
38
 
39
- _ = try blueClibErrorCheck(blueOssSid_GetStorage_Ext(BlueTransponderType_t(UInt32(BlueTransponderType.mobileTransponder.rawValue)), pStorage, nil, 0, ossSidMobileOutputPtr, ossSidMobileOutputSizeMutable))
39
+ _ = try blueClibErrorCheck(blueOssSid_GetStorage_Ext(BlueTransponderType_t(UInt8(BlueTransponderType.mobileTransponder.rawValue)), pStorage, nil, 0, ossSidMobileOutputPtr, ossSidMobileOutputSizeMutable))
40
40
 
41
41
  // Clear configuration as we always want to use the default one for mobile
42
42
  var usedProvisioningData = provisioningData
@@ -64,7 +64,7 @@ fileprivate func executeOssSidNfc<ResultType>(settings: BlueOssSidSettings?, suc
64
64
  }
65
65
 
66
66
  try blueClibFunctionIn(message: settingsInUse, { (dataPtr, dataSize) in
67
- return blueOssSid_GetStorage_Ext(BlueTransponderType_t(UInt32(transponderType.rawValue)), pStorage, dataPtr, dataSize, nil, nil)
67
+ return blueOssSid_GetStorage_Ext(BlueTransponderType_t(UInt8(transponderType.rawValue)), pStorage, dataPtr, dataSize, nil, nil)
68
68
  })
69
69
 
70
70
  result = try handler(pStorage)
@@ -109,7 +109,7 @@ public struct BlueOssSidGetStorageProfileCommand: BlueCommand {
109
109
  pStorage.deallocate()
110
110
  }
111
111
 
112
- _ = try blueClibErrorCheck(blueOssSid_GetStorage(BlueTransponderType_t(UInt32(transponderType.rawValue)), pStorage, nil, nil, nil))
112
+ _ = try blueClibErrorCheck(blueOssSid_GetStorage(BlueTransponderType_t(UInt8(transponderType.rawValue)), pStorage, nil, nil, nil))
113
113
 
114
114
  if let provisioningConfig = provisioningConfig {
115
115
  return try blueClibFunctionInOut(message: provisioningConfig, { (configDataPtr, configDataSize, dataPtr, dataSize) in
@@ -61,7 +61,7 @@ public struct BlueOssSoCreateMobileCommand: BlueCommand {
61
61
 
62
62
  ossSoMobileOutputSizeMutable.pointee = ossSoMobileOutputSize
63
63
 
64
- _ = try blueClibErrorCheck(blueOssSo_GetStorage_Ext(BlueTransponderType_t(UInt32(BlueTransponderType.mobileTransponder.rawValue)), pStorage, nil, 0, ossSoMobileOutputPtr, ossSoMobileOutputSizeMutable))
64
+ _ = try blueClibErrorCheck(blueOssSo_GetStorage_Ext(BlueTransponderType_t(UInt8(BlueTransponderType.mobileTransponder.rawValue)), pStorage, nil, 0, ossSoMobileOutputPtr, ossSoMobileOutputSizeMutable))
65
65
 
66
66
  // Clear configuration as we always want to use the default one for mobile
67
67
  var usedProvisioningData = provisioningData
@@ -100,7 +100,7 @@ fileprivate func executeOssSoNfc<ResultType>(
100
100
  }
101
101
 
102
102
  try blueClibFunctionIn(message: settingsInUse, { (dataPtr, dataSize) in
103
- return blueOssSo_GetStorage_Ext(BlueTransponderType_t(UInt32(transponderType.rawValue)), pStorage, dataPtr, dataSize, nil, nil)
103
+ return blueOssSo_GetStorage_Ext(BlueTransponderType_t(UInt8(transponderType.rawValue)), pStorage, dataPtr, dataSize, nil, nil)
104
104
  })
105
105
 
106
106
  result = try handler(pStorage)
@@ -147,7 +147,7 @@ public struct BlueOssSoGetStorageProfileCommand: BlueCommand {
147
147
  pStorage.deallocate()
148
148
  }
149
149
 
150
- _ = try blueClibErrorCheck(blueOssSo_GetStorage(BlueTransponderType_t(UInt32(transponderType.rawValue)), pStorage, nil, nil, nil))
150
+ _ = try blueClibErrorCheck(blueOssSo_GetStorage(BlueTransponderType_t(UInt8(transponderType.rawValue)), pStorage, nil, nil, nil))
151
151
 
152
152
  if let provisioningConfig = provisioningConfig {
153
153
  return try blueClibFunctionInOut(message: provisioningConfig, { (configDataPtr, configDataSize, dataPtr, dataSize) in
@@ -535,7 +535,7 @@ public class BlueRefreshOssSoCredentialsCommand: BlueAPIAsyncCommand {
535
535
  let ossSoSettings = try blueGetOssSoSettings(credentialID: credential.credentialID.id)
536
536
 
537
537
  try blueClibFunctionIn(message: ossSoSettings, { (dataPtr, dataSize) in
538
- return blueOssSo_GetStorage_Ext(BlueTransponderType_t(UInt32(transponderType.rawValue)), pStorage, dataPtr, dataSize, nil, nil)
538
+ return blueOssSo_GetStorage_Ext(BlueTransponderType_t(UInt8(transponderType.rawValue)), pStorage, dataPtr, dataSize, nil, nil)
539
539
  })
540
540
 
541
541
  let isProvisioned = blueOssSo_IsProvisioned(pStorage) == BlueReturnCode_Ok
@@ -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.89.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",