Skip to content

Commit

Permalink
Update pipe failed
Browse files Browse the repository at this point in the history
  • Loading branch information
novandikp committed Jan 29, 2024
1 parent 2e08783 commit 55ad31e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ThermalPrinterAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.2.0'
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.4.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ public void print(){
try {
printer = new EscPosPrinter(deviceConnected, type.getPrinterDPI(), type.getPrinterWidth(), type.getMaxCharColumns());
printer.printFormattedText(textBuilder.build(type));
disconnect();
} catch (Exception e) {
e.printStackTrace();
}
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {

android {

compileSdk 31
compileSdk 33

defaultConfig {
applicationId "com.example.printertesting"
minSdk 21
targetSdk 31
targetSdk 33
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -38,5 +38,5 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.2.0'
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.4.0'
}

0 comments on commit 55ad31e

Please sign in to comment.