Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Kotlin 1.5, related version bumps, and add macosArm64 target #189

Merged
merged 5 commits into from
Dec 2, 2021

Conversation

garyp
Copy link
Collaborator

@garyp garyp commented Dec 1, 2021

The first commit contains the actual Kotlin 1.5 update. Second commit adds the macosArm64() target. Remaining commits fix up compiler warnings flagged by the new Kotlin 1.5 compiler.

Fixes #171

Base automatically changed from garyp/bcv-update to master December 2, 2021 03:35
@garyp garyp force-pushed the garyp/kotlin-1.5 branch 4 times, most recently from 698b2f3 to 1ddf53c Compare December 2, 2021 05:52
garyp added 5 commits December 1, 2021 23:07
Kotlin 1.5 doesn't allow opt-in annotations on constructor parameters.
So a data class property declared in the constructor needs to be
annotated with `@property:` so that the annotation only applies to the
property and not to the constructor parameter.

Kotlin 1.5 also no longer allows opt-in annotations on property getters.
The Kotlin/JS IR compiler in Kotlin 1.5 no longer allows interfaces to
be annotated with `@JsExport`. This caused some strong developer
pushback and is going to be relaxed in Kotlin 1.6.20:
https://youtrack.jetbrains.com/issue/KT-45434#focus=Comments-27-5349163.0-0.
Once that is released, we can hopefully reintroduce the `@JsExport`
annotation on interfaces.
Copy link
Contributor

@seanadkinson seanadkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes all look good 👍


val jsTest by getting {
dependencies {
implementation(kotlin("test-js"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whatever this dependency provided is included in kotlin("test") now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Kotlin 1.5 simplified the test dependencies so you can now just add a kotlin("test") dependency to the common source set and it'll pull in the correct dependencies on each platform automatically.

@garyp garyp merged commit 4196aa0 into master Dec 2, 2021
@garyp garyp deleted the garyp/kotlin-1.5 branch December 2, 2021 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Kotlin 1.5
2 participants