Skip to content

Commit

Permalink
- Additional fix regarding CBW-584: Update text and buttons on the "s…
Browse files Browse the repository at this point in the history
…uggest update" alert pointing from Legacy to new wallet
  • Loading branch information
alexandardimov committed Mar 24, 2023
1 parent 337a498 commit bceeb1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ConcordiumWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6708,7 +6708,7 @@
CODE_SIGN_ENTITLEMENTS = "ConcordiumWallet/Resources/Entitlements/Concordium ID.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 60;
CURRENT_PROJECT_VERSION = 61;
DEVELOPMENT_TEAM = K762RM4LQ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "ConcordiumWallet/Resources/ConcordiumWalletTestNet-Info.plist";
Expand Down Expand Up @@ -6742,7 +6742,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "ConcordiumWallet/Resources/Entitlements/Concordium ID.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 60;
CURRENT_PROJECT_VERSION = 61;
DEVELOPMENT_TEAM = K762RM4LQ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "ConcordiumWallet/Resources/ConcordiumWalletTestNet-Info.plist";
Expand Down Expand Up @@ -6775,7 +6775,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = ConcordiumWallet/Resources/Entitlements/ProdMainNet.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 60;
CURRENT_PROJECT_VERSION = 61;
DEVELOPMENT_TEAM = K762RM4LQ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "ConcordiumWallet/Resources/ConcordiumWalletMainNet-Info.plist";
Expand Down Expand Up @@ -6808,7 +6808,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = ConcordiumWallet/Resources/Entitlements/ProdMainNet.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 60;
CURRENT_PROJECT_VERSION = 61;
DEVELOPMENT_TEAM = K762RM4LQ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "ConcordiumWallet/Resources/ConcordiumWalletMainNet-Info.plist";
Expand Down Expand Up @@ -6960,7 +6960,7 @@
CODE_SIGN_ENTITLEMENTS = ConcordiumWallet/Resources/Entitlements/StagingNet.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 60;
CURRENT_PROJECT_VERSION = 61;
DEVELOPMENT_TEAM = K762RM4LQ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "ConcordiumWallet/Resources/ConcordiumWalletStagingNet-Info.plist";
Expand Down Expand Up @@ -6995,7 +6995,7 @@
CODE_SIGN_ENTITLEMENTS = ConcordiumWallet/Resources/Entitlements/StagingNet.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 60;
CURRENT_PROJECT_VERSION = 61;
DEVELOPMENT_TEAM = K762RM4LQ3;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "ConcordiumWallet/Resources/ConcordiumWalletStagingNet-Info.plist";
Expand Down
10 changes: 8 additions & 2 deletions ioscommon/Commons/ShowAlertProtocol+ForceUpdate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension ShowAlert {
showBackupOption: Bool,
actionHandler: @escaping (ForceUpdateAction) -> Void
) {
var actions = [
let actions = [
AlertAction(
name: "force.update.warning.update.now".localized,
completion: {
Expand Down Expand Up @@ -73,9 +73,15 @@ extension ShowAlert {
// )
// }

// let alertOptions = AlertOptions(
// title: "force.update.warning.title".localized,
// message: showBackupOption ? "force.update.warning.message".localized : "force.update.warning.nobackup.message".localized,
// actions: actions)
// showAlert(with: alertOptions)

let alertOptions = AlertOptions(
title: "force.update.warning.title".localized,
message: showBackupOption ? "force.update.warning.message".localized : "force.update.warning.nobackup.message".localized,
message: "force.update.warning.message".localized,
actions: actions)
showAlert(with: alertOptions)
}
Expand Down

0 comments on commit bceeb1c

Please sign in to comment.