-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Update build-all test for null-safe template #3773
Update build-all test for null-safe template #3773
Conversation
Flutter master now creates NNBD code when running 'flutter create', so the generated pubspec for build_all needs to use a compatible SDK version. This updates from 2.0.0 to 2.12.0. Also includes a test for this, which involved setting up tests for the file, and doing some refactoring to make the command testable. As a result, this fixes flutter/flutter#61049 (although more test backfill is needed).
| for version in "${BUILD_MODES[@]}"; do | ||
| echo "Building $version..." | ||
| (cd $REPO_DIR/all_plugins && flutter build $@ --$version) | ||
| (cd $REPO_DIR/all_plugins && flutter build $@ --$version --no-sound-null-safety) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ditman I had to add this because of web Maps, so once this lands if you can update your NNBD PR to remove it, it should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I'll update mine once this lands. (For cross-linking purposes, this is what's supposed to be updated: #3726)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Done: 479a543 )
ditman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the test!
|
Landing on red since all PRs are broken on this. |
Flutter master now creates NNBD code when running 'flutter create', so the generated pubspec for build_all needs to use a compatible SDK version. This updates from 2.0.0 to 2.12.0. Also includes a test for this, which involved setting up tests for the file, and doing some refactoring to make the command testable. As a result, this fixes flutter/flutter#61049 (although more test backfill is needed).
Flutter master now creates NNBD code when running 'flutter create', so
the generated pubspec for build_all needs to use a compatible SDK
version. This updates from 2.0.0 to 2.12.0.
Also includes a test for this, which involved setting up tests for the
file, and doing some refactoring to make the command testable. As a
result, this fixes flutter/flutter#61049
(although more test backfill is needed).
Pre-launch Checklist
[shared_preferences]///).