Loading buildSrc/src/main/java/Dependencies.kt +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ object Versions { const val mozilla_appservices = "0.48.2" const val mozilla_glean = "23.0.1" const val mozilla_glean = "24.0.0" const val material = "1.0.0" const val nearby = "17.0.0" Loading components/service/experiments/src/test/java/mozilla/components/service/experiments/debug/ExperimentsDebugActivityTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ class ExperimentsDebugActivityTest { fun setup() { WorkManagerTestInitHelper.initializeTestWorkManager(context) Glean.initialize(context) Glean.initialize(context, uploadEnabled = true) // This makes sure we have a "launch" intent in our package, otherwise // it will fail looking for it in `GleanDebugActivityTest`. Loading components/service/glean/src/main/java/mozilla/components/service/glean/Glean.kt +3 −0 Original line number Diff line number Diff line Loading @@ -30,16 +30,19 @@ object Glean { * * @param applicationContext [Context] to access application features, such * as shared preferences * @param uploadEnabled A [Boolean] that determines the initial state of the uploader * @param configuration A Glean [Configuration] object with global settings. */ @JvmOverloads @MainThread fun initialize( applicationContext: Context, uploadEnabled: Boolean, configuration: Configuration = Configuration() ) { GleanCore.initialize( applicationContext = applicationContext, uploadEnabled = uploadEnabled, configuration = configuration.toWrappedConfiguration() ) } Loading components/service/glean/src/test/java/mozilla/components/service/glean/GleanFromJavaTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ public class GleanFromJavaTest { public void testInitGleanWithDefaults() { Context context = ApplicationProvider.getApplicationContext(); WorkManagerTestInitHelper.initializeTestWorkManager(context); Glean.INSTANCE.initialize(context); Glean.INSTANCE.initialize(context, true); } @Test Loading @@ -37,7 +37,7 @@ public class GleanFromJavaTest { WorkManagerTestInitHelper.initializeTestWorkManager(context); Configuration config = new Configuration(Configuration.DEFAULT_TELEMETRY_ENDPOINT, "test-channel"); Glean.INSTANCE.initialize(context, config); Glean.INSTANCE.initialize(context, true, config); } @Test Loading docs/changelog.md +11 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,17 @@ permalink: /changelog/ * `browser-engine-gecko-nightly`: GeckoView 74.0 * **service-glean** * Glean was updated to v23.0.1: * Glean was updated to v24.0.0: * **Breaking Change** An `enableUpload` parameter has been added to the `initialize()` function. This removes the requirement to call `setUploadEnabled()` prior to calling the `initialize()` function. * The metrics ping scheduler will now only send metrics pings while the application is running. The application will no longer "wake up" at 4am using the Work Manager. * The code for migrating data from Glean SDK before version 19 was removed. * When using the `GleanTestLocalServer` rule in instrumented tests, pings are immediately flushed by the `WorkManager` and will reach the test endpoint as soon as possible. * The Glean Gradle Plugin correctly triggers docs and API updates when registry files change, without requiring them to be deleted. * `parseISOTimeString` has been made 4x faster. This had an impact on Glean Loading Loading
buildSrc/src/main/java/Dependencies.kt +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ object Versions { const val mozilla_appservices = "0.48.2" const val mozilla_glean = "23.0.1" const val mozilla_glean = "24.0.0" const val material = "1.0.0" const val nearby = "17.0.0" Loading
components/service/experiments/src/test/java/mozilla/components/service/experiments/debug/ExperimentsDebugActivityTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ class ExperimentsDebugActivityTest { fun setup() { WorkManagerTestInitHelper.initializeTestWorkManager(context) Glean.initialize(context) Glean.initialize(context, uploadEnabled = true) // This makes sure we have a "launch" intent in our package, otherwise // it will fail looking for it in `GleanDebugActivityTest`. Loading
components/service/glean/src/main/java/mozilla/components/service/glean/Glean.kt +3 −0 Original line number Diff line number Diff line Loading @@ -30,16 +30,19 @@ object Glean { * * @param applicationContext [Context] to access application features, such * as shared preferences * @param uploadEnabled A [Boolean] that determines the initial state of the uploader * @param configuration A Glean [Configuration] object with global settings. */ @JvmOverloads @MainThread fun initialize( applicationContext: Context, uploadEnabled: Boolean, configuration: Configuration = Configuration() ) { GleanCore.initialize( applicationContext = applicationContext, uploadEnabled = uploadEnabled, configuration = configuration.toWrappedConfiguration() ) } Loading
components/service/glean/src/test/java/mozilla/components/service/glean/GleanFromJavaTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ public class GleanFromJavaTest { public void testInitGleanWithDefaults() { Context context = ApplicationProvider.getApplicationContext(); WorkManagerTestInitHelper.initializeTestWorkManager(context); Glean.INSTANCE.initialize(context); Glean.INSTANCE.initialize(context, true); } @Test Loading @@ -37,7 +37,7 @@ public class GleanFromJavaTest { WorkManagerTestInitHelper.initializeTestWorkManager(context); Configuration config = new Configuration(Configuration.DEFAULT_TELEMETRY_ENDPOINT, "test-channel"); Glean.INSTANCE.initialize(context, config); Glean.INSTANCE.initialize(context, true, config); } @Test Loading
docs/changelog.md +11 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,17 @@ permalink: /changelog/ * `browser-engine-gecko-nightly`: GeckoView 74.0 * **service-glean** * Glean was updated to v23.0.1: * Glean was updated to v24.0.0: * **Breaking Change** An `enableUpload` parameter has been added to the `initialize()` function. This removes the requirement to call `setUploadEnabled()` prior to calling the `initialize()` function. * The metrics ping scheduler will now only send metrics pings while the application is running. The application will no longer "wake up" at 4am using the Work Manager. * The code for migrating data from Glean SDK before version 19 was removed. * When using the `GleanTestLocalServer` rule in instrumented tests, pings are immediately flushed by the `WorkManager` and will reach the test endpoint as soon as possible. * The Glean Gradle Plugin correctly triggers docs and API updates when registry files change, without requiring them to be deleted. * `parseISOTimeString` has been made 4x faster. This had an impact on Glean Loading