From bfc9ded9cb2217aaf6c3855dff6f127836adada9 Mon Sep 17 00:00:00 2001 From: Vahan Harutyunyan Date: Mon, 23 Oct 2023 16:56:02 -0400 Subject: [PATCH] Add Account Migration capability to FRAuthenticatorExample app --- .../project.pbxproj | 4 + .../Base.lproj/Main.storyboard | 101 ++++++++++++++---- .../ExportAccountsViewController.swift | 50 +++++++++ .../Controller/MainListViewController.swift | 59 +++++++++- .../QRCodeScannerViewController.swift | 6 +- 5 files changed, 196 insertions(+), 24 deletions(-) create mode 100644 SampleApps/FRAuthenticatorExample/FRAuthenticatorExample/Controller/ExportAccountsViewController.swift diff --git a/SampleApps/FRAuthenticatorExample/FRAuthenticatorExample.xcodeproj/project.pbxproj b/SampleApps/FRAuthenticatorExample/FRAuthenticatorExample.xcodeproj/project.pbxproj index f9cec8a8..1bfad1b5 100644 --- a/SampleApps/FRAuthenticatorExample/FRAuthenticatorExample.xcodeproj/project.pbxproj +++ b/SampleApps/FRAuthenticatorExample/FRAuthenticatorExample.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + A5FDBAB72AE209CB009679C6 /* ExportAccountsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5FDBAB62AE209CB009679C6 /* ExportAccountsViewController.swift */; }; D50C7CA8247CE765009A4DF5 /* NotificationRequestViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D50C7CA7247CE765009A4DF5 /* NotificationRequestViewController.swift */; }; D50C7CAA247CEF3D009A4DF5 /* NotificationListTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D50C7CA9247CEF3D009A4DF5 /* NotificationListTableViewController.swift */; }; D50C7CAD247CEF7B009A4DF5 /* NotificationTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D50C7CAB247CEF7B009A4DF5 /* NotificationTableViewCell.swift */; }; @@ -79,6 +80,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + A5FDBAB62AE209CB009679C6 /* ExportAccountsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExportAccountsViewController.swift; sourceTree = ""; }; D50C7CA7247CE765009A4DF5 /* NotificationRequestViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationRequestViewController.swift; sourceTree = ""; }; D50C7CA9247CEF3D009A4DF5 /* NotificationListTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationListTableViewController.swift; sourceTree = ""; }; D50C7CAB247CEF7B009A4DF5 /* NotificationTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationTableViewCell.swift; sourceTree = ""; }; @@ -134,6 +136,7 @@ D50C7CA7247CE765009A4DF5 /* NotificationRequestViewController.swift */, D50C7CA9247CEF3D009A4DF5 /* NotificationListTableViewController.swift */, D50C7CAF247CF9CA009A4DF5 /* AccountDetailTableViewController.swift */, + A5FDBAB62AE209CB009679C6 /* ExportAccountsViewController.swift */, ); path = Controller; sourceTree = ""; @@ -349,6 +352,7 @@ D51A097B247CBBF00077DCF5 /* QRCodeScannerViewController.swift in Sources */, D51A0994247CCB200077DCF5 /* AccountTableViewCell.swift in Sources */, D50C7CA8247CE765009A4DF5 /* NotificationRequestViewController.swift in Sources */, + A5FDBAB72AE209CB009679C6 /* ExportAccountsViewController.swift in Sources */, D51A0990247CC0640077DCF5 /* TOTPMechanismTableViewCell.swift in Sources */, D5D03DD9247DDEC5003C5350 /* FRAStringUtil.swift in Sources */, D51A097F247CBFFA0077DCF5 /* BaseTableViewCell.swift in Sources */, diff --git a/SampleApps/FRAuthenticatorExample/FRAuthenticatorExample/Base.lproj/Main.storyboard b/SampleApps/FRAuthenticatorExample/FRAuthenticatorExample/Base.lproj/Main.storyboard index 60b20a49..788a539a 100644 --- a/SampleApps/FRAuthenticatorExample/FRAuthenticatorExample/Base.lproj/Main.storyboard +++ b/SampleApps/FRAuthenticatorExample/FRAuthenticatorExample/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -88,12 +88,18 @@ + + + + + + @@ -130,7 +136,7 @@ - + @@ -150,20 +156,20 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -213,17 +274,17 @@ - + - + - +