Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit bb18623

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Invalidate cache when install/uninstall applicaion
If livesync android --watch command is executed and the application is not deployed on device, {N} deploys the app on every change. This happens because the installed applications are cached and actually the new application never appears in installed applications. Fixes NativeScript/nativescript-cli#977
1 parent c8562dc commit bb18623

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mobile/android/android-application-manager.ts

+2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ export class AndroidApplicationManager implements Mobile.IDeviceApplicationManag
2424
}
2525

2626
public installApplication(packageFilePath: string): IFuture<void> {
27+
this._installedApplications = null;
2728
return this.adb.executeCommand(["install", "-r", `${packageFilePath}`]);
2829
}
2930

3031
public uninstallApplication(appIdentifier: string): IFuture<void> {
32+
this._installedApplications = null;
3133
return this.adb.executeShellCommand(["pm", "uninstall", `${appIdentifier}`]);
3234
}
3335

0 commit comments

Comments
 (0)