NativeScript / NativeScript/android
Add complementary Kotlin support
Đang mở
@vmutafov đang làm issue này rồi.
Từ ngày 2/9/2019.
feature
- Ngôn ngữ chính
- C++
- Star
- 563
- Fork
- 144
- Merge trung bình
- 10 giờ 46 phút
- Pull request đã merge (30 ngày)
- 14
Mô tả
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
objectwithout accessing theINSTANCEfield - 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
Companionobjects' 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/setPropertymethods - Add support for calling Kotlin functions which accept an unsigned number as a parameter
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.