Skip to content

Commit

Permalink
feat(android): handle INSTALL_FAILED_INSUFFICIENT_STORAGE adb error
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Sep 28, 2020
1 parent 6f242fd commit bcf2369
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/android/utils/adb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ export function parseAdbInstallOutput(line: string): ADBEvent | undefined {
event = ADBEvent.NewerSdkRequiredOnDeviceFailure;
} else if (line.includes('INSTALL_PARSE_FAILED_NO_CERTIFICATES')) {
event = ADBEvent.NoCertificates;
} else if (line.includes('not enough space')) {
} else if (
line.includes('INSTALL_FAILED_INSUFFICIENT_STORAGE') ||
line.includes('not enough space')
) {
event = ADBEvent.NotEnoughSpace;
} else if (line.includes('device offline')) {
event = ADBEvent.DeviceOffline;
Expand Down

0 comments on commit bcf2369

Please sign in to comment.