How to: Integrate Flutter and Datalogic SDK

Hi @Jorge_Escandell ,
welcome to the discussion board.

Probably you need to configure the “Buildtype release” in your build.gradle file.
You can configure the file like this:

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

the contents of the file ‘proguard-rules.pro’ can be:

-keep class com.datalogic.cradle.** { *; }
-keep class com.datalogic.decode.** { *; }
-keep class com.datalogic.device.** { *; }
-keep class com.datalogic.extension.** { *; }
-keep class com.datalogic.softspot.** { *; }

please see also is-the-datalogic-sdk-compatible-with-proguard-obfuscation .

Another way to configure the gradle file can be found in the following answer: DataMemorLogic10 Intent Wedge - #14 by Mehmet_Akif_SAYRIM .

Donato Cataldo
L3 Mobile Computer Support Engineer

2 Likes