Skip to content

Commit

Permalink
Update minimal deployment version to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ant013 authored and ealymbaev committed Oct 18, 2023
1 parent 5a6bec5 commit 716cd65
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 74 deletions.
4 changes: 2 additions & 2 deletions UnstoppableWallet/UnstoppableWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10946,7 +10946,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = UnstoppableWallet/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -11018,7 +11018,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = UnstoppableWallet/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ class CoinMarketsViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ class CoinRankViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear
tableView.sectionDataSource = self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ class CoinTreasuriesViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.allowsSelection = false
tableView.separatorStyle = .none
tableView.backgroundColor = .clear
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,9 @@ class ContactBookSettingsViewController: ThemeViewController {

private func onTapRestore() {
let documentPicker: UIDocumentPickerViewController
if #available(iOS 14.0, *) {
let types = UTType.types(tag: "json", tagClass: UTTagClass.filenameExtension, conformingTo: nil)
documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: types)
} else {
documentPicker = UIDocumentPickerViewController(documentTypes: ["*.json"], in: .import)
}
let types = UTType.types(tag: "json", tagClass: UTTagClass.filenameExtension, conformingTo: nil)

documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: types)
documentPicker.delegate = self
documentPicker.allowsMultipleSelection = false
present(documentPicker, animated: true, completion: nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ class EvmPrivateKeyViewController: ThemeViewController {
maker.leading.top.trailing.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.backgroundColor = .clear
tableView.separatorStyle = .none

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ class ExtendedKeyViewController: ThemeViewController {
maker.leading.top.trailing.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.backgroundColor = .clear
tableView.separatorStyle = .none
tableView.sectionDataSource = self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ class FaqViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear
tableView.sectionDataSource = self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ class GuidesViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ class EvmAddressViewController: ThemeViewController {
maker.leading.top.trailing.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.backgroundColor = .clear
tableView.separatorStyle = .none
tableView.sectionDataSource = self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ class MarketListViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ class NftViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ class NftAssetOverviewViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ class NftActivityViewController: ThemeViewController {
maker.leading.trailing.bottom.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ class RecoveryPhraseViewController: ThemeViewController {
maker.leading.top.trailing.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.backgroundColor = .clear
tableView.separatorStyle = .none

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ class RestoreTypeViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.backgroundColor = .clear
tableView.separatorStyle = .none

Expand Down Expand Up @@ -152,12 +150,8 @@ class RestoreTypeViewController: ThemeViewController {
case .cloudRestore: viewController = RestoreCloudModule.viewController(returnViewController: returnViewController)
case .fileRestore:
let documentPicker: UIDocumentPickerViewController
if #available(iOS 14.0, *) {
let types = UTType.types(tag: "json", tagClass: UTTagClass.filenameExtension, conformingTo: nil)
documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: types)
} else {
documentPicker = UIDocumentPickerViewController(documentTypes: ["*.json"], in: .import)
}
let types = UTType.types(tag: "json", tagClass: UTTagClass.filenameExtension, conformingTo: nil)
documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: types)

documentPicker.delegate = self
documentPicker.allowsMultipleSelection = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ class SwapViewController: ThemeViewController {
maker.edges.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear
tableView.sectionDataSource = self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ class SwitchAccountViewController: ThemeActionSheetController {
maker.bottom.equalToSuperview()
}

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.sectionDataSource = self

tableView.buildSections()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ class TransactionsViewController: ThemeViewController {
view.addSubview(tableView)

tableView.backgroundColor = .clear
if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ class WalletTokenViewController: ThemeViewController {
}

tableView.backgroundColor = .clear
if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.backgroundColor = .clear
tableView.tableFooterView = UIView(frame: .zero)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ class WalletTokenListViewController: ThemeSearchViewController {
}

tableView.backgroundColor = .clear
if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0
tableView.separatorStyle = .none
tableView.showsVerticalScrollIndicator = false
tableView.tableFooterView = UIView(frame: .zero)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ class WalletViewController: ThemeViewController {
override func viewDidLoad() {
super.viewDidLoad()

if #available(iOS 15.0, *) {
tableView.sectionHeaderTopPadding = 0
}
tableView.sectionHeaderTopPadding = 0

navigationItem.largeTitleDisplayMode = .never
navigationItem.backBarButtonItem = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)
Expand Down

0 comments on commit 716cd65

Please sign in to comment.