Last active
February 4, 2019 14:52
-
-
Save nspeet/a2137558cc12e8a3f8adf2cd9464e4d2 to your computer and use it in GitHub Desktop.
Commercetools iOS Config Setup
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
// Add the code below to viewDidLoad() | |
// Default configuration initializer reads from | |
// CommercetoolsConfig.plist file from your app bundle | |
if let configuration = Config() { | |
// You can also specify custom logging level | |
// configuration.logLevel = .error | |
// Or completely disable all log messages from Commercetools SDK | |
// configuration.loggingEnabled = false | |
// Finally, you need set your configuration before using the SDK | |
Commercetools.config = configuration | |
} else { | |
// There are some errors in your .plist file, check log messages for more information | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment