diff --git a/proguard/rules/huawei.pro b/proguard/rules/huawei.pro new file mode 100644 index 0000000..6fa6762 --- /dev/null +++ b/proguard/rules/huawei.pro @@ -0,0 +1,15 @@ +# https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/appgallerykit-getting-started-0000001055756858#section1448912915419 + +-ignorewarnings +-keepattributes *Annotation* +-keepattributes Exceptions +-keepattributes InnerClasses +-keepattributes Signature +-keepattributes SourceFile,LineNumberTable +-keep class com.huawei.hianalytics.**{*;} +-keep class com.huawei.updatesdk.**{*;} +-keep class com.huawei.hms.**{*;} +-keep interface com.huawei.hms.analytics.type.HAEventType{*;} +-keep interface com.huawei.hms.analytics.type.HAParamType{*;} +-keep class com.huawei.hms.analytics.HiAnalyticsInstance{*;} +-keep class com.huawei.hms.analytics.HiAnalytics{*;}