From 0fe1adadd2da9314096f6a966091f0e9f22cb8fd Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Tue, 11 Aug 2020 06:26:05 -0700 Subject: [PATCH] Pin iOS module test plugin versions (#63445) --- dev/bots/test.dart | 3 +-- dev/devicelab/bin/tasks/module_test_ios.dart | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 474482d001..c568e1341e 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -1223,8 +1223,7 @@ Future _runHostOnlyDeviceLabTests() async { () => _runDevicelabTest('module_test', environment: gradleEnvironment, testEmbeddingV2: true), () => _runDevicelabTest('plugin_dependencies_test', environment: gradleEnvironment), - // TODO(magder): https://github.com/flutter/flutter/issues/63447 -// if (Platform.isMacOS) () => _runDevicelabTest('module_test_ios'), + if (Platform.isMacOS) () => _runDevicelabTest('module_test_ios'), if (Platform.isMacOS) () => _runDevicelabTest('build_ios_framework_module_test'), if (Platform.isMacOS) () => _runDevicelabTest('plugin_lint_mac'), () => _runDevicelabTest('plugin_test', environment: gradleEnvironment), diff --git a/dev/devicelab/bin/tasks/module_test_ios.dart b/dev/devicelab/bin/tasks/module_test_ios.dart index e16a068530..8cd8b88f36 100644 --- a/dev/devicelab/bin/tasks/module_test_ios.dart +++ b/dev/devicelab/bin/tasks/module_test_ios.dart @@ -148,7 +148,7 @@ Future main() async { content = content.replaceFirst( '\ndependencies:\n', // One dynamic framework, one static framework, and one that does not support iOS. - '\ndependencies:\n device_info:\n google_maps_flutter:\n android_alarm_manager:\n', + '\ndependencies:\n device_info: 0.4.2+4\n google_sign_in: 4.5.1\n android_alarm_manager: 0.4.5+11\n', ); await pubspec.writeAsString(content, flush: true); await inDirectory(projectDir, () async { @@ -163,7 +163,7 @@ Future main() async { await inDirectory(projectDir, () async { await flutter( 'build', - options: ['ios', '--no-codesign'], + options: ['ios', '--no-codesign', '-v'], ); }); @@ -178,7 +178,7 @@ Future main() async { if (!podfileLockOutput.contains(':path: Flutter/engine') || !podfileLockOutput.contains(':path: Flutter/FlutterPluginRegistrant') || !podfileLockOutput.contains(':path: Flutter/.symlinks/device_info/ios') - || !podfileLockOutput.contains(':path: Flutter/.symlinks/google_maps_flutter/ios') + || !podfileLockOutput.contains(':path: Flutter/.symlinks/google_sign_in/ios') || podfileLockOutput.contains('android_alarm_manager')) { return TaskResult.failure('Building ephemeral host app Podfile.lock does not contain expected pods'); } @@ -186,7 +186,7 @@ Future main() async { checkFileExists(path.join(ephemeralIOSHostApp.path, 'Frameworks', 'device_info.framework', 'device_info')); // Static, no embedded framework. - checkDirectoryNotExists(path.join(ephemeralIOSHostApp.path, 'Frameworks', 'google_maps_flutter.framework')); + checkDirectoryNotExists(path.join(ephemeralIOSHostApp.path, 'Frameworks', 'google_sign_in.framework')); // Android-only, no embedded framework. checkDirectoryNotExists(path.join(ephemeralIOSHostApp.path, 'Frameworks', 'android_alarm_manager.framework'));