-
Notifications
You must be signed in to change notification settings - Fork 5
WatchOS compatibility #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
At the moment, we support iOS only. We don't want things to stay that way forever (adding macOS support is in progress, we're currently trying to work our way around some limitations of our dependencies to enable that). Generally, it looks like there isn't anything that fundamentally prevents watchOS / tvOS support either (our core extension is written in Rust which should support this, and our upstream Kotlin multiplatform dependencies used to implement the Swift SDK should support this too). So while it's not on our roadmap at this point (you might be the first one asking for it), I think it's something that we could support in the future given enough interest. |
@simolus3 Would you share some technical direction? I am happy to investigate & contribute back. |
Awesome, thanks for offering to help! Basically, most of the Swift SDK is either:
So there are quite a few steps, but I hope they're all rather straightforward (I'm also happy to give more pointers or take care of these steps, but as I've said it's not a huge priority for us at the moment). It might be that watchOS doesn't support some of the platform APIs we need, but from a quick look the most concerning one is our sync client which uses an HTTP stream that should be supported on watchOS as well. |
@simolus3 I just added an attempt for 1. though I am not convinced of the approach: https://github.com/powersync-ja/powersync-sqlite-core/pull/73/files. Feedback is appreciated. |
Currently:
error: While building for watchOS Simulator, no library for this platform was found in '/Users/USER/Library/Developer/Xcode/DerivedData/kite_and_work-fusbjqcfyjsuraegryjkczwuruaj/SourcePackages/artifacts/powersync-kotlin/PowerSyncKotlin/PowerSyncKotlin.xcframework'
Is this supported?
The text was updated successfully, but these errors were encountered: