Unverified Commit 610ee89b authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Address jmagman todos (#85348)

parent 2034f74e
...@@ -239,36 +239,24 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals ...@@ -239,36 +239,24 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
await _checkBitcode(engineFrameworkPath, mode); await _checkBitcode(engineFrameworkPath, mode);
// TODO(jmagman): Remove ios-x86_64-simulator checks when the ARM simulator engine artifacts rolls. checkFileExists(path.join(
final String x86SimulatorFramework = path.join(
outputPath, outputPath,
mode, mode,
'Flutter.xcframework', 'Flutter.xcframework',
'ios-x86_64-simulator', 'ios-arm64_x86_64-simulator',
'Flutter.framework', 'Flutter.framework',
); 'Flutter',
));
final String x86ArmSimulatorFramework = path.join( checkFileExists(path.join(
outputPath, outputPath,
mode, mode,
'Flutter.xcframework', 'Flutter.xcframework',
'ios-arm64_x86_64-simulator', 'ios-arm64_x86_64-simulator',
'Flutter.framework', 'Flutter.framework',
); 'Headers',
'Flutter.h',
final bool x86SimulatorBinaryExists = exists(File(path.join(x86SimulatorFramework, 'Flutter'))); ));
final bool x86ArmSimulatorBinaryExists = exists(File(path.join(x86ArmSimulatorFramework, 'Flutter')));
if (!x86SimulatorBinaryExists && !x86ArmSimulatorBinaryExists) {
throw TaskResult.failure('Expected Flutter engine artifact binary to exist');
}
final bool x86SimulatorHeaderExists = exists(File(path.join(x86SimulatorFramework, 'Headers', 'Flutter.h')));
final bool x86ArmSimulatorHeaderExists = exists(File(path.join(x86ArmSimulatorFramework, 'Headers', 'Flutter.h')));
if (!x86SimulatorHeaderExists && !x86ArmSimulatorHeaderExists) {
throw TaskResult.failure('Expected Flutter.h engine artifact to exist');
}
} }
section('Check all modes have plugins'); section('Check all modes have plugins');
......
...@@ -9,8 +9,7 @@ import 'package:flutter_devicelab/framework/task_result.dart'; ...@@ -9,8 +9,7 @@ import 'package:flutter_devicelab/framework/task_result.dart';
Future<void> main() async { Future<void> main() async {
await task(() async { await task(() async {
// TODO(jmagman): Remove once gradle_non_android_plugin_test builder can be deleted // TODO(jmagman): Remove once gradle_non_android_plugin_test builder can be deleted, https://github.com/flutter/flutter/issues/85347
// when https://github.com/flutter/flutter/pull/80161 rolls to stable.
return TaskResult.success(null); return TaskResult.success(null);
}); });
} }
...@@ -32,10 +32,6 @@ Future<void> main() async { ...@@ -32,10 +32,6 @@ Future<void> main() async {
projectDir, projectDir,
); );
// For some reason devicelab machines have really old spec snapshots.
// TODO(jmagman): Remove this if this test is moved to a machine that installs CocoaPods on every run.
await eval('pod', <String>['repo', 'update', '--verbose']);
section('Create release build'); section('Create release build');
await inDirectory(projectDir, () async { await inDirectory(projectDir, () async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment