Skip to content

Add initial Kotlin support #1457

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

Merged
merged 4 commits into from
Aug 27, 2019
Merged

Add initial Kotlin support #1457

merged 4 commits into from
Aug 27, 2019

Conversation

vmutafov
Copy link
Contributor

@vmutafov vmutafov commented Aug 27, 2019

Related to: #1459
Related to: #1178

Currently, some of Kotlin's features do not work in NativeScript, most notably the Companion objects. This PR enables their usage. The PR also adds JS tests for Kotlin specific language features which do not have an analog in Java.

The PR ensures Kotlin features could be used in JS the same way Kotlin could be used in Java projects. Calling Kotlin from Java is well described in the official Kotlin docs: https://kotlinlang.org/docs/reference/java-to-kotlin-interop.html

Syntax for calling Kotlin properties in JS as if they have been fields is also added with the restriction that properties whose names start with 'is' should be used by calling their backing method as in if they were used in Java.

@cla-bot cla-bot bot added the cla: yes label Aug 27, 2019
@vmutafov vmutafov changed the title Vmutafov/experimental Add initial Kotlin support Aug 27, 2019
@vmutafov vmutafov force-pushed the vmutafov/experimental branch from 51ebd95 to 1824bd3 Compare August 27, 2019 15:08
@vmutafov vmutafov force-pushed the vmutafov/experimental branch from 9ba36ab to 64525fd Compare August 27, 2019 17:27
@vmutafov
Copy link
Contributor Author

test

@vmutafov vmutafov merged commit 2d0d198 into master Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants