Skip to content

Commit

Permalink
Merge pull request #1904 from TheOneWithTheBraid/braid/macos-dylib
Browse files Browse the repository at this point in the history
fix: SQLCipher dylib location on macOS builds
  • Loading branch information
nico-famedly authored Aug 21, 2024
2 parents 99564df + 23704f6 commit a979c2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ jobs:
architecture: "arm64"
- name: Run tests
run: |
# Prevent restarting the github actions service on package upgrades
# See https://discourse.ubuntu.com/t/needrestart-changes-in-ubuntu-24-04-service-restarts/44671
echo '$nrconf{override_rc}{qr(^actions.runner.*.service$)} = 0;' | sudo tee /etc/needrestart/conf.d/githubactions.conf
sudo apt-get update && sudo apt-get install --no-install-recommends --no-install-suggests -y lcov libsqlite3-0 libsqlite3-dev libolm3 libssl3
./scripts/test.sh
- uses: actions/upload-artifact@v4
Expand Down
4 changes: 3 additions & 1 deletion lib/src/database/sqflite_encryption_helper/io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ class SQfLiteEncryptionHelper {
}
if (Platform.isMacOS) {
return DynamicLibrary.open(
'/usr/lib/libsqlcipher_flutter_libs_plugin.dylib');
'sqlcipher_flutter_libs.framework/Versions/Current/'
'sqlcipher_flutter_libs',
);
}
if (Platform.isWindows) {
return DynamicLibrary.open('libsqlcipher.dll');
Expand Down

0 comments on commit a979c2e

Please sign in to comment.