Unverified Commit 6cb74eea authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

fix apk location for devicelab (#54697)

parent db36d3b9
...@@ -416,13 +416,8 @@ class CompileTest { ...@@ -416,13 +416,8 @@ class CompileTest {
watch.start(); watch.start();
await flutter('build', options: options); await flutter('build', options: options);
watch.stop(); watch.stop();
String apkPath = '$cwd/build/app/outputs/apk/app.apk'; final String apkPath = '$cwd/build/app/outputs/flutter-apk/app-release.apk';
File apk = file(apkPath); final File apk = file(apkPath);
if (!apk.existsSync()) {
// Pre Android SDK 26 path
apkPath = '$cwd/build/app/outputs/apk/app-release.apk';
apk = file(apkPath);
}
releaseSizeInBytes = apk.lengthSync(); releaseSizeInBytes = apk.lengthSync();
if (reportPackageContentSizes) if (reportPackageContentSizes)
metrics.addAll(await getSizesFromApk(apkPath)); metrics.addAll(await getSizesFromApk(apkPath));
......
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