Address jmagman todos (#85348)
This commit is contained in:
parent
2034f74eee
commit
610ee89b17
@ -239,36 +239,24 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
|
||||
|
||||
await _checkBitcode(engineFrameworkPath, mode);
|
||||
|
||||
// TODO(jmagman): Remove ios-x86_64-simulator checks when the ARM simulator engine artifacts rolls.
|
||||
final String x86SimulatorFramework = path.join(
|
||||
outputPath,
|
||||
mode,
|
||||
'Flutter.xcframework',
|
||||
'ios-x86_64-simulator',
|
||||
'Flutter.framework',
|
||||
);
|
||||
|
||||
final String x86ArmSimulatorFramework = path.join(
|
||||
checkFileExists(path.join(
|
||||
outputPath,
|
||||
mode,
|
||||
'Flutter.xcframework',
|
||||
'ios-arm64_x86_64-simulator',
|
||||
'Flutter.framework',
|
||||
);
|
||||
'Flutter',
|
||||
));
|
||||
|
||||
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');
|
||||
}
|
||||
checkFileExists(path.join(
|
||||
outputPath,
|
||||
mode,
|
||||
'Flutter.xcframework',
|
||||
'ios-arm64_x86_64-simulator',
|
||||
'Flutter.framework',
|
||||
'Headers',
|
||||
'Flutter.h',
|
||||
));
|
||||
}
|
||||
|
||||
section('Check all modes have plugins');
|
||||
|
@ -9,8 +9,7 @@ import 'package:flutter_devicelab/framework/task_result.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
// TODO(jmagman): Remove once gradle_non_android_plugin_test builder can be deleted
|
||||
// when https://github.com/flutter/flutter/pull/80161 rolls to stable.
|
||||
// TODO(jmagman): Remove once gradle_non_android_plugin_test builder can be deleted, https://github.com/flutter/flutter/issues/85347
|
||||
return TaskResult.success(null);
|
||||
});
|
||||
}
|
||||
|
@ -32,10 +32,6 @@ Future<void> main() async {
|
||||
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');
|
||||
|
||||
await inDirectory(projectDir, () async {
|
||||
|
Loading…
x
Reference in New Issue
Block a user