From 45e5b98edec5fdcbf7432fe5ec590920674a42a9 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 26 Jul 2024 15:53:19 -0400 Subject: [PATCH] delete file --- .../project.pbxproj | 4 - .../FirebaseFeatureFlagsProvider.swift | 80 ------------------- 2 files changed, 84 deletions(-) delete mode 100644 FirebaseStaticInjections/FirebaseStaticInjections/_FeatureFlags/FirebaseFeatureFlagsProvider.swift 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 -// } -//}