mirror of
https://github.com/mik3y/usb-serial-for-android
synced 2025-06-08 16:36:10 +00:00
Updated Build Variants (markdown)
parent
48999e5bfa
commit
e65ba10764
@ -3,35 +3,27 @@
|
||||
The library is typically consumed from jitpack.io with:
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.mik3y:usb-serial-for-android:2.x.y
|
||||
implementation 'com.github.mik3y:usb-serial-for-android:3.x.y
|
||||
}
|
||||
|
||||
When pushing to github with jitpack enabled,
|
||||
__*.aar__ and __*-sources.jar__ are automatically published by jitpack,
|
||||
even if no `maven` or `maven-publish` gradle plugin is used.
|
||||
|
||||
# Jar
|
||||
|
||||
If you need a jar file (e.g. for cordova) run gradle task `createFullJarRelease` and use __full.jar__
|
||||
|
||||
# Local maven repository
|
||||
|
||||
To use a local maven repository (e.g. for developing usb-serial-for-android enhancements and testing in your application) comment in
|
||||
|
||||
//apply from: 'publishToMavenLocal.gradle'
|
||||
|
||||
This script is not enabled by default, as it confuses jitpack.
|
||||
|
||||
In your application toplevel `build.gradle` file add *mavenLocal* 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()
|
||||
...
|
||||
```
|
||||
2. adjust usb-serial-for-android version in your `app/build.gradle`
|
||||
|
||||
To consume new changes you have to
|
||||
1. increase version in `publishToMavenLocal.gradle`
|
||||
2. run gradle task `publishToMavenLocal`
|
||||
3. adjust usb-serial-for-android version in your `app/build.gradle`
|
||||
|
||||
Instead of executing steps 1.+3. you could also use some [gradle tricks](https://stackoverflow.com/questions/13565082/how-can-i-force-gradle-to-redownload-dependencies) to force dependency update
|
||||
Instead of increasing the version for each build you can also use some [gradle tricks](https://stackoverflow.com/questions/13565082/how-can-i-force-gradle-to-redownload-dependencies) to force dependency update.
|
||||
|
Loading…
x
Reference in New Issue
Block a user