Skip to content

Commit b55fbe1

Browse files
committed
fix: handle correctly the case when app is uninstalled from device during the execution of tns run android --hmr command
1 parent ac547fd commit b55fbe1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/services/livesync/livesync-service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,11 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
649649
skipModulesNativeCheck: !liveSyncData.watchAllFiles
650650
}, { skipNativePrepare: deviceBuildInfoDescriptor.skipNativePrepare });
651651

652+
if (liveSyncData.useHotModuleReload && appInstalledOnDeviceResult.appInstalled) {
653+
const additionalFilesToSync = currentHmrData && currentHmrData.fallbackFiles && currentHmrData.fallbackFiles[device.deviceInfo.platform];
654+
_.each(additionalFilesToSync, fileToSync => currentFilesToSync.push(fileToSync));
655+
}
656+
652657
const service = this.getLiveSyncService(device.deviceInfo.platform);
653658
const settings: ILiveSyncWatchInfo = {
654659
liveSyncDeviceInfo: deviceBuildInfoDescriptor,

0 commit comments

Comments
 (0)