From 9ab25e0a2f537881745d1c5e066e1e3af1f8e24f Mon Sep 17 00:00:00 2001
From: fengge <844143714@qq.com>
Date: Wed, 1 Apr 2026 22:37:21 +0800
Subject: [PATCH] 1
---
.idea/vcs.xml | 6 ++
app/build.gradle.kts | 4 +-
app/src/main/assets/print_demo.html | 66 +++++++++++++-
.../com/stand/standapp/AndroidInterface.kt | 85 ++++++++++++++-----
.../main/java/com/stand/standapp/AppConfig.kt | 2 +-
.../java/com/stand/standapp/MainActivity.kt | 6 +-
.../java/com/stand/standapp/UpdateManager.kt | 54 +++++++++---
7 files changed, 182 insertions(+), 41 deletions(-)
create mode 100644 .idea/vcs.xml
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index f84519c..83c1172 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -11,8 +11,8 @@ android {
applicationId = "com.stand.standapp"
minSdk = 24
targetSdk = 34
- versionCode = 1
- versionName = "1.0.0"
+ versionCode = 2
+ versionName = "1.0.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
diff --git a/app/src/main/assets/print_demo.html b/app/src/main/assets/print_demo.html
index 93eb261..aae5db1 100644
--- a/app/src/main/assets/print_demo.html
+++ b/app/src/main/assets/print_demo.html
@@ -43,6 +43,19 @@
.log-item { margin-bottom: 4px; border-bottom: 1px solid #334155; padding-bottom: 2px; }
.log-time { color: #94a3b8; margin-right: 5px; }
.log-msg { word-break: break-all; }
+
+ /* Custom Modal Styles */
+ .modal-overlay {
+ display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
+ background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center;
+ }
+ .modal-content {
+ background: white; padding: 20px; border-radius: 12px; width: 85%; max-width: 400px;
+ box-shadow: 0 10px 25px rgba(0,0,0,0.2);
+ }
+ .modal-header { font-weight: bold; font-size: 18px; margin-bottom: 15px; color: #004A8F; border-bottom: 1px solid #eee; padding-bottom: 10px; }
+ .modal-body { font-size: 14px; line-height: 1.8; color: #444; word-break: break-all; }
+ .modal-footer { margin-top: 20px; text-align: right; }
@@ -66,7 +79,8 @@
(适用于蓝牙/USB 小票机,传输原始 JSON)
-
+
+
@@ -177,6 +191,19 @@
Telewave SDK Connectivity v1.0
+
+
+