kotlinx.coroutines icon indicating copy to clipboard operation
kotlinx.coroutines copied to clipboard

Add Android-JAR plugin to kx-coroutines-android

Open wojtek-kalicinski opened this issue 3 years ago • 0 comments
trafficstars

The Android-JAR plugin works based on the following principles:

  • can be added to a project with both plugins: java-library and maven-publish
  • creates 2 new configurations: aarRuntime and aarApi with 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: minSdk and namespace
  • 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.) and this code could then be removed.

wojtek-kalicinski avatar May 18 '22 10:05 wojtek-kalicinski