Skip to content

Commit afeac1a

Browse files
committed
Make check for ANDROIDX_PROJECT==kmp not case sensitive
Test: Manually checked ./studiow kmp and builds on CI should still pass Change-Id: I78fd32585f54f6a0cf5c64af84168310383f3c19
1 parent 0a33531 commit afeac1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/public/src/main/kotlin/androidx/build/Multiplatform.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Multiplatform {
3939
*/
4040
@JvmStatic
4141
fun isKotlinNativeEnabled(project: Project): Boolean {
42-
return System.getenv()["ANDROIDX_PROJECTS"] == "KMP" ||
42+
return "KMP".equals(System.getenv()["ANDROIDX_PROJECTS"], ignoreCase = true) ||
4343
StudioType.isPlayground(project) ||
4444
project.providers.gradleProperty("androidx.kmp.native.enabled")
4545
.orNull?.toBoolean() == true

0 commit comments

Comments
 (0)