[TIMOB-25896] Android: Add Kotlin language support for modules
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-01-29T16:27:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.0.0 |
Components | Android |
Labels | android, build, kotlin, modules |
Reporter | Hans Knöchel |
Assignee | Yordan Banev |
Created | 2018-03-22T21:53:01.000+0000 |
Updated | 2020-01-29T16:27:58.000+0000 |
Description
*Summary:*
Titanium currently cannot build modules containing
*.kt
kotlin language files. We would like to add support for this language in the future.
*Note:*
This can easily be implemented once Titanium supports building with gradle.
https://developer.android.com/kotlin/add-kotlin
Attachments
File | Date | Size |
---|---|---|
ti.kotlin.zip | 2020-01-22T01:30:33.000+0000 | 12605 |
We may want to do this after adding "gradle" build support for module development. There is a "kotlin-android" gradle plugin used to build kotlin source code as shown here... https://kotlinlang.org/docs/reference/using-gradle.html
PR: https://github.com/appcelerator/titanium_mobile/pull/11434
The attached [^ti.kotlin.zip] is a module containing both Kotlin and Java8 code. The module and proxy is coded in Kotlin and the Kotlin code calls into Java8 code.
FR Passed. Waiting for Jenkins.
merged to master for 9.0.0
Following the test case in the PR, I am able to verify that it passes successfully on build 9.0.0.v20200128095338. Ticket closed.