Skip to content

Commit

Permalink
Update README v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DantSu committed Oct 11, 2021
1 parent 15afc8f commit 5db8ba8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Jitpack package repository - ESCPOS-ThermalPrinter-Android v3.0.0](https://jitpack.io/v/DantSu/ESCPOS-ThermalPrinter-Android.svg)](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/3.0.0)
[![Jitpack package repository - ESCPOS-ThermalPrinter-Android v3.0.1](https://jitpack.io/v/DantSu/ESCPOS-ThermalPrinter-Android.svg)](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/3.0.1)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

# Android library for ESC/POS Thermal Printer
Expand Down Expand Up @@ -60,7 +60,7 @@ To test this library, it's pretty simple !

## Installation

**Step 1.** Add the [JitPack](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/3.0.0) repository to your build file. Add it in your root `/build.gradle` at the end of repositories:
**Step 1.** Add the [JitPack](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/3.0.1) repository to your build file. Add it in your root `/build.gradle` at the end of repositories:

```
allprojects {
Expand All @@ -76,7 +76,7 @@ allprojects {
```
dependencies {
...
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.0.0'
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.0.1'
}
```

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 29
compileSdkVersion 30
defaultConfig {
applicationId "com.dantsu.thermalprinter"
minSdkVersion 16
targetSdkVersion 29
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
6 changes: 3 additions & 3 deletions escposprinter/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Jitpack package repository - ESCPOS-ThermalPrinter-Android v3.0.0](https://jitpack.io/v/DantSu/ESCPOS-ThermalPrinter-Android.svg)](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/3.0.0)
[![Jitpack package repository - ESCPOS-ThermalPrinter-Android v3.0.1](https://jitpack.io/v/DantSu/ESCPOS-ThermalPrinter-Android.svg)](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/3.0.1)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

# Android library for ESC/POS Thermal Printer
Expand Down Expand Up @@ -60,7 +60,7 @@ To test this library, it's pretty simple !

## Installation

**Step 1.** Add the [JitPack](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/3.0.0) repository to your build file. Add it in your root `/build.gradle` at the end of repositories:
**Step 1.** Add the [JitPack](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/3.0.1) repository to your build file. Add it in your root `/build.gradle` at the end of repositories:

```
allprojects {
Expand All @@ -76,7 +76,7 @@ allprojects {
```
dependencies {
...
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.0.0'
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.0.1'
}
```

Expand Down
5 changes: 2 additions & 3 deletions escposprinter/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 29

compileSdkVersion 30

defaultConfig {
minSdkVersion 16
targetSdkVersion 29
targetSdkVersion 30
versionCode 1
versionName "1.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public byte[] bitmapToBytes(Bitmap bitmap) {
}

if (isSizeEdit) {
bitmap = Bitmap.createScaledBitmap(bitmap, bitmapWidth, bitmapHeight, false);
bitmap = Bitmap.createScaledBitmap(bitmap, bitmapWidth, bitmapHeight, true);
}

return EscPosPrinterCommands.bitmapToBytes(bitmap);
Expand Down

0 comments on commit 5db8ba8

Please sign in to comment.