"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dev/devicelab/bin/tasks/build_ios_framework_module_test.dart" between
flutter-2.0.3.tar.gz and flutter-2.0.4.tar.gz

About: Flutter is Google's SDK for crafting beautiful apps for mobile, web, and desktop from a single codebase.

build_ios_framework_module_test.dart  (flutter-2.0.3):build_ios_framework_module_test.dart  (flutter-2.0.4)
skipping to change at line 69 skipping to change at line 69
}); });
} }
Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals e}) async { Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals e}) async {
section('Add plugins'); section('Add plugins');
final File pubspec = File(path.join(projectDir.path, 'pubspec.yaml')); final File pubspec = File(path.join(projectDir.path, 'pubspec.yaml'));
String content = pubspec.readAsStringSync(); String content = pubspec.readAsStringSync();
content = content.replaceFirst( content = content.replaceFirst(
'\ndependencies:\n', '\ndependencies:\n',
'\ndependencies:\n device_info: 0.4.1\n package_info: 0.4.0+9\n', '\ndependencies:\n device_info: 0.4.1\n package_info: 0.4.0+9\n connectiv ity: 3.0.3\n',
); );
pubspec.writeAsStringSync(content, flush: true); pubspec.writeAsStringSync(content, flush: true);
await inDirectory(projectDir, () async { await inDirectory(projectDir, () async {
await flutter( await flutter(
'packages', 'packages',
options: <String>['get'], options: <String>['get'],
); );
}); });
// First, build the module in Debug to copy the debug version of Flutter.xcfra mework. // First, build the module in Debug to copy the debug version of Flutter.xcfra mework.
skipping to change at line 287 skipping to change at line 287
for (final String mode in <String>['Debug', 'Profile', 'Release']) { for (final String mode in <String>['Debug', 'Profile', 'Release']) {
final String pluginFrameworkPath = path.join( final String pluginFrameworkPath = path.join(
outputPath, outputPath,
mode, mode,
'device_info.xcframework', 'device_info.xcframework',
localXcodeArmDirectoryName, localXcodeArmDirectoryName,
'device_info.framework', 'device_info.framework',
'device_info', 'device_info',
); );
await _checkBitcode(pluginFrameworkPath, mode); await _checkBitcode(pluginFrameworkPath, mode);
if (!await _linksOnFlutter(pluginFrameworkPath)) {
throw TaskResult.failure('$pluginFrameworkPath does not link on Flutter');
}
final String transitiveDependencyFrameworkPath = path.join(
outputPath,
mode,
'Reachability.xcframework',
localXcodeArmDirectoryName,
'Reachability.framework',
'Reachability',
);
if (await _linksOnFlutter(transitiveDependencyFrameworkPath)) {
throw TaskResult.failure('Transitive dependency $transitiveDependencyFrame
workPath unexpectedly links on Flutter');
}
checkFileExists(path.join( checkFileExists(path.join(
outputPath, outputPath,
mode, mode,
'device_info.xcframework', 'device_info.xcframework',
localXcodeArmDirectoryName, localXcodeArmDirectoryName,
'device_info.framework', 'device_info.framework',
'Headers', 'Headers',
'DeviceInfoPlugin.h', 'DeviceInfoPlugin.h',
)); ));
skipping to change at line 410 skipping to change at line 425
cocoapodsOutputPath, cocoapodsOutputPath,
mode, mode,
'device_info.xcframework', 'device_info.xcframework',
)); ));
checkDirectoryExists(path.join( checkDirectoryExists(path.join(
cocoapodsOutputPath, cocoapodsOutputPath,
mode, mode,
'package_info.xcframework', 'package_info.xcframework',
)); ));
checkDirectoryExists(path.join(
cocoapodsOutputPath,
mode,
'connectivity.xcframework',
));
checkDirectoryExists(path.join(
cocoapodsOutputPath,
mode,
'Reachability.xcframework',
));
} }
if (File(path.join( if (File(path.join(
outputPath, outputPath,
'GeneratedPluginRegistrant.h', 'GeneratedPluginRegistrant.h',
)).existsSync() == )).existsSync() ==
isModule) { isModule) {
throw TaskResult.failure('Unexpected GeneratedPluginRegistrant.h.'); throw TaskResult.failure('Unexpected GeneratedPluginRegistrant.h.');
} }
skipping to change at line 446 skipping to change at line 473
} }
Future<String> _dylibSymbols(String pathToDylib) { Future<String> _dylibSymbols(String pathToDylib) {
return eval('nm', <String>[ return eval('nm', <String>[
'-g', '-g',
pathToDylib, pathToDylib,
'-arch', '-arch',
'arm64', 'arm64',
]); ]);
} }
Future<bool> _linksOnFlutter(String pathToBinary) async {
final String loadCommands = await eval('otool', <String>[
'-l',
'-arch',
'arm64',
pathToBinary,
]);
return loadCommands.contains('Flutter.framework');
}
 End of changes. 4 change blocks. 
1 lines changed or deleted 29 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)