-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (51 loc) · 2.27 KB
/
build.gradle
File metadata and controls
53 lines (51 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
controlx2_version = "1.0.0-20260301"
pumpx2_version = "1.8.5"
use_local_pumpx2 = System.properties.getOrDefault('use_local_pumpx2', 'false') == 'true'
if (!use_local_pumpx2) {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
use_local_pumpx2 = (properties.getProperty('use_local_pumpx2') ?: '') == 'true'
}
m2_repository = "${System.properties['user.home']}/.m2/repository"
compose_version = '1.7.8'
androidx_watchface_version = '1.2.1'
kotlin_version = "2.2.0"
vico_version = "2.3.6"
}
dependencies {
classpath 'hu.supercluster:paperwork-plugin:1.2.7'
}
}
plugins {
id 'com.android.application' version '8.13.2' apply false
id 'com.android.library' version '8.13.2' apply false
id 'org.jetbrains.kotlin.android' version '2.2.0' apply false
id 'org.jetbrains.kotlin.plugin.compose' version '2.2.0' apply false
id 'com.google.devtools.ksp' version '2.2.0-2.0.2' apply false
id 'app.cash.paparazzi' version '1.3.4' apply false
}
// Connected Android tests can hang on CI when Gradle attempts to exercise
// every Android subproject (including dependency helper modules that are not
// meant to run instrumentation tests in automation). The coverage workflow only
// needs the mobile app's device tests, so disable the other connected test
// tasks when we know we're running in CI. This prevents the emulator job from
// waiting forever for tests that will never finish.
if (System.getenv("CI") == "true") {
subprojects { subproject ->
if (subproject.name != "mobile") {
subproject.afterEvaluate {
subproject.tasks.matching { task ->
task.name.startsWith("connected") && task.name.endsWith("AndroidTest")
}.configureEach { task ->
task.enabled = false
if (task.project == subproject) {
task.logger.lifecycle("Skipping ${subproject.path}:${task.name} on CI")
}
}
}
}
}
}