Skip to content

Conversation

DominicGBauer
Copy link
Contributor

@DominicGBauer DominicGBauer commented Dec 3, 2024

Description

This implements a Swift native PowerSyncBackendConnector. This involves using an adapter so that users do not need to use __ in front of uploadData and fetchCredentials functions when implementing their connector. More info on the need for __ can be found here https://skie.touchlab.co/features/suspend.

Testing

I have tested this in the demo app by adding new todos and lists and confirmed that token refreshes work when a token becomes invalid.

Note

This requires using powersync-koltin Beta6.0 because it needs SKIE to be enabled for suspend functions which is not the case in later versions currently.

@DominicGBauer DominicGBauer self-assigned this Dec 3, 2024
Copy link
Contributor

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@DominicGBauer DominicGBauer merged commit 7591c29 into main Dec 3, 2024
1 check passed
@DominicGBauer DominicGBauer deleted the feat/implement-powersync-backend-connector branch December 3, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants