[TIMOB-14701] CLI: Android: For emulator builds, check that emulator has sufficient space
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-28T23:16:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0 |
Components | Android, CLI, Tooling |
Labels | androidbuild, ay-verified, cb-verified, module_CLI, qe-testadded |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-07-30T21:55:53.000+0000 |
Updated | 2014-02-12T01:24:56.000+0000 |
Description
See if there's a way to check how much space is free in an AVD before install the app. We probably will need to build the app first to get the APK file size.
This is fixed by https://github.com/appcelerator/titanium_mobile/pull/4612, specifically TIMOB-14784.
We show a friendly error message now: [ERROR] Failed to installed apk on device "emulator-5554" [ERROR] Error: Not enough free space on device
To test, there are two tests: 1) if you have 10 MB free, create an app that is 1 mb. Should install fine 2) Install an APK that is 8 MB, this will copy ok, but fail to decompress 3) Install an APK that is 20 MB - should fail All failures should have friendly warning
Verified the error messages on studio console in different cases of available memory on the emulator. Environment: Appcel Studio : 3.2.0.201312042306 Ti SDK : 3.2.0.v20131204220843 Mac OSX : 10.8.5 Alloy : 1.3.0-beta CLI - 3.2.0-beta Samsung Galaxy S4 running android 4.2.2 Nexus 5 - android 4.4