From 8dbd1c0df828676e5246d3705f9071dc88d6817e Mon Sep 17 00:00:00 2001 From: stevensJourney Date: Fri, 2 May 2025 10:18:50 +0200 Subject: [PATCH 1/3] update swift deploy process --- .github/workflows/deploy.yml | 2 +- docs/Release.md | 2 +- gradle.properties | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bdf0a791..df3d892b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,7 +47,7 @@ jobs: uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuildautoversion.yml@v1.2 with: jvmVersion: 17 - versionBaseProperty: LIBRARY_VERSION + versionBaseProperty: SWIFT_LIBRARY_VERSION publishTask: kmmBridgePublish secrets: gradle_params: -PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" -PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" -PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" diff --git a/docs/Release.md b/docs/Release.md index ef9f4bdd..958848d9 100644 --- a/docs/Release.md +++ b/docs/Release.md @@ -2,7 +2,7 @@ ## How to make a release -1. Update `LIBRARY_VERSION` in `gradle.properties` in the root. +1. Update `LIBRARY_VERSION` and `SWIFT_LIBRARY_VERSION` in `gradle.properties` in the root. 2. Add an entry to the `CHANGELOG.md`. 3. Make a PR and merge it. 4. Once the PR is merged and in the `main` branch then manually run the Github action `Deploy to Sonatype`. This will create a release to Maven Central and will also update the version of the `powersync-kotlin` SPM package used in the Swift SDK. If the release contains changes pertaining to the Swift SDK you will need to update the `powersync-kotlin` SPM package version in that repo and make a release there as well. diff --git a/gradle.properties b/gradle.properties index ee2fbd9c..01d5c214 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,6 +18,10 @@ RELEASE_SIGNING_ENABLED=true # Library config GROUP=com.powersync LIBRARY_VERSION=1.0.0 +# The Swift KMM bridge artifacts are published to SPM via a unique tag version +# The version is the same as the LIBRARY_VERSION, but with a suffix of -SWIFT +# Please update this when updating the LIBRARY_VERSION +SWIFT_LIBRARY_VERSION=1.0.0-SWIFT GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git # POM POM_URL=https://github.com/powersync-ja/powersync-kotlin/ From 9588b70c631a6108677aa3584d8d9f032b1a3ddd Mon Sep 17 00:00:00 2001 From: stevensJourney Date: Fri, 2 May 2025 10:45:23 +0200 Subject: [PATCH 2/3] use build meta instead of prerelease --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 01d5c214..489dce99 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,7 +21,7 @@ LIBRARY_VERSION=1.0.0 # The Swift KMM bridge artifacts are published to SPM via a unique tag version # The version is the same as the LIBRARY_VERSION, but with a suffix of -SWIFT # Please update this when updating the LIBRARY_VERSION -SWIFT_LIBRARY_VERSION=1.0.0-SWIFT +SWIFT_LIBRARY_VERSION=1.0.0+SWIFT GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git # POM POM_URL=https://github.com/powersync-ja/powersync-kotlin/ From 562f970cfca540903cb9a72902856a27dc0ab251 Mon Sep 17 00:00:00 2001 From: stevensJourney Date: Fri, 2 May 2025 10:49:08 +0200 Subject: [PATCH 3/3] update comment --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 489dce99..d44ce494 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,7 +19,7 @@ RELEASE_SIGNING_ENABLED=true GROUP=com.powersync LIBRARY_VERSION=1.0.0 # The Swift KMM bridge artifacts are published to SPM via a unique tag version -# The version is the same as the LIBRARY_VERSION, but with a suffix of -SWIFT +# The version is the same as the LIBRARY_VERSION, but with a suffix of +SWIFT # Please update this when updating the LIBRARY_VERSION SWIFT_LIBRARY_VERSION=1.0.0+SWIFT GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git