Skip to content

Commit

Permalink
[ALFMOB-24] Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
reisdev committed Nov 22, 2024
1 parent efec5d0 commit 2bfbeee
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Combine
import FeatureToggles
import Models
import SwiftUI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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() { }
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 2bfbeee

Please sign in to comment.