[build][xcode][warning][todo] suppress deprecation warning with todo till bootstrap bump

This commit is contained in:
Vasily Levchenko
2021-04-08 10:42:44 +02:00
parent 1fa0ba987b
commit d2d324797b
@@ -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