Dart 2.0 release prep (#6759)

* Dart - pubspec.yaml shouldn't contain authors section anymore - it's unused

* Dart - update CHANGELOG.md

* Dart - update test and publish scripts
This commit is contained in:
Ivan Dlugos
2021-08-02 22:31:36 +02:00
committed by GitHub
parent e012054667
commit 97d9527f6c
7 changed files with 185 additions and 26 deletions

View File

@@ -28,14 +28,12 @@ if [[ "$sampledir" != "$currentdir" ]]; then
exit 1
fi
cd ../dart/example
# Run `flatc`. Note: This requires you to compile using `cmake` from the
# root `/flatbuffers` directory.
if [ -e ../../flatc ]; then
../../flatc --dart ../../samples/monster.fbs
elif [ -e ../../Debug/flatc ]; then
../../Debug/flatc --dart ../../samples/monster.fbs
if [ -e ../flatc ]; then
../flatc --dart -o ../dart/example/ monster.fbs
elif [ -e ../Debug/flatc ]; then
../Debug/flatc --dart -o ../dart/example/ monster.fbs
else
echo 'flatc' could not be found. Make sure to build FlatBuffers from the \
$rootdir directory.
@@ -45,6 +43,7 @@ fi
echo Running the Dart sample.
# Execute the sample.
dart example.dart
dart ../dart/example/example.dart
cd ../../samples
# Copy the source schema so it is distributed when published to pub.dev
cp monster.fbs ../dart/example/