Skip to content

Commit 0383c0a

Browse files
committed
feat: add region provider
1 parent ea6cd68 commit 0383c0a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/core/KotlinDependency.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ private fun getDefaultRuntimeVersion(): String {
3838
const val RUNTIME_GROUP: String = "aws.smithy.kotlin"
3939
val RUNTIME_VERSION: String = System.getProperty("smithy.kotlin.codegen.clientRuntimeVersion", getDefaultRuntimeVersion())
4040
val KOTLIN_COMPILER_VERSION: String = System.getProperty("smithy.kotlin.codegen.kotlinCompilerVersion", "2.0.10")
41+
val KOTLINX_COROUTINES_VERSION: String = System.getProperty("smithy.kotlin.codegen.kotlinCoroutinesVersion", "1.9.0")
4142

4243
enum class SourceSet {
4344
CommonMain,
@@ -134,6 +135,7 @@ data class KotlinDependency(
134135
// External third-party dependencies
135136
val KOTLIN_STDLIB = KotlinDependency(GradleConfiguration.Implementation, "kotlin", "org.jetbrains.kotlin", "kotlin-stdlib", KOTLIN_COMPILER_VERSION)
136137
val KOTLIN_TEST = KotlinDependency(GradleConfiguration.TestImplementation, "kotlin.test", "org.jetbrains.kotlin", "kotlin-test", KOTLIN_COMPILER_VERSION)
138+
val KOTLINX_COROUTINES = KotlinDependency(GradleConfiguration.Implementation, "kotlinx.coroutines", "org.jetbrains.kotlinx", "kotlinx-coroutines-core", KOTLINX_COROUTINES_VERSION)
137139
}
138140

139141
override fun getDependencies(): List<SymbolDependency> {

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/lang/KotlinTypes.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ object KotlinTypes {
118118
val minutes = stdlibSymbol("minutes", "time.Duration.Companion")
119119
}
120120

121-
object Coroutines {
121+
object Coroutines : RuntimeTypePackage(KotlinDependency.KOTLINX_COROUTINES) {
122+
val runBlocking = symbol("runBlocking")
122123
val CoroutineContext = "kotlin.coroutines.CoroutineContext".toSymbol()
123124
}
124125

0 commit comments

Comments
 (0)