Use Kotlin AppDirs (#1453)

This commit is contained in:
Mitchell Syer
2025-06-21 12:02:14 -04:00
committed by GitHub
parent bd7ea64b02
commit 1cdef5e0ee
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ package xyz.nulldev.ts.config
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import net.harawata.appdirs.AppDirsFactory
import ca.gosyer.appdirs.AppDirs
const val CONFIG_PREFIX = "suwayomi.tachidesk.config"
@@ -15,6 +15,6 @@ val ApplicationRootDir: String
get(): String {
return System.getProperty(
"$CONFIG_PREFIX.server.rootDir",
AppDirsFactory.getInstance().getUserDataDir("Tachidesk", null, null),
AppDirs { appName = "Tachidesk" }.getUserDataDir(),
)
}

View File

@@ -104,7 +104,7 @@ apksig = "com.android.tools.build:apksig:8.10.1"
xmlpull = "xmlpull:xmlpull:1.1.3.4a"
# Disk & File
appdirs = "net.harawata:appdirs:1.4.0"
appdirs = "ca.gosyer:kotlin-multiplatform-appdirs:2.0.0"
cache4k = "io.github.reactivecircus.cache4k:cache4k:0.14.0"
zip4j = "net.lingala.zip4j:zip4j:2.11.5"
commonscompress = "org.apache.commons:commons-compress:1.27.1"