[MPP] Change the deprecation message for HMPP properties

KT-55891
This commit is contained in:
Pavel Kirpichenkov
2023-01-24 15:28:00 +02:00
committed by Space Team
parent 37c87b0a84
commit b0c360b1b6
2 changed files with 3 additions and 2 deletions
@@ -39,7 +39,7 @@ class MppDeprecatedPropertiesIt : KGPBaseTest() {
defaultFlags.keys.forEach { flag ->
assert(
warnings.any { warning -> Regex(".*$flag.*is deprecated.*").matches(warning) },
warnings.any { warning -> Regex(".*$flag.*is obsolete.*").matches(warning) },
"A deprecation warning for the '$flag' should have been reported",
)
}
@@ -66,4 +66,5 @@ internal val deprecatedMppProperties: List<String> = listOf(
)
internal fun getMppDeprecationWarningMessageForProperty(property: String): String =
"w: The property '$property' is deprecated and is scheduled for removal in the stable Kotlin Multiplatform."
"w: The property '$property' is obsolete and will be removed in Kotlin 1.9. Read the details here: " +
"https://kotlinlang.org/docs/multiplatform-compatibility-guide.html#deprecate-hmpp-properties"