File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ subprojects {
51
51
52
52
apiValidation {
53
53
ignoredProjects.add(" kotlinx-io-benchmarks" )
54
- ignoredProjects.add(" kotlinx-io-benchmarks-android" )
54
+ val androidBenchmarksEnabled = project.findProperty(" androidBenchmarksEnabled" )?.toString()?.toBoolean() ? : false
55
+ if (androidBenchmarksEnabled) {
56
+ ignoredProjects.add(" kotlinx-io-benchmarks-android" )
57
+ }
55
58
}
56
59
57
60
dependencies {
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ version=0.3.1-SNAPSHOT
8
8
kotlin.code.style =official
9
9
org.gradle.jvmargs =-Xmx4G
10
10
nativeBenchmarksEnabled =false
11
+ androidBenchmarksEnabled =false
11
12
kotlin.mpp.applyDefaultHierarchyTemplate =false
12
13
android.useAndroidX =true
Original file line number Diff line number Diff line change @@ -18,8 +18,11 @@ rootProject.name = "kotlinx-io"
18
18
include(" :kotlinx-io-core" )
19
19
include(" :kotlinx-io-benchmarks" )
20
20
include(" :kotlinx-io-bytestring" )
21
- include(" :kotlinx-io-benchmarks-android" )
22
21
project(" :kotlinx-io-core" ).projectDir = file(" ./core" )
23
22
project(" :kotlinx-io-benchmarks" ).projectDir = file(" ./benchmarks" )
24
23
project(" :kotlinx-io-bytestring" ).projectDir = file(" ./bytestring" )
25
- project(" :kotlinx-io-benchmarks-android" ).projectDir = file(" ./benchmarks-android" )
24
+
25
+ if (providers.gradleProperty(" androidBenchmarksEnabled" ).getOrElse(" false" ).toBoolean()) {
26
+ include(" :kotlinx-io-benchmarks-android" )
27
+ project(" :kotlinx-io-benchmarks-android" ).projectDir = file(" ./benchmarks-android" )
28
+ }
You can’t perform that action at this time.
0 commit comments