diff --git a/.idea/misc.xml b/.idea/misc.xml index 31a4e77..0d997d2 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,9 @@ + + + diff --git a/Readme.md b/Readme.md index 56fa64f..a902836 100644 --- a/Readme.md +++ b/Readme.md @@ -4,7 +4,7 @@ [![jCenter](https://img.shields.io/badge/Apache-2.0-green.svg )](https://github.com/Foso/KotlinReactNativeMpp/blob/master/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) -[![jCenter](https://img.shields.io/badge/Kotlin-1.6.21-green.svg +[![jCenter](https://img.shields.io/badge/Kotlin-1.7.0-green.svg )](https://github.com/Foso/Sheasy/blob/master/LICENSE) @@ -25,7 +25,8 @@ This is an example project that shows how to create a Kotlin Compiler Plugin. At ## Usage -> :information_source: Please be aware that the Kotlin Compiler still doesn’t have any stable API and there is no backwards compatibility guaranteed. Kotlin versions above 1.6.21 can have a totally different API. +> :information_source: Please be aware that the Kotlin Compiler still doesn’t have any stable API and there is no +> backwards compatibility guaranteed. Kotlin versions above 1.7.0 can have a totally different API. * Inside the project folder run ` ./gradlew clean build` diff --git a/build.gradle b/build.gradle index f49cca1..d08afa3 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ buildscript { } } plugins { - id 'org.jetbrains.kotlin.multiplatform' version '1.6.21' + id 'org.jetbrains.kotlin.multiplatform' version '1.7.0' } apply plugin: 'compiler.gradleplugin.helloworld' diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index c387d23..517c72d 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'org.jetbrains.kotlin.jvm' version '1.6.21' + id 'org.jetbrains.kotlin.jvm' version '1.7.0' } allprojects { diff --git a/buildSrc/compiler-plugin/kotlin-native-plugin/src/main/java/de/jensklingenberg/NativeTestComponentRegistrar.kt b/buildSrc/compiler-plugin/kotlin-native-plugin/src/main/java/de/jensklingenberg/NativeComponentRegistrar.kt similarity index 94% rename from buildSrc/compiler-plugin/kotlin-native-plugin/src/main/java/de/jensklingenberg/NativeTestComponentRegistrar.kt rename to buildSrc/compiler-plugin/kotlin-native-plugin/src/main/java/de/jensklingenberg/NativeComponentRegistrar.kt index 2228126..d163fd2 100644 --- a/buildSrc/compiler-plugin/kotlin-native-plugin/src/main/java/de/jensklingenberg/NativeTestComponentRegistrar.kt +++ b/buildSrc/compiler-plugin/kotlin-native-plugin/src/main/java/de/jensklingenberg/NativeComponentRegistrar.kt @@ -11,7 +11,7 @@ import org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar import org.jetbrains.kotlin.config.CompilerConfiguration @AutoService(ComponentRegistrar::class) -class NativeTestComponentRegistrar : ComponentRegistrar { +class NativeComponentRegistrar : ComponentRegistrar { override fun registerProjectComponents(project: MockProject, configuration: CompilerConfiguration) { diff --git a/buildSrc/compiler-plugin/kotlin-plugin/src/main/java/de/jensklingenberg/NativeCommandLineProcessor.kt b/buildSrc/compiler-plugin/kotlin-plugin/src/main/java/de/jensklingenberg/ExampleCommandLineProcessor.kt similarity index 94% rename from buildSrc/compiler-plugin/kotlin-plugin/src/main/java/de/jensklingenberg/NativeCommandLineProcessor.kt rename to buildSrc/compiler-plugin/kotlin-plugin/src/main/java/de/jensklingenberg/ExampleCommandLineProcessor.kt index 027e9ab..3ff4850 100644 --- a/buildSrc/compiler-plugin/kotlin-plugin/src/main/java/de/jensklingenberg/NativeCommandLineProcessor.kt +++ b/buildSrc/compiler-plugin/kotlin-plugin/src/main/java/de/jensklingenberg/ExampleCommandLineProcessor.kt @@ -8,7 +8,7 @@ import org.jetbrains.kotlin.config.CompilerConfiguration import org.jetbrains.kotlin.config.CompilerConfigurationKey @AutoService(CommandLineProcessor::class) // don't forget! -class NativeCommandLineProcessor : CommandLineProcessor { +class ExampleCommandLineProcessor : CommandLineProcessor { override val pluginId: String = "helloWorldPlugin" diff --git a/buildSrc/gradle-plugin/build.gradle b/buildSrc/gradle-plugin/build.gradle index 4f85798..f1facef 100644 --- a/buildSrc/gradle-plugin/build.gradle +++ b/buildSrc/gradle-plugin/build.gradle @@ -23,7 +23,7 @@ gradlePlugin { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.6.21" + implementation "org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.0" } diff --git a/src/jvmMain/kotlin/sample/SampleJvm.kt b/src/jvmMain/kotlin/sample/SampleJvm.kt index b87230e..6e47c9f 100644 --- a/src/jvmMain/kotlin/sample/SampleJvm.kt +++ b/src/jvmMain/kotlin/sample/SampleJvm.kt @@ -6,4 +6,5 @@ actual class Sample { actual object Platform { actual val name: String = "JVM" -} \ No newline at end of file +} +