-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Compatibility] Obfucation/ProGuard Android #325
Comments
Thank you for that!
|
You're right ! |
For those who want to know what happen, it's linked to the fact that too much packages doesn't use the same AndroidX Core version, so after Android obfuscation some part (like method or class) are considered 'not used/usefull' then will not be integrated to the project, so to avoid that we just don't obfuscate those parts, so the corresponding file can be found. |
Hello everyone,
I use the package on huge scale (around 1millions devices) i have a big problem, for months about the obfucation on Android, where some stuff related to FileProvider was missing.
The consequence, was that when i tried opening a file, the app just crashed without any warning or error in flutter.
Sometimes it didn't even report in Firebase.
Here the error message :
Fatal Exception: java.lang.IncompatibleClassChangeError: Class 'android.content.res.XmlBlock$Parser' does not implement interface 'n8.a' in call to 'int n8.a.next()' (declaration of 'androidx.core.content.FileProvider' appears in base.apk) at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:19) at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:11) at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:1) at com.crazecoder.openfile.utils.FileUtil.getFileUri(FileUtil.java:48) at com.crazecoder.openfile.OpenFilePlugin.startActivity(OpenFilePlugin.java:24)
After tons of trouble, and the help of Gemini, i found the rules for pro guards to make it work (i trieds tons of rules before, but here the one that work in my case)
The text was updated successfully, but these errors were encountered: