From 8c1a004ad66f3643616c43a21261879485096fdc Mon Sep 17 00:00:00 2001 From: liup <1454939542@qq.com> Date: Mon, 7 Oct 2024 16:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=B2=E5=8F=A3=E5=92=8C?= =?UTF-8?q?=E8=93=9D=E7=89=99=E9=80=9A=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetSelector.xml | 4 +- .idea/other.xml | 329 ++++++++ app/build.gradle | 16 +- app/libs/arm64-v8a/libserial_port.so | Bin 0 -> 9904 bytes app/libs/armeabi-v7a/libserial_port.so | Bin 0 -> 13776 bytes app/libs/armeabi/libserial_port.so | Bin 0 -> 13768 bytes app/libs/mips/libserial_port.so | Bin 0 -> 71224 bytes app/libs/x86/libserial_port.so | Bin 0 -> 5476 bytes app/release/output-metadata.json | 2 +- app/src/main/AndroidManifest.xml | 25 + .../java/com/bonait/bnframework/api/Api.java | 46 ++ .../bnframework/api/CommonResponse.java | 117 +++ .../com/bonait/bnframework/api/HttpUtil.java | 70 ++ .../bonait/bnframework/api/IHttpCallBack.java | 29 + .../bonait/bnframework/api/ServerManager.java | 56 ++ .../api/interceptor/AccountSNInterceptor.kt | 51 ++ .../interceptor/ConnectRetryInterceptor.java | 71 ++ .../api/interceptor/RequestInterceptor.java | 21 + .../api/interceptor/StbInfoInterceptor.java | 73 ++ .../bnframework/ble/BleClientActivity.java | 430 ++++++++++ .../bonait/bnframework/ble/BleDevAdapter.java | 186 +++++ .../bnframework/ble/BleServiceActivity.java | 297 +++++++ .../welcome/activity/WelcomeActivity.java | 7 +- .../bonait/bnframework/serial/AssistBean.java | 111 +++ .../serial/ComAssistantActivity.java | 737 ++++++++++++++++++ .../bonait/bnframework/serial/ComBean.java | 23 + .../com/bonait/bnframework/serial/MyFunc.java | 83 ++ .../bnframework/serial/SerialHelper.java | 243 ++++++ .../bonait/bnframework/serial/SerialPort.java | 86 ++ .../bnframework/serial/SerialPortFinder.java | 124 +++ .../ui/viewmodel/HomeGoodsViewModel.java | 2 + app/src/main/jni/arm64-v8a/libserial_port.so | Bin 0 -> 9904 bytes .../main/jni/armeabi-v7a/libserial_port.so | Bin 0 -> 13776 bytes app/src/main/jni/armeabi/libserial_port.so | Bin 0 -> 13768 bytes app/src/main/jni/mips/libserial_port.so | Bin 0 -> 71224 bytes app/src/main/jni/x86/libserial_port.so | Bin 0 -> 5476 bytes app/src/main/res/drawable/divider.xml | 7 + app/src/main/res/drawable/sel_item.xml | 14 + app/src/main/res/drawable/stroke.xml | 6 + .../main/res/layout/activity_bleclient.xml | 122 +++ .../main/res/layout/activity_serial_test.xml | 451 +++++++++++ app/src/main/res/layout/activity_service.xml | 49 ++ .../main/res/layout/item/layout/item_dev.xml | 22 + app/src/main/res/values/baudrates.xml | 69 ++ app/src/main/res/values/strings.xml | 14 + 45 files changed, 3988 insertions(+), 5 deletions(-) create mode 100644 .idea/other.xml create mode 100644 app/libs/arm64-v8a/libserial_port.so create mode 100644 app/libs/armeabi-v7a/libserial_port.so create mode 100644 app/libs/armeabi/libserial_port.so create mode 100644 app/libs/mips/libserial_port.so create mode 100644 app/libs/x86/libserial_port.so create mode 100644 app/src/main/java/com/bonait/bnframework/api/Api.java create mode 100644 app/src/main/java/com/bonait/bnframework/api/CommonResponse.java create mode 100644 app/src/main/java/com/bonait/bnframework/api/HttpUtil.java create mode 100644 app/src/main/java/com/bonait/bnframework/api/IHttpCallBack.java create mode 100644 app/src/main/java/com/bonait/bnframework/api/ServerManager.java create mode 100644 app/src/main/java/com/bonait/bnframework/api/interceptor/AccountSNInterceptor.kt create mode 100644 app/src/main/java/com/bonait/bnframework/api/interceptor/ConnectRetryInterceptor.java create mode 100644 app/src/main/java/com/bonait/bnframework/api/interceptor/RequestInterceptor.java create mode 100644 app/src/main/java/com/bonait/bnframework/api/interceptor/StbInfoInterceptor.java create mode 100644 app/src/main/java/com/bonait/bnframework/ble/BleClientActivity.java create mode 100644 app/src/main/java/com/bonait/bnframework/ble/BleDevAdapter.java create mode 100644 app/src/main/java/com/bonait/bnframework/ble/BleServiceActivity.java create mode 100644 app/src/main/java/com/bonait/bnframework/serial/AssistBean.java create mode 100644 app/src/main/java/com/bonait/bnframework/serial/ComAssistantActivity.java create mode 100644 app/src/main/java/com/bonait/bnframework/serial/ComBean.java create mode 100644 app/src/main/java/com/bonait/bnframework/serial/MyFunc.java create mode 100644 app/src/main/java/com/bonait/bnframework/serial/SerialHelper.java create mode 100644 app/src/main/java/com/bonait/bnframework/serial/SerialPort.java create mode 100644 app/src/main/java/com/bonait/bnframework/serial/SerialPortFinder.java create mode 100644 app/src/main/jni/arm64-v8a/libserial_port.so create mode 100644 app/src/main/jni/armeabi-v7a/libserial_port.so create mode 100644 app/src/main/jni/armeabi/libserial_port.so create mode 100644 app/src/main/jni/mips/libserial_port.so create mode 100644 app/src/main/jni/x86/libserial_port.so create mode 100644 app/src/main/res/drawable/divider.xml create mode 100644 app/src/main/res/drawable/sel_item.xml create mode 100644 app/src/main/res/drawable/stroke.xml create mode 100644 app/src/main/res/layout/activity_bleclient.xml create mode 100644 app/src/main/res/layout/activity_serial_test.xml create mode 100644 app/src/main/res/layout/activity_service.xml create mode 100644 app/src/main/res/layout/item/layout/item_dev.xml create mode 100644 app/src/main/res/values/baudrates.xml diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index aecac32a..adc32a36 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,10 +4,10 @@