Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): Enable Kotlin for Cordova Android Plugins #4536

Closed
wants to merge 4 commits into from
Closed

feat(android): Enable Kotlin for Cordova Android Plugins #4536

wants to merge 4 commits into from

Conversation

EinfachHans
Copy link
Contributor

closes #4426

If kotlin_version is set (because Kotlin is configured in module) the capacitor-cordova-android-plugins module now also respects that and configures itself.

@saschpe
Copy link
Contributor

saschpe commented Oct 27, 2021

You can have downstream projects using Kotlin as a dependency or are even written using Gradle Kotlin DSL without this. While the current Groovy-based Gradle files can certainly be improved to simplify using Gradle Kotlin DSL in your own projects, this change doesn't solve anything.

@EinfachHans
Copy link
Contributor Author

@saschpe it solves this for example for the usage of https://github.com/EinfachHans/cordova-plugin-advanced-imagepicker

@@ -13,6 +13,9 @@ buildscript {
}

apply plugin: 'com.android.library'
if(project.hasProperty('kotlin_version')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not every Gradle project that has a dependency on Kotlin sets this property.

@jcesarmobile
Copy link
Member

Closing as a similar PR was merged
#5438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Android Cordova Plugins Module Kotlin Support
4 participants