Skip to content

Commit

Permalink
fix: update Java version to 17 and Swift tools version to 5.9
Browse files Browse the repository at this point in the history
- Update Java version to 17 in the GitHub Actions workflow and Swift tools version to 5.9 in the KMMBridge build configuration.
  • Loading branch information
hanrw committed Apr 25, 2024
1 parent 8e4fe5e commit 2218c8b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/releaase-to-central-sonatype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Release to Central Sonatype with Gradle
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ multiplatform-swiftpackage = "2.2.1"

touchlab-skie = "0.6.1"

touchlab-kmmbridge = "0.5.4"
touchlab-kmmbridge = "0.5.5"

com-linecorp-build-recipe-plugin = "1.1.1"

Expand Down
20 changes: 8 additions & 12 deletions openai-gateway/openai-gateway-darwin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,14 @@ kmmbridge {
* In kmmbridge, notice mavenPublishArtifacts() tells the plugin to push KMMBridge artifacts to a Maven repo. You then need to define a repo. Rather than do everything manually, you can just call addGithubPackagesRepository(), which will add the correct repo given parameters that are passed in from GitHub Actions.
*/
mavenPublishArtifacts() // <- Publish using a Maven repo
// spm()

// spm {
// iOS { v("14") }
// macOS { v("13") }
// swiftToolsVersion = "5.9"
// platforms {
// iOS("14")
// macOS("13")
// watchOS("7")
// tvOS("14")
// }
// }
spm {
swiftToolsVersion = "5.10"
platforms {
iOS("14")
macOS("13")
watchOS("7")
tvOS("14")
}
}
}

0 comments on commit 2218c8b

Please sign in to comment.