feat(autojs): loadJar(), loadDex() supports relative path

This commit is contained in:
hyb1996 2018-09-13 20:12:13 +08:00
parent c3f5c109be
commit c0094e4445

View File

@ -325,6 +325,7 @@ public class ScriptRuntime {
}
public void loadJar(String path) {
path = files.path(path);
try {
((AndroidClassLoader) ContextFactory.getGlobal().getApplicationClassLoader()).loadJar(new File(path));
} catch (IOException e) {
@ -333,6 +334,7 @@ public class ScriptRuntime {
}
public void loadDex(String path){
path = files.path(path);
try {
((AndroidClassLoader) ContextFactory.getGlobal().getApplicationClassLoader()).loadDex(new File(path));
} catch (IOException e) {