Skip to content

Commit

Permalink
remove 'uses-permission' usb from library
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck ALARY committed Jun 25, 2020
1 parent b95e304 commit bf12ee2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 5 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 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
Expand Down Expand Up @@ -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 {
Expand All @@ -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'
}
```

Expand Down Expand Up @@ -180,6 +180,8 @@ new Thread(new Runnable() {

### USB permission

Be sure to have `<uses-feature android:name="android.hardware.usb.host" />` in your `AndroidMenifest.xml`.

You have to check the USB permission in your app like this :

```java
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.dantsu.thermalprinter">

<uses-feature android:name="android.hardware.usb.host" />

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.BLUETOOTH" />

Expand Down
8 changes: 5 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 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
Expand Down Expand Up @@ -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 {
Expand All @@ -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'
}
```

Expand Down Expand Up @@ -180,6 +180,8 @@ new Thread(new Runnable() {

### USB permission

Be sure to have `<uses-feature android:name="android.hardware.usb.host" />` in your `AndroidMenifest.xml`.

You have to check the USB permission in your app like this :

```java
Expand Down
4 changes: 1 addition & 3 deletions escposprinter/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dantsu.escposprinter" >
<uses-feature android:name="android.hardware.usb.host" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.dantsu.escposprinter" >
</manifest>

0 comments on commit bf12ee2

Please sign in to comment.