Unverified Commit 74aae089 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Bug 34338: Disable the crash reporter

parent 46c12b0f
......@@ -79,7 +79,7 @@ class Analytics(
appName = context.getString(R.string.app_name),
organizationName = "Mozilla"
),
enabled = true,
enabled = !isDataColectionDisabled(),
nonFatalCrashIntent = pendingIntent
)
}
......@@ -99,6 +99,7 @@ class Analytics(
}
}
fun isDataColectionDisabled() = BuildConfig.DATA_COLLECTION_DISABLED
fun isSentryEnabled() = !BuildConfig.SENTRY_TOKEN.isNullOrEmpty()
private fun getSentryProjectUrl(): String? {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment