Skip to content

Commit 6fd476b

Browse files
authored
fix: clientrt package rename (#4)
* Rename package prefix from software.amazon.awssdk.kotlin.crt to aws.sdk.kotlin.runtime.crt * Rename root package prefix from aws.sdk.kotlin.runtime.crt to aws.sdk.kotlin.crt based on aws/aws-sdk-kotlin#54 (comment). * Cleanup from PR feedback * ktlint cleanup and resolve some warnings
1 parent e99daa3 commit 6fd476b

File tree

78 files changed

+181
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+181
-171
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
`maven-publish`
1313
}
1414

15-
group = "software.amazon.awssdk.crt"
15+
group = "aws.sdk.kotlin.crt"
1616
version = "0.1.0-SNAPSHOT"
1717
description = "Kotlin Multiplatform bindings for AWS SDK Common Runtime"
1818

elasticurl/src/commonMain/kotlin/Application.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
5+
import aws.sdk.kotlin.crt.CRT
6+
import aws.sdk.kotlin.crt.CrtRuntimeException
7+
import aws.sdk.kotlin.crt.LogDestination
8+
import aws.sdk.kotlin.crt.http.*
9+
import aws.sdk.kotlin.crt.io.*
10+
import kotlinx.coroutines.ExperimentalCoroutinesApi
511
import kotlinx.coroutines.channels.Channel
612
import kotlinx.coroutines.channels.receiveOrNull
7-
import software.amazon.awssdk.kotlin.crt.CRT
8-
import software.amazon.awssdk.kotlin.crt.CrtRuntimeException
9-
import software.amazon.awssdk.kotlin.crt.LogDestination
10-
import software.amazon.awssdk.kotlin.crt.http.*
11-
import software.amazon.awssdk.kotlin.crt.io.*
1213

14+
@ExperimentalCoroutinesApi
1315
fun main(args: Array<String>) {
1416
platformInit()
1517

@@ -114,6 +116,7 @@ fun main(args: Array<String>) {
114116
println("exiting")
115117
}
116118

119+
@ExperimentalCoroutinesApi
117120
private suspend fun HttpClientConnection.roundTrip(request: HttpRequest, sink: Sink) {
118121
val streamDone = Channel<Unit>()
119122

elasticurl/src/commonMain/kotlin/CliOpts.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6+
import aws.sdk.kotlin.crt.LogLevel
67
import kotlinx.cli.*
7-
import software.amazon.awssdk.kotlin.crt.LogLevel
88

99
private const val DEFAULT_CONNECT_TIMEOUT_MS = 3000
1010

src/common/src/software/amazon/awssdk/kotlin/crt/AsyncShutdown.kt renamed to src/common/src/aws/sdk/kotlin/crt/AsyncShutdown.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package software.amazon.awssdk.kotlin.crt
6+
package aws.sdk.kotlin.crt
77

88
public interface AsyncShutdown {
99
/**

src/common/src/software/amazon/awssdk/kotlin/crt/CRT.kt renamed to src/common/src/aws/sdk/kotlin/crt/CRT.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package software.amazon.awssdk.kotlin.crt
6+
package aws.sdk.kotlin.crt
77

88
public expect object CRT {
99
/**

src/common/src/software/amazon/awssdk/kotlin/crt/Closeable.kt renamed to src/common/src/aws/sdk/kotlin/crt/Closeable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package software.amazon.awssdk.kotlin.crt
6+
package aws.sdk.kotlin.crt
77

88
public interface Closeable {
99
/**

src/common/src/software/amazon/awssdk/kotlin/crt/CrtRuntimeException.kt renamed to src/common/src/aws/sdk/kotlin/crt/CrtRuntimeException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package software.amazon.awssdk.kotlin.crt
6+
package aws.sdk.kotlin.crt
77

88
public open class CrtRuntimeException(message: String?) : RuntimeException(message) {
99
public open val errorCode: Int = CRT.awsLastError()

src/common/src/software/amazon/awssdk/kotlin/crt/Debug.kt renamed to src/common/src/aws/sdk/kotlin/crt/Debug.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package software.amazon.awssdk.kotlin.crt
6+
package aws.sdk.kotlin.crt
77

88
private const val ENV_CRT_DEBUG = "CRTDEBUG"
99

src/common/src/software/amazon/awssdk/kotlin/crt/Log.kt renamed to src/common/src/aws/sdk/kotlin/crt/Log.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package software.amazon.awssdk.kotlin.crt
6+
package aws.sdk.kotlin.crt
77

88
/**
99
* Controls the verbosity of logging records output

src/common/src/software/amazon/awssdk/kotlin/crt/Platform.kt renamed to src/common/src/aws/sdk/kotlin/crt/Platform.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
package software.amazon.awssdk.kotlin.crt
6+
package aws.sdk.kotlin.crt
77

88
/**
99
* Platform specific functionality

0 commit comments

Comments
 (0)