I am trying out AppGallery Connect Dynamic Ability at the moment. I've found out that current Dynamic Ability library exports incorrect Proguard rules which disables compiler optimization. This causes large app size regression after compilation.

The proguard rule in com.huawei.hms.dynamicability:1.0.14.301 includes the following Proguard rules:

-dontshrink
-keepattributes Signature, InnerClasses, EnclosingMethod, Exceptions

Is there any Dynamic Ability expert who can explain this? Any workaround to resolve this issue? I think the library need to be fixed.

I don't think this is a good idea to export these Proguard rules. It looks like this library is accidentally shipping proguardFile and not consumerProguardFile. Thanks.

0

There are 0 answers