Last active
January 27, 2021 00:45
-
-
Save amsterdatech/676b51ca57e07e399f2f34e88d5eb34d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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