Commit 9a5ffaaa748856bfeb9d5d54d2acb4abcf8be73c

Authored by “wangming”
1 parent a6f5c1af

1

美国版/Food Labeling Management App UniApp/nativeplugins/native-fast-printer/README.md
@@ -13,28 +13,12 @@ @@ -13,28 +13,12 @@
13 ```js 13 ```js
14 const printer = uni.requireNativePlugin('native-fast-printer') 14 const printer = uni.requireNativePlugin('native-fast-printer')
15 ``` 15 ```
16 - 16 +fan
17 ## 方法 17 ## 方法
18 - `connect(params, callback)` 18 - `connect(params, callback)`
19 - `disconnect(callback)` 19 - `disconnect(callback)`
20 - `isConnected(callback)` 20 - `isConnected(callback)`
21 - `printTemplate(params, callback)` 21 - `printTemplate(params, callback)`
22 22
23 -## 源码位置  
24 -- 当前目录是源码主目录  
25 -- `美国版/Food Labeling Management App UniApp/nativeplugins/native-fast-printer/` 是同步后的 uni-app 打包镜像  
26 -  
27 -## 目录结构  
28 -- `android-src/src/com/foodlabel/nativeprinter/`  
29 - - `NativeFastPrinterModule.java`:uni-app 原生模块入口  
30 - - `transport/`:蓝牙连接与 SDK 传输层  
31 - - `template/`:系统模板 JSON → TSC 指令  
32 - - `debug/`:调试状态与统计信息  
33 - - `support/`:结果对象、JSON 读取、异常展开  
34 -- `android/`:编译产物 AAR  
35 -- `sync-to-uniapp.sh`:同步到 uni-app 打包镜像  
36 -  
37 ## 说明 23 ## 说明
38 -1. 修改源码后执行 `android-src/build-aar.sh`  
39 -2. 再执行 `sync-to-uniapp.sh`  
40 -3. 重新打包 uni-app 自定义基座 24 +修改源码后可执行 `android-src/build-aar.sh` 重新生成 AAR。