File tree 4 files changed +43
-12
lines changed
4 files changed +43
-12
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,36 @@ jobs:
19
19
run : ./generator/test.sh
20
20
21
21
lib :
22
- runs-on : ubuntu-20.04
23
- container :
24
- image : google/dart:latest
22
+ strategy :
23
+ matrix :
24
+ os :
25
+ - windows-2019
26
+ - macos-10.15
27
+ - ubuntu-20.04
28
+ dart :
29
+ - 2.10.5
30
+ # - 2.9.3 - generator stuck. I remember there was an issue in some dependency but don't remember which one.
31
+ - 2.8.4
32
+ - 2.7.2
33
+ runs-on : ${{ matrix.os }}
25
34
steps :
26
- - uses : actions/checkout@v1
35
+ # Note: dart-sdk from flutter doesn't work on linux, see https://github.com/flutter/flutter/issues/74599
36
+ # - uses: subosito/flutter-action@v1
37
+ # with:
38
+ # flutter-version: 1.22.x
39
+ # - run: flutter --version
40
+ - uses : cedx/setup-dart@v2
41
+ with :
42
+ version : ${{ matrix.dart }}
43
+ - run : dart --version
44
+ - uses : actions/checkout@v2
27
45
- name : Install ObjectBox C-API
28
46
run : ./install.sh
29
- - run : pub get
47
+ - run : ./tool/ pub.sh get
30
48
- name : Generate ObjectBox models
31
- run : pub run build_runner build
49
+ run : ./tool/ pub.sh run build_runner build
32
50
- name : Run tests
33
- run : pub run test
51
+ run : ./tool/ pub.sh run test
34
52
35
53
valgrind :
36
54
runs-on : ubuntu-20.04
47
65
run : |
48
66
apt update
49
67
apt install -y valgrind
50
- - run : ./tool/valgrind.sh
68
+ - run : ./tool/valgrind.sh
Original file line number Diff line number Diff line change @@ -754,7 +754,7 @@ class Query<T> {
754
754
try {
755
755
final idArray = idArrayPtr.ref;
756
756
return idArray.count == 0
757
- ? List <int >.empty ( )
757
+ ? List <int >.filled ( 0 , 0 )
758
758
: idArray.ids.asTypedList (idArray.count).toList (growable: false );
759
759
} finally {
760
760
C .id_array_free (idArrayPtr);
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ description: ObjectBox is a super-fast NoSQL ACID compliant object database.
6
6
7
7
environment :
8
8
# sdk: '>=2.12.0-0 <3.0.0'
9
- sdk : ' >=2.6.0 <3.0.0'
9
+ # min 2.7.0 because of ffigen
10
+ sdk : ' >=2.7.0 <3.0.0'
10
11
11
12
dependencies :
12
13
collection : ^1.14.11
@@ -20,8 +21,8 @@ dev_dependencies:
20
21
build_runner : ^1.0.0
21
22
objectbox_generator :
22
23
path : generator
23
- pedantic : ^1.10.0-nullsafety .0
24
- test : ^1.16.0-nullsafety .0
24
+ pedantic : ^1.9 .0
25
+ test : ^1.0 .0
25
26
ffigen : ^1.1.0
26
27
flat_buffers : 1.12.0
27
28
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # forward all arguments to an available version of `pub`
5
+
6
+ if [[ ` command -v pub` ]]; then
7
+ pub " $@ "
8
+ elif [[ ` command -v pub.bat` ]]; then
9
+ pub.bat " $@ "
10
+ else
11
+ dart pub " $@ "
12
+ fi
You can’t perform that action at this time.
0 commit comments