Closed mifhai closed 2 years ago
Hello @mifhai , could you please provide more information about the issue? We couldn't reproduce it. There may be some culprit within the proguar-rules.pro, can you share that file with us? Thanks in advance, Talsec Team
Thanks for the response and Sorry for the lack of information above.
sure this proguar-rules.pro in my project
-keepattributes Signature
-keepattributes Annotation
-dontwarn sun.misc.**
-keep class extends com.google.gson.TypeAdapter -keep class implements com.google.gson.TypeAdapterFactory -keep class implements com.google.gson.JsonSerializer -keep class implements com.google.gson.JsonDeserializer
-keepclassmembers,allowobfuscation class * {
@com.google.gson.annotations.SerializedName
-keepclasseswithmembernames,includedescriptorclasses class * { native; }
@mifhai Thank you, we will look into that.
Hello @mifhai , we have located the issue in our README (which we will update ASAP). The rule needs to be like this:
-keepclasseswithmembernames,includedescriptorclasses class * {
native *;
}
The asterisk (*
) after 'native' should fix the issue.
Hello @mifhai , did the proposed solution work? Thank you.
Kind regards, Talsec team
i have an error when trying to run flutter build appbundle --obfuscate --split-debug-info=./project_name/debug --no-shrink