diff --git a/communication/build.gradle b/communication/build.gradle index ccf0e6c9..da91f7e9 100644 --- a/communication/build.gradle +++ b/communication/build.gradle @@ -47,4 +47,5 @@ dependencies { api project(path: ':mifaretag') implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'com.github.felHR85:UsbSerial:6.1.0' } diff --git a/communication/libs/usbserial.jar b/communication/libs/usbserial.jar deleted file mode 100644 index 968e3ad1..00000000 Binary files a/communication/libs/usbserial.jar and /dev/null differ diff --git a/communication/src/main/java/cn/dxl/com/Com.java b/communication/src/main/java/cn/dxl/com/Com.java index 7fa4425f..77331faf 100644 --- a/communication/src/main/java/cn/dxl/com/Com.java +++ b/communication/src/main/java/cn/dxl/com/Com.java @@ -19,7 +19,7 @@ public final class Com implements Serializable { * For standardization and security, * you should not change any functions and variables defined by the native keyword, * or you may have a big problem! - * If your implementation does not need to be mapped to the bottom (only Java exists), please do not use this tool class! + * If your implementation does not need to be mapped to the c/c++ (only Java exists), please do not use this tool class! * * 警告!!! * 为了规范性和安全性,你不应当更改任何native关键字定义的函数与变量,否则可能会出现大问题! diff --git a/communication/src/main/java/cn/rrg/com/UsbSerialControl.java b/communication/src/main/java/cn/rrg/com/UsbSerialControl.java index 7d4736e4..b8cae7c2 100644 --- a/communication/src/main/java/cn/rrg/com/UsbSerialControl.java +++ b/communication/src/main/java/cn/rrg/com/UsbSerialControl.java @@ -22,7 +22,6 @@ import java.util.List; import java.util.Queue; import cn.dxl.common.util.AppUtil; -import cn.dxl.common.util.HexUtil; /* * Usb 2 uart Serial implements diff --git a/io_redirect/build.gradle b/io_redirect/build.gradle index c1f02ad7..f55ac1a7 100644 --- a/io_redirect/build.gradle +++ b/io_redirect/build.gradle @@ -41,4 +41,4 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' -} +} \ No newline at end of file