Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Add complementary Kotlin support

Aberta
#1,468 0 comentários 0 reações 1 responsável Ver no GitHub

@vmutafov já está trabalhando nisso.

Desde 2/9/2019.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

feature

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
Linguagem predominante
C++
Estrelas
563
Forks
144
Merge médio
10h 46min
PRs com merge (30d)
14

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de NativeScript/android

Todas as issues de NativeScript/android

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.