Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Last active April 19, 2022 06:50
Show Gist options
  • Save flurrydev/d3351c757b41944d04609038439d4992 to your computer and use it in GitHub Desktop.
Save flurrydev/d3351c757b41944d04609038439d4992 to your computer and use it in GitHub Desktop.
Initialize Flurry long form swift
import Flurry_iOS_SDK //this is only needed if the libraries were obtained using CocoaPods
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let sb = FlurrySessionBuilder()
.build(logLevel: FlurryLogLevel.all)
.build(crashReportingEnabled: true)
.build(appVersion: "1.0")
.build(iapReportingEnabled: true)
Flurry.startSession(apiKey: "YOUR_API_KEY", sessionBuilder: sb)
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment