ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.7k stars 990 forks source link

Is it feasible to write cross-platform plug-ins using kotlin-native? #1600

Closed izengliang closed 5 years ago

izengliang commented 5 years ago

Is it feasible to write cross-platform plug-ins using kotlin native?

jcesarmobile commented 5 years ago

I've just done a quick read about kotlin native, but looks like you can create a common frameworks to use in both iOS and Android, but then you'll need to create a regular Capacitor plugin that uses that framework, so you will still need a minimum java/swift/Objective-C amount of code.

distante commented 3 years ago

I was just thinking about this.

There are use cases where both apps have to interact with a third party libraries (like Firebase, AdMob, AWS) and having a public interface that is respected in both iOS and Android could eventually prevent some bugs like https://github.com/capacitor-community/admob/issues/40

ionitron-bot[bot] commented 1 year ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.