File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,20 @@ internal fun Project.checkComposeCompilerPlugin() {
2828 }
2929}
3030
31+ internal const val minimalSupportedKgpVersion = " 2.1.0"
3132internal const val minimalSupportedKgpVersionError = " e: Configuration problem: " +
32- " Minimal supported Kotlin Gradle Plugin version is 2.0.0"
33- internal const val newCompilerIsAvailableVersion = " 2.0.0"
33+ " Minimal supported Kotlin Gradle Plugin version is $minimalSupportedKgpVersion "
3434internal const val newComposeCompilerKotlinSupportPluginId = " org.jetbrains.kotlin.plugin.compose"
3535internal const val newComposeCompilerError =
36- " Since Kotlin 2.0.0 to use Compose Multiplatform " +
37- " you must apply \" $newComposeCompilerKotlinSupportPluginId \" plugin." +
36+ " Starting with Compose Multiplatform 1.6.10, " +
37+ " you should apply \" $newComposeCompilerKotlinSupportPluginId \" plugin." +
3838 " \n See the migration guide https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compiler.html#migrating-a-compose-multiplatform-project"
3939
4040private fun Project.checkComposeCompilerPlugin (kgp : KotlinBasePlugin ) {
4141 val kgpVersion = kgp.pluginVersion
4242 val ideaIsInSync = project.ideaIsInSyncProvider().get()
4343
44- if (Version .fromString(kgpVersion) < Version .fromString(newCompilerIsAvailableVersion )) {
44+ if (Version .fromString(kgpVersion) < Version .fromString(minimalSupportedKgpVersion )) {
4545 if (ideaIsInSync) logger.error(minimalSupportedKgpVersionError)
4646 else error(minimalSupportedKgpVersionError)
4747 } else {
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import org.jetbrains.compose.internal.utils.nullableProperty
1515import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
1616import javax.inject.Inject
1717
18+ private const val newCompilerIsAvailableVersion = " 2.0.0"
19+
1820abstract class ComposeExtension @Inject constructor(
1921 objects : ObjectFactory ,
2022 project : Project
You can’t perform that action at this time.
0 commit comments