-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Android] Kotlin for app & plugin & capacitor codebase? #1227
Comments
Sure, we are open, but please, if you do it don’t do it all at once, better send small PRs that can be easily reviewed and tested as I don’t have experience with Kotlin |
@jcesarmobile You can request help from other mamber that have more experience working with Kotlin |
Yes I would definitely split up the work, we may need to discuss the changes based on small scope PRs. Will give it a shot next week 👍 |
Closing as it was more a question about if we were open to the changes, and not a real issue. |
Are you still planning to convert Capacitor-Android to Kotlin, or open to accept PRs? This would be especially important for the embedded use case; because Kotlin is now the primary language for native Android apps. |
My understanding is by using Kotlin in Capacitor Android, we'd be adding the Kotlin dependency to every app. I don't see this as something we want to attempt to figure out for Capacitor 3, but perhaps a later major version. Can you elaborate on why it's important for embedded? Kotlin should interop with Java quite well. |
I agree that this is a major change and therefore too late for Capacitor 3 (but I hope that Capacitor 4 is doable). Kotlin interops well with Java, but the native Android community is moving towards "Kotlin first". Moreover, if done right, Kotlin could improve the quality of the Android code (for example, preventing random NullpointerExceptions like #3553). |
Definitely, Kotlin is the future of Android, |
any news on that ? |
It's 3 years later, any updates? Would love to see Kotlin, since it's being adopted a lot of devs by now, and it's an official Android language. |
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. |
Hi guys,
I've been browsing the capacitor source code and was wondering if you are open to modernizing & cleaning up the android codebase and plugin/app templates that are generated by
npx @capacitor/cli plugin:generate
,npx @capacitor/cli create
andnpx cap init
.I'm thinking: more recent Android gradle plugin, less unused boiler plate (that android studio project templates create, e.g. local jar dependencies, test dependencies on unused libraries, unused proguard files etc.), kotlin & androidx setup by default, app/plugin code generated in Kotlin.
If you are open to this I could contribute a pull request with what i have in mind and we can continue discussion based on that. If not - no hard feelings 😉
Cheers
Nemo
The text was updated successfully, but these errors were encountered: