powersync-ja / powersync-kotlin

SDK that enables local-first and real-time reactive apps with embedded SQLite for Kotlin Multiplatform clients
https://www.powersync.com
35 stars 4 forks source link

Need support for attachment helper packages under Kotlin + Supabase Database Storage + PowerSync #76

Open legend295 opened 3 weeks ago

legend295 commented 3 weeks ago

Hello

I'm working on the application where we need to support data and files support for offline and online sync. I'm able to do with the data in the table and sync them offline/online. But fails to do that with files in storage.

According to https://docs.powersync.com/usage/use-case-examples/attachments-files, attachment helper packages are in the works.

Until then, what approach can I use to upload the files to Supabase Database Storage which supports offline sync, and will that implementation sync the files offline and online like it does for the data in the database?

I can see that support is there in flutter and reactnative but nothing for now in kotlin. Looking for support.

@Manrich121 @stevensJourney @DominicGBauer

Help appreciated.

legend295 commented 3 weeks ago

Hello Could you please help @Manrich121 @stevensJourney @DominicGBauer Thanks

DominicGBauer commented 3 weeks ago

Hi @legend295 sorry we missed this.

We currently do not have an attachments package for Kotlin and are not working on one at present. Your best bet at this moment in time would be to look at either the dart or javascript helper to give you some guidance on how you can implement your own attachments queue in Kotlin.

The main idea of the packages is to have a locaOnly table that queues uploading and downloading the attachments to and from the external storage facility.