Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
Clean unused code

readded test class

Signed-off-by: kcw-grunt <[email protected]>
  • Loading branch information
kcw-grunt committed Dec 17, 2024
1 parent 38b948d commit 4e925bd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 30 deletions.
14 changes: 7 additions & 7 deletions litewallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
24313CA523824F5800A83F69 /* Buy.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 24313C9823824F5800A83F69 /* Buy.storyboard */; };
24313CAA23824F9800A83F69 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 24313CA823824F9800A83F69 /* Main.storyboard */; };
24393B5C23C259400075218D /* Phrase.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 24393B5B23C259400075218D /* Phrase.storyboard */; };
24470E2123A5DA9700ADDA27 /* APIManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24470E2023A5DA9700ADDA27 /* APIManagerTests.swift */; };
24470E2323A5DB7D00ADDA27 /* WalletManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24470E2223A5DB7D00ADDA27 /* WalletManagerTests.swift */; };
24470E2A23A5F33000ADDA27 /* BRReplicatedKVStoreTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24470E2923A5F33000ADDA27 /* BRReplicatedKVStoreTests.swift */; };
24470E2C23A5F43B00ADDA27 /* DefaultFiatCurrencyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24470E2B23A5F43B00ADDA27 /* DefaultFiatCurrencyTests.swift */; };
Expand Down Expand Up @@ -278,6 +277,7 @@
C353582D2D11DA4900395C45 /* FirebaseRemoteConfig in Frameworks */ = {isa = PBXBuildFile; productRef = C353582C2D11DA4900395C45 /* FirebaseRemoteConfig */; };
C353582F2D11DA4900395C45 /* FirebaseRemoteConfigSwift in Frameworks */ = {isa = PBXBuildFile; productRef = C353582E2D11DA4900395C45 /* FirebaseRemoteConfigSwift */; };
C35358312D11DE1500395C45 /* remote-config-defaults.plist in Resources */ = {isa = PBXBuildFile; fileRef = C35358302D11DE1500395C45 /* remote-config-defaults.plist */; settings = {ASSET_TAGS = ("initial-resources", ); }; };
C35358332D11E7D100395C45 /* APITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C35358322D11E7D100395C45 /* APITests.swift */; };
C3543A27264AFE490005D17A /* LocaleChangeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3543A26264AFE490005D17A /* LocaleChangeView.swift */; };
C3543A29264AFE720005D17A /* LocaleChangeViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3543A28264AFE720005D17A /* LocaleChangeViewModel.swift */; };
C35ABD232574070A002BB9BB /* PartnersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C35ABD222574070A002BB9BB /* PartnersView.swift */; };
Expand Down Expand Up @@ -735,7 +735,6 @@
24375314238AE09700E1B2AE /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = pt; path = pt.lproj/BIP39Words.plist; sourceTree = "<group>"; };
24375315238AE09900E1B2AE /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = ru; path = ru.lproj/BIP39Words.plist; sourceTree = "<group>"; };
24393B5B23C259400075218D /* Phrase.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Phrase.storyboard; sourceTree = "<group>"; };
24470E2023A5DA9700ADDA27 /* APIManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = APIManagerTests.swift; sourceTree = "<group>"; };
24470E2223A5DB7D00ADDA27 /* WalletManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletManagerTests.swift; sourceTree = "<group>"; };
24470E2923A5F33000ADDA27 /* BRReplicatedKVStoreTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BRReplicatedKVStoreTests.swift; sourceTree = "<group>"; };
24470E2B23A5F43B00ADDA27 /* DefaultFiatCurrencyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DefaultFiatCurrencyTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1434,6 +1433,7 @@
C350788B27DCB10700A50819 /* TextView+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TextView+Extension.swift"; sourceTree = "<group>"; };
C353582A2D11D9B500395C45 /* RemoteConfigHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RemoteConfigHelper.swift; sourceTree = "<group>"; };
C35358302D11DE1500395C45 /* remote-config-defaults.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "remote-config-defaults.plist"; sourceTree = "<group>"; };
C35358322D11E7D100395C45 /* APITests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = APITests.swift; sourceTree = "<group>"; };
C3543A26264AFE490005D17A /* LocaleChangeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocaleChangeView.swift; sourceTree = "<group>"; };
C3543A28264AFE720005D17A /* LocaleChangeViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocaleChangeViewModel.swift; sourceTree = "<group>"; };
C35ABD222574070A002BB9BB /* PartnersView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PartnersView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2093,14 +2093,14 @@
2465873723A5AAD100A32E9E /* litewalletTests */ = {
isa = PBXGroup;
children = (
C35358322D11E7D100395C45 /* APITests.swift */,
C3E587AD2CFC7C69000592D8 /* Seed Word Tests */,
584E24FF2951DA97005E0E8B /* Language Selection Tests */,
C3EFA9A42651A7C4005C59B5 /* Lock Screen Tests */,
C3B7C3EC255FF56100E98A64 /* Constants Tests */,
24470E3923A5FF5700ADDA27 /* TestHelpers.swift */,
24470E4323A6088700ADDA27 /* Class Tests */,
24470E2823A5F2C000ADDA27 /* Legacy BRTests */,
24470E2023A5DA9700ADDA27 /* APIManagerTests.swift */,
24470E2223A5DB7D00ADDA27 /* WalletManagerTests.swift */,
2465873A23A5AAD100A32E9E /* Info.plist */,
);
Expand Down Expand Up @@ -3914,8 +3914,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
C35358332D11E7D100395C45 /* APITests.swift in Sources */,
24470E4223A6007200ADDA27 /* WalletInfoTest.swift in Sources */,
24470E2123A5DA9700ADDA27 /* APIManagerTests.swift in Sources */,
24470E3423A5F5E600ADDA27 /* PaymentRequestTests.swift in Sources */,
584E25012951DAAA005E0E8B /* LanguageSelectionTests.swift in Sources */,
24470E2E23A5F4FF00ADDA27 /* BRCoderTests.swift in Sources */,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 = (
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions litewallet/BRAPIClient+Wallet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion litewallet/Constants/Constants+Events.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) ?? ""
}
Expand Down
20 changes: 0 additions & 20 deletions litewallet/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
// }
// }
}
2 changes: 0 additions & 2 deletions litewallet/RemoteConfigHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ class RemoteConfigHelper: NSObject {
return
}

print("::: Updated keys: \(configUpdate.updatedKeys)")

self.fetchAndActivateRemoteConfig()
}
}
Expand Down

0 comments on commit 4e925bd

Please sign in to comment.