-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Build Variants
kai-morich edited this page Sep 21, 2021
·
3 revisions
The library is typically consumed from jitpack.io with:
dependencies {
implementation 'com.github.mik3y:usb-serial-for-android:3.x.y
}
If you need a jar file (e.g. for cordova) run gradle task createFullJarRelease
and use full.jar
To create new versions in usb-serial-for-android project, you have to
- increase version in
publishing
section - run gradle task
publishToMavenLocal
To consume new versions in your project, you have to
- add mavenLocal repository in toplevel
build.gradle
file
allprojects {
repositories {
mavenLocal()
...
- 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.