Skip to content

Commit bb05e43

Browse files
committed
Merge remote-tracking branch 'origin/main' into schema-options
2 parents fa97641 + 5a22850 commit bb05e43

File tree

5 files changed

+32
-9
lines changed

5 files changed

+32
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/[email protected]
4848
with:
4949
jvmVersion: 17
50-
versionBaseProperty: LIBRARY_VERSION
50+
versionBaseProperty: SWIFT_LIBRARY_VERSION
5151
publishTask: kmmBridgePublish
5252
secrets:
5353
gradle_params: -PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" -PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" -PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}"

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,24 @@
22

33
## unreleased
44

5-
* Fixed `CrudBatch` `hasMore` always returning false.
6-
* Added `triggerImmediately` to `onChange` method.
7-
* Report real-time progress information about downloads through `SyncStatus.downloadProgress`.
8-
* Compose: Add `composeState()` extension method on `SyncStatus`.
95
* Add `trackPreviousValues` option on `Table` which sets `CrudEntry.oldData` to previous values on updates.
106
* Add `trackMetadata` option on `Table` which adds a `_metadata` column that can be used for updates.
117
The configured metadata is available through `CrudEntry.metadata`.
128
* Add `ignoreEmptyUpdates` option which skips creating CRUD entries for updates that don't change any values.
139

10+
## 1.0.1
11+
12+
* [Internal] Version bump for broken Swift release pipeline
13+
14+
## 1.0.0
15+
16+
* Bump SDK to V1/Stable feature status
17+
* Fixed `CrudBatch` `hasMore` always returning false.
18+
* Added `triggerImmediately` to `onChange` method.
19+
* Report real-time progress information about downloads through `SyncStatus.downloadProgress`.
20+
* Compose: Add `composeState()` extension method on `SyncStatus`.
21+
* [Internal] Added helper method for Swift `PowerSyncException` throwing.
22+
1423
## 1.0.0-BETA32
1524

1625
* Added `onChange` method to the PowerSync client. This allows for observing table changes.
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
@file:Suppress("ktlint:standard:no-empty-file")
2-
31
// This is required to build the iOS framework
42

53
package com.powersync
4+
5+
/**
6+
* Helper class designed to bridge SKIEE methods and allow them to throw
7+
* `PowerSyncException`. This is necessary because these exceptions cannot
8+
* be thrown directly in Swift.
9+
*
10+
* The class provides a mechanism to handle exceptions in a way that is
11+
* compatible with the Swift environment, ensuring proper error propagation
12+
* and handling.
13+
*/
14+
@Throws(PowerSyncException::class)
15+
public fun throwPowerSyncException(exception: PowerSyncException): Unit = throw exception

docs/Release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## How to make a release
44

5-
1. Update `LIBRARY_VERSION` in `gradle.properties` in the root.
5+
1. Update `LIBRARY_VERSION` and `SWIFT_LIBRARY_VERSION` in `gradle.properties` in the root.
66
2. Add an entry to the `CHANGELOG.md`.
77
3. Make a PR and merge it.
88
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.

gradle.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ development=true
1717
RELEASE_SIGNING_ENABLED=true
1818
# Library config
1919
GROUP=com.powersync
20-
LIBRARY_VERSION=1.0.0-BETA32
20+
LIBRARY_VERSION=1.0.1
21+
# The Swift KMM bridge artifacts are published to SPM via a unique tag version
22+
# The version is the same as the LIBRARY_VERSION, but with a suffix of +SWIFT
23+
# Please update this when updating the LIBRARY_VERSION
24+
SWIFT_LIBRARY_VERSION=1.0.1+SWIFT
2125
GITHUB_REPO=https://github.com/powersync-ja/powersync-kotlin.git
2226
# POM
2327
POM_URL=https://github.com/powersync-ja/powersync-kotlin/

0 commit comments

Comments
 (0)