优化 脚本管理器增删文件后的更新

新增 支持插件
优化 多点找色的内存泄漏
修复 文件重命名时的后缀问题
修复 脚本抛出Throwable不能被捕捉的问题
This commit is contained in:
hyb1996
2018-10-23 15:00:34 +08:00
parent 2b71f5e856
commit 148784656d
38 changed files with 468 additions and 57 deletions

View File

@@ -32,7 +32,7 @@ public class ScriptExecutionGlobalListener implements ScriptExecutionListener {
}
@Override
public void onException(ScriptExecution execution, Exception e) {
public void onException(ScriptExecution execution, Throwable e) {
onFinish(execution);
}

View File

@@ -90,7 +90,7 @@ public class AssetsProjectLauncher {
}
PFiles.deleteRecursively(new File(mProjectDir));
try {
PFiles.copyAssetDir(mActivity, mAssetsProjectDir, mProjectDir, null);
PFiles.copyAssetDir(mActivity.getAssets(), mAssetsProjectDir, mProjectDir, null);
} catch (IOException e) {
throw new UncheckedIOException(e);
}