Unverified Commit 2f3ba1a3 authored by Stephen (Alex) Wallen's avatar Stephen (Alex) Wallen Committed by GitHub

Readability revisions for #109891 (#110348)

parent 047cb864
......@@ -1425,17 +1425,18 @@ class CompileTest {
cwd,
'build',
));
final String? appBundlePath =
final String? appPath =
_findDarwinAppInBuildDirectory(buildDirectory.path);
if (appBundlePath == null) {
if (appPath == null) {
throw 'Failed to find app bundle in ${buildDirectory.path}';
}
// IPAs are created manually, https://flutter.dev/ios-release/
await exec('tar', <String>['-zcf', 'build/app.ipa', appBundlePath]);
releaseSizeInBytes = await file('$cwd/build/app.ipa').length();
// Validate changes in Dart snapshot format and data layout do not
// change compression size. This also simulates the size of an IPA on iOS.
await exec('tar', <String>['-zcf', 'build/app.tar.gz', appPath]);
releaseSizeInBytes = await file('$cwd/build/app.tar.gz').length();
if (reportPackageContentSizes) {
final Map<String, Object> sizeMetrics = await getSizesFromDarwinApp(
appPath: appBundlePath,
appPath: appPath,
operatingSystem: deviceOperatingSystem,
);
metrics.addAll(sizeMetrics);
......
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