Skip to content

Commit

Permalink
chore(deps): Bump drift and sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillon Nys authored and dnys1 committed Jun 27, 2023
1 parent ed2d42b commit 316d43c
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion aft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
connectivity_plus: ^4.0.1
dart_style: 2.3.1
device_info_plus: ^9.0.0
drift: ">=2.4.0 <2.9.0"
drift: ">=2.9.0 <2.10.0"
flutter_plugin_android_lifecycle: ^2.0.9
graphs: ^2.1.0
http: ">=0.13.0 <2.0.0"
Expand All @@ -26,6 +26,7 @@ dependencies:
oauth2: ^2.0.2
package_info_plus: ^4.0.1
pigeon: ^9.2.4
sqlite3: ^2.0.0
source_gen: ^1.3.2
stack_trace: ^1.10.0
uuid: ">=3.0.6 <=3.0.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
built_collection: ^5.0.0
built_value: ">=8.6.0 <8.7.0"
collection: ^1.15.0
drift: ">=2.4.0 <2.9.0"
drift: ">=2.9.0 <2.10.0"
intl: ">=0.18.0 <1.0.0"
meta: ^1.7.0
path: ^1.8.0
Expand Down
2 changes: 1 addition & 1 deletion packages/common/amplify_db_common/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:

dependencies:
amplify_db_common: ">=0.1.2+5 <0.2.0"
drift: ">=2.4.0 <2.9.0"
drift: ">=2.9.0 <2.10.0"
flutter:
sdk: flutter

Expand Down
2 changes: 1 addition & 1 deletion packages/common/amplify_db_common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:

dependencies:
amplify_db_common_dart: ">=0.3.0+1 <0.4.0"
drift: ">=2.4.0 <2.9.0"
drift: ">=2.9.0 <2.10.0"
flutter:
sdk: flutter
path: ^1.8.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:

dependencies:
amplify_db_common_dart: ">=0.2.0+5 <0.3.0"
drift: ">=2.4.0 <2.9.0"
drift: ">=2.9.0 <2.10.0"
example_common:
path: ../../../example_common

Expand Down
10 changes: 6 additions & 4 deletions packages/common/amplify_db_common_dart/lib/src/connect_html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ QueryExecutor connect({
return LazyDatabase(() async {
final sqlite3Bytes = await loadSqlite3(client);
final fs = await IndexedDbFileSystem.open(dbName: 'com.amplify.$name');
final sqlite3 = await WasmSqlite3.load(
sqlite3Bytes,
SqliteEnvironment(fileSystem: fs),
final sqlite3 = await WasmSqlite3.load(sqlite3Bytes);
sqlite3.registerVirtualFileSystem(fs, makeDefault: true);
return WasmDatabase(
sqlite3: sqlite3,
fileSystem: fs,
path: '/drift/$name.db',
);
return WasmDatabase(sqlite3: sqlite3, path: '/drift/$name.db');
});
}

Expand Down
4 changes: 2 additions & 2 deletions packages/common/amplify_db_common_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ dependencies:
amplify_core: ">=1.2.0 <1.3.0"
async: ^2.10.0
aws_common: ">=0.5.0+2 <0.6.0"
drift: ">=2.4.0 <2.9.0"
drift: ">=2.9.0 <2.10.0"
meta: ^1.7.0
path: ^1.8.0
sqlite3: ^1.8.0
sqlite3: ^2.0.0

dev_dependencies:
amplify_lints: ">=3.0.0 <3.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ publish_to: "none"
version: 0.1.0

environment:
flutter: ">=3.10.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/amplify_storage_s3/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dev_dependencies:
path: ../../../amplify_lints
amplify_storage_s3_dart: any
aws_common: any
drift: ">=2.4.0 <2.9.0"
drift: ">=2.9.0 <2.10.0"
flutter_driver:
sdk: flutter
flutter_test:
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/amplify_storage_s3_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
aws_signature_v4: ">=0.4.0+2 <0.5.0"
built_collection: ^5.0.0
built_value: ">=8.6.0 <8.7.0"
drift: ">=2.4.0 <2.9.0"
drift: ">=2.9.0 <2.10.0"
fixnum: ^1.0.0
json_annotation: ">=4.8.1 <4.9.0"
meta: ^1.7.0
Expand Down

0 comments on commit 316d43c

Please sign in to comment.