From 6f3712572404ea5a6690d13b514c3553d5e94f46 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 14 Dec 2021 13:25:58 +0600 Subject: [PATCH] start 0.8.7 and make UnifiedRequester/UnifiedRouter fields are public --- CHANGELOG.md | 8 ++++++++ gradle.properties | 4 ++-- .../micro_utils/ktor/client/StandardHttpClientGetPost.kt | 4 ++-- .../micro_utils/ktor/server/ServerRoutingShortcuts.kt | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac926cb7010..a3da290085c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.8.7 + +* `Ktor`: + * `Client`: + * `UnifiedRequester` now have no private fields + * `Server` + * `UnifiedRouter` now have no private fields + ## 0.8.6 * `Common`: diff --git a/gradle.properties b/gradle.properties index 1a4126017ce..d8a06549686 100644 --- a/gradle.properties +++ b/gradle.properties @@ -45,5 +45,5 @@ dokka_version=1.5.31 # Project data group=dev.inmo -version=0.8.6 -android_code_version=86 +version=0.8.7 +android_code_version=87 diff --git a/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt b/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt index 182f4eb66f7..82b7d2710d6 100644 --- a/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt +++ b/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client/StandardHttpClientGetPost.kt @@ -9,8 +9,8 @@ import kotlinx.serialization.* typealias BodyPair = Pair, T> class UnifiedRequester( - private val client: HttpClient = HttpClient(), - private val serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat + val client: HttpClient = HttpClient(), + val serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat ) { suspend fun uniget( url: String, diff --git a/ktor/server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server/ServerRoutingShortcuts.kt b/ktor/server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server/ServerRoutingShortcuts.kt index b020d634803..4e655ef8abb 100644 --- a/ktor/server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server/ServerRoutingShortcuts.kt +++ b/ktor/server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server/ServerRoutingShortcuts.kt @@ -15,8 +15,8 @@ import kotlinx.coroutines.flow.Flow import kotlinx.serialization.* class UnifiedRouter( - private val serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat, - private val serialFormatContentType: ContentType = standardKtorSerialFormatContentType + val serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat, + val serialFormatContentType: ContentType = standardKtorSerialFormatContentType ) { fun Route.includeWebsocketHandling( suburl: String,