Skip to content

Instantly share code, notes, and snippets.

@kuyazee
Created June 27, 2018 14:53
Show Gist options
  • Save kuyazee/0eb8189a6e0da3c55fdf374408e036f4 to your computer and use it in GitHub Desktop.
Save kuyazee/0eb8189a6e0da3c55fdf374408e036f4 to your computer and use it in GitHub Desktop.
class FabricAnalyticsService: AnalyticsServiceProtocol {
func initialize(application: UIApplication, launchOptions: [UIApplicationLaunchOptionsKey : Any]?) {
Fabric.with([Answers.self])
}
func send(event: AnalyticsEventProtocol) {
Answers.logCustomEvent(withName: event.name, customAttributes: event.parameters)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment