mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
fix apk location for devicelab (#54697)
This commit is contained in:
parent
db36d3b98a
commit
6cb74eeac8
@ -416,13 +416,8 @@ class CompileTest {
|
||||
watch.start();
|
||||
await flutter('build', options: options);
|
||||
watch.stop();
|
||||
String apkPath = '$cwd/build/app/outputs/apk/app.apk';
|
||||
File apk = file(apkPath);
|
||||
if (!apk.existsSync()) {
|
||||
// Pre Android SDK 26 path
|
||||
apkPath = '$cwd/build/app/outputs/apk/app-release.apk';
|
||||
apk = file(apkPath);
|
||||
}
|
||||
final String apkPath = '$cwd/build/app/outputs/flutter-apk/app-release.apk';
|
||||
final File apk = file(apkPath);
|
||||
releaseSizeInBytes = apk.lengthSync();
|
||||
if (reportPackageContentSizes)
|
||||
metrics.addAll(await getSizesFromApk(apkPath));
|
||||
|
Loading…
Reference in New Issue
Block a user