@blueid/access-capacitor 0.105.0 → 0.106.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.
- package/dist/esm/BlueCore_pb.d.ts +4 -0
- package/dist/esm/BlueCore_pb.js +1 -0
- package/dist/esm/BlueCore_pb.js.map +1 -1
- package/dist/esm/BlueSDK_pb.d.ts +17 -13
- package/dist/esm/BlueSDK_pb.js +13 -12
- package/dist/esm/BlueSDK_pb.js.map +1 -1
- package/dist/esm/BlueSystem_pb.d.ts +12 -0
- package/dist/esm/BlueSystem_pb.js +3 -0
- package/dist/esm/BlueSystem_pb.js.map +1 -1
- package/dist/plugin.cjs.js +17 -12
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +17 -12
- package/dist/plugin.js.map +1 -1
- package/ios/CBlueIDAccess.xcframework/Info.plist +6 -6
- package/ios/CBlueIDAccess.xcframework/ios-arm64/Headers/core/BlueCore.pb.h +7 -4
- package/ios/CBlueIDAccess.xcframework/ios-arm64/libCBlueIDAccess.a +0 -0
- package/ios/CBlueIDAccess.xcframework/ios-arm64_x86_64-simulator/Headers/core/BlueCore.pb.h +7 -4
- package/ios/CBlueIDAccess.xcframework/ios-arm64_x86_64-simulator/libCBlueIDAccess.a +0 -0
- package/ios/CBlueIDAccess.xcframework/macos-arm64_x86_64/Headers/core/BlueCore.pb.h +7 -4
- package/ios/CBlueIDAccess.xcframework/macos-arm64_x86_64/libCBlueIDAccess.a +0 -0
- package/ios/Plugin/BlueIDAccessSDK/BlueAPIProtocol.swift +9 -2
- package/ios/Plugin/BlueIDAccessSDK/BlueAccess.swift +38 -0
- package/ios/Plugin/BlueIDAccessSDK/BlueCore.pb.swift +17 -0
- package/ios/Plugin/BlueIDAccessSDK/BlueDFU/BlueUpdateAccessDeviceFirmwareCommand.swift +33 -7
- package/ios/Plugin/BlueIDAccessSDK/BlueModal/BlueStepProgressModalView.swift +32 -8
- package/ios/Plugin/BlueIDAccessSDK/BlueSDK.pb.swift +65 -47
- package/ios/Plugin/BlueIDAccessSDK/BlueSystem.pb.swift +51 -0
- package/ios/Plugin/BlueIDAccessSDK/BlueTaskRunner.swift +8 -2
- package/package.json +1 -1
|
@@ -405,6 +405,15 @@ public struct BlueI18n {
|
|
|
405
405
|
/// Clears the value of `syncDevicePushSystemStatusTaskLabel`. Subsequent reads from it will return its default value.
|
|
406
406
|
public mutating func clearSyncDevicePushSystemStatusTaskLabel() {_uniqueStorage()._syncDevicePushSystemStatusTaskLabel = nil}
|
|
407
407
|
|
|
408
|
+
public var syncDeviceCheckLatestFwlabel: String {
|
|
409
|
+
get {return _storage._syncDeviceCheckLatestFwlabel ?? "Check latest firmware"}
|
|
410
|
+
set {_uniqueStorage()._syncDeviceCheckLatestFwlabel = newValue}
|
|
411
|
+
}
|
|
412
|
+
/// Returns true if `syncDeviceCheckLatestFwlabel` has been explicitly set.
|
|
413
|
+
public var hasSyncDeviceCheckLatestFwlabel: Bool {return _storage._syncDeviceCheckLatestFwlabel != nil}
|
|
414
|
+
/// Clears the value of `syncDeviceCheckLatestFwlabel`. Subsequent reads from it will return its default value.
|
|
415
|
+
public mutating func clearSyncDeviceCheckLatestFwlabel() {_uniqueStorage()._syncDeviceCheckLatestFwlabel = nil}
|
|
416
|
+
|
|
408
417
|
public var dfuInProgressTitle: String {
|
|
409
418
|
get {return _storage._dfuInProgressTitle ?? "Update in Progress"}
|
|
410
419
|
set {_uniqueStorage()._dfuInProgressTitle = newValue}
|
|
@@ -486,14 +495,14 @@ public struct BlueI18n {
|
|
|
486
495
|
/// Clears the value of `dfuStartBootloaderLabel`. Subsequent reads from it will return its default value.
|
|
487
496
|
public mutating func clearDfuStartBootloaderLabel() {_uniqueStorage()._dfuStartBootloaderLabel = nil}
|
|
488
497
|
|
|
489
|
-
public var
|
|
490
|
-
get {return _storage.
|
|
491
|
-
set {_uniqueStorage().
|
|
498
|
+
public var dfuInitializationLabel: String {
|
|
499
|
+
get {return _storage._dfuInitializationLabel ?? "DFU initialization"}
|
|
500
|
+
set {_uniqueStorage()._dfuInitializationLabel = newValue}
|
|
492
501
|
}
|
|
493
|
-
/// Returns true if `
|
|
494
|
-
public var
|
|
495
|
-
/// Clears the value of `
|
|
496
|
-
public mutating func
|
|
502
|
+
/// Returns true if `dfuInitializationLabel` has been explicitly set.
|
|
503
|
+
public var hasDfuInitializationLabel: Bool {return _storage._dfuInitializationLabel != nil}
|
|
504
|
+
/// Clears the value of `dfuInitializationLabel`. Subsequent reads from it will return its default value.
|
|
505
|
+
public mutating func clearDfuInitializationLabel() {_uniqueStorage()._dfuInitializationLabel = nil}
|
|
497
506
|
|
|
498
507
|
public var dfuUpdateFwlabel: String {
|
|
499
508
|
get {return _storage._dfuUpdateFwlabel ?? "Update firmware"}
|
|
@@ -1131,18 +1140,19 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1131
1140
|
32: .same(proto: "syncDeviceDeployBlacklistEntriesTaskLabel"),
|
|
1132
1141
|
33: .same(proto: "syncDeviceRetrieveSystemStatusTaskLabel"),
|
|
1133
1142
|
34: .same(proto: "syncDevicePushSystemStatusTaskLabel"),
|
|
1134
|
-
35: .same(proto: "
|
|
1135
|
-
36: .same(proto: "
|
|
1136
|
-
37: .same(proto: "
|
|
1137
|
-
38: .same(proto: "
|
|
1138
|
-
39: .same(proto: "
|
|
1139
|
-
40: .same(proto: "
|
|
1140
|
-
41: .same(proto: "
|
|
1141
|
-
42: .same(proto: "
|
|
1142
|
-
43: .same(proto: "
|
|
1143
|
-
44: .same(proto: "
|
|
1144
|
-
45: .same(proto: "
|
|
1145
|
-
46: .same(proto: "
|
|
1143
|
+
35: .same(proto: "syncDeviceCheckLatestFWLabel"),
|
|
1144
|
+
36: .same(proto: "dfuInProgressTitle"),
|
|
1145
|
+
37: .same(proto: "dfuFailedTitle"),
|
|
1146
|
+
38: .same(proto: "dfuCancellingTitle"),
|
|
1147
|
+
39: .same(proto: "dfuCompletedTitle"),
|
|
1148
|
+
40: .same(proto: "dfuGetAuthenticationTokenTaskLabel"),
|
|
1149
|
+
41: .same(proto: "dfuCheckLatestFWLabel"),
|
|
1150
|
+
42: .same(proto: "dfuDownloadLatestFWLabel"),
|
|
1151
|
+
43: .same(proto: "dfuPrepareUpdateLabel"),
|
|
1152
|
+
44: .same(proto: "dfuStartBootloaderLabel"),
|
|
1153
|
+
45: .same(proto: "dfuInitializationLabel"),
|
|
1154
|
+
46: .same(proto: "dfuUpdateFWLabel"),
|
|
1155
|
+
47: .same(proto: "dfuWaitForDeviceToRestartTaskLabel"),
|
|
1146
1156
|
]
|
|
1147
1157
|
|
|
1148
1158
|
fileprivate class _StorageClass {
|
|
@@ -1180,6 +1190,7 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1180
1190
|
var _syncDeviceDeployBlacklistEntriesTaskLabel: String? = nil
|
|
1181
1191
|
var _syncDeviceRetrieveSystemStatusTaskLabel: String? = nil
|
|
1182
1192
|
var _syncDevicePushSystemStatusTaskLabel: String? = nil
|
|
1193
|
+
var _syncDeviceCheckLatestFwlabel: String? = nil
|
|
1183
1194
|
var _dfuInProgressTitle: String? = nil
|
|
1184
1195
|
var _dfuFailedTitle: String? = nil
|
|
1185
1196
|
var _dfuCancellingTitle: String? = nil
|
|
@@ -1189,7 +1200,7 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1189
1200
|
var _dfuDownloadLatestFwlabel: String? = nil
|
|
1190
1201
|
var _dfuPrepareUpdateLabel: String? = nil
|
|
1191
1202
|
var _dfuStartBootloaderLabel: String? = nil
|
|
1192
|
-
var
|
|
1203
|
+
var _dfuInitializationLabel: String? = nil
|
|
1193
1204
|
var _dfuUpdateFwlabel: String? = nil
|
|
1194
1205
|
var _dfuWaitForDeviceToRestartTaskLabel: String? = nil
|
|
1195
1206
|
|
|
@@ -1232,6 +1243,7 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1232
1243
|
_syncDeviceDeployBlacklistEntriesTaskLabel = source._syncDeviceDeployBlacklistEntriesTaskLabel
|
|
1233
1244
|
_syncDeviceRetrieveSystemStatusTaskLabel = source._syncDeviceRetrieveSystemStatusTaskLabel
|
|
1234
1245
|
_syncDevicePushSystemStatusTaskLabel = source._syncDevicePushSystemStatusTaskLabel
|
|
1246
|
+
_syncDeviceCheckLatestFwlabel = source._syncDeviceCheckLatestFwlabel
|
|
1235
1247
|
_dfuInProgressTitle = source._dfuInProgressTitle
|
|
1236
1248
|
_dfuFailedTitle = source._dfuFailedTitle
|
|
1237
1249
|
_dfuCancellingTitle = source._dfuCancellingTitle
|
|
@@ -1241,7 +1253,7 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1241
1253
|
_dfuDownloadLatestFwlabel = source._dfuDownloadLatestFwlabel
|
|
1242
1254
|
_dfuPrepareUpdateLabel = source._dfuPrepareUpdateLabel
|
|
1243
1255
|
_dfuStartBootloaderLabel = source._dfuStartBootloaderLabel
|
|
1244
|
-
|
|
1256
|
+
_dfuInitializationLabel = source._dfuInitializationLabel
|
|
1245
1257
|
_dfuUpdateFwlabel = source._dfuUpdateFwlabel
|
|
1246
1258
|
_dfuWaitForDeviceToRestartTaskLabel = source._dfuWaitForDeviceToRestartTaskLabel
|
|
1247
1259
|
}
|
|
@@ -1290,6 +1302,7 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1290
1302
|
if _storage._syncDeviceDeployBlacklistEntriesTaskLabel == nil {return false}
|
|
1291
1303
|
if _storage._syncDeviceRetrieveSystemStatusTaskLabel == nil {return false}
|
|
1292
1304
|
if _storage._syncDevicePushSystemStatusTaskLabel == nil {return false}
|
|
1305
|
+
if _storage._syncDeviceCheckLatestFwlabel == nil {return false}
|
|
1293
1306
|
if _storage._dfuInProgressTitle == nil {return false}
|
|
1294
1307
|
if _storage._dfuFailedTitle == nil {return false}
|
|
1295
1308
|
if _storage._dfuCancellingTitle == nil {return false}
|
|
@@ -1299,7 +1312,7 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1299
1312
|
if _storage._dfuDownloadLatestFwlabel == nil {return false}
|
|
1300
1313
|
if _storage._dfuPrepareUpdateLabel == nil {return false}
|
|
1301
1314
|
if _storage._dfuStartBootloaderLabel == nil {return false}
|
|
1302
|
-
if _storage.
|
|
1315
|
+
if _storage._dfuInitializationLabel == nil {return false}
|
|
1303
1316
|
if _storage._dfuUpdateFwlabel == nil {return false}
|
|
1304
1317
|
if _storage._dfuWaitForDeviceToRestartTaskLabel == nil {return false}
|
|
1305
1318
|
return true
|
|
@@ -1348,18 +1361,19 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1348
1361
|
case 32: try { try decoder.decodeSingularStringField(value: &_storage._syncDeviceDeployBlacklistEntriesTaskLabel) }()
|
|
1349
1362
|
case 33: try { try decoder.decodeSingularStringField(value: &_storage._syncDeviceRetrieveSystemStatusTaskLabel) }()
|
|
1350
1363
|
case 34: try { try decoder.decodeSingularStringField(value: &_storage._syncDevicePushSystemStatusTaskLabel) }()
|
|
1351
|
-
case 35: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1352
|
-
case 36: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1353
|
-
case 37: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1354
|
-
case 38: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1355
|
-
case 39: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1356
|
-
case 40: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1357
|
-
case 41: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1358
|
-
case 42: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1359
|
-
case 43: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1360
|
-
case 44: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1361
|
-
case 45: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1362
|
-
case 46: try { try decoder.decodeSingularStringField(value: &_storage.
|
|
1364
|
+
case 35: try { try decoder.decodeSingularStringField(value: &_storage._syncDeviceCheckLatestFwlabel) }()
|
|
1365
|
+
case 36: try { try decoder.decodeSingularStringField(value: &_storage._dfuInProgressTitle) }()
|
|
1366
|
+
case 37: try { try decoder.decodeSingularStringField(value: &_storage._dfuFailedTitle) }()
|
|
1367
|
+
case 38: try { try decoder.decodeSingularStringField(value: &_storage._dfuCancellingTitle) }()
|
|
1368
|
+
case 39: try { try decoder.decodeSingularStringField(value: &_storage._dfuCompletedTitle) }()
|
|
1369
|
+
case 40: try { try decoder.decodeSingularStringField(value: &_storage._dfuGetAuthenticationTokenTaskLabel) }()
|
|
1370
|
+
case 41: try { try decoder.decodeSingularStringField(value: &_storage._dfuCheckLatestFwlabel) }()
|
|
1371
|
+
case 42: try { try decoder.decodeSingularStringField(value: &_storage._dfuDownloadLatestFwlabel) }()
|
|
1372
|
+
case 43: try { try decoder.decodeSingularStringField(value: &_storage._dfuPrepareUpdateLabel) }()
|
|
1373
|
+
case 44: try { try decoder.decodeSingularStringField(value: &_storage._dfuStartBootloaderLabel) }()
|
|
1374
|
+
case 45: try { try decoder.decodeSingularStringField(value: &_storage._dfuInitializationLabel) }()
|
|
1375
|
+
case 46: try { try decoder.decodeSingularStringField(value: &_storage._dfuUpdateFwlabel) }()
|
|
1376
|
+
case 47: try { try decoder.decodeSingularStringField(value: &_storage._dfuWaitForDeviceToRestartTaskLabel) }()
|
|
1363
1377
|
default: break
|
|
1364
1378
|
}
|
|
1365
1379
|
}
|
|
@@ -1474,42 +1488,45 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1474
1488
|
try { if let v = _storage._syncDevicePushSystemStatusTaskLabel {
|
|
1475
1489
|
try visitor.visitSingularStringField(value: v, fieldNumber: 34)
|
|
1476
1490
|
} }()
|
|
1477
|
-
try { if let v = _storage.
|
|
1491
|
+
try { if let v = _storage._syncDeviceCheckLatestFwlabel {
|
|
1478
1492
|
try visitor.visitSingularStringField(value: v, fieldNumber: 35)
|
|
1479
1493
|
} }()
|
|
1480
|
-
try { if let v = _storage.
|
|
1494
|
+
try { if let v = _storage._dfuInProgressTitle {
|
|
1481
1495
|
try visitor.visitSingularStringField(value: v, fieldNumber: 36)
|
|
1482
1496
|
} }()
|
|
1483
|
-
try { if let v = _storage.
|
|
1497
|
+
try { if let v = _storage._dfuFailedTitle {
|
|
1484
1498
|
try visitor.visitSingularStringField(value: v, fieldNumber: 37)
|
|
1485
1499
|
} }()
|
|
1486
|
-
try { if let v = _storage.
|
|
1500
|
+
try { if let v = _storage._dfuCancellingTitle {
|
|
1487
1501
|
try visitor.visitSingularStringField(value: v, fieldNumber: 38)
|
|
1488
1502
|
} }()
|
|
1489
|
-
try { if let v = _storage.
|
|
1503
|
+
try { if let v = _storage._dfuCompletedTitle {
|
|
1490
1504
|
try visitor.visitSingularStringField(value: v, fieldNumber: 39)
|
|
1491
1505
|
} }()
|
|
1492
|
-
try { if let v = _storage.
|
|
1506
|
+
try { if let v = _storage._dfuGetAuthenticationTokenTaskLabel {
|
|
1493
1507
|
try visitor.visitSingularStringField(value: v, fieldNumber: 40)
|
|
1494
1508
|
} }()
|
|
1495
|
-
try { if let v = _storage.
|
|
1509
|
+
try { if let v = _storage._dfuCheckLatestFwlabel {
|
|
1496
1510
|
try visitor.visitSingularStringField(value: v, fieldNumber: 41)
|
|
1497
1511
|
} }()
|
|
1498
|
-
try { if let v = _storage.
|
|
1512
|
+
try { if let v = _storage._dfuDownloadLatestFwlabel {
|
|
1499
1513
|
try visitor.visitSingularStringField(value: v, fieldNumber: 42)
|
|
1500
1514
|
} }()
|
|
1501
|
-
try { if let v = _storage.
|
|
1515
|
+
try { if let v = _storage._dfuPrepareUpdateLabel {
|
|
1502
1516
|
try visitor.visitSingularStringField(value: v, fieldNumber: 43)
|
|
1503
1517
|
} }()
|
|
1504
|
-
try { if let v = _storage.
|
|
1518
|
+
try { if let v = _storage._dfuStartBootloaderLabel {
|
|
1505
1519
|
try visitor.visitSingularStringField(value: v, fieldNumber: 44)
|
|
1506
1520
|
} }()
|
|
1507
|
-
try { if let v = _storage.
|
|
1521
|
+
try { if let v = _storage._dfuInitializationLabel {
|
|
1508
1522
|
try visitor.visitSingularStringField(value: v, fieldNumber: 45)
|
|
1509
1523
|
} }()
|
|
1510
|
-
try { if let v = _storage.
|
|
1524
|
+
try { if let v = _storage._dfuUpdateFwlabel {
|
|
1511
1525
|
try visitor.visitSingularStringField(value: v, fieldNumber: 46)
|
|
1512
1526
|
} }()
|
|
1527
|
+
try { if let v = _storage._dfuWaitForDeviceToRestartTaskLabel {
|
|
1528
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 47)
|
|
1529
|
+
} }()
|
|
1513
1530
|
}
|
|
1514
1531
|
try unknownFields.traverse(visitor: &visitor)
|
|
1515
1532
|
}
|
|
@@ -1553,6 +1570,7 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1553
1570
|
if _storage._syncDeviceDeployBlacklistEntriesTaskLabel != rhs_storage._syncDeviceDeployBlacklistEntriesTaskLabel {return false}
|
|
1554
1571
|
if _storage._syncDeviceRetrieveSystemStatusTaskLabel != rhs_storage._syncDeviceRetrieveSystemStatusTaskLabel {return false}
|
|
1555
1572
|
if _storage._syncDevicePushSystemStatusTaskLabel != rhs_storage._syncDevicePushSystemStatusTaskLabel {return false}
|
|
1573
|
+
if _storage._syncDeviceCheckLatestFwlabel != rhs_storage._syncDeviceCheckLatestFwlabel {return false}
|
|
1556
1574
|
if _storage._dfuInProgressTitle != rhs_storage._dfuInProgressTitle {return false}
|
|
1557
1575
|
if _storage._dfuFailedTitle != rhs_storage._dfuFailedTitle {return false}
|
|
1558
1576
|
if _storage._dfuCancellingTitle != rhs_storage._dfuCancellingTitle {return false}
|
|
@@ -1562,7 +1580,7 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
|
|
|
1562
1580
|
if _storage._dfuDownloadLatestFwlabel != rhs_storage._dfuDownloadLatestFwlabel {return false}
|
|
1563
1581
|
if _storage._dfuPrepareUpdateLabel != rhs_storage._dfuPrepareUpdateLabel {return false}
|
|
1564
1582
|
if _storage._dfuStartBootloaderLabel != rhs_storage._dfuStartBootloaderLabel {return false}
|
|
1565
|
-
if _storage.
|
|
1583
|
+
if _storage._dfuInitializationLabel != rhs_storage._dfuInitializationLabel {return false}
|
|
1566
1584
|
if _storage._dfuUpdateFwlabel != rhs_storage._dfuUpdateFwlabel {return false}
|
|
1567
1585
|
if _storage._dfuWaitForDeviceToRestartTaskLabel != rhs_storage._dfuWaitForDeviceToRestartTaskLabel {return false}
|
|
1568
1586
|
return true
|
|
@@ -791,6 +791,33 @@ public struct BlueSystemStatus {
|
|
|
791
791
|
/// Clears the value of `lock`. Subsequent reads from it will return its default value.
|
|
792
792
|
public mutating func clearLock() {_uniqueStorage()._lock = nil}
|
|
793
793
|
|
|
794
|
+
public var applicationVersionTest: UInt32 {
|
|
795
|
+
get {return _storage._applicationVersionTest ?? 0}
|
|
796
|
+
set {_uniqueStorage()._applicationVersionTest = newValue}
|
|
797
|
+
}
|
|
798
|
+
/// Returns true if `applicationVersionTest` has been explicitly set.
|
|
799
|
+
public var hasApplicationVersionTest: Bool {return _storage._applicationVersionTest != nil}
|
|
800
|
+
/// Clears the value of `applicationVersionTest`. Subsequent reads from it will return its default value.
|
|
801
|
+
public mutating func clearApplicationVersionTest() {_uniqueStorage()._applicationVersionTest = nil}
|
|
802
|
+
|
|
803
|
+
public var newFirmwareVersionAvailable: Bool {
|
|
804
|
+
get {return _storage._newFirmwareVersionAvailable ?? false}
|
|
805
|
+
set {_uniqueStorage()._newFirmwareVersionAvailable = newValue}
|
|
806
|
+
}
|
|
807
|
+
/// Returns true if `newFirmwareVersionAvailable` has been explicitly set.
|
|
808
|
+
public var hasNewFirmwareVersionAvailable: Bool {return _storage._newFirmwareVersionAvailable != nil}
|
|
809
|
+
/// Clears the value of `newFirmwareVersionAvailable`. Subsequent reads from it will return its default value.
|
|
810
|
+
public mutating func clearNewFirmwareVersionAvailable() {_uniqueStorage()._newFirmwareVersionAvailable = nil}
|
|
811
|
+
|
|
812
|
+
public var newTestFirmwareVersionAvailable: Bool {
|
|
813
|
+
get {return _storage._newTestFirmwareVersionAvailable ?? false}
|
|
814
|
+
set {_uniqueStorage()._newTestFirmwareVersionAvailable = newValue}
|
|
815
|
+
}
|
|
816
|
+
/// Returns true if `newTestFirmwareVersionAvailable` has been explicitly set.
|
|
817
|
+
public var hasNewTestFirmwareVersionAvailable: Bool {return _storage._newTestFirmwareVersionAvailable != nil}
|
|
818
|
+
/// Clears the value of `newTestFirmwareVersionAvailable`. Subsequent reads from it will return its default value.
|
|
819
|
+
public mutating func clearNewTestFirmwareVersionAvailable() {_uniqueStorage()._newTestFirmwareVersionAvailable = nil}
|
|
820
|
+
|
|
794
821
|
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
795
822
|
|
|
796
823
|
public init() {}
|
|
@@ -1888,6 +1915,9 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1888
1915
|
7: .same(proto: "localTime"),
|
|
1889
1916
|
8: .same(proto: "settings"),
|
|
1890
1917
|
9: .same(proto: "lock"),
|
|
1918
|
+
10: .same(proto: "applicationVersionTest"),
|
|
1919
|
+
11: .same(proto: "newFirmwareVersionAvailable"),
|
|
1920
|
+
12: .same(proto: "newTestFirmwareVersionAvailable"),
|
|
1891
1921
|
]
|
|
1892
1922
|
|
|
1893
1923
|
fileprivate class _StorageClass {
|
|
@@ -1900,6 +1930,9 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1900
1930
|
var _localTime: BlueLocalTimestamp? = nil
|
|
1901
1931
|
var _settings: BlueSystemSettings? = nil
|
|
1902
1932
|
var _lock: BlueLockStatus? = nil
|
|
1933
|
+
var _applicationVersionTest: UInt32? = nil
|
|
1934
|
+
var _newFirmwareVersionAvailable: Bool? = nil
|
|
1935
|
+
var _newTestFirmwareVersionAvailable: Bool? = nil
|
|
1903
1936
|
|
|
1904
1937
|
static let defaultInstance = _StorageClass()
|
|
1905
1938
|
|
|
@@ -1915,6 +1948,9 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1915
1948
|
_localTime = source._localTime
|
|
1916
1949
|
_settings = source._settings
|
|
1917
1950
|
_lock = source._lock
|
|
1951
|
+
_applicationVersionTest = source._applicationVersionTest
|
|
1952
|
+
_newFirmwareVersionAvailable = source._newFirmwareVersionAvailable
|
|
1953
|
+
_newTestFirmwareVersionAvailable = source._newTestFirmwareVersionAvailable
|
|
1918
1954
|
}
|
|
1919
1955
|
}
|
|
1920
1956
|
|
|
@@ -1959,6 +1995,9 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1959
1995
|
case 7: try { try decoder.decodeSingularMessageField(value: &_storage._localTime) }()
|
|
1960
1996
|
case 8: try { try decoder.decodeSingularMessageField(value: &_storage._settings) }()
|
|
1961
1997
|
case 9: try { try decoder.decodeSingularMessageField(value: &_storage._lock) }()
|
|
1998
|
+
case 10: try { try decoder.decodeSingularUInt32Field(value: &_storage._applicationVersionTest) }()
|
|
1999
|
+
case 11: try { try decoder.decodeSingularBoolField(value: &_storage._newFirmwareVersionAvailable) }()
|
|
2000
|
+
case 12: try { try decoder.decodeSingularBoolField(value: &_storage._newTestFirmwareVersionAvailable) }()
|
|
1962
2001
|
default: break
|
|
1963
2002
|
}
|
|
1964
2003
|
}
|
|
@@ -1998,6 +2037,15 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1998
2037
|
try { if let v = _storage._lock {
|
|
1999
2038
|
try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
|
|
2000
2039
|
} }()
|
|
2040
|
+
try { if let v = _storage._applicationVersionTest {
|
|
2041
|
+
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 10)
|
|
2042
|
+
} }()
|
|
2043
|
+
try { if let v = _storage._newFirmwareVersionAvailable {
|
|
2044
|
+
try visitor.visitSingularBoolField(value: v, fieldNumber: 11)
|
|
2045
|
+
} }()
|
|
2046
|
+
try { if let v = _storage._newTestFirmwareVersionAvailable {
|
|
2047
|
+
try visitor.visitSingularBoolField(value: v, fieldNumber: 12)
|
|
2048
|
+
} }()
|
|
2001
2049
|
}
|
|
2002
2050
|
try unknownFields.traverse(visitor: &visitor)
|
|
2003
2051
|
}
|
|
@@ -2016,6 +2064,9 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
2016
2064
|
if _storage._localTime != rhs_storage._localTime {return false}
|
|
2017
2065
|
if _storage._settings != rhs_storage._settings {return false}
|
|
2018
2066
|
if _storage._lock != rhs_storage._lock {return false}
|
|
2067
|
+
if _storage._applicationVersionTest != rhs_storage._applicationVersionTest {return false}
|
|
2068
|
+
if _storage._newFirmwareVersionAvailable != rhs_storage._newFirmwareVersionAvailable {return false}
|
|
2069
|
+
if _storage._newTestFirmwareVersionAvailable != rhs_storage._newTestFirmwareVersionAvailable {return false}
|
|
2019
2070
|
return true
|
|
2020
2071
|
}
|
|
2021
2072
|
if !storagesAreEqual {return false}
|
|
@@ -26,8 +26,8 @@ enum BlueTaskResult {
|
|
|
26
26
|
|
|
27
27
|
public class BlueTask {
|
|
28
28
|
let id: AnyHashable
|
|
29
|
-
let label: String
|
|
30
29
|
|
|
30
|
+
var label: CurrentValueSubject<String, Never>
|
|
31
31
|
var failable: Bool = false
|
|
32
32
|
var result: Any? = nil
|
|
33
33
|
var error: Error? = nil
|
|
@@ -48,7 +48,7 @@ public class BlueTask {
|
|
|
48
48
|
handler: @escaping (BlueTask, BlueSerialTaskRunner) async throws -> BlueTaskResult
|
|
49
49
|
) {
|
|
50
50
|
self.id = id
|
|
51
|
-
self.label = label
|
|
51
|
+
self.label = CurrentValueSubject(label)
|
|
52
52
|
self.failable = failable
|
|
53
53
|
self.error = error
|
|
54
54
|
self.status = .init(status)
|
|
@@ -76,6 +76,12 @@ public class BlueTask {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
func updateLabel(_ label: String) {
|
|
80
|
+
blueRunInMainThread {
|
|
81
|
+
self.label.send(label)
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
79
85
|
func cancel() {
|
|
80
86
|
self.cancelHandler?()
|
|
81
87
|
}
|