Android Question (SOLVED) Prevent some classes from being obfuscated

Ferdari

Active Member
Licensed User
Longtime User
Hi everyone,

Im intregrating Huawei SDKs into my app, but in the integrations guide they say his SDK need to compile deobfuscated:

Before building the APK, configure obfuscation scripts to prevent HUAWEI Analytics Kit from being obfuscated. If obfuscation arises, HUAWEI Analytics Kit may not function properly.
The configuration file in Android Studio is proguard-rules.pro, and that in Eclipse is proguard-project.txt.

B4X:
-keep class com.hianalytics.android.**{*;}
-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{*;}

How to keep them deobfuscated on B4A?

@Erel i need your help :D

Thanks in advance.
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
As far as i know B4A does not obfuscate any 3rd Party jar or AAR.

Only the generated java source is obfuscated which is based on the Code in your Project. Your B4A Code.
 
Last edited:
Upvote 0
Top