From 42397e6bf7bf62872a78acce3bde47d30ed18ac9 Mon Sep 17 00:00:00 2001 From: Kerry Washington Date: Thu, 26 Jan 2023 09:02:13 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80[Release=20v3.11.0]=20Merge=20into?= =?UTF-8?q?=20Develop=20(#199)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * version bump - build bump * build bump to trigger bitrise * bump for matching bitrise * Fixed a crash when force trying to get a creation date of unexisting file (#188) Co-authored-by: Iferencak --- loafwallet.xcodeproj/project.pbxproj | 15 +++++++++------ loafwallet/BuyTableViewController.swift | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/loafwallet.xcodeproj/project.pbxproj b/loafwallet.xcodeproj/project.pbxproj index 5e0ea42a3..1e462a91a 100644 --- a/loafwallet.xcodeproj/project.pbxproj +++ b/loafwallet.xcodeproj/project.pbxproj @@ -4618,7 +4618,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = loafwallet/loafwallet.entitlements; - CURRENT_PROJECT_VERSION = 1603; + CURRENT_PROJECT_VERSION = 1606; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = ZV7987N2ZC; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; @@ -4628,12 +4628,13 @@ "$(inherited)", ); INFOPLIST_FILE = "$(SRCROOT)/loafwallet/Info.plist"; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.finance"; IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.10.2; + MARKETING_VERSION = 3.11.0; OTHER_SWIFT_FLAGS = "-DDebug $(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = com.litecoin.loafwallet; PRODUCT_MODULE_NAME = loafwallet; @@ -5034,7 +5035,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = loafwallet/loafwallet.entitlements; - CURRENT_PROJECT_VERSION = 1603; + CURRENT_PROJECT_VERSION = 1606; DEVELOPMENT_TEAM = ZV7987N2ZC; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; FRAMEWORK_SEARCH_PATHS = ( @@ -5043,12 +5044,13 @@ "$(inherited)", ); INFOPLIST_FILE = "$(SRCROOT)/loafwallet/Info.plist"; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.finance"; IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.10.2; + MARKETING_VERSION = 3.11.0; OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = com.litecoin.loafwallet; PRODUCT_MODULE_NAME = loafwallet; @@ -5165,7 +5167,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = loafwallet/loafwallet.entitlements; - CURRENT_PROJECT_VERSION = 1603; + CURRENT_PROJECT_VERSION = 1606; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = ZV7987N2ZC; FRAMEWORK_SEARCH_PATHS = ( @@ -5174,12 +5176,13 @@ "$(inherited)", ); INFOPLIST_FILE = "$(SRCROOT)/loafwallet/Info.plist"; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.finance"; IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.10.2; + MARKETING_VERSION = 3.11.0; OTHER_SWIFT_FLAGS = "-DDebug -DTestnet $(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = com.litecoin.loafwallet; PRODUCT_MODULE_NAME = loafwallet; diff --git a/loafwallet/BuyTableViewController.swift b/loafwallet/BuyTableViewController.swift index 4523c55fc..9fca9c0bc 100644 --- a/loafwallet/BuyTableViewController.swift +++ b/loafwallet/BuyTableViewController.swift @@ -140,9 +140,9 @@ class BuyTableViewController: UITableViewController, SFSafariViewControllerDeleg private let appInstallDate: Date = { if let documentsFolder = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last { - if let installDate = try! FileManager.default.attributesOfItem(atPath: documentsFolder.path)[.creationDate] as? Date + if let installDate = try? FileManager.default.attributesOfItem(atPath: documentsFolder.path)[.creationDate] as? Date { - return installDate + return installDate ?? Date() } } return Date()