From 6cb74eeac8c2a24bea7b0ab9e8e067f14955618c Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 13 Apr 2020 16:56:27 -0700 Subject: [PATCH] fix apk location for devicelab (#54697) --- dev/devicelab/lib/tasks/perf_tests.dart | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index cc9ee9650e..9916761bde 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -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));