|
|
|
|
@ -54,18 +54,18 @@ class DataStore: ObservableObject { |
|
|
|
|
let store = Store.main |
|
|
|
|
StoreCenter.main.blackListUserName("apple-test") |
|
|
|
|
|
|
|
|
|
let httpScheme: String = URLs.httpScheme.rawValue |
|
|
|
|
// let secureScheme = true |
|
|
|
|
let domain: String = URLs.activationHost.rawValue |
|
|
|
|
|
|
|
|
|
#if DEBUG |
|
|
|
|
if let scheme = PListReader.readString(plist: "local", key: "server_scheme"), |
|
|
|
|
if let secure = PListReader.readBool(plist: "local", key: "secure_server"), |
|
|
|
|
let domain = PListReader.readString(plist: "local", key: "server_domain") { |
|
|
|
|
StoreCenter.main.configureURLs(httpScheme: scheme, domain: domain) |
|
|
|
|
StoreCenter.main.configureURLs(secureScheme: secure, domain: domain) |
|
|
|
|
} else { |
|
|
|
|
StoreCenter.main.configureURLs(httpScheme: httpScheme, domain: domain) |
|
|
|
|
StoreCenter.main.configureURLs(secureScheme: true, domain: domain) |
|
|
|
|
} |
|
|
|
|
#else |
|
|
|
|
StoreCenter.main.configureURLs(httpScheme: httpScheme, domain: domain) |
|
|
|
|
StoreCenter.main.configureURLs(secureScheme: true, domain: domain) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
StoreCenter.main.logsFailedAPICalls() |
|
|
|
|
|