mirror of https://github.com/AMT-Cheif/drift.git
Test moor_ffi through Flutter in CI
This commit is contained in:
parent
167a267bb7
commit
4f6798c0ab
|
@ -8,8 +8,6 @@ environment:
|
||||||
sdk: '>=2.4.0 <3.0.0'
|
sdk: '>=2.4.0 <3.0.0'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
moor_ffi:
|
|
||||||
path: ../../../moor_ffi
|
|
||||||
tests:
|
tests:
|
||||||
path: ../tests
|
path: ../tests
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,17 @@
|
||||||
|
This package has been deprecated! Consider migrating to new sqlite packages depending on your setup:
|
||||||
|
|
||||||
|
- You use moor to build Flutter apps: Remove `moor_ffi` from your dependencies and add `sqlite3_flutter_libs`
|
||||||
|
instead. Also, replace the following imports:
|
||||||
|
- change `package:moor_ffi/moor_ffi.dart` to `package:moor/ffi.dart`
|
||||||
|
- change `package:moor_ffi/open_helper.dart` to `package:sqlite3/open.dart`
|
||||||
|
- You use moor, but without Flutter: Just drop the `moor_ffi` dependency and use the new
|
||||||
|
`package:moor/ffi.dart` library. You need to make sure that a dynamic sqlite3 library is
|
||||||
|
available at runtime.
|
||||||
|
- You don't use moor, but you do use Flutter: Depend on `sqlite3` and `sqlite3_flutter_libs`. The
|
||||||
|
`sqlite3` package contains the new Dart apis to use sqlite3.
|
||||||
|
- You don't use the main moor package or Flutter: Just depend on the `sqlite3` package and make sure that a
|
||||||
|
dynamic sqlite3 library is available at runtime
|
||||||
|
|
||||||
# moor_ffi
|
# moor_ffi
|
||||||
|
|
||||||
Dart bindings to sqlite by using `dart:ffi`. This library contains utils to make
|
Dart bindings to sqlite by using `dart:ffi`. This library contains utils to make
|
||||||
|
|
|
@ -22,5 +22,5 @@ cd ..
|
||||||
|
|
||||||
cd moor_ffi
|
cd moor_ffi
|
||||||
echo $(pwd)
|
echo $(pwd)
|
||||||
pub upgrade
|
flutter packages upgrade
|
||||||
cd ..
|
cd ..
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
cd moor_ffi
|
cd moor_ffi
|
||||||
|
|
||||||
pub run test --coverage=coverage
|
flutter packages run test --coverage=coverage
|
Loading…
Reference in New Issue