Skip to content

Instantly share code, notes, and snippets.

@amsterdatech
Last active January 27, 2021 00:45
Show Gist options
  • Save amsterdatech/676b51ca57e07e399f2f34e88d5eb34d to your computer and use it in GitHub Desktop.
Save amsterdatech/676b51ca57e07e399f2f34e88d5eb34d to your computer and use it in GitHub Desktop.
class App : Application() {
override fun onCreate() {
super.onCreate()
StrictMode.setThreadPolicy(
StrictMode.ThreadPolicy.Builder()
.detectAll()
.penaltyLog()
.penaltyDialog()
.build()
)
StrictMode.setVmPolicy(
StrictMode.VmPolicy.Builder().detectAll()
.penaltyLog()
.build()
)
analytics(this) {
//Our crash reporter is added here
kit(AndroidCrashLogger(context))
kit(AndroidLogTracker(context))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment