Skip to content

Commit

Permalink
修改readme
Browse files Browse the repository at this point in the history
  • Loading branch information
licheedev committed Sep 18, 2017
1 parent be8a99f commit d863ad2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,33 @@
# Android-SerialPort-API
Google官方的Android串口通信Demo,修改成Android Studio项目

[![](https://jitpack.io/v/licheedev/Android-SerialPort-API.svg)](https://jitpack.io/#licheedev/Android-SerialPort-API)

**Gradle 引用**

1. 在根build.gradle中添加

```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

2. 添加依赖

```
dependencies {
compile 'com.github.licheedev.Android-SerialPort-API:serialport:1.0'
}
```

**修改`su`路径**

```java
// su默认路径为 "/system/bin/su"
// 可通过此方法修改
SerialPort.setSuPath("/system/xbin/su");
```
1 change: 1 addition & 0 deletions serialport/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ dependencies {
}

apply from: '../jitpack.gradle'

0 comments on commit d863ad2

Please sign in to comment.