From d2d324797b44920d9f6cde6f93ca742f92a396db Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Thu, 8 Apr 2021 10:42:44 +0200 Subject: [PATCH] [build][xcode][warning][todo] suppress deprecation warning with todo till bootstrap bump --- .../main/kotlin/org/jetbrains/kotlin/konan/target/Xcode.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kotlin-native/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/Xcode.kt b/kotlin-native/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/Xcode.kt index 0ad58562865..03fd90fc8df 100644 --- a/kotlin-native/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/Xcode.kt +++ b/kotlin-native/shared/src/main/kotlin/org/jetbrains/kotlin/konan/target/Xcode.kt @@ -35,6 +35,13 @@ interface Xcode { val additionalTools: String val simulatorRuntimes: String + /** + * TODO: `toLowerCase` is deprecated and should be replaced with `lowercase`, but + * this code used in buildSrc which depends on bootstrap version of stdlib, so right version + * of this function isn't available, please replace warning suppression with right function + * when compatible version of bootstrap will be available. + */ + @Suppress("DEPRECATION") fun pathToPlatformSdk(platformName: String): String = when (platformName.toLowerCase()) { "macosx" -> macosxSdk "iphoneos" -> iphoneosSdk