Skip to content

Commit b6a3bb7

Browse files
committed
feat: Use CIO engine instead of okhttp .
1 parent 4e29970 commit b6a3bb7

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

app/proguard-rules.pro

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
2222

23-
# Keep class names of Hilt injected ViewModels since their name are used as a multibinding map key.
24-
-keepnames @dagger.hilt.android.lifecycle.HiltViewModel class * extends androidx.lifecycle.ViewModel
2523

2624
-keepattributes *Annotation*
2725
-keepclassmembers enum androidx.lifecycle.Lifecycle$Event {
@@ -46,14 +44,7 @@
4644
-keep class * extends com.google.protobuf.GeneratedMessageLite { *; }
4745
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
4846

49-
## Rules for Gson
50-
# For using GSON @Expose annotation
51-
-keepattributes Signature
52-
-keepattributes *Annotation*
53-
# Gson specific classes
54-
-keep class com.google.gson.stream.** { *; }
55-
-keep class com.google.gson.reflect.TypeToken { *; }
56-
-keep class * extends com.google.gson.reflect.TypeToken
57-
5847
-keep class com.zrcoding.database.data.local.entities.** {*;}
59-
-keep class com.zrcoding.database.data.remote.dtos.** {*;}
48+
-keep class com.zrcoding.hackertab.network.dtos.** {*;}
49+
50+
-dontwarn org.slf4j.impl.StaticLoggerBinder

core/network/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ kotlin {
2121
implementation(libs.ktor.loggingInterceptor)
2222
}
2323
androidMain.dependencies {
24-
implementation(libs.ktor.okhttp)
24+
implementation(libs.ktor.cio)
2525
}
2626
iosMain.dependencies {
2727
implementation(libs.ktor.darwin)

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serializa
6363
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinxDatetime" }
6464
kotlinx-atomicfu = { module = "org.jetbrains.kotlinx:atomicfu", version.ref = "atomicfu" }
6565
ktor-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
66-
ktor-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
66+
ktor-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
6767
ktor-darwin = { module = "io.ktor:ktor-client-darwin", version.ref = "ktor" }
6868
ktor-contentNegotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
6969
ktor-serialization = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }

0 commit comments

Comments
 (0)