Anyline / anyline-ocr-examples-android

Example configurations of the Anyline OCR SDK.
21 stars 26 forks source link

Proguard issue for Android #39

Closed rokibhasan06 closed 1 year ago

rokibhasan06 commented 2 years ago

I needed to add following lines to proguard-rules.pro to support minifyEnabled build

-keepclassmembers class at.nineyards.anyline.** {*;}

Following is the setup for my release build variant.

release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }

You should add the proguard rule in your ReadMe section

ricardocolombo commented 1 year ago

Hi!

The proguard information is included in our Android Documentation, but we will make sure to bring it also into the Cross-Platform's documentation.

Thank you for your feedback!