From 5a8a0c65de4c8dc7ee255806c288b4361010d137 Mon Sep 17 00:00:00 2001 From: PuPha Date: Thu, 5 Dec 2024 10:03:53 +0700 Subject: [PATCH 1/2] Update --- ios/Runner/SystemChannelHandler 2.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ios/Runner/SystemChannelHandler 2.swift b/ios/Runner/SystemChannelHandler 2.swift index 495948363..9ed1e0a49 100644 --- a/ios/Runner/SystemChannelHandler 2.swift +++ b/ios/Runner/SystemChannelHandler 2.swift @@ -99,7 +99,7 @@ class SystemChannelHandler: NSObject { } guard let array = dataTypeRef as? Array> else { - return [] + return [:] } for item in array { @@ -115,14 +115,14 @@ class SystemChannelHandler: NSObject { let dataString = String(data: data, encoding: .utf8), let seed = try? Seed(urString: dataString) { var mnemonicWords = [seed.passphrase ?? ""] - mnemonicWords.append(contentsOf: Keys.mnemonic(seed.data)) +// mnemonicWords.append(contentsOf: Keys.mnemonic(seed.data)) mnemonicMap[personaUUIDString] = mnemonicWords } } } - return mnenmonicMap + return mnemonicMap } private func buildKeyAttr(prefix: String?, key: String) -> String { @@ -136,9 +136,9 @@ class SystemChannelHandler: NSObject { class Key { - static func mnemonic(_ entropy: Data) -> BIP39Mnemonic? { - let bip39entropy = BIP39Mnemonic.Entropy(entropy) - - return try? BIP39Mnemonic(entropy: bip39entropy) - } +// static func mnemonic(_ entropy: Data) -> BIP39Mnemonic? { +// let bip39entropy = BIP39Mnemonic.Entropy(entropy) +// +// return try? BIP39Mnemonic(entropy: bip39entropy) +// } } From 724e013d7c98bb60ead8ec6b8b2dd2d3f09a8012 Mon Sep 17 00:00:00 2001 From: PuPha Date: Thu, 5 Dec 2024 11:06:24 +0700 Subject: [PATCH 2/2] Add Keychain shared --- ios/Runner/Runner.entitlements | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements index dec9fd5c1..879424b08 100644 --- a/ios/Runner/Runner.entitlements +++ b/ios/Runner/Runner.entitlements @@ -9,5 +9,10 @@ applinks:feralfile-app-alternate.app.link feralfile-app-alternate.test-app.link + keychain-access-groups + + $(AppIdentifierPrefix)com.bitmark.autonomy-wallet.inhouse.keychain + $(AppIdentifierPrefix)com.bitmark.autonomywallet.keychain +