Skip to content

Commit

Permalink
fixed current mode logic
Browse files Browse the repository at this point in the history
  • Loading branch information
aboedo committed Oct 3, 2023
1 parent 8d535be commit 55cda38
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ final class Configuration: ObservableObject {
private static let apiKeyFromCIForDemos = ""

private init() {
self.currentMode = Self.apiKey.isEmpty ? .testing : .custom
if Self.apiKey.isEmpty {
self.currentMode = Self.apiKeyFromCIForTesting.isEmpty ? .listOnly : .testing
} else {
self.currentMode = .custom
}

Purchases.logLevel = .verbose
Purchases.proxyURL = Self.proxyURL.isEmpty
? nil
Expand Down

0 comments on commit 55cda38

Please sign in to comment.