Commit 852d955d authored by MozLando's avatar MozLando
Browse files

Merge #5579



5579: Bump the Glean SDK to version 24 r=Dexterp37 a=Dexterp37



Co-authored-by: default avatarAlessio Placitelli <alessio.placitelli@gmail.com>
parents de4892aa ba4cdcd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"
+1 −1
Original line number Diff line number Diff line
@@ -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`.
+3 −0
Original line number Diff line number Diff line
@@ -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()
        )
    }
+2 −2
Original line number Diff line number Diff line
@@ -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
@@ -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
+11 −1
Original line number Diff line number Diff line
@@ -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