Skip to content

Commit ae86ff7

Browse files
Kotlin multiplatform updated to fit future Kotlin 1.6.0 release (OpenAPITools#10468)
* Update Kotlin Version to 1.6.0-M1 Update Multiplatform Plugin to 1.6.0-M1 Update Gragle to 7.2 Update AGP to 7.0.2 Update samples accordingle Resolve: OpenAPITools#10467 * Removes local.properties from kotlin-multiplatform petstore client, that was accidentally added * Use the latest kotlin stable version 1.5.31 * update samples Co-authored-by: William Cheng <wing328hk@gmail.com>
1 parent 34f475f commit ae86ff7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

modules/openapi-generator/src/main/resources/kotlin-client/libraries/multiplatform/auth/HttpBasicAuth.kt.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class HttpBasicAuth : Authentication {
77
var username: String? = null
88
var password: String? = null
99
10-
@InternalAPI
10+
@OptIn(InternalAPI::class)
1111
override fun apply(query: MutableMap<String, List<String>>, headers: MutableMap<String, String>) {
1212
if (username == null && password == null) return
1313
val str = (username ?: "") + ":" + (password ?: "")
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Fri Sep 24 10:59:07 CEST 2021
12
distributionBase=GRADLE_USER_HOME
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
24
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-bin.zip
4-
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6+
zipStoreBase=GRADLE_USER_HOME

samples/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/auth/HttpBasicAuth.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class HttpBasicAuth : Authentication {
77
var username: String? = null
88
var password: String? = null
99

10-
@InternalAPI
10+
@OptIn(InternalAPI::class)
1111
override fun apply(query: MutableMap<String, List<String>>, headers: MutableMap<String, String>) {
1212
if (username == null && password == null) return
1313
val str = (username ?: "") + ":" + (password ?: "")

0 commit comments

Comments
 (0)