File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed
Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change 11rootProject.name = " android-junit5-instrumentation"
22includeBuild(" ../build-logic" )
33include(" :core" )
4+ include(" :compose" )
45include(" :runner" )
56include(" :sample" )
67include(" :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- }
You can’t perform that action at this time.
0 commit comments