PR 151 处理 - 恢复 OpenCV 线上部署; 统一代码风格

This commit is contained in:
SuperMonster003
2023-10-03 21:06:16 +08:00
parent 330ae87f4c
commit 5ee2f62d89
3 changed files with 8 additions and 11 deletions

View File

@@ -44,6 +44,7 @@ import java.io.File
* Created by Stardust on 2017/11/29.
* Modified by SuperMonster003 as of Jun 10, 2022.
* Transformed by SuperMonster003 on Oct 10, 2022.
* Modified by LZX284 (https://github.com/LZX284) as of Sep 30, 2023.
*/
abstract class AbstractAutoJs protected constructor(protected val application: Application) {
@@ -93,14 +94,7 @@ abstract class AbstractAutoJs protected constructor(protected val application: A
}
private fun initContextFactory() {
ContextFactory.initGlobal(
InterruptibleAndroidContextFactory(
File(
context.cacheDir,
"classes"
)
)
)
ContextFactory.initGlobal(InterruptibleAndroidContextFactory(File(context.cacheDir, "classes")))
}
protected open fun createRuntime(): ScriptRuntime = ScriptRuntime.Builder()

View File

@@ -37,6 +37,7 @@ import java.util.concurrent.Executors
* Created by Stardust on 2017/4/2.
* Modified by SuperMonster003 as of Dec 1, 2021.
* Transformed by SuperMonster003 on Oct 10, 2022.
* Modified by LZX284 (https://github.com/LZX284) as of Sep 30, 2023.
*/
open class AutoJs(private val appContext: Application) : AbstractAutoJs(appContext) {