Skip to content

Instantly share code, notes, and snippets.

@nspeet
Last active February 4, 2019 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nspeet/a2137558cc12e8a3f8adf2cd9464e4d2 to your computer and use it in GitHub Desktop.
Save nspeet/a2137558cc12e8a3f8adf2cd9464e4d2 to your computer and use it in GitHub Desktop.
Commercetools iOS Config Setup
// 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