@ -46,9 +46,7 @@ private fun KotlinNativeTarget.checkCacheKindUserValueIsNotNone() {
val value = provider . valueOrNull ( cacheKindProperty )
val value = provider . valueOrNull ( cacheKindProperty )
if ( value != null ) {
if ( value != null ) {
if ( value . equals ( NONE _VALUE , ignoreCase = true ) ) {
if ( value . equals ( NONE _VALUE , ignoreCase = true ) ) {
ComposeMultiplatformBuildService
error ( cacheKindPropertyWarningMessage ( cacheKindProperty , provider ) )
. getInstance ( project )
. warnOnceAfterBuild ( cacheKindPropertyWarningMessage ( cacheKindProperty , provider ) )
}
}
return
return
}
}
@ -60,13 +58,13 @@ private fun cacheKindPropertyWarningMessage(
cacheKindProperty : String ,
cacheKindProperty : String ,
provider : KGPPropertyProvider
provider : KGPPropertyProvider
) = """
) = """
| Warning : ' $ cacheKindProperty ' is explicitly set to `none` .
| ' $ cacheKindProperty ' is explicitly set to `none` .
| This option significantly slows the Kotlin / Native compiler .
| This option significantly slows the Kotlin / Native compiler .
| Compose Multiplatform Gradle plugin can set this property automatically ,
| Compose Multiplatform Gradle plugin can set this property automatically ,
| when it is necessary .
| when it is necessary .
| * Recommended action : remove explicit ' $ cacheKindProperty = $ NONE _VALUE ' from $ { provider . location } .
| * Recommended action : remove explicit ' $ cacheKindProperty = $ NONE _VALUE ' from $ { provider . location } .
| * Alternative action : if you are sure you need ' $ cacheKindProperty = $ NONE _VALUE ' , disable
| * Alternative action : if you are sure you need ' $ cacheKindProperty = $ NONE _VALUE ' , disable
| this warning by adding ' $ COMPOSE _NATIVE _MANAGE _CACHE _KIND = false ' to your ' gradle . properties ' .
| this error by adding ' $ COMPOSE _NATIVE _MANAGE _CACHE _KIND = false ' to your ' gradle . properties ' .
""" .trimMargin()
""" .trimMargin()
private fun KotlinNativeTarget . configureTargetCompilerCache ( kotlinVersion : KotlinVersion ) {
private fun KotlinNativeTarget . configureTargetCompilerCache ( kotlinVersion : KotlinVersion ) {