Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 93457a2

Browse files
authored
Glean build system updated (#2439)
1 parent ec992a5 commit 93457a2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ apply plugin: 'com.android.application'
66
apply from: "$project.rootDir/tools/gradle/versionCode.gradle"
77
apply plugin: 'kotlin-android'
88
apply plugin: 'kotlin-android-extensions'
9+
apply plugin: "org.mozilla.telemetry.glean-gradle-plugin"
910

1011
def getGitHash = { ->
1112
def stdout = new ByteArrayOutputStream()
@@ -37,10 +38,9 @@ def getUseDebugSigningOnRelease = { ->
3738
return false
3839
}
3940

40-
// Generate markdown docs for the collected metrics.
41+
// Glean: Generate markdown docs for the collected metrics.
4142
ext.gleanGenerateMarkdownDocs = true
4243
ext.gleanDocsDirectory = "$rootDir/docs"
43-
apply from: 'https://github.com/mozilla-mobile/android-components/raw/v' + deps.android_components_version + '/components/service/glean/scripts/sdk_generator.gradle'
4444

4545
android {
4646
compileSdkVersion build_versions.target_sdk

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ buildscript {
55
addRepos(repositories)
66
dependencies {
77
classpath 'com.android.tools.build:gradle:3.4.2'
8+
classpath "org.mozilla.telemetry:glean-gradle-plugin:$versions.android_components"
89
classpath "$deps.kotlin.plugin"
910

1011
// NOTE: Do not place your application dependencies here; they belong

versions.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ versions.kotlin = "1.3.31"
5050
versions.kotlin_coroutines = "1.2.1"
5151
versions.snakeyaml = "1.24"
5252
versions.gson = "2.8.5"
53+
ext.versions = versions
5354
def deps = [:]
5455

5556
def gecko_view = [:]

0 commit comments

Comments
 (0)