From bf12ee22c5fa8dd7fd6690e91977036ab5f9eab7 Mon Sep 17 00:00:00 2001 From: Franck ALARY Date: Thu, 25 Jun 2020 14:17:21 +0200 Subject: [PATCH] remove 'uses-permission' usb from library --- README.md | 8 +++++--- app/src/main/AndroidManifest.xml | 2 ++ escposprinter/README.md | 8 +++++--- escposprinter/src/main/AndroidManifest.xml | 4 +--- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 90274df..c8466a2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Jitpack package repository - ESCPOS-ThermalPrinter-Android v2.0.1](https://jitpack.io/v/DantSu/ESCPOS-ThermalPrinter-Android.svg)](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/2.0.1) +[![Jitpack package repository - ESCPOS-ThermalPrinter-Android v2.0.2](https://jitpack.io/v/DantSu/ESCPOS-ThermalPrinter-Android.svg)](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/2.0.2) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) # Android library for ESC/POS Thermal Printer @@ -48,7 +48,7 @@ Developed for SDK version 16 (Android 4.1 Jelly Bean) and above. ## Installation -**Step 1.** Add the [JitPack](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/2.0.1) 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/2.0.2) repository to your build file. Add it in your root `/build.gradle` at the end of repositories: ``` allprojects { @@ -64,7 +64,7 @@ allprojects { ``` dependencies { ... - implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:2.0.1' + implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:2.0.2' } ``` @@ -180,6 +180,8 @@ new Thread(new Runnable() { ### USB permission +Be sure to have `` in your `AndroidMenifest.xml`. + You have to check the USB permission in your app like this : ```java diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e4f9120..971e1b3 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,6 +3,8 @@ xmlns:tools="http://schemas.android.com/tools" package="com.dantsu.thermalprinter"> + + diff --git a/escposprinter/README.md b/escposprinter/README.md index 90274df..c8466a2 100644 --- a/escposprinter/README.md +++ b/escposprinter/README.md @@ -1,4 +1,4 @@ -[![Jitpack package repository - ESCPOS-ThermalPrinter-Android v2.0.1](https://jitpack.io/v/DantSu/ESCPOS-ThermalPrinter-Android.svg)](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/2.0.1) +[![Jitpack package repository - ESCPOS-ThermalPrinter-Android v2.0.2](https://jitpack.io/v/DantSu/ESCPOS-ThermalPrinter-Android.svg)](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/2.0.2) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) # Android library for ESC/POS Thermal Printer @@ -48,7 +48,7 @@ Developed for SDK version 16 (Android 4.1 Jelly Bean) and above. ## Installation -**Step 1.** Add the [JitPack](https://jitpack.io/#DantSu/ESCPOS-ThermalPrinter-Android/2.0.1) 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/2.0.2) repository to your build file. Add it in your root `/build.gradle` at the end of repositories: ``` allprojects { @@ -64,7 +64,7 @@ allprojects { ``` dependencies { ... - implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:2.0.1' + implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:2.0.2' } ``` @@ -180,6 +180,8 @@ new Thread(new Runnable() { ### USB permission +Be sure to have `` in your `AndroidMenifest.xml`. + You have to check the USB permission in your app like this : ```java diff --git a/escposprinter/src/main/AndroidManifest.xml b/escposprinter/src/main/AndroidManifest.xml index 58bc5fd..4bea254 100644 --- a/escposprinter/src/main/AndroidManifest.xml +++ b/escposprinter/src/main/AndroidManifest.xml @@ -1,4 +1,2 @@ - - +