Build ios framework (#44065)

This commit is contained in:
xster
2019-11-06 14:54:15 -08:00
committed by GitHub
parent 028ed7122a
commit d2e87a5d2c
14 changed files with 950 additions and 282 deletions

View File

@@ -625,6 +625,13 @@ void checkFileExists(String file) {
}
}
/// Checks that the file does not exists, otherwise throws a [FileSystemException].
void checkFileNotExists(String file) {
if (exists(File(file))) {
throw FileSystemException('Expected file to exit.', file);
}
}
void _checkExitCode(int code) {
if (code != 0) {
throw Exception(