Add flutter build macos-framework command (#105242)

This commit is contained in:
Jenn Magder
2022-06-03 10:13:08 -07:00
committed by GitHub
parent 975e04ba6d
commit 3f1f0a8170
7 changed files with 883 additions and 44 deletions

View File

@@ -753,6 +753,13 @@ void checkDirectoryNotExists(String directory) {
}
}
/// Checks that the symlink exists, otherwise throws a [FileSystemException].
void checkSymlinkExists(String file) {
if (!exists(Link(file))) {
throw FileSystemException('Expected symlink to exist.', file);
}
}
/// Check that `collection` contains all entries in `values`.
void checkCollectionContains<T>(Iterable<T> values, Iterable<T> collection) {
for (final T value in values) {