-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add restore settings to backup files.
- Make models for full backup
- Loading branch information
Showing
14 changed files
with
130 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
UnstoppableWallet/UnstoppableWallet/Core/Crypto/AppearanceBackup.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import Foundation | ||
import Chart | ||
import CurrencyKit | ||
import ThemeKit | ||
|
||
struct AppearanceBackup { | ||
let lockTimeEnabled: Bool | ||
let remoteContactsSync: Bool | ||
let defaultProviders: [DefaultProvider] | ||
let chartIndicators: [ChartIndicator] | ||
let indicatorsShown: Bool | ||
let currentLanguage: String | ||
let baseCurrency: Currency | ||
|
||
let mode: ThemeMode | ||
let showMarketTab: Bool | ||
let launchScreen: LaunchScreen | ||
let conversionTokenQueryId: String? | ||
let balancePrimaryValue: BalancePrimaryValue | ||
let balanceAutoHide: Bool | ||
let appIcon: AppIcon | ||
} | ||
|
||
extension AppearanceBackup { | ||
struct DefaultProvider { | ||
let blockchainTypeId: String | ||
let provider: String | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
UnstoppableWallet/UnstoppableWallet/Core/Crypto/FullBackup.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Foundation | ||
|
||
struct FullBackup { | ||
let wallets: [WalletBackup] | ||
let watchlistIds: [String] | ||
let contacts: ContactBook? | ||
let appearance: AppearanceBackup? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.