Skip to content

Commit ef73a7f

Browse files
authored
Merge pull request #19757 from wordpress-mobile/integrate-measure-builds-plugin
Integrate measure builds plugin
2 parents df351b5 + c5be91c commit ef73a7f

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"project_name": "WordPress-Android",
33
"branch": "trunk",
4-
"pinned_hash": "91e71c2268b4df54591ff9cedbfd03ac93ba865d",
4+
"pinned_hash": "715a5a119a334ec1ef16b5a6bd77c52094144813",
55
"files_to_copy": [
66
{
77
"file": "android/WPAndroid/gradle.properties",
112 Bytes
Binary file not shown.

build.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import com.automattic.android.measure.MeasureBuildsExtension
12
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23

34
plugins {
45
id "io.gitlab.arturbosch.detekt"
6+
id 'com.automattic.android.measure-builds'
57
id "androidx.navigation.safeargs.kotlin" apply false
68
id "com.android.library" apply false
79
id 'com.google.gms.google-services' apply false
@@ -106,6 +108,13 @@ ext {
106108
wordPressLintVersion = '2.0.0'
107109
}
108110

111+
measureBuilds {
112+
enable = findProperty('measureBuildsEnabled')?.toBoolean() ?: false
113+
automatticProject = MeasureBuildsExtension.AutomatticProject.WordPress
114+
authToken = findProperty('appsMetricsToken')
115+
attachGradleScanId = System.getenv('CI')?.toBoolean() ?: false
116+
}
117+
109118
allprojects {
110119
apply plugin: 'checkstyle'
111120
apply plugin: 'io.gitlab.arturbosch.detekt'

settings.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pluginManagement {
77
gradle.ext.daggerVersion = "2.46.1"
88
gradle.ext.detektVersion = '1.23.0'
99
gradle.ext.violationCommentsVersion = '1.67'
10+
gradle.ext.measureBuildsVersion = '2.0.3'
1011

1112
plugins {
1213
id "org.jetbrains.kotlin.android" version gradle.ext.kotlinVersion
@@ -22,12 +23,14 @@ pluginManagement {
2223
id "io.sentry.android.gradle" version gradle.ext.sentryVersion
2324
id "io.gitlab.arturbosch.detekt" version gradle.ext.detektVersion
2425
id "se.bjurr.violations.violation-comments-to-github-gradle-plugin" version gradle.ext.violationCommentsVersion
26+
id 'com.automattic.android.measure-builds' version gradle.ext.measureBuildsVersion
2527
}
2628
repositories {
2729
maven {
2830
url 'https://a8c-libs.s3.amazonaws.com/android'
2931
content {
3032
includeGroup "com.automattic.android"
33+
includeGroup "com.automattic.android.measure-builds"
3134
}
3235
}
3336
gradlePluginPortal()

0 commit comments

Comments
 (0)