On Release Build, printer π¨ is not printing
amosogra opened this issue Β· comments
On debug build, it works flawlessly, but on release build this error message was printed as toast: "Empty print job"
I have tried all possible ways but to no avail.
Kotlin version: 1.6.10
min sdk: 21
target sdk: 33
AGP: 7.2.1
Gradle: 7.4.2
Please help me resolve this issue
IF your build.gradle(:app) mihify & shrink ?
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
THEN
add in your project
proguard-rules.pro:
-keep class rawbt.** { *; }
update
implementation 'com.github.402d:RawbtAPI:9238fdefc6'
Is it help (without strings from previus answer)?
IF your build.gradle(:app) mihify & shrink ?
buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } }
THEN add in your project proguard-rules.pro:
-keep class rawbt.** { *; }
Thank you π
Issue solved
Proguard was the problem
update implementation 'com.github.402d:RawbtAPI:9238fdefc6'
Is it help (without strings from previus answer)?
The previous answer solved it for me. Thank you π
BTW I crested a Flutter plugin for android with this library.