kmm-local-publish-sample

It is a sample project to demonstrate how to Publish KMM library to Local Maven and consume in an Android Project

image

  1. Build the library project you will see publication updated as above in the gradle tasks.

  2. run *publishToLocalMaven gradle task.

  3. now check ~/.m2 folder for your library project it usually starts from com/example/shared …

  4. If you can see yours folder check any xml file and you may find your artifactID and groupID with Version there image

  5. Now in Android App i.e KmmLibraryConsumer project add the following line(app level build.gradle) image

Note: In Shared Module there is configuration of Maven Publishing

GitHub

View Github