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

Add complementary Kotlin support #1468

Open
2 of 8 tasks
vmutafov opened this issue Sep 2, 2019 · 0 comments
Open
2 of 8 tasks

Add complementary Kotlin support #1468

vmutafov opened this issue Sep 2, 2019 · 0 comments
Assignees
Labels

Comments

@vmutafov
Copy link
Contributor

vmutafov commented Sep 2, 2019

Currently, the way to use Kotlin features in a NativeScript app is by using them as used in a Java code e.g. https://kotlinlang.org/docs/reference/java-to-kotlin-interop.html

There should be a more convenient way of using some features in JS/TS code, thus I propose the following additions to NativeScript's Kotlin support:

  • Add support for calling Kotlin non-boolean properties as used in Kotlin itself
  • Add support for calling Kotlin boolean properties as used in Kotlin itself
  • Add support for requesting an instance of a Kotlin object without accessing the INSTANCE field
  • Add support for calling Kotlin extension functions/properties on a given type as used in Kotlin without using the generated static methods
  • Add support for mapping JS/TS lambdas and functions to Kotlin's functional interfaces (https://github.com/JetBrains/kotlin/blob/master/spec-docs/function-types.md)
  • Add support for calling Companion objects' method as used in Kotlin without needing them to be declared as @JvmStatic
  • Add support for overriding Kotlin properties when extending a Kotlin class using the JS/TS property syntax instead of overriding the getProperty/setProperty methods
  • Add support for calling Kotlin functions which accept an unsigned number as a parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant