mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-06 21:26:10 +00:00
Bump libraries for Kotlin-client. (#20053)
This commit is contained in:
committed by
GitHub
parent
00db84d22b
commit
3a3688280f
@@ -23,7 +23,3 @@ src/commonMain/kotlin/org/openapitools/client/infrastructure/PartConfig.kt
|
||||
src/commonMain/kotlin/org/openapitools/client/infrastructure/RequestConfig.kt
|
||||
src/commonMain/kotlin/org/openapitools/client/infrastructure/RequestMethod.kt
|
||||
src/commonMain/kotlin/org/openapitools/client/models/Apa.kt
|
||||
src/commonTest/kotlin/util/Coroutine.kt
|
||||
src/iosTest/kotlin/util/Coroutine.kt
|
||||
src/jsTest/kotlin/util/Coroutine.kt
|
||||
src/jvmTest/kotlin/util/Coroutine.kt
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform") version "1.9.20" // kotlin_version
|
||||
kotlin("plugin.serialization") version "1.9.20" // kotlin_version
|
||||
kotlin("multiplatform") version "2.0.21" // kotlin_version
|
||||
kotlin("plugin.serialization") version "2.0.21" // kotlin_version
|
||||
}
|
||||
|
||||
group = "org.openapitools"
|
||||
version = "1.0.0"
|
||||
|
||||
val kotlin_version = "1.9.20"
|
||||
val coroutines_version = "1.7.3"
|
||||
val serialization_version = "1.6.1"
|
||||
val ktor_version = "2.3.6"
|
||||
val kotlin_version = "2.0.21"
|
||||
val coroutines_version = "1.9.0"
|
||||
val serialization_version = "1.7.3"
|
||||
val ktor_version = "3.0.1"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
package org.openapitools.client.auth
|
||||
|
||||
import io.ktor.util.InternalAPI
|
||||
import io.ktor.util.encodeBase64
|
||||
|
||||
class HttpBasicAuth : Authentication {
|
||||
var username: String? = null
|
||||
var password: String? = null
|
||||
|
||||
@OptIn(InternalAPI::class)
|
||||
override fun apply(query: MutableMap<String, List<String>>, headers: MutableMap<String, String>) {
|
||||
if (username == null && password == null) return
|
||||
val str = (username ?: "") + ":" + (password ?: "")
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Please note:
|
||||
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* Do not edit this file manually.
|
||||
*
|
||||
*/
|
||||
|
||||
@file:Suppress(
|
||||
"ArrayInDataClass",
|
||||
"EnumEntryName",
|
||||
"RemoveRedundantQualifierName",
|
||||
"UnusedImport"
|
||||
)
|
||||
|
||||
|
||||
package util
|
||||
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
|
||||
/**
|
||||
* Block the current thread until execution of the given coroutine is complete.
|
||||
*
|
||||
* @param block The coroutine code.
|
||||
* @return The result of the coroutine.
|
||||
*/
|
||||
internal expect fun <T> runTest(block: suspend CoroutineScope.() -> T): T
|
||||
@@ -1,22 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Please note:
|
||||
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* Do not edit this file manually.
|
||||
*
|
||||
*/
|
||||
|
||||
@file:Suppress(
|
||||
"ArrayInDataClass",
|
||||
"EnumEntryName",
|
||||
"RemoveRedundantQualifierName",
|
||||
"UnusedImport"
|
||||
)
|
||||
|
||||
|
||||
package util
|
||||
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlin.coroutines.EmptyCoroutineContext
|
||||
|
||||
internal actual fun <T> runTest(block: suspend CoroutineScope.() -> T): T = kotlinx.coroutines.runBlocking(EmptyCoroutineContext, block)
|
||||
@@ -1,7 +0,0 @@
|
||||
package util
|
||||
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.promise
|
||||
|
||||
actual fun <T> runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }
|
||||
@@ -1,22 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Please note:
|
||||
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* Do not edit this file manually.
|
||||
*
|
||||
*/
|
||||
|
||||
@file:Suppress(
|
||||
"ArrayInDataClass",
|
||||
"EnumEntryName",
|
||||
"RemoveRedundantQualifierName",
|
||||
"UnusedImport"
|
||||
)
|
||||
|
||||
|
||||
package util
|
||||
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlin.coroutines.EmptyCoroutineContext
|
||||
|
||||
internal actual fun <T> runTest(block: suspend CoroutineScope.() -> T): T = kotlinx.coroutines.runBlocking(EmptyCoroutineContext, block)
|
||||
Reference in New Issue
Block a user