Unverified Commit 1c6decaa authored by Yegor's avatar Yegor Committed by GitHub

update APK path in devicelab tests (#13540)

* update APK path in devicelab tests

* add missing transitive dependency on archive

* use path used by flutter tools
parent 789c7b75
...@@ -274,7 +274,12 @@ class CompileTest { ...@@ -274,7 +274,12 @@ class CompileTest {
watch.start(); watch.start();
await flutter('build', options: options); await flutter('build', options: options);
watch.stop(); watch.stop();
releaseSizeInBytes = await file('$cwd/build/app/outputs/apk/app-release.apk').length(); File apk = file('$cwd/build/app/outputs/apk/app.apk');
if (!apk.existsSync()) {
// Pre Android SDK 26 path
apk = file('$cwd/build/app/outputs/apk/app-release.apk');
}
releaseSizeInBytes = apk.lengthSync();
break; break;
} }
......
...@@ -13,6 +13,7 @@ dev_dependencies: ...@@ -13,6 +13,7 @@ dev_dependencies:
sdk: flutter sdk: flutter
test: 0.12.26 test: 0.12.26
archive: 1.0.32 # TRANSITIVE DEPENDENCY
args: 0.13.7 # TRANSITIVE DEPENDENCY args: 0.13.7 # TRANSITIVE DEPENDENCY
async: 1.13.3 # TRANSITIVE DEPENDENCY async: 1.13.3 # TRANSITIVE DEPENDENCY
barback: 0.15.2+13 # TRANSITIVE DEPENDENCY barback: 0.15.2+13 # TRANSITIVE DEPENDENCY
......
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