Skip to content

Commit b9b99f7

Browse files
committed
Fix merge
1 parent 886798f commit b9b99f7

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProviderNative.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public actual class StaticCredentialsProvider internal actual constructor(builde
1212
private val credentials = Credentials(builder.accessKeyId!!, builder.secretAccessKey!!, builder.sessionToken)
1313

1414
public actual companion object {}
15-
override suspend fun getCredentials(): Credentials = credentials
16-
override fun close() { }
17-
override suspend fun waitForShutdown() { }
15+
actual override suspend fun getCredentials(): Credentials = credentials
16+
actual override fun close() { }
17+
actual override suspend fun waitForShutdown() { }
1818
}

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/auth/signing/AwsSignerNative.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ private fun CPointer<aws_signing_result>.getSignature(): ByteArray {
166166
private fun AwsSigningAlgorithm.toNativeSigningAlgorithm(): aws_signing_algorithm = when (this) {
167167
AwsSigningAlgorithm.SIGV4 -> aws_signing_algorithm.AWS_SIGNING_ALGORITHM_V4
168168
AwsSigningAlgorithm.SIGV4_ASYMMETRIC -> aws_signing_algorithm.AWS_SIGNING_ALGORITHM_V4_ASYMMETRIC
169+
AwsSigningAlgorithm.SIGV4_S3EXPRESS -> aws_signing_algorithm.AWS_SIGNING_ALGORITHM_V4_S3EXPRESS
169170
}
170171

171172
private fun AwsSignatureType.toNativeSignatureType(): aws_signature_type = when (this) {

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/http/HttpClientConnectionManagerNative.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ public actual class HttpClientConnectionManager actual constructor(
146146
) { "aws_http_connection_manager_release_connection()" }
147147
}
148148

149-
override suspend fun waitForShutdown() {
149+
actual override suspend fun waitForShutdown() {
150150
shutdownComplete.receiveCatching().getOrNull()
151151
}
152152

153-
override fun close() {
153+
actual override fun close() {
154154
aws_http_connection_manager_release(manager)
155155
}
156156
}

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/io/ClientBootstrapNative.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ public actual class ClientBootstrap actual constructor(
3737
}
3838
}
3939

40-
override suspend fun waitForShutdown() {
40+
actual override suspend fun waitForShutdown() {
4141
shutdownCompleteChannel.receive()
4242
}
4343

44-
override fun close() {
44+
actual override fun close() {
4545
aws_client_bootstrap_release(ptr)
4646
}
4747
}

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/io/EventLoopGroupNative.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public actual class EventLoopGroup actual constructor(maxThreads: Int) : NativeH
3939
}
4040
}
4141

42-
override suspend fun waitForShutdown() {
42+
actual override suspend fun waitForShutdown() {
4343
shutdownCompleteChannel.receive()
4444
}
4545

46-
override fun close() {
46+
actual override fun close() {
4747
aws_event_loop_group_release(ptr)
4848
}
4949
}

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/io/HostResolverNative.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public actual class HostResolver actual constructor(elg: EventLoopGroup, maxEntr
4040
}
4141
}
4242

43-
override suspend fun waitForShutdown() {
43+
actual override suspend fun waitForShutdown() {
4444
shutdownCompleteChannel.receive()
4545
}
4646

47-
override fun close() {
47+
actual override fun close() {
4848
aws_host_resolver_release(ptr)
4949
}
5050
}

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/io/TlsContextNative.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public actual class TlsContext actual constructor(options: TlsContextOptions?) :
105105
}
106106
}
107107

108-
override fun close() {
108+
actual override fun close() {
109109
aws_tls_ctx_release(ptr)
110110
aws_tls_ctx_options_clean_up(tlsCtxOpts.ptr)
111111
Allocator.Default.free(tlsCtxOpts.rawPtr)

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ kotest-version = "5.8.0"
1313
mock-server-version = "5.15.0"
1414
# fixme - remove in favor of clikt
1515
kotlinx-cli-version = "0.3.6"
16+
kotlinx-io-version = "0.3.1"
1617

1718

1819
[libraries]
20+
aws-kotlin-repo-tools-build-support = { module="aws.sdk.kotlin.gradle:build-support", version.ref = "aws-kotlin-repo-tools-version" }
1921
crt-java = { module = "software.amazon.awssdk.crt:aws-crt", version.ref = "crt-java-version" }
2022

2123
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin-version"}
@@ -29,6 +31,7 @@ kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-t
2931
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines-version" }
3032
kotlinx-coroutines-jdk8 = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8", version.ref = "coroutines-version" }
3133
kotlinx-cli = { module = "org.jetbrains.kotlinx:kotlinx-cli", version.ref = "kotlinx-cli-version" }
34+
kotlinx-io = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version.ref = "kotlinx-io-version"}
3235

3336
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-version" }
3437
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit-version" }

0 commit comments

Comments
 (0)