diff --git a/composeApp/src/commonMain/kotlin/dev/datlag/burningseries/other/K2Kast.kt b/composeApp/src/commonMain/kotlin/dev/datlag/burningseries/other/K2Kast.kt index 34bca0a0..b2999878 100644 --- a/composeApp/src/commonMain/kotlin/dev/datlag/burningseries/other/K2Kast.kt +++ b/composeApp/src/commonMain/kotlin/dev/datlag/burningseries/other/K2Kast.kt @@ -44,6 +44,9 @@ data object K2Kast : AutoCloseable { private var scope: CoroutineScope? = null private val connectedHost = MutableStateFlow(null) + private const val DISCOVER_PORT = 7330 + private const val CONNECTION_PORT = 7332 + val code: String by lazy { NanoIdUtils.randomNanoId( alphabet = "0123456789".toCharArray(), @@ -91,7 +94,7 @@ data object K2Kast : AutoCloseable { showClient = scope.discovery { setShowTimeout(0L) - setPort(7330) + setPort(DISCOVER_PORT) } } @@ -102,7 +105,7 @@ data object K2Kast : AutoCloseable { searchClient = scope.discovery { setSearchTimeout(0L) - setPort(7330) + setPort(DISCOVER_PORT) } } @@ -112,7 +115,7 @@ data object K2Kast : AutoCloseable { } connection = scope.connection { - setPort(7332) + setPort(CONNECTION_PORT) } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e7f88dcd..00765809 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -app = "6.0.0" +app = "6.1.0" aboutlibraries = "11.2.3" ackpine = "0.8.3" activity = "1.9.3"