From 47dfcc119ee5671fb614357faaae3897078f9530 Mon Sep 17 00:00:00 2001 From: Alessio Placitelli Date: Tue, 22 Oct 2019 16:17:15 +0200 Subject: [PATCH] Pick up forUnitTest library for the Glean SDK test --- app/build.gradle | 4 ++++ buildSrc/src/main/java/Dependencies.kt | 3 +++ 2 files changed, 7 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 1723a7628..1d7c96619 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -487,6 +487,10 @@ dependencies { androidTestImplementation Deps.mockito_android testImplementation Deps.mockk testImplementation Deps.assertk + + // For the initial release of Glean 19, we require consumer applications to + // depend on a separate library for unit tests. This will be removed in future releases. + testImplementation Deps.mozilla_service_glean_forUnitTests } if (project.hasProperty("raptor")) { diff --git a/buildSrc/src/main/java/Dependencies.kt b/buildSrc/src/main/java/Dependencies.kt index 53dfb1bb6..cdf5aac7e 100644 --- a/buildSrc/src/main/java/Dependencies.kt +++ b/buildSrc/src/main/java/Dependencies.kt @@ -44,6 +44,8 @@ object Versions { // sync with the version used by android-components above. const val mozilla_appservices = "0.42.0" + const val mozilla_glean = "19.0.0" + const val autodispose = "1.1.0" const val adjust = "4.11.4" const val installreferrer = "1.0" @@ -137,6 +139,7 @@ object Deps { const val mozilla_service_firefox_accounts = "org.mozilla.components:service-firefox-accounts:${Versions.mozilla_android_components}" const val mozilla_service_fretboard = "org.mozilla.components:service-fretboard:${Versions.mozilla_android_components}" const val mozilla_service_glean = "org.mozilla.components:service-glean:${Versions.mozilla_android_components}" + const val mozilla_service_glean_forUnitTests = "org.mozilla.telemetry:glean-forUnitTests:${Versions.mozilla_glean}" const val mozilla_service_experiments = "org.mozilla.components:service-experiments:${Versions.mozilla_android_components}" const val mozilla_ui_colors = "org.mozilla.components:ui-colors:${Versions.mozilla_android_components}"