We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ebac2e commit 4c4f6ccCopy full SHA for 4c4f6cc
packages/sqlite_async/test/utils/native_test_utils.dart
@@ -26,6 +26,16 @@ class TestSqliteOpenFactory extends TestDefaultSqliteOpenFactory {
26
sqlite_open.open.overrideFor(sqlite_open.OperatingSystem.linux, () {
27
return DynamicLibrary.open(sqlitePath);
28
});
29
+
30
+ sqlite_open.open.overrideFor(sqlite_open.OperatingSystem.macOS, () {
31
+ // Prefer using Homebrew's SQLite which allows loading extensions.
32
+ const fromHomebrew = '/opt/homebrew/opt/sqlite/lib/libsqlite3.dylib';
33
+ if (File(fromHomebrew).existsSync()) {
34
+ return DynamicLibrary.open(fromHomebrew);
35
+ }
36
37
+ return DynamicLibrary.open('libsqlite3.dylib');
38
+ });
39
}
40
41
@override
0 commit comments