Skip to content
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

fix: SQLCipher dylib location on macOS builds #1904

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading