Update dependencies

This commit is contained in:
世界
2023-07-30 15:51:13 +08:00
parent cb9799936b
commit 2e3950d997
5 changed files with 13 additions and 14 deletions

View File

@@ -43,7 +43,7 @@ class BoxService(
baseDir.mkdirs()
val tempDir = Application.application.cacheDir
tempDir.mkdirs()
Libbox.setup(baseDir.path, tempDir.path)
Libbox.setup(baseDir.path, baseDir.path, tempDir.path, false)
Libbox.redirectStderr(File(baseDir, "stderr.log").path)
initializeOnce = true
return
@@ -88,7 +88,7 @@ class BoxService(
private fun startCommandServer() {
val commandServer =
CommandServer(Application.application.filesDir.absolutePath, this, 300)
CommandServer(this, 300)
commandServer.start()
this.commandServer = commandServer
}

View File

@@ -279,8 +279,7 @@ class DashboardFragment : Fragment(), CommandClientHandler {
return
}
runCatching {
Libbox.newStandaloneCommandClient(mainActivity.filesDir.absolutePath)
.serviceReload()
Libbox.newStandaloneCommandClient().serviceReload()
}.onFailure {
withContext(Dispatchers.Main) {
mainActivity.errorDialogBuilder(it).show()