diff --git a/FirebaseStaticInjections/FirebaseStaticInjections.xcodeproj/project.pbxproj b/FirebaseStaticInjections/FirebaseStaticInjections.xcodeproj/project.pbxproj index d76f864f6..525762c43 100644 --- a/FirebaseStaticInjections/FirebaseStaticInjections.xcodeproj/project.pbxproj +++ b/FirebaseStaticInjections/FirebaseStaticInjections.xcodeproj/project.pbxproj @@ -8,7 +8,6 @@ /* Begin PBXBuildFile section */ 314B5E4723DCCD6800139EB3 /* FirebaseRunner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 314B5E3823DCCD6700139EB3 /* FirebaseRunner.swift */; }; - 314B5E4823DCCD6800139EB3 /* FirebaseFeatureFlagsProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 314B5E3A23DCCD6700139EB3 /* FirebaseFeatureFlagsProvider.swift */; }; 314B5E4923DCCD6800139EB3 /* CrashlyticsErrorLogging.swift in Sources */ = {isa = PBXBuildFile; fileRef = 314B5E3C23DCCD6700139EB3 /* CrashlyticsErrorLogging.swift */; }; 314B5E4A23DCCD6800139EB3 /* FirebaseTracking.swift in Sources */ = {isa = PBXBuildFile; fileRef = 314B5E3E23DCCD6700139EB3 /* FirebaseTracking.swift */; }; 314B5E4B23DCCD6800139EB3 /* FirebaseNotification.swift in Sources */ = {isa = PBXBuildFile; fileRef = 314B5E4023DCCD6800139EB3 /* FirebaseNotification.swift */; }; @@ -227,7 +226,6 @@ 2AC82E9412F0658CCD3B5F99 /* Pods-iOS-FirebaseStaticInjectionsTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS-FirebaseStaticInjectionsTests.debug.xcconfig"; path = "Target Support Files/Pods-iOS-FirebaseStaticInjectionsTests/Pods-iOS-FirebaseStaticInjectionsTests.debug.xcconfig"; sourceTree = ""; }; 3101FAF82511444A00AC4010 /* GoogleLogin.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GoogleLogin.xib; sourceTree = ""; }; 314B5E3823DCCD6700139EB3 /* FirebaseRunner.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FirebaseRunner.swift; sourceTree = ""; }; - 314B5E3A23DCCD6700139EB3 /* FirebaseFeatureFlagsProvider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FirebaseFeatureFlagsProvider.swift; sourceTree = ""; }; 314B5E3C23DCCD6700139EB3 /* CrashlyticsErrorLogging.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CrashlyticsErrorLogging.swift; sourceTree = ""; }; 314B5E3E23DCCD6700139EB3 /* FirebaseTracking.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FirebaseTracking.swift; sourceTree = ""; }; 314B5E4023DCCD6800139EB3 /* FirebaseNotification.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FirebaseNotification.swift; sourceTree = ""; }; @@ -291,7 +289,6 @@ 314B5E3923DCCD6700139EB3 /* _FeatureFlags */ = { isa = PBXGroup; children = ( - 314B5E3A23DCCD6700139EB3 /* FirebaseFeatureFlagsProvider.swift */, ); path = _FeatureFlags; sourceTree = ""; @@ -805,7 +802,6 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 314B5E4823DCCD6800139EB3 /* FirebaseFeatureFlagsProvider.swift in Sources */, 314B5E4723DCCD6800139EB3 /* FirebaseRunner.swift in Sources */, 314B5E4923DCCD6800139EB3 /* CrashlyticsErrorLogging.swift in Sources */, 31B3E3C122763B19009E8FEF /* FirebaseStaticInjections.swift in Sources */, diff --git a/FirebaseStaticInjections/FirebaseStaticInjections/_FeatureFlags/FirebaseFeatureFlagsProvider.swift b/FirebaseStaticInjections/FirebaseStaticInjections/_FeatureFlags/FirebaseFeatureFlagsProvider.swift deleted file mode 100644 index cc57b45b4..000000000 --- a/FirebaseStaticInjections/FirebaseStaticInjections/_FeatureFlags/FirebaseFeatureFlagsProvider.swift +++ /dev/null @@ -1,80 +0,0 @@ -// -// FirebaseFeatureFlagsProvider.swift -// FirebaseStaticInjections -// -// Created by Qiang Huang on 10/3/19. -// Copyright © 2019 dYdX. All rights reserved. -// - -//import FirebaseRemoteConfig -//import Utilities -// -//@objc public final class FirebaseFeatureFlagsProvider: NSObject, FeatureFlagsProtocol { -// private var remoteConfig: RemoteConfig? -// private var foregroundToken: NotificationToken? -// -// public var featureFlags: [String: Any]? -// -// override public init() { -// super.init() -// remoteConfig = RemoteConfig.remoteConfig() -// remoteConfig?.setDefaults(fromPlist: "FeaturesDefaults") -// let settings = RemoteConfigSettings() -// #if DEBUG -// settings.minimumFetchInterval = 0 -// #else -// settings.minimumFetchInterval = 60 -// #endif -// remoteConfig?.configSettings = settings -// -// foregroundToken = NotificationCenter.default.observe(notification: UIApplication.willEnterForegroundNotification, do: { [weak self] _ in -// self?.activate { -// } -// }) -// } -// -// public func refresh(completion: @escaping () -> Void) { -// activate(completion: completion) -// } -// -// public func activate(completion: @escaping () -> Void) { -// if let remoteConfig = remoteConfig { -// remoteConfig.fetchAndActivate(completionHandler: { [weak self] status, _ in -// DispatchQueue.main.async { [weak self] in -// if status == .successFetchedFromRemote || status == .successUsingPreFetchedData { -// self?.updateFlags() -// } -// } -// }) -// } -// // note we may eventually want to move this completion back into the `fetchAndActivate` completion -// // but currently with firebase lib ~v10.24ish, there is an issue where the callback is not guaranteed -// // to get called. see https://github.com/firebase/firebase-ios-sdk/issues/11770. issue is closed, but perhaps not fixed. -// completion() -// } -// -// public func updateFlags() { -// if let keys = remoteConfig?.allKeys(from: .remote) { -// var flags: [String: Any] = [:] -// for key in keys { -// flags[key] = flag(feature: key) -// } -// featureFlags = flags -// } -// } -// -// public func flag(feature: String?) -> Any? { -// if let configValue = remoteConfig?.configValue(forKey: feature) { -// if let json = try? JSONSerialization.jsonObject(with: configValue.dataValue) { -// return json -// } else { -// return parser.asString(configValue.stringValue) -// } -// } -// return nil -// } -// -// public func customized() -> Bool { -// return false -// } -//} diff --git a/ParticlesKit/ParticlesKit.xcodeproj/project.pbxproj b/ParticlesKit/ParticlesKit.xcodeproj/project.pbxproj index 3d886549f..113c12181 100644 --- a/ParticlesKit/ParticlesKit.xcodeproj/project.pbxproj +++ b/ParticlesKit/ParticlesKit.xcodeproj/project.pbxproj @@ -21,7 +21,6 @@ 3101F98D25112EBE00AC4010 /* LocatorService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3101F98A25112EBE00AC4010 /* LocatorService.swift */; }; 3101F99325112F2600AC4010 /* Login.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3101F99125112F2500AC4010 /* Login.xib */; }; 3101F99425112F2600AC4010 /* Logout.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3101F99225112F2600AC4010 /* Logout.xib */; }; - 3102D3052720C622000E7B3A /* FeaturesConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3102D3042720C622000E7B3A /* FeaturesConfig.swift */; }; 310C4F742533B57700DF1D62 /* StreamApi.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310C4F732533B57700DF1D62 /* StreamApi.swift */; }; 310C4F752533B57700DF1D62 /* StreamApi.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310C4F732533B57700DF1D62 /* StreamApi.swift */; }; 310C4F762533B57700DF1D62 /* StreamApi.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310C4F732533B57700DF1D62 /* StreamApi.swift */; }; @@ -414,7 +413,6 @@ 3101F98A25112EBE00AC4010 /* LocatorService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocatorService.swift; sourceTree = ""; }; 3101F99125112F2500AC4010 /* Login.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = Login.xib; sourceTree = ""; }; 3101F99225112F2600AC4010 /* Logout.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = Logout.xib; sourceTree = ""; }; - 3102D3042720C622000E7B3A /* FeaturesConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeaturesConfig.swift; sourceTree = ""; }; 310C4F732533B57700DF1D62 /* StreamApi.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StreamApi.swift; sourceTree = ""; }; 311C0FDA21B0E9C4001775BA /* ParticlesKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ParticlesKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 311C0FDD21B0E9C4001775BA /* ParticlesKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ParticlesKit.h; sourceTree = ""; }; @@ -630,7 +628,6 @@ 3102D2FF2720C5DD000E7B3A /* _Features */ = { isa = PBXGroup; children = ( - 3102D3042720C622000E7B3A /* FeaturesConfig.swift */, ); path = _Features; sourceTree = ""; @@ -1558,7 +1555,6 @@ 314B61DD23DCCE6200139EB3 /* ErrorLogging.swift in Sources */, 314B620523DCCE6200139EB3 /* InteractorProtocol.swift in Sources */, 314B618D23DCCE6100139EB3 /* XibProviderProtocol.swift in Sources */, - 3102D3052720C622000E7B3A /* FeaturesConfig.swift in Sources */, 314B623123DCCE6200139EB3 /* GridInteractor.swift in Sources */, 314B61C123DCCE6200139EB3 /* TimeCounter+Particle.swift in Sources */, 314B61D123DCCE6200139EB3 /* LoaderProtocol.swift in Sources */, diff --git a/ParticlesKit/ParticlesKit/_Cache/_Features/FeaturesConfig.swift b/ParticlesKit/ParticlesKit/_Cache/_Features/FeaturesConfig.swift deleted file mode 100644 index 9ac7ef827..000000000 --- a/ParticlesKit/ParticlesKit/_Cache/_Features/FeaturesConfig.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// FeaturesConfig.swift -// ParticlesKit -// -// Created by Qiang Huang on 10/20/21. -// Copyright © 2021 dYdX Trading Inc. All rights reserved. -// - -//import Utilities -// -//open class FeaturesConfig: NSObject, IOProtocol { -// @objc public dynamic var isLoading: Bool = false -// -// public var priority: Int = 0 -// -// public func load(path: String, params: [String: Any]?, completion: @escaping IOReadCompletionHandler) { -// isLoading = true -// let path = path.lastPathComponent -// let data = FeatureService.shared?.flag(feature: path) -// isLoading = false -// completion(data, nil, priority, nil) -// } -// -// public func save(path: String, params: [String: Any]?, data: Any?, completion: IOWriteCompletionHandler?) { -// } -// -// public func modify(path: String, params: [String: Any]?, data: Any?, completion: IOWriteCompletionHandler?) { -// } -// -// public func delete(path: String, params: [String: Any]?, completion: IODeleteCompletionHandler?) { -// } -//}