Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Refactor the Glean library names to constants [skip ci][ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexterp37 committed Oct 22, 2019
1 parent 5628aea commit 1e06c40
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/service/glean/build.gradle
Expand Up @@ -38,13 +38,18 @@ configurations {
jnaForTest
}

// Define library names and version constants.
String GLEAN_VERSION = "19.0.0"
String GLEAN_LIBRARY = "org.mozilla.telemetry:glean:$GLEAN_VERSION"
String GLEAN_LIBRARY_FORUNITTESTS = "org.mozilla.telemetry:glean-forUnitTests:$GLEAN_VERSION"

dependencies {
implementation Dependencies.kotlin_stdlib
implementation Dependencies.kotlin_coroutines
implementation Dependencies.androidx_lifecycle_extensions
implementation Dependencies.androidx_work_runtime

api "org.mozilla.telemetry:glean:0.0.1-TESTING9"
api GLEAN_LIBRARY

implementation project(':support-ktx')
implementation project(':support-base')
Expand All @@ -66,8 +71,7 @@ dependencies {
jnaForTest Dependencies.thirdparty_jna
testImplementation files(configurations.jnaForTest.copyRecursive().files)

testImplementation "org.mozilla.telemetry:glean:0.0.1-TESTING9"
testImplementation "org.mozilla.telemetry:glean-forUnitTests:0.0.1-TESTING9"
testImplementation GLEAN_LIBRARY_FORUNITTESTS
}

apply from: '../../../publish.gradle'
Expand Down

0 comments on commit 1e06c40

Please sign in to comment.