NativeScript / NativeScript/android

Add complementary Kotlin support

オープン
#1,468 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@vmutafov がすでに取り組んでいます。

2019年9月2日 から。

feature
主要言語
C++
スター
563
フォーク
144
平均マージ
10時間 46分
マージ済み PR(30日)
14

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。