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