diff --git a/README.md b/README.md index 4e585e7..b3c9687 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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' } ``` diff --git a/app/build.gradle b/app/build.gradle index e244b78..c0136a9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 { @@ -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') diff --git a/app/build/outputs/apk/debug/app-debug.apk b/app/build/outputs/apk/debug/app-debug.apk new file mode 100644 index 0000000..97d4ed5 Binary files /dev/null and b/app/build/outputs/apk/debug/app-debug.apk differ diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a28627b..2ca5c18 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/build.gradle b/build.gradle index 1fd842c..4eba393 100644 --- a/build.gradle +++ b/build.gradle @@ -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' } } diff --git a/escposprinter/build.gradle b/escposprinter/build.gradle index 3105cac..4019ff5 100644 --- a/escposprinter/build.gradle +++ b/escposprinter/build.gradle @@ -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' @@ -26,6 +28,11 @@ android { } } + publishing { + // Publishes "fullRelease" build variant with "fullRelease" component created by + // Android Gradle plugin + singleVariant("release") + } } dependencies { diff --git a/escposprinter/build/outputs/aar/escposprinter-debug.aar b/escposprinter/build/outputs/aar/escposprinter-debug.aar new file mode 100644 index 0000000..d238e33 Binary files /dev/null and b/escposprinter/build/outputs/aar/escposprinter-debug.aar differ diff --git a/escposprinter/src/main/AndroidManifest.xml b/escposprinter/src/main/AndroidManifest.xml index 4bea254..bdae66c 100644 --- a/escposprinter/src/main/AndroidManifest.xml +++ b/escposprinter/src/main/AndroidManifest.xml @@ -1,2 +1,2 @@ - + diff --git a/gradle.properties b/gradle.properties index 199d16e..ad22207 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c73700e..b6aa518 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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