Skip to content

Commit 7d46dc9

Browse files
authored
Merge pull request #7 from powersync-ja/beta-readme-polish
Beta release polish
2 parents ec80326 + b788398 commit 7d46dc9

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

Demo/PowerSyncExample/_Secrets.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ enum Secrets {
55
static let powerSyncEndpoint = "https://your-id.powersync.journeyapps.com"
66
static let supabaseURL = URL(string: "https://your-id.supabase.co")!
77
static let supabaseAnonKey = "anon-key"
8-
}
8+
}

Demo/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ Follow this guide to:
1414

1515
## Configure The App
1616

17-
Open the project in XCode.
17+
1. Open this directory in XCode.
1818

19-
Open the “_Secrets” file and insert the credentials of your Supabase and PowerSync projects (more info can be found [here](https://docs.powersync.com/integration-guides/supabase-+-powersync#test-everything-using-our-demo-app)).
19+
2. Open the “_Secrets” file and insert the credentials of your Supabase and PowerSync projects (more info can be found [here](https://docs.powersync.com/integration-guides/supabase-+-powersync#test-everything-using-our-demo-app)).
2020

21-
### Finish XCode configuration
21+
3. Enable CasePathMacros. We are using SwiftUI Navigation for the demo which requires this.
22+
23+
### Troubleshooting
24+
25+
If you run into build issues, try:
2226

2327
1. Clear Swift caches
2428

@@ -32,7 +36,6 @@ rm -rf ~/Library/org.swift.swiftpm
3236
- Reset Packages: File -> Packages -> Reset Package Caches
3337
- Clean Build: Product -> Clean Build Folder.
3438

35-
3. Enable CasePathMacros. We are using SwiftUI Navigation for the demo which requires this.
3639

3740
## Run project
3841

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# PowerSync Swift
88

9-
The SDK reference for the PowerSync Swift SDK is available [here](https://docs.powersync.com/client-sdk-references/swift).
9+
This is the PowerSync SDK for Swift clients. The SDK reference is available [here](https://docs.powersync.com/client-sdk-references/swift).
1010

1111
## Beta Release
1212

@@ -47,17 +47,16 @@ Add
4747
]
4848
```
4949

50+
to your `Package.swift` file and pin the dependency to a specific version. The version is required because the package is in beta.
51+
5052
to your `Package.swift` file and pin the dependency to a specific version. This is required because the package is in beta.
5153

5254
## Underlying Kotlin Dependency
5355

54-
The PowerSync Swift SDK currently makes use of the [PowerSync Kotlin Multiplatform SDK](https://github.com/powersync-ja/powersync-kotlin) with the API tool [SKIE](https://skie.touchlab.co/) and KMMBridge under the hood to help generate and publish the native Swift SDK. We will move to an entirely Swift native API in v1 and do not expect there to be any breaking changes.
56+
The PowerSync Swift SDK currently makes use of the [PowerSync Kotlin Multiplatform SDK](https://github.com/powersync-ja/powersync-kotlin) with the API tool [SKIE](https://skie.touchlab.co/) and KMMBridge under the hood to help generate and publish a native Swift package. We will move to an entirely Swift native API in v1 and do not expect there to be any breaking changes. For more details, see the [Swift SDK reference](https://docs.powersync.com/client-sdk-references/swift).
5557

5658

5759
## Migration from Alpha to Beta
5860

59-
* The `PowerSyncDatabase` no longer needs a driver argument and it must be removed.
60-
* The interface for `PowerSyncDatabase` now uses `PowerSyncDatabaseProtocol` which may require some changes to databases uses.
61-
* If you were using `__uploadData` and `__fetchCredentials` in your `PowerSyncBackendConnector` you must remove the `__` and update the methods to `uploadData` and `fetchCredentials`.
62-
* `@MainThread` usage is no longer required and should be removed.
63-
* Implementing `SuspendTaskWrapper` for database transactions is no longer required and should be removed.
61+
See these [developer notes](https://docs.powersync.com/client-sdk-references/swift#migrating-from-the-alpha-to-the-beta-sdk) if you are migrating from the alpha to the beta version of the Swift SDK.
62+

0 commit comments

Comments
 (0)