File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11android.useAndroidX =true
2+ # Set to false in $HOME/.gradle/gradle.properties (or pass -Pconscrypt.includeAndroid=false)
3+ # to exclude Android sub-projects, e.g. when iterating on common/ code.
4+ conscrypt.includeAndroid =true
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ dependencyResolutionManagement {
1414}
1515
1616rootProject. name = " conscrypt"
17- if (System . env. ANDROID_HOME && file(System . env. ANDROID_HOME ). exists()) {
17+ if (providers. gradleProperty(' conscrypt.includeAndroid' ). getOrElse(' true' ). toBoolean()
18+ && System . env. ANDROID_HOME && file(System . env. ANDROID_HOME ). exists()) {
1819 include " :conscrypt-android"
1920 include " :conscrypt-android-platform"
2021 include " :conscrypt-android-stub"
@@ -27,7 +28,9 @@ if (System.env.ANDROID_HOME && file(System.env.ANDROID_HOME).exists()) {
2728 project(' :conscrypt-benchmark-android' ). projectDir = " $rootDir /benchmark-android" as File
2829 project(' :conscrypt-libcore-stub' ). projectDir = " $rootDir /libcore-stub" as File
2930} else {
30- logger. warn(' Android SDK has not been detected. Skipping Android projects.' )
31+ logger. warn(' Android projects not included. ' +
32+ ' Ensure ANDROID_HOME is set and set conscrypt.includeAndroid=true ' +
33+ ' in gradle.properties to include them.' )
3134}
3235
3336include " :conscrypt-api-doclet"
You can’t perform that action at this time.
0 commit comments