Skip to content
Snippets Groups Projects
Verified Commit 15d3a315 authored by Matthew Finkel's avatar Matthew Finkel Committed by aguestuser
Browse files

Bug 40185: Use NimbusDisabled

parent 93a3d6ac
Branches
No related tags found
1 merge request!143Resolve Bug 40205: Rebase Fenix patches to 96.3.0
......@@ -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 to comment