-
-
Notifications
You must be signed in to change notification settings - Fork 458
关于混淆
liujingxing edited this page Nov 9, 2020
·
1 revision
RxHttp v2.2.8
版本起,无需添加混淆规则(内部自带混淆规则),v2.2.8以下版本,在proguard-rules.pro文件添加以下代码
# okhttp 4.7.0及以上版本混淆规则
-keepclassmembers class okhttp3.internal.Util {
public static java.lang.String userAgent;
}
# okhttp 4.7.0以下版本混淆规则
-keepclassmembers class okhttp3.internal.Version {
# 4.0.0<=version<4.7.0
public static java.lang.String userAgent;
# version<4.0.0
public static java.lang.String userAgent();
}
# okhttp 4.0.0以下版本混淆规则
-keepclassmembers class okhttp3.internal.http.StatusLine {
public static okhttp3.internal.http.StatusLine parse(java.lang.String);
}
# 4.0.0 <= version < 4.3.0
-keepclassmembers class okhttp3.internal.cache.DiskLruCache$Companion {
public okhttp3.internal.cache.DiskLruCache create(
okhttp3.internal.io.FileSystem, java.io.File, int, int, long);
}
# version < 4.0.0
-keepclassmembers class okhttp3.internal.cache.DiskLruCache {
public static okhttp3.internal.cache.DiskLruCache create(
okhttp3.internal.io.FileSystem, java.io.File, int, int, long);
}