kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Add Android-JAR plugin to kx-coroutines-android
trafficstars
The Android-JAR plugin works based on the following principles:
- can be added to a project with both plugins:
java-libraryandmaven-publish - creates 2 new configurations:
aarRuntimeandaarApiwith attributes that are requested by Android Gradle plugins - creates .aar artifacts for these configurations that pull in the regular .jar and additional files specified through extension
- provides extension for configuring required values for the AAR manifest:
minSdkandnamespace - adds the AAR configurations/artifacts to the maven publication throught the
components.java
As a result, we'll be able to continue shipping JARs to JVM clients (e.g. host side tests) and AAR to Android clients through the resulting Gradle module metadata.
In the future, I'm hoping to ship this plugin as part of Android Gradle plugins (com.android.