feat: fix print
This commit is contained in:
@@ -152,11 +152,11 @@ dependencies {
|
||||
api 'me.jessyan:autosize:1.2.+'
|
||||
|
||||
// 佳博打印SDK
|
||||
api('com.gainscha:sdk2:2.0.3@aar') {
|
||||
exclude group: 'com.jcraft'
|
||||
}
|
||||
// api(name: 'sdk2-2.1.6-20250901.051214-1', ext: 'aar') {
|
||||
// api(name: 'sdk2-2.0.3', ext: 'aar') {
|
||||
// api('com.gainscha:sdk2:2.0.3@aar') {
|
||||
// exclude group: 'com.jcraft'
|
||||
// }
|
||||
// api(name: 'sdk2-2.1.6-20250901.051214-1', ext: 'aar') {
|
||||
api(name: 'sdk2-2.0.4', ext: 'aar') {
|
||||
exclude group: 'com.jcraft'
|
||||
}
|
||||
}
|
||||
Binary file not shown.
BIN
module_base/libs/sdk2-2.0.4.aar
Normal file
BIN
module_base/libs/sdk2-2.0.4.aar
Normal file
Binary file not shown.
Binary file not shown.
@@ -567,7 +567,7 @@ object PrinterUtils {
|
||||
|
||||
fun printTest() {
|
||||
getConnectedPrinters().forEach {
|
||||
val bytes = v(Instruction.TSC.toString(), null).bytes
|
||||
val bytes = v(Instruction.TSC).bytes
|
||||
showLog("打印测试页 - ${it.printerDevice.printerName} \n${bytes.commonToUtf8String()}")
|
||||
it.print(bytes, null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user