Skip to content
kai-morich edited this page Sep 21, 2021 · 3 revisions

Jitpack repository (default)

The library is typically consumed from jitpack.io with:

dependencies {
    implementation 'com.github.mik3y:usb-serial-for-android:3.x.y
}

Jar

If you need a jar file (e.g. for cordova) run gradle task createFullJarRelease and use full.jar

Local maven repository

To create new versions in usb-serial-for-android project, you have to

  1. increase version in publishing section
  2. run gradle task publishToMavenLocal

To consume new versions in your project, you have to

  1. add mavenLocal repository in toplevel build.gradle file
    allprojects {
        repositories {
            mavenLocal()
            ...
  1. adjust usb-serial-for-android version in your app/build.gradle

Instead of increasing the version for each build you can also use some gradle tricks to force dependency update.