Closed Stef-Halmans closed 1 year ago
I fixed the issue, by adding 2 more lines in the proguard.cfg file, so I now have the following:
-keep class com.google.mlkit.** { *; }
-keep interface com.google.mlkit.** { *; }
-keep class com.google.android.libraries.barhopper.** { *; }
-keep interface com.google.android.libraries.barhopper.** { *; }
This works with linking set to 'Sdk Assemblies Only'. So the issue is resolved. I don't know if this is the only, or best solution, but it worked for me. @Stef-Halmans Thanks for this! This should be included in documentation!!!
Just stumbled on the same issue after a QA few iterations of our app, definitely should be documented! @JimmyPun610
Describe the bug We were having issues with ZXing.Mobile.Net.Forms so we decided to give this library a try. It works really well with linking set to None, but as soon as we use the option Sdk Assemblies Only for linking the app crashes with the stacktrace below. This sucks because our app gets really big without linking. This does not happen with just the camera open, it only happens when a barcode is in the camera view, suggesting it sees a barcode before this exception occurs. Does anyone know a solution to this or some information that might help us tackle this problem?
To Reproduce Steps to reproduce the behavior:
Expected behavior The barcode would be scanned without crashing
Smartphone (please complete the following information):
Additional context We already tried adding the following lines to our proguard.cfg file, although we dont have much experience with progurad. These lines didnt fix the problem: -keep class com.google.mlkit.* { ; } -keep interface com.google.mlkit.* { ; }
It does work on IOS using Link Framework SDKs Only.