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
extension LoginViewController: MembershipShowing { | |
func login(outletNumber: String, password: String) { | |
API.authProvider.request(.login(outletNumber: outletNumber, password: password)) { result in | |
CountlyExceptionHandler.sendLog(result.value, result.error, methodName: AuthService.login(outletNumber: "", password: "").path) | |
switch result { | |
case .failure(let error): |
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
[Countly] [Info] Initializing with objc-native-ios SDK v21.11.2 | |
[Countly] [Debug] Device ID successfully retrieved from UserDefaults: CC729DFB-8857-4EB6-8B39-F1DD675630CD | |
[Countly] [Debug] Proceeding on queue... | |
[Countly] [Debug] Request <0x600002724e60> started: | |
[Countly] [Debug] Fetching remote config on start... | |
[Countly] [Debug] Remote Config Request <0x600002720370> started: | |
[Countly] [Debug] Proceeding on queue... | |
[Countly] [Debug] Proceeding on queue is aborted: Already has a request in process! | |
[Countly] [Debug] Remote Config Request <0x600002720370> successfully completed. | |
[Countly] [Debug] Request <0x600002724e60> successfully completed. |
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
private func setCountly() { | |
let config = CountlyConfig() | |
config.appKey = Configuration.isInBeta ? "0de383003ac05f5e26c58e68caf68945ef95a478" : "c366cd0e6e796fb9a7457be62f9b3d3e8450aa1a" | |
config.host = "https://ccinext.count.ly" | |
config.features = [CLYFeature.pushNotifications, CLYFeature.crashReporting] | |
config.enableRemoteConfig = true | |
config.remoteConfigCompletionHandler = { (error : Error?) in | |
if error == nil { | |
RemoteConfigManager.shared.start() | |
} |