Skip to content

Commit 64ff332

Browse files
committed
fix proguard issue. fix #397
1 parent ffbd165 commit 64ff332

File tree

2 files changed

+71
-8
lines changed

2 files changed

+71
-8
lines changed

chat/proguard-rules.pro

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Add project specific ProGuard rules here.
2-
# You can control the set of applied configuration files using the
3-
# proguardFiles setting in build.gradle.
2+
# By default, the flags in this file are appended to flags specified
3+
# in E:\AndroidSoft\sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
46
#
57
# For more details, see
68
# http://developer.android.com/guide/developing/tools/proguard.html
79

10+
# Add any project specific keep options here:
11+
812
# If your project uses WebView with JS, uncomment the following
913
# and specify the fully qualified class name to the JavaScript interface
1014
# class:
@@ -18,4 +22,68 @@
1822

1923
# If you keep the line number information, uncomment this to
2024
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
25+
#-renamesourcefileattribute SourceFile
26+
27+
-dontwarn com.tencent.bugly.**
28+
-keep public class com.tencent.bugly.**{*;}
29+
30+
-dontshrink
31+
-keep class org.webrtc.** { *; }
32+
-keepclasseswithmembernames class * { native <methods>; }
33+
34+
-keep class okhttp3.** {*;}
35+
-keepclassmembers class okhttp3.** {
36+
*;
37+
}
38+
39+
-keep class com.tencent.**{*;}
40+
-keepclassmembers class com.tenncent.mars.** {
41+
*;
42+
}
43+
44+
#-keep class !cn.wildfire.chat.moment.**,!cn.wildfirechat.moment.**, **{ *; }
45+
-keep class cn.wildfirechat.moment.MomentClient {
46+
public void init(***);
47+
}
48+
49+
-keep class cn.wildfire.chat.app.login.model.** {*;}
50+
-keepclassmembers class cn.wildfire.chat.app.login.model.** {
51+
*;
52+
}
53+
54+
-keep class cn.wildfire.chat.kit.net.base.** {*;}
55+
-keepclassmembers class cn.wildfire.chat.kit.net.base.** {
56+
*;
57+
}
58+
59+
-keep class cn.wildfire.chat.kit.group.GroupAnnouncement {*;}
60+
-keepclassmembers class cn.wildfire.chat.kit.group.GroupAnnouncement {
61+
*;
62+
}
63+
64+
-keep class cn.wildfirechat.model.** {*;}
65+
-keepclassmembers class cn.wildfirechat.model.** {
66+
*;
67+
}
68+
69+
-keepclassmembers class cn.wildfirechat.** {
70+
<init>(...);
71+
}
72+
73+
-keepclassmembers class cn.wildfire.** {
74+
<init>(...);
75+
}
76+
77+
-keep class net.sourceforge.pinyin4j.** { *;}
78+
79+
80+
#huawei push
81+
-ignorewarnings
82+
-keepattributes *Annotation*
83+
-keepattributes Exceptions
84+
-keepattributes InnerClasses
85+
-keepattributes Signature
86+
-keepattributes SourceFile,LineNumberTable
87+
-keep class com.hianalytics.android.**{*;}
88+
-keep class com.huawei.updatesdk.**{*;}
89+
-keep class com.huawei.hms.**{*;}

uikit/proguard-rules.pro

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
public void init(***);
4747
}
4848

49-
-keep class cn.wildfire.chat.app.login.model.** {*;}
50-
-keepclassmembers class cn.wildfire.chat.app.login.model.** {
51-
*;
52-
}
53-
5449
-keep class cn.wildfire.chat.kit.net.base.** {*;}
5550
-keepclassmembers class cn.wildfire.chat.kit.net.base.** {
5651
*;

0 commit comments

Comments
 (0)