Skip to content

Commit 0e12e54

Browse files
committed
Remove unnecessary Compose flag for instrumentation projects
1 parent 1a284c7 commit 0e12e54

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed
Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
rootProject.name = "android-junit5-instrumentation"
22
includeBuild("../build-logic")
33
include(":core")
4+
include(":compose")
45
include(":runner")
56
include(":sample")
67
include(":testutil")
7-
8-
// Include the Compose library module only if a special flag is available.
9-
// The 'junit5.includeCompose' flag must be present in either of the following places:
10-
// 1) Project properties (i.e. "-Pxyz")
11-
// 2) local.properties
12-
val flagName = "junit5.includeCompose"
13-
14-
val includeCompose = run {
15-
if (gradle.startParameter.projectProperties[flagName]?.toBoolean() == true) {
16-
// 1)
17-
true
18-
} else {
19-
// 2)
20-
java.util.Properties().apply {
21-
File(rootProject.projectDir, "local.properties").also { load(it.inputStream() )}
22-
}.getProperty(flagName, null)?.toBoolean() == true
23-
}
24-
}
25-
26-
if (includeCompose) {
27-
include(":compose")
28-
}

0 commit comments

Comments
 (0)