Test moor_ffi through Flutter in CI

This commit is contained in:
Simon Binder 2020-07-29 11:17:57 +02:00
parent 167a267bb7
commit 4f6798c0ab
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
5 changed files with 16 additions and 4 deletions

View File

@ -8,8 +8,6 @@ environment:
sdk: '>=2.4.0 <3.0.0'
dependencies:
moor_ffi:
path: ../../../moor_ffi
tests:
path: ../tests

View File

@ -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
Dart bindings to sqlite by using `dart:ffi`. This library contains utils to make

View File

@ -22,5 +22,5 @@ cd ..
cd moor_ffi
echo $(pwd)
pub upgrade
flutter packages upgrade
cd ..

View File

@ -2,4 +2,4 @@
cd moor_ffi
pub run test --coverage=coverage
flutter packages run test --coverage=coverage