Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Useful library to help Android developers to print with (Bluetooth, TCP, USB) ES

Developed for SDK version 16 (Android 4.1 Jelly Bean) and above.

## Build Tools
- Android Studio Iguana | 2023.2.1
- SDK 34
- JDK 17

## Tested printers

Expand Down Expand Up @@ -78,7 +82,7 @@ allprojects {
```
dependencies {
...
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.3.0'
implementation 'com.github.DantSu:ESCPOS-ThermalPrinter-Android:3.4.0'
}
```

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

android {
compileSdkVersion 33
compileSdk 34
namespace 'com.dantsu.thermalprinter'
buildFeatures{
buildConfig true
}

defaultConfig {
applicationId "com.dantsu.thermalprinter"
minSdkVersion 16
targetSdkVersion 33
minSdk 16
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
Expand All @@ -25,7 +30,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.6.1'
testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation project(path: ':escposprinter')
Expand Down
Binary file added app/build/outputs/apk/debug/app-debug.apk
Binary file not shown.
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.dantsu.thermalprinter">
xmlns:tools="http://schemas.android.com/tools">

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

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:8.3.0'
}
}

Expand Down
21 changes: 14 additions & 7 deletions escposprinter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ plugins {
id 'maven-publish'
}

def libraryVersionCode = 3003000
def libraryVersionName = "3.3.0"
def libraryVersionCode = 3004000
def libraryVersionName = "3.4.0"

android {
compileSdkVersion 33
compileSdk 34
namespace 'com.dantsu.escposprinter'
buildFeatures{
buildConfig true
}

defaultConfig {
minSdkVersion 16
targetSdkVersion 33
versionCode libraryVersionCode
versionName libraryVersionName
minSdk 16
targetSdk 34

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand All @@ -26,6 +28,11 @@ android {
}
}

publishing {
// Publishes "fullRelease" build variant with "fullRelease" component created by
// Android Gradle plugin
singleVariant("release")
}
}

dependencies {
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion escposprinter/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.dantsu.escposprinter" >
<manifest>
</manifest>
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ org.gradle.jvmargs=-Xmx1536m
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.enableJetifier=false

android.nonTransitiveRClass=false
android.nonFinalResIds=false
org.gradle.configuration-cache=true
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed May 03 12:31:57 CEST 2023
#Fri Mar 15 05:15:57 IST 2024
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME