parent
611bf5dbc8
commit
9d38d66185
@ -0,0 +1,5 @@ |
||||
# Python支持 |
||||
-keep public class com.undcover.freedom.pyramid.** { *; } |
||||
-dontwarn com.undcover.freedom.pyramid.** |
||||
-keep public class com.chaquo.python.** { *; } |
||||
-dontwarn com.chaquo.python.** |
||||
@ -0,0 +1,14 @@ |
||||
package com.github.catvod.crawler.python; |
||||
|
||||
import com.github.catvod.crawler.Spider; |
||||
|
||||
import java.util.Map; |
||||
|
||||
public interface IPyLoader { |
||||
void clear(); |
||||
void setConfig(String jsonStr); |
||||
void setRecentPyKey(String pyApi); |
||||
Spider getSpider(String key, String cls, String ext); |
||||
Object[] proxyInvoke(Map<String, String> params, String key, String api, String ext); |
||||
Object[] proxyInvoke(Map<String, String> params); |
||||
} |
||||
@ -0,0 +1,42 @@ |
||||
package com.github.catvod.crawler; |
||||
|
||||
import android.util.Log; |
||||
import com.github.catvod.crawler.python.IPyLoader; |
||||
|
||||
import java.util.Map; |
||||
|
||||
public class pyLoader implements IPyLoader { |
||||
|
||||
@Override |
||||
public void clear() { |
||||
Log.i("PyLoader", "normal flavor: clear() 调用,但不支持 Python 功能。"); |
||||
} |
||||
|
||||
@Override |
||||
public void setConfig(String jsonStr) { |
||||
Log.i("PyLoader", "normal flavor: setConfig() 调用,但不支持 Python 功能。"); |
||||
} |
||||
|
||||
@Override |
||||
public void setRecentPyKey(String pyApi) { |
||||
Log.i("PyLoader", "normal flavor: setRecentPyKey() 调用,但不支持 Python 功能。"); |
||||
} |
||||
|
||||
@Override |
||||
public Spider getSpider(String key, String cls, String ext) { |
||||
Log.i("PyLoader", "normal flavor: getSpider() 调用,但不支持 Python 功能。"); |
||||
return new SpiderNull(); |
||||
} |
||||
|
||||
@Override |
||||
public Object[] proxyInvoke(Map<String, String> params, String key, String api, String ext) { |
||||
Log.i("PyLoader", "normal flavor: proxyInvoke(params, key, api, ext) 调用,但不支持 Python 功能。"); |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public Object[] proxyInvoke(Map<String, String> params) { |
||||
Log.i("PyLoader", "normal flavor: proxyInvoke(params) 调用,但不支持 Python 功能。"); |
||||
return null; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue