open-location-code icon indicating copy to clipboard operation
open-location-code copied to clipboard

Kotlin Translation

Open shawnvega opened this issue 6 years ago • 6 comments

I like this project, and by converting this code to Kotlin it would allow for multi-platform project with a single source code. I'm proposing that this code gets translated to Kotlin.

shawnvega avatar Feb 10 '19 22:02 shawnvega

Thanks for the suggestion Shawn. I'm not super familiar with Kotlin, but it looks like Java libraries can be called from Kotlin directly. Is there anything we would gain from having a Kotlin library as opposed to a Java one?

zongweil avatar Feb 14 '19 04:02 zongweil

Checking in on this again - would having a Kotlin library provide any benefits over the existing Java one?

zongweil avatar Apr 24 '19 17:04 zongweil

@zongweil I haven't used this myself - but Kotlin can apparently be used in a multi-platform context where interoperability with Java code isn't possible or necessary in all instances. This tutorial is about sharing Kotlin code between an Android and an iOS app, for example: https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html

Translating the Java class itself should be easy to do, and it might even be possible to reuse the existing Java tests.

bocops avatar Apr 25 '19 11:04 bocops

Oh interesting. Writing a Kotlin implementation isn't super high priority for us, but this would make for a good contributor project.

zongweil avatar Apr 29 '19 22:04 zongweil

see #366

apatrida avatar Nov 17 '19 20:11 apatrida

Recommended tag: implementation request

fulldecent avatar Apr 25 '21 04:04 fulldecent