diff --git a/Alfie/Alfie/Views/DebugMenu/FeatureToggle/FeatureToggleViewModel.swift b/Alfie/Alfie/Views/DebugMenu/FeatureToggle/FeatureToggleViewModel.swift index 7b18b6bf..bb392825 100644 --- a/Alfie/Alfie/Views/DebugMenu/FeatureToggle/FeatureToggleViewModel.swift +++ b/Alfie/Alfie/Views/DebugMenu/FeatureToggle/FeatureToggleViewModel.swift @@ -1,5 +1,4 @@ import Combine -import FeatureToggles import Models import SwiftUI diff --git a/Alfie/Packages/Core/Sources/Services/Configuration/Providers/FirebaseRemoteConfigurationProvider.swift b/Alfie/Packages/Core/Sources/Services/Configuration/Providers/FirebaseRemoteConfigurationProvider.swift index 00ab26b2..424b4880 100644 --- a/Alfie/Packages/Core/Sources/Services/Configuration/Providers/FirebaseRemoteConfigurationProvider.swift +++ b/Alfie/Packages/Core/Sources/Services/Configuration/Providers/FirebaseRemoteConfigurationProvider.swift @@ -71,24 +71,4 @@ public final class FirebaseRemoteConfigurationProvider: ConfigurationProviderPro } return configValue.stringValue } - - public func set(_ value: Bool, for key: Models.ConfigurationKey) { - // Updating remote configurations not available yet - } - - public func set(_ value: Data, for key: Models.ConfigurationKey) { - // Updating remote configurations not available yet - } - - public func set(_ value: Double, for key: Models.ConfigurationKey) { - // Updating remote configurations not available yet - } - - public func set(_ value: Int, for key: Models.ConfigurationKey) { - // Updating remote configurations not available yet - } - - public func set(_ value: String, for key: Models.ConfigurationKey) { - // Updating remote configurations not available yet - } } diff --git a/Alfie/Packages/Mocks/Sources/Core/Services/MockConfigurationProvider.swift b/Alfie/Packages/Mocks/Sources/Core/Services/MockConfigurationProvider.swift index fc4a1fd4..9e980e4d 100644 --- a/Alfie/Packages/Mocks/Sources/Core/Services/MockConfigurationProvider.swift +++ b/Alfie/Packages/Mocks/Sources/Core/Services/MockConfigurationProvider.swift @@ -32,30 +32,5 @@ public class MockConfigurationProvider: ConfigurationProviderProtocol { onStringCalled?(key) } - public var onSetBoolCalled: ((Bool, ConfigurationKey) -> Void)? - public func set(_ value: Bool, for key: ConfigurationKey) { - onSetBoolCalled?(value, key) - } - - public var onSetDataCalled: ((Data, ConfigurationKey) -> Void)? - public func set(_ value: Data, for key: ConfigurationKey) { - onSetDataCalled?(value, key) - } - - public var onSetDoubleCalled: ((Double, ConfigurationKey) -> Void)? - public func set(_ value: Double, for key: ConfigurationKey) { - onSetDoubleCalled?(value, key) - } - - public var onSetIntCalled: ((Int, ConfigurationKey) -> Void)? - public func set(_ value: Int, for key: Models.ConfigurationKey) { - onSetIntCalled?(value, key) - } - - public var onSetStringCalled: ((String, ConfigurationKey) -> Void)? - public func set(_ value: String, for key: ConfigurationKey) { - onSetStringCalled?(value, key) - } - public init() { } } diff --git a/Alfie/Packages/Mocks/Sources/Core/Services/MockConfigurationService.swift b/Alfie/Packages/Mocks/Sources/Core/Services/MockConfigurationService.swift index 439b67c4..ec12f359 100644 --- a/Alfie/Packages/Mocks/Sources/Core/Services/MockConfigurationService.swift +++ b/Alfie/Packages/Mocks/Sources/Core/Services/MockConfigurationService.swift @@ -27,9 +27,4 @@ public class MockConfigurationService: ConfigurationServiceProtocol { public func isFeatureEnabled(_ key: ConfigurationKey) -> Bool { onIsFeatureEnabledCalled?(key) ?? false } - - public var onUpdateFeatureCalled: ((Bool) -> Void)? - public func updateFeature(_ key: Models.ConfigurationKey, isEnabled: Bool) { - onUpdateFeatureCalled?(isEnabled) - } }