mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
Use Kotlin AppDirs (#1453)
This commit is contained in:
@@ -7,7 +7,7 @@ package xyz.nulldev.ts.config
|
|||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/. */
|
* 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"
|
const val CONFIG_PREFIX = "suwayomi.tachidesk.config"
|
||||||
|
|
||||||
@@ -15,6 +15,6 @@ val ApplicationRootDir: String
|
|||||||
get(): String {
|
get(): String {
|
||||||
return System.getProperty(
|
return System.getProperty(
|
||||||
"$CONFIG_PREFIX.server.rootDir",
|
"$CONFIG_PREFIX.server.rootDir",
|
||||||
AppDirsFactory.getInstance().getUserDataDir("Tachidesk", null, null),
|
AppDirs { appName = "Tachidesk" }.getUserDataDir(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ apksig = "com.android.tools.build:apksig:8.10.1"
|
|||||||
xmlpull = "xmlpull:xmlpull:1.1.3.4a"
|
xmlpull = "xmlpull:xmlpull:1.1.3.4a"
|
||||||
|
|
||||||
# Disk & File
|
# 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"
|
cache4k = "io.github.reactivecircus.cache4k:cache4k:0.14.0"
|
||||||
zip4j = "net.lingala.zip4j:zip4j:2.11.5"
|
zip4j = "net.lingala.zip4j:zip4j:2.11.5"
|
||||||
commonscompress = "org.apache.commons:commons-compress:1.27.1"
|
commonscompress = "org.apache.commons:commons-compress:1.27.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user