Skip to content

Commit

Permalink
fix(supabase): support custom db path for windows #490 (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshedor authored Dec 11, 2024
1 parent 6d3d971 commit bd57c28
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/reusable-dart-analyze-format-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
matrix:
sdk_version: [beta, stable]
steps:
- name: Install SQLite3
run: sudo apt-get update && sudo apt-get -y install sqlite3 libsqlite3-dev

- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk_version }}
Expand Down
4 changes: 4 additions & 0 deletions packages/brick_offline_first_with_supabase/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Unreleased

## 1.1.2

- Support a custom database path when creating the cache manager (#490)

## 1.1.1

- Allow a generic type argument for `OfflineFirstWithSupabaseRepository`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ abstract class OfflineFirstWithSupabaseRepository<
/// the queue is used to add offline to the repository.
static (RestOfflineQueueClient, RestOfflineRequestQueue) clientQueue({
required DatabaseFactory databaseFactory,
String databasePath = 'brick_offline_queue.sqlite',

/// These paths will not be stored in the offline queue.
/// By default, Supabase Auth and Storage paths are ignored.
Expand Down Expand Up @@ -436,7 +437,7 @@ abstract class OfflineFirstWithSupabaseRepository<
final client = RestOfflineQueueClient(
innerClient ?? http.Client(),
RestRequestSqliteCacheManager(
'brick_offline_queue.sqlite',
databasePath,
databaseFactory: databaseFactory,
processingInterval: processingInterval,
serialProcessing: serialProcessing,
Expand Down
2 changes: 1 addition & 1 deletion packages/brick_offline_first_with_supabase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage: https://github.com/GetDutchie/brick/tree/main/packages/brick_offline_f
issue_tracker: https://github.com/GetDutchie/brick/issues
repository: https://github.com/GetDutchie/brick

version: 1.1.1
version: 1.1.2

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit bd57c28

Please sign in to comment.