mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 00:38:52 +00:00
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:
@@ -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/
|
||||
Reference in New Issue
Block a user