Skip to content

Commit 6cc54af

Browse files
author
Ivan Dlugos
committed
generator tests - re-enable sound-null-safety after dependency upgrades
1 parent 861f9b6 commit 6cc54af

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

generator/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ environment:
99

1010
dependencies:
1111
objectbox: 0.13.0
12-
build: ^2.0.0
13-
source_gen: ^1.0.0
1412
analyzer: ^1.1.0
13+
build: ^2.0.0
14+
collection: ^1.15.0
15+
dart_style: ^2.0.0
1516
glob: ^2.0.0
1617
path: ^1.8.0
17-
dart_style: ^2.0.0
18-
collection: ^1.15.0
18+
source_gen: ^1.0.0
1919

2020
# NOTE: remove before publishing
2121
dependency_overrides:

generator/test.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# TODO enable sound null safety after depependencies are out:
5-
# Because build_runner >=0.9.1+1 depends on io ^0.3.0 and build_runner <=0.9.1 requires SDK version >=1.9.1 <2.0.0-∞, every version of build_runner requires io ^0.3.0.
6-
# So, because objectbox_generator_test depends on both build_runner any and io ^1.0.0, version solving failed.
7-
84
myDir=$(dirname "$0")
95

106
function runTestFile() {
@@ -13,7 +9,7 @@ function runTestFile() {
139
# execute "N-pre.dart" file if it exists
1410
if [[ "${1}" != "0" && -f "${1}-pre.dart" ]]; then
1511
echo "Executing ${1}-pre.dart"
16-
dart --no-sound-null-safety "${1}-pre.dart"
12+
dart "${1}-pre.dart"
1713
fi
1814

1915
# build before each step, except for "0.dart"
@@ -22,7 +18,7 @@ function runTestFile() {
2218
dart pub run build_runner build --verbose
2319
fi
2420
echo "Running ${file}"
25-
dart --no-sound-null-safety test "${file}"
21+
dart test "${file}"
2622
fi
2723
}
2824

0 commit comments

Comments
 (0)