diff --git a/app/src/androidTest/java/org/mozilla/fenix/glean/BaselinePingTest.kt b/app/src/androidTest/java/org/mozilla/fenix/glean/BaselinePingTest.kt index 614fd1794..a315fbe9a 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/glean/BaselinePingTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/glean/BaselinePingTest.kt @@ -14,8 +14,11 @@ import androidx.test.uiautomator.UiSelector import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.launch +import mozilla.components.browser.engine.gecko.fetch.GeckoViewFetchClient +import mozilla.components.concept.fetch.Client import mozilla.components.service.glean.Glean import mozilla.components.service.glean.config.Configuration +import mozilla.components.service.glean.net.ConceptFetchHttpUploader import mozilla.components.service.glean.testing.GleanTestLocalServer import org.json.JSONObject import org.junit.Assert.assertTrue @@ -44,6 +47,10 @@ class BaselinePingTest { @BeforeClass @JvmStatic fun setupOnce() { + val httpClient = ConceptFetchHttpUploader(lazy { + GeckoViewFetchClient(ApplicationProvider.getApplicationContext()) as Client + }) + // Fenix does not initialize the Glean SDK in tests/debug builds, but this test // requires Glean to be initialized so we need to do it manually. Additionally, // we need to do this on the main thread, as the Glean SDK requires it. @@ -51,7 +58,7 @@ class BaselinePingTest { Glean.initialize( ApplicationProvider.getApplicationContext(), true, - Configuration() + Configuration(httpClient = httpClient) ) } } diff --git a/buildSrc/src/main/java/AndroidComponents.kt b/buildSrc/src/main/java/AndroidComponents.kt index d1656c7b0..44b896be5 100644 --- a/buildSrc/src/main/java/AndroidComponents.kt +++ b/buildSrc/src/main/java/AndroidComponents.kt @@ -3,5 +3,5 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { - const val VERSION = "42.0.20200513162226" + const val VERSION = "42.0.20200514130134" }