Skip to content

Commit

Permalink
fix: ktor not working when minify release (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Nov 16, 2024
1 parent 63930d5 commit 9781fd7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/src/main/kotlin/li/songe/gkd/debug/HttpService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class HttpService : Service(), OnCreate, OnDestroy {
}

onCreated {
httpNotif.notifyService(this)
scope.launchTry(Dispatchers.IO) {
httpServerPortFlow.collect { port ->
server?.stop()
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ android.useAndroidX=true
android.enableJetifier=true
android.debug.obsoleteApi=true
kotlin.code.style=official
# https://youtrack.jetbrains.com/issue/KTOR-7298
android.suppressUnsupportedCompileSdk=35
android_compileSdk=35
android_targetSdk=35
android_buildToolsVersion=35.0.0
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlin = "2.0.21"
ksp = "2.0.21-1.0.25"
android = "8.7.2"
android = "8.5.2"
compose = "1.7.5"
rikka = "4.4.0"
room = "2.6.1"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 9781fd7

Please sign in to comment.