Add proguard rule

pull/2/head
FongMi 3 years ago
parent fbc613fccf
commit 768e92acab
  1. 9
      app/proguard-rules.pro
  2. 1
      app/src/main/java/com/github/catvod/crawler/JarLoader.java

@ -11,4 +11,11 @@
@com.google.gson.annotations.SerializedName <fields>;
}
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
# CatVod
-keep class com.github.catvod.crawler.** { *; }
# OkHttp
-dontwarn okhttp3.**
-keep class okhttp3.** { *; }

@ -50,7 +50,6 @@ public class JarLoader {
if (classInit != null) {
Method method = classInit.getMethod("init", Context.class);
method.invoke(classInit, App.get());
SpiderDebug.log("自定義爬蟲代碼加載成功!");
try {
Class<?> proxy = classLoader.loadClass("com.github.catvod.spider.Proxy");
proxyFun = proxy.getMethod("proxy", Map.class);

Loading…
Cancel
Save