-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable Firebase RemoteConfig for tests. Firebase is disabled in tests
- Loading branch information
1 parent
3648d3f
commit 7c91734
Showing
4 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...s/App/Share/Data/RemoteConfigRepository/RemoteDatabase/DisabledRemoteConfigDatabase.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// DisabledRemoteConfigDatabase.swift | ||
// godtools | ||
// | ||
// Created by Levi Eggert on 1/15/25. | ||
// Copyright © 2025 Cru. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Combine | ||
|
||
class DisabledRemoteConfigDatabase: RemoteConfigRemoteDatabaseInterface { | ||
|
||
init() { | ||
|
||
} | ||
|
||
func syncFromRemoteDatabasePublisher() -> AnyPublisher<Void, Never> { | ||
|
||
return Just(Void()) | ||
.eraseToAnyPublisher() | ||
} | ||
|
||
func getRemoteConfigPublisher() -> AnyPublisher<RemoteConfigDataModel?, Never> { | ||
|
||
return Just(nil) | ||
.eraseToAnyPublisher() | ||
} | ||
} |
File renamed without changes.