ProGuard Configuration

When building your Android App in a Release Configuration, make sure to include the following lines in your proguard-rules.pro:

proguard-rules.pro
-keep public class * {
    public protected *;
}
-keep class at.nineyards.anyline.** { *; }
-dontwarn at.nineyards.anyline.**
-keep class org.opencv.** { *; }
-dontwarn org.opencv.**

Make sure to use the defined proguard-rules.pro in your app’s build.gradle, for instance as following:

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