Skip to content

Commit

Permalink
Update kotlin monorepo to v2.1.0 (#1170)
Browse files Browse the repository at this point in the history
* Update kotlin monorepo to v2.1.0

* Fix build warnings

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Syer10 <[email protected]>
  • Loading branch information
renovate[bot] and Syer10 authored Dec 7, 2024
1 parent 088552b commit 2111232
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
kotlin = "2.0.21"
kotlin = "2.1.0"
coroutines = "1.9.0"
serialization = "1.7.3"
okhttp = "5.0.0-alpha.14" # Major version is locked by Tachiyomi extensions
Expand Down
19 changes: 10 additions & 9 deletions server/src/main/kotlin/suwayomi/tachidesk/server/ServerSetup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ class ApplicationDirs(
val mangaDownloadsRoot get() = "$downloadsRoot/mangas"
}

data class ProxySettings(
val proxyEnabled: Boolean,
val socksProxyVersion: Int,
val proxyHost: String,
val proxyPort: String,
val proxyUsername: String,
val proxyPassword: String,
)

val serverConfig: ServerConfig by lazy { GlobalConfigManager.module() }

val androidCompat by lazy { AndroidCompat() }
Expand Down Expand Up @@ -238,22 +247,14 @@ fun applicationSetup() {

// socks proxy settings
serverConfig.subscribeTo(
combine(
combine<Any, ProxySettings>(
serverConfig.socksProxyEnabled,
serverConfig.socksProxyVersion,
serverConfig.socksProxyHost,
serverConfig.socksProxyPort,
serverConfig.socksProxyUsername,
serverConfig.socksProxyPassword,
) { vargs ->
data class ProxySettings(
val proxyEnabled: Boolean,
val socksProxyVersion: Int,
val proxyHost: String,
val proxyPort: String,
val proxyUsername: String,
val proxyPassword: String,
)
ProxySettings(
vargs[0] as Boolean,
vargs[1] as Int,
Expand Down

0 comments on commit 2111232

Please sign in to comment.