map analytics optional

This commit is contained in:
geeksville 2020-04-11 13:20:30 -07:00
parent 838e61a97a
commit 042e8d6ebb
9 changed files with 826 additions and 34 deletions

View file

@ -16,11 +16,11 @@ class MeshUtilApplication : GeeksvilleApplication() {
Logging.showLogs = BuildConfig.DEBUG
// We default to off in the manifest, FIXME turn on only if user approves
// We default to off in the manifest - we turn on here if the user approves
// leave off when running in the debugger
if (!isEmulator && (!BuildConfig.DEBUG || !Debug.isDebuggerConnected())) {
val crashlytics = FirebaseCrashlytics.getInstance()
crashlytics.setCrashlyticsCollectionEnabled(true)
crashlytics.setCrashlyticsCollectionEnabled(isAnalyticsAllowed)
crashlytics.setCustomKey("debug_build", BuildConfig.DEBUG)
// Attach to our exception wrapper
@ -29,7 +29,6 @@ class MeshUtilApplication : GeeksvilleApplication() {
}
}
// Mapbox Access token
Mapbox.getInstance(this, getString(R.string.mapbox_access_token))
}
}