diff --git a/kebabpos/KebabPos/Logics/KebabApp+SPIConnectionDelegate.swift b/kebabpos/KebabPos/Logics/KebabApp+SPIConnectionDelegate.swift index c85b0a8..881f572 100644 --- a/kebabpos/KebabPos/Logics/KebabApp+SPIConnectionDelegate.swift +++ b/kebabpos/KebabPos/Logics/KebabApp+SPIConnectionDelegate.swift @@ -29,7 +29,8 @@ extension KebabApp: SPIDelegate { func spi(_ spi: SPIClient!, secretsChanged secrets: SPISecrets?, state: SPIState!) { SPILogMsg("secrets \(state)") if let secrets = secrets { - SPILogMsg("\n\n\n# --------- I GOT NEW SECRETS -----------") + SPILogMsg("\n\n") + SPILogMsg("# ----------- I GOT NEW SECRETS -----------") SPILogMsg("# ---------- PERSIST THEM SAFELY ----------") SPILogMsg("# \(secrets.encKey):\(secrets.hmacKey)") SPILogMsg("# -----------------------------------------") @@ -38,8 +39,9 @@ extension KebabApp: SPIDelegate { settings.encriptionKey = secrets.encKey! settings.hmacKey = secrets.hmacKey! } else { - SPILogMsg("\n\n\n# --------- THE SECRETS HAVE BEEN VOIDED -----------") - SPILogMsg("# ---------- CONSIDER ME UNPAIRED ----------") + SPILogMsg("\n\n") + SPILogMsg("# ------ THE SECRETS HAVE BEEN VOIDED -----") + SPILogMsg("# ---------- CONSIDER ME UNPAIRED ---------") SPILogMsg("# -----------------------------------------") settings.encriptionKey = "" diff --git a/kebabpos/Podfile.lock b/kebabpos/Podfile.lock index 6392de8..66ed8b6 100644 --- a/kebabpos/Podfile.lock +++ b/kebabpos/Podfile.lock @@ -20,7 +20,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: SPIClient-iOS: - :commit: 38b53c5f4cb74b42f8518a23220cc2cedaec7ebc + :commit: 60671c34a9b00934d9805dad2af12ebe9f5cda22 :git: https://github.com/AssemblyPayments/spi-client-ios.git SPEC CHECKSUMS: diff --git a/kebabpos/Pods/Manifest.lock b/kebabpos/Pods/Manifest.lock index 6392de8..66ed8b6 100644 --- a/kebabpos/Pods/Manifest.lock +++ b/kebabpos/Pods/Manifest.lock @@ -20,7 +20,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: SPIClient-iOS: - :commit: 38b53c5f4cb74b42f8518a23220cc2cedaec7ebc + :commit: 60671c34a9b00934d9805dad2af12ebe9f5cda22 :git: https://github.com/AssemblyPayments/spi-client-ios.git SPEC CHECKSUMS: diff --git a/kebabpos/Pods/SPIClient-iOS/Library/SPIClient.m b/kebabpos/Pods/SPIClient-iOS/Library/SPIClient.m index b20f269..3b4b793 100644 --- a/kebabpos/Pods/SPIClient-iOS/Library/SPIClient.m +++ b/kebabpos/Pods/SPIClient-iOS/Library/SPIClient.m @@ -286,12 +286,9 @@ - (void)pairingCancel { } - (BOOL)unpair { - if (_state.status == SPIStatusUnpaired || _state.flow != SPIFlowIdle) return false; - - dispatch_async(self.queue, ^{ - [self send:[[[SPIDropKeysRequest alloc] init] toMessage]]; - }); + if (self.state.status == SPIStatusUnpaired || self.state.flow != SPIFlowIdle) return false; + [self send:[[[SPIDropKeysRequest alloc] init] toMessage]]; [self doUnpair]; return true;