Skip to content

Support bucket with different priorities #55

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

Merged
merged 13 commits into from
Feb 12, 2025
Prev Previous commit
Next Next commit
Revert unintentional changes
  • Loading branch information
simolus3 committed Feb 12, 2025
commit 58dfa94ec3d439c752c0f915b7bffe950256804d
5 changes: 3 additions & 2 deletions dart/test/utils/native_test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ CommonDatabase openTestDatabase() {
return DynamicLibrary.open('libsqlite3.so.0');
});
sqlite_open.open.overrideFor(sqlite_open.OperatingSystem.macOS, () {
return DynamicLibrary.open(
'/opt/homebrew/Cellar/sqlite/3.48.0/lib/libsqlite3.dylib');
return DynamicLibrary.open('libsqlite3.dylib');
});
var lib = DynamicLibrary.open(getLibraryForPlatform(path: libPath));
var extension = SqliteExtension.inLibrary(lib, 'sqlite3_powersync_init');
Expand All @@ -24,6 +23,8 @@ CommonDatabase openTestDatabase() {
}

String getLibraryForPlatform({String? path = "."}) {
// Using an absolute path is required for macOS, where Dart can't dlopen
// relative paths due to being a "hardened program".
return p.normalize(p.absolute(switch (Abi.current()) {
Abi.androidArm ||
Abi.androidArm64 ||
Expand Down