CartoDB / mobile-sdk

CARTO Mobile SDK core project
https://carto.com/docs/carto-engine/mobile-sdk/
BSD 3-Clause "New" or "Revised" License
186 stars 68 forks source link

Kotlin multiplatform Android/iOS #251

Open carlos-mg89 opened 5 years ago

carlos-mg89 commented 5 years ago

Hi,

I'm aware that you support Xamarin (which is pending for me to test and see how it works) for multiplatform projects, and it was in part the reason why I chose to develop my app using your mobile SDK for maps.

However, I started developing my app for Android due to a number of reasons (using Kotlin almost entirely, ~95% of the code) and I was wondering if there are any plans to support/guide with the recent Multiplatform compatibility with iOS that Kotlin is offering.

I have just read this official Kotlin document ( https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html ) that explains how to set up a multiplatform Android and iOS project using a shared library written in Kotlin. It would be super interesting if it'll be possible to use the current code written in Kotlin, to be used by an iOS app. I understand that there's a part of code that has to be written exclusively for iOS devices (anything that uses iOS frameworks), but having the possibility to share a lot of code that's related to the Carto SDK would be a big plus for this migration that I'm thinking about.

P.S. The new 4.1.4 version works super smooth by the way :)

mtehver commented 5 years ago

Hi. Thanks for the suggestion. I personally like Kotlin a lot and we will be monitoring the popularity of Kotlin on iOS. If it succeeds, we may consider doing this. But at the moment, there are no plans.