From 7300483afb380d63beadf9b99c630706bb61817d Mon Sep 17 00:00:00 2001 From: kcw-grunt Date: Tue, 17 Dec 2024 17:03:13 +0000 Subject: [PATCH] version bump Clean unused code --- litewallet.xcodeproj/project.pbxproj | 6 +++--- litewallet/BRAPIClient+Wallet.swift | 1 + litewallet/Constants/Constants+Events.swift | 1 - litewallet/Environment.swift | 20 -------------------- litewallet/RemoteConfigHelper.swift | 2 -- 5 files changed, 4 insertions(+), 26 deletions(-) diff --git a/litewallet.xcodeproj/project.pbxproj b/litewallet.xcodeproj/project.pbxproj index 1f03d9d2..ef737a88 100644 --- a/litewallet.xcodeproj/project.pbxproj +++ b/litewallet.xcodeproj/project.pbxproj @@ -4538,7 +4538,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = litewallet/litewallet.entitlements; - CURRENT_PROJECT_VERSION = 241211.0; + CURRENT_PROJECT_VERSION = 241217.0; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = ZV7987N2ZC; EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES; @@ -4896,7 +4896,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = litewallet/litewallet.entitlements; - CURRENT_PROJECT_VERSION = 241211.0; + CURRENT_PROJECT_VERSION = 241217.0; DEVELOPMENT_TEAM = ZV7987N2ZC; EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES; FRAMEWORK_SEARCH_PATHS = ( @@ -5038,7 +5038,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = litewallet/litewallet.entitlements; - CURRENT_PROJECT_VERSION = 241211.0; + CURRENT_PROJECT_VERSION = 241217.0; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = ZV7987N2ZC; EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO; diff --git a/litewallet/BRAPIClient+Wallet.swift b/litewallet/BRAPIClient+Wallet.swift index 24b08f25..94d8071e 100644 --- a/litewallet/BRAPIClient+Wallet.swift +++ b/litewallet/BRAPIClient+Wallet.swift @@ -12,6 +12,7 @@ extension BRAPIClient { func exchangeRates(isFallback: Bool = false, _ handler: @escaping (_ rates: [Rate], _ error: String?) -> Void) { let request = isFallback ? URLRequest(url: URL(string: APIServer().devBaseUrl + "v1/rates")!) : URLRequest(url: URL(string: APIServer().baseUrl + "v1/rates")!) + dataTaskWithRequest(request) { data, _, error in if error == nil, let data = data, let parsedData = try? JSONSerialization.jsonObject(with: data, options: .allowFragments) diff --git a/litewallet/Constants/Constants+Events.swift b/litewallet/Constants/Constants+Events.swift index 59459b0b..2bf985b1 100644 --- a/litewallet/Constants/Constants+Events.swift +++ b/litewallet/Constants/Constants+Events.swift @@ -17,7 +17,6 @@ struct APIServer { init() { baseUrl = appDelegate.remoteConfigurationHelper? .getString(key: RemoteConfigKeys.KEY_PROD_API_BASEURL.rawValue) ?? "" - devBaseUrl = appDelegate.remoteConfigurationHelper? .getString(key: RemoteConfigKeys.KEY_DEV_API_BASEURL.rawValue) ?? "" } diff --git a/litewallet/Environment.swift b/litewallet/Environment.swift index d14d16f3..159911f9 100644 --- a/litewallet/Environment.swift +++ b/litewallet/Environment.swift @@ -144,23 +144,3 @@ struct E { return UIScreen.main.bounds.size.height } } - -/// Remote Config -enum EnvironmentRemoteConfigKey: String, Equatable { - case k20241212_API_1 - case k20241212_API_2 - - var key: String { - switch self { - case .k20241212_API_1: return "key_api_baseurl_dev_new_enabled" - case .k20241212_API_2: return "key_api_baseurl_prod_new_enabled" - } - } - -// var type: Any { -// switch self { -// case .k20241212_API_1: return Bool -// case .k20241212_API_2: return bool -// } -// } -} diff --git a/litewallet/RemoteConfigHelper.swift b/litewallet/RemoteConfigHelper.swift index ab69d097..c8815bd3 100644 --- a/litewallet/RemoteConfigHelper.swift +++ b/litewallet/RemoteConfigHelper.swift @@ -49,8 +49,6 @@ class RemoteConfigHelper: NSObject { return } - print("::: Updated keys: \(configUpdate.updatedKeys)") - self.fetchAndActivateRemoteConfig() } }