1
0
mirror of https://github.com/mik3y/usb-serial-for-android.git synced 2026-08-11 08:22:52 +00:00

build with jitpack

This commit is contained in:
Kai Morich
2019-10-06 10:31:34 +02:00
parent 508c39e66a
commit 2bee5b930b
10 changed files with 139 additions and 166 deletions
+17 -1
View File
@@ -11,7 +11,23 @@ functions for use with your own protocols.
## Quick Start
**1.** [Link your project](https://github.com/mik3y/usb-serial-for-android/wiki/Building-From-Source) to the library.
**1.** Add library to your project:
Add jitpack.io repository to your root build.gradle:
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
Add library to dependencies
```
dependencies {
implementation 'com.github.mik3y:usb-serial-for-android:Tag'
}
```
**2.** Copy [device_filter.xml](https://github.com/mik3y/usb-serial-for-android/blob/master/usbSerialExamples/src/main/res/xml/device_filter.xml) to your project's `res/xml/` directory.