toxicity-io / sqlite-mc

An SQLDelight driver that uses SQLite3MultipleCiphers for database encryption.
Apache License 2.0
10 stars 0 forks source link

Rework native compilation #37

Closed 05nelsonm closed 11 months ago

05nelsonm commented 11 months ago

~Simply testing this out to see if it compiles on the latest desktop machines with CI. Needs much more testing in the following regards:~

This PR reworks native compilations and adds iOS targets.

NOTE: Resulting .klib for iOS are 4M (not great, but not bad compared to desktop). Will need to work on that to reduce size.

Closes #31

05nelsonm commented 11 months ago

I do not understand why this is failing on linux... My local environment is based off 22.04 LTS (same as ubuntu-latest) and test failure output is not helpful.

05nelsonm commented 11 months ago

So, including the sqlite3mc_amalgamation.c in the .def file will work for iOS it seems. Unfortunately, the build is 8M. Will need to pre-build using external/native/task.sh like originally planned, then use -include-binary option when configuring cinterop.

Also need to investigate the possibility of including a shared lib via -include-binary, which would allow enabling linux and macos such that they too can be pre-built and included in the resulting .klib