Skip to content
Snippets Groups Projects
Unverified Commit ce12d399 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Bug 40185: Use NimbusDisabled

parent b0afc737
Branches
Tags
1 merge request!141Rebase Fenix patches to Fenix 94.1.1
......@@ -14,6 +14,7 @@ import mozilla.components.lib.crash.service.GleanCrashReporterService
import mozilla.components.lib.crash.service.MozillaSocorroService
import mozilla.components.lib.crash.service.SentryService
import mozilla.components.service.nimbus.NimbusApi
import mozilla.components.service.nimbus.NimbusDisabled
import org.mozilla.fenix.BuildConfig
import org.mozilla.fenix.Config
import org.mozilla.fenix.HomeActivity
......@@ -102,8 +103,12 @@ class Analytics(
}
val experiments: NimbusApi by lazyMonitored {
if (BuildConfig.DATA_COLLECTION_DISABLED) {
NimbusDisabled()
} else {
createNimbus(context, BuildConfig.NIMBUS_ENDPOINT)
}
}
val features: NimbusFeatures by lazyMonitored {
NimbusFeatures(context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment