Skip to content

Instantly share code, notes, and snippets.

@bitomule
Created March 3, 2020 17:18
Show Gist options
  • Save bitomule/2c236536c6acf0b5793e2a454fb3e215 to your computer and use it in GitHub Desktop.
Save bitomule/2c236536c6acf0b5793e2a454fb3e215 to your computer and use it in GitHub Desktop.
final class DidomiServiceProxy {
static let shared = DidomiServiceProxy()
private static let apiKey = "xxxxxxxxx"
private let service = Didomi.shared
init() {
service.onReady { [weak self] in
print("DIDOMI READY")
}
}
func start() {
service.initialize(apiKey: DidomiServiceProxy.apiKey,
localConfigurationPath: nil,
remoteConfigurationURL: nil,
providerId: nil,
disableDidomiRemoteConfig: false)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment