Skip to content

Instantly share code, notes, and snippets.

@bcye
Created February 18, 2019 08:06
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 bcye/68d6282cb750999ac2be88e53770bf54 to your computer and use it in GitHub Desktop.
Save bcye/68d6282cb750999ac2be88e53770bf54 to your computer and use it in GitHub Desktop.
import Sentry
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Create a Sentry client and start crash handler
do {
Client.shared = try Client(dsn: "yourDNS")
try Client.shared?.startCrashHandler()
} catch let error {
print("\(error)")
}
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment