From 23704f68b8bec408881691f884e79b23e629a661 Mon Sep 17 00:00:00 2001 From: The one with the braid Date: Sun, 18 Aug 2024 16:00:05 +0200 Subject: [PATCH] fix: SQLCipher dylib location on macOS builds Signed-off-by: The one with the braid --- .github/workflows/app.yml | 4 ---- lib/src/database/sqflite_encryption_helper/io.dart | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index de872201..5593a080 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -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 diff --git a/lib/src/database/sqflite_encryption_helper/io.dart b/lib/src/database/sqflite_encryption_helper/io.dart index 44300280..0cd93a32 100644 --- a/lib/src/database/sqflite_encryption_helper/io.dart +++ b/lib/src/database/sqflite_encryption_helper/io.dart @@ -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');