Commit 6587846e authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Bug 34338: Disable the crash reporter

parent 5edf41c7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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? {