Skip to content

Commit 6764ff8

Browse files
authored
kn: release setup (#174)
1 parent e936caf commit 6764ff8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ See also:
6969
* https://www.iosdev.recipes/simctl/
7070

7171
### Windows
72-
Not supported yet.
72+
Ensure Docker is installed, then build the image using `./docker-images/build-all.sh`.
73+
Run a `./gradlew build` and the build and tests should be routed through to the container.

build-support/src/main/kotlin/aws/sdk/kotlin/gradle/crt/CMakeUtils.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
package aws.sdk.kotlin.gradle.crt
66

77
import org.gradle.api.Project
8-
import org.gradle.configurationcache.extensions.capitalized
98
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
109
import org.jetbrains.kotlin.konan.target.Architecture
1110
import org.jetbrains.kotlin.konan.target.Family
1211
import org.jetbrains.kotlin.konan.target.KonanTarget
1312
import java.io.File
1413

15-
fun KotlinNativeTarget.namedSuffix(prefix: String, capitalized: Boolean = false): String =
16-
prefix + if (capitalized) name.capitalized() else name
14+
fun KotlinNativeTarget.namedSuffix(prefix: String, uppercase: Boolean = false): String =
15+
prefix + if (uppercase) name.uppercase() else name
1716

1817
val KonanTarget.isSimulatorSdk: Boolean
1918
get() = when (this) {
@@ -80,13 +79,13 @@ val Project.cmakeLists: File
8079
get() = rootProject.projectDir.resolve("CMakeLists.txt")
8180

8281
val KotlinNativeTarget.cmakeConfigureTaskName: String
83-
get() = namedSuffix("cmakeConfigure", capitalized = true)
82+
get() = namedSuffix("cmakeConfigure", uppercase = true)
8483

8584
val KotlinNativeTarget.cmakeBuildTaskName: String
86-
get() = namedSuffix("cmakeBuild", capitalized = true)
85+
get() = namedSuffix("cmakeBuild", uppercase = true)
8786

8887
val KotlinNativeTarget.cmakeInstallTaskName: String
89-
get() = namedSuffix("cmakeInstall", capitalized = true)
88+
get() = namedSuffix("cmakeInstall", uppercase = true)
9089

9190
val File.slashPath: String
9291
get() = path.replace(File.separatorChar, '/')

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
kotlin-version = "2.2.0"
33

4-
aws-kotlin-repo-tools-version = "0.4.30-kn"
4+
aws-kotlin-repo-tools-version = "0.4.37"
55

66
# libs
77
crt-java-version = "0.38.1"

0 commit comments

Comments
 (0)