|
|
@ -22,7 +22,6 @@ import org.mozilla.fenix.HomeActivity
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.ReleaseChannel
|
|
|
|
import org.mozilla.fenix.ReleaseChannel
|
|
|
|
import org.mozilla.fenix.components.metrics.AdjustMetricsService
|
|
|
|
import org.mozilla.fenix.components.metrics.AdjustMetricsService
|
|
|
|
import org.mozilla.fenix.components.metrics.DefaultMetricsStorage
|
|
|
|
|
|
|
|
import org.mozilla.fenix.components.metrics.GleanMetricsService
|
|
|
|
import org.mozilla.fenix.components.metrics.GleanMetricsService
|
|
|
|
import org.mozilla.fenix.components.metrics.MetricController
|
|
|
|
import org.mozilla.fenix.components.metrics.MetricController
|
|
|
|
import org.mozilla.fenix.experiments.createNimbus
|
|
|
|
import org.mozilla.fenix.experiments.createNimbus
|
|
|
@ -32,7 +31,6 @@ import org.mozilla.fenix.gleanplumb.NimbusMessagingStorage
|
|
|
|
import org.mozilla.fenix.gleanplumb.OnDiskMessageMetadataStorage
|
|
|
|
import org.mozilla.fenix.gleanplumb.OnDiskMessageMetadataStorage
|
|
|
|
import org.mozilla.fenix.nimbus.FxNimbus
|
|
|
|
import org.mozilla.fenix.nimbus.FxNimbus
|
|
|
|
import org.mozilla.fenix.perf.lazyMonitored
|
|
|
|
import org.mozilla.fenix.perf.lazyMonitored
|
|
|
|
import org.mozilla.fenix.utils.BrowsersCache
|
|
|
|
|
|
|
|
import org.mozilla.geckoview.BuildConfig.MOZ_APP_BUILDID
|
|
|
|
import org.mozilla.geckoview.BuildConfig.MOZ_APP_BUILDID
|
|
|
|
import org.mozilla.geckoview.BuildConfig.MOZ_APP_VENDOR
|
|
|
|
import org.mozilla.geckoview.BuildConfig.MOZ_APP_VENDOR
|
|
|
|
import org.mozilla.geckoview.BuildConfig.MOZ_APP_VERSION
|
|
|
|
import org.mozilla.geckoview.BuildConfig.MOZ_APP_VERSION
|
|
|
@ -121,15 +119,7 @@ class Analytics(
|
|
|
|
MetricController.create(
|
|
|
|
MetricController.create(
|
|
|
|
listOf(
|
|
|
|
listOf(
|
|
|
|
GleanMetricsService(context),
|
|
|
|
GleanMetricsService(context),
|
|
|
|
AdjustMetricsService(
|
|
|
|
AdjustMetricsService(context as Application),
|
|
|
|
application = context as Application,
|
|
|
|
|
|
|
|
storage = DefaultMetricsStorage(
|
|
|
|
|
|
|
|
context = context,
|
|
|
|
|
|
|
|
settings = context.settings(),
|
|
|
|
|
|
|
|
checkDefaultBrowser = { BrowsersCache.all(context).isDefaultBrowser },
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
crashReporter = crashReporter,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
isDataTelemetryEnabled = { context.settings().isTelemetryEnabled },
|
|
|
|
isDataTelemetryEnabled = { context.settings().isTelemetryEnabled },
|
|
|
|
isMarketingDataTelemetryEnabled = { context.settings().isMarketingTelemetryEnabled },
|
|
|
|
isMarketingDataTelemetryEnabled = { context.settings().isMarketingTelemetryEnabled },
|
|
|
|