Using Kotlin in an Android library distributed as AAR

Is it even possible to use Kotlin to write a library?

The problem that I see is that it will depend on specyfic versions of kotlin-stdlib and kotlin-runtime and force the library user to use the same version.

I am considering using jarjar to repack those, but then how to include them in a distribution like fatjar? Inside the unpacked aar, I see the /libs directory - is there any way to use it?

+5
source share

Source: https://habr.com/ru/post/1261385/


All Articles