[fenix] Pass distribution_id to Socorro crash report

pull/600/head
rxu 3 years ago committed by mergify[bot]
parent f3e51f1055
commit a8084ee002

@ -39,6 +39,10 @@ class Analytics(
) { ) {
val crashReporter: CrashReporter by lazyMonitored { val crashReporter: CrashReporter by lazyMonitored {
val services = mutableListOf<CrashReporterService>() val services = mutableListOf<CrashReporterService>()
val distributionId = when (Config.channel.isMozillaOnline) {
true -> "MozillaOnline"
false -> "Mozilla"
}
if (isSentryEnabled()) { if (isSentryEnabled()) {
val sentryService = SentryService( val sentryService = SentryService(
@ -58,7 +62,7 @@ class Analytics(
val socorroService = MozillaSocorroService( val socorroService = MozillaSocorroService(
context, appName = "Fenix", context, appName = "Fenix",
version = MOZ_APP_VERSION, buildId = MOZ_APP_BUILDID, vendor = MOZ_APP_VENDOR, version = MOZ_APP_VERSION, buildId = MOZ_APP_BUILDID, vendor = MOZ_APP_VENDOR,
releaseChannel = MOZ_UPDATE_CHANNEL releaseChannel = MOZ_UPDATE_CHANNEL, distributionId = distributionId
) )
services.add(socorroService) services.add(socorroService)

Loading…
Cancel
Save