nebula-kotlin-plugin icon indicating copy to clipboard operation
nebula-kotlin-plugin copied to clipboard

Support for Kotlin in Android

Open Android-s14 opened this issue 8 years ago • 2 comments

This feature would be appreciated by many people, I think.

A potential implementation could be to check if a gradle configuration contains com.android.application plugin applied (and may be its deprecated aliases + android library projects), and apply kotlin-android plugin in this case instead of the standard kotlin.

Android-s14 avatar Aug 26 '16 00:08 Android-s14

+1

theangrydev avatar Sep 06 '16 22:09 theangrydev

It'll come with some caveats over the plain version:

https://github.com/nebula-plugins/nebula-kotlin-plugin/commit/169170de8b0ee6c99229efae1a2206f49078611b

We won't be able to add the standard library automatically, or do the sourceCompatibility trick for adding the correct library variant, because the Android plugin resolves the compile configuration when it's applied.

Just need to fix a failing test, and I'll look at a release.

DanielThomas avatar Sep 13 '16 01:09 DanielThomas