Skip to content

Commit

Permalink
update Kotlin 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso committed Jun 10, 2022
1 parent 8f8ce49 commit b3c8e17
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand All @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
}

allprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}


Expand Down
3 changes: 2 additions & 1 deletion src/jvmMain/kotlin/sample/SampleJvm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ actual class Sample {

actual object Platform {
actual val name: String = "JVM"
}
}

0 comments on commit b3c8e17

Please sign in to comment.