Skip to content

Commit

Permalink
fix proguard issue. fix #397
Browse files Browse the repository at this point in the history
  • Loading branch information
imndx committed Jul 26, 2020
1 parent ffbd165 commit 64ff332
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 8 deletions.
74 changes: 71 additions & 3 deletions chat/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
# By default, the flags in this file are appended to flags specified
# in E:\AndroidSoft\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
Expand All @@ -18,4 +22,68 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

-dontwarn com.tencent.bugly.**
-keep public class com.tencent.bugly.**{*;}

-dontshrink
-keep class org.webrtc.** { *; }
-keepclasseswithmembernames class * { native <methods>; }

-keep class okhttp3.** {*;}
-keepclassmembers class okhttp3.** {
*;
}

-keep class com.tencent.**{*;}
-keepclassmembers class com.tenncent.mars.** {
*;
}

#-keep class !cn.wildfire.chat.moment.**,!cn.wildfirechat.moment.**, **{ *; }
-keep class cn.wildfirechat.moment.MomentClient {
public void init(***);
}

-keep class cn.wildfire.chat.app.login.model.** {*;}
-keepclassmembers class cn.wildfire.chat.app.login.model.** {
*;
}

-keep class cn.wildfire.chat.kit.net.base.** {*;}
-keepclassmembers class cn.wildfire.chat.kit.net.base.** {
*;
}

-keep class cn.wildfire.chat.kit.group.GroupAnnouncement {*;}
-keepclassmembers class cn.wildfire.chat.kit.group.GroupAnnouncement {
*;
}

-keep class cn.wildfirechat.model.** {*;}
-keepclassmembers class cn.wildfirechat.model.** {
*;
}

-keepclassmembers class cn.wildfirechat.** {
<init>(...);
}

-keepclassmembers class cn.wildfire.** {
<init>(...);
}

-keep class net.sourceforge.pinyin4j.** { *;}


#huawei push
-ignorewarnings
-keepattributes *Annotation*
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable
-keep class com.hianalytics.android.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}
5 changes: 0 additions & 5 deletions uikit/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
public void init(***);
}

-keep class cn.wildfire.chat.app.login.model.** {*;}
-keepclassmembers class cn.wildfire.chat.app.login.model.** {
*;
}

-keep class cn.wildfire.chat.kit.net.base.** {*;}
-keepclassmembers class cn.wildfire.chat.kit.net.base.** {
*;
Expand Down

0 comments on commit 64ff332

Please sign in to comment.