From 60d9cfc30394723e334f0b8aaa790fadaac44626 Mon Sep 17 00:00:00 2001 From: Anadol <74777850+AnadolStudio@users.noreply.github.com> Date: Tue, 25 Oct 2022 01:05:27 +0300 Subject: [PATCH] add proguard rules (huawei.pro) --- proguard/rules/huawei.pro | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 proguard/rules/huawei.pro 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{*;}