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

@@ -19,7 +19,7 @@ android {
defaultConfig {
applicationId "io.nekohasekai.sfa"
minSdk 21
targetSdk 33
targetSdk 34
versionCode getProps("VERSION_CODE").toInteger()
versionName getProps("VERSION_NAME")
setProperty("archivesBaseName", "SFA-" + versionName)
@@ -89,15 +89,15 @@ dependencies {
ksp 'androidx.room:room-compiler:2.5.2'
implementation 'androidx.work:work-runtime-ktx:2.8.1'
implementation 'androidx.browser:browser:1.5.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
// DO NOT UPDATE (minSdkVersion updated)
implementation 'com.blacksquircle.ui:editorkit:2.2.0'
implementation 'com.blacksquircle.ui:language-json:2.2.0'
implementation 'com.microsoft.appcenter:appcenter-analytics:5.0.1'
implementation 'com.microsoft.appcenter:appcenter-crashes:5.0.1'
implementation 'com.microsoft.appcenter:appcenter-distribute:5.0.1'
implementation 'com.microsoft.appcenter:appcenter-analytics:5.0.2'
implementation 'com.microsoft.appcenter:appcenter-crashes:5.0.2'
implementation 'com.microsoft.appcenter:appcenter-distribute:5.0.2'
}
if (getProps("APPCENTER_TOKEN") != "") {

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()