From e3bacc928b852ba67f518e705eee65f83d2e986d Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Tue, 28 May 2024 15:32:14 +0100 Subject: [PATCH] - wire up new private key import option - add option to wallet management flow as well - update images --- .../xcshareddata/swiftpm/Package.resolved | 6 +- .../Localization/en.lproj/Localizable.strings | 1 + .../Modules/Home/AddWalletViewModel.swift | 3 +- .../Modules/Home/Base.lproj/Home.storyboard | 33 ++++--- .../AlreadyHaveWalletViewController.swift | 2 +- .../Base.lproj/Onboarding.storyboard | 85 +++++-------------- .../ConfirmPasscodeViewController.swift | 3 +- .../ImportPrivateKeyViewController.swift | 56 ++++++------ 8 files changed, 77 insertions(+), 112 deletions(-) diff --git a/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 06a202c3..4e5f67a9 100644 --- a/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Kukai Mobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -70,7 +70,7 @@ "location" : "https://github.com/kukai-wallet/kukai-core-swift", "state" : { "branch" : "develop", - "revision" : "3f3702ebaf7c3ed07cc1dd89bdc5b4f5450241fc" + "revision" : "d4c59332acc9d6d32ae45e5d4cbf441a0e9e1b46" } }, { @@ -78,8 +78,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/kukai-wallet/kukai-crypto-swift", "state" : { - "revision" : "203b66175e233ecd2abb7ddb062a49b0301b5616", - "version" : "1.0.22" + "revision" : "757c1975adb830d158eb50afa3776cf2c5eb7245", + "version" : "1.0.23" } }, { diff --git a/Kukai Mobile/Localization/en.lproj/Localizable.strings b/Kukai Mobile/Localization/en.lproj/Localizable.strings index 2c80ad88..57d6746b 100644 --- a/Kukai Mobile/Localization/en.lproj/Localizable.strings +++ b/Kukai Mobile/Localization/en.lproj/Localizable.strings @@ -53,6 +53,7 @@ "error-fetching-domains"="Encountered an error checking for tezos domains"; "error-unsupported-wallet-type"="This type of wallet doesn't support this feature"; "error-invalid-private-key"="Invalid private key. Please check you have the correct details and try again"; +"error-invalid-private-key-password"="This private key is encrypted, you must supply the password you used to encryt it"; "error-funds-body-wc2"="Balance for address %@, is %@ and the required balance to pay for this transaction is %@"; "error-unknwon-wc2"="Unable to respond to Wallet Connect"; diff --git a/Kukai Mobile/Modules/Home/AddWalletViewModel.swift b/Kukai Mobile/Modules/Home/AddWalletViewModel.swift index 745474e4..047e3054 100644 --- a/Kukai Mobile/Modules/Home/AddWalletViewModel.swift +++ b/Kukai Mobile/Modules/Home/AddWalletViewModel.swift @@ -51,7 +51,8 @@ class AddWalletViewModel: ViewModel, UITableViewDiffableDataSourceHandler { ], [ AddCellData(image: UIImage(named: "WalletSocial"), title: "Use Social", subtitle: "Sign in with your preferred social account", isExpandable: false, isTopLevel: false, option: "social"), - AddCellData(image: UIImage(named: "WalletHD"), title: "Restore with Recovery Phrase", subtitle: "Import accounts using your recovery phrase from Kukai or another wallet", isExpandable: false, isTopLevel: false, option: "import"), + AddCellData(image: UIImage(named: "WalletRestore"), title: "Restore with Recovery Phrase", subtitle: "Import accounts using your recovery phrase from Kukai or another wallet", isExpandable: false, isTopLevel: false, option: "import"), + AddCellData(image: UIImage(named: "WalletHD"), title: "Restore with Private Key", subtitle: "Import a wallet from a private key", isExpandable: false, isTopLevel: false, option: "private-key"), AddCellData(image: UIImage(named: "WalletWatch"), title: "Watch a Tezos Address", subtitle: "Watch a public address or .tez domain", isExpandable: false, isTopLevel: false, option: "watch") ] ] diff --git a/Kukai Mobile/Modules/Home/Base.lproj/Home.storyboard b/Kukai Mobile/Modules/Home/Base.lproj/Home.storyboard index 45c87599..4979a6c8 100644 --- a/Kukai Mobile/Modules/Home/Base.lproj/Home.storyboard +++ b/Kukai Mobile/Modules/Home/Base.lproj/Home.storyboard @@ -212,13 +212,13 @@