@@ -142,19 +142,13 @@ interface IOptionalSkipWatcher {
142
142
/**
143
143
* Describes a LiveSync operation.
144
144
*/
145
- interface ILiveSyncInfo extends IProjectDir , IEnvOptions , IBundle , IRelease , IOptionalSkipWatcher {
145
+ interface ILiveSyncInfo extends IProjectDir , IEnvOptions , IBundle , IRelease , IOptionalSkipWatcher , IHasUseHotModuleReloadOption {
146
146
/**
147
147
* Defines if all project files should be watched for changes. In case it is not passed, only `app` dir of the project will be watched for changes.
148
148
* In case it is set to true, the package.json of the project and node_modules directory will also be watched, so any change there will be transferred to device(s).
149
149
*/
150
150
watchAllFiles ?: boolean ;
151
151
152
- /**
153
- * Defines if the liveEdit functionality should be used, i.e. LiveSync of .js files without restart.
154
- * NOTE: Currently this is available only for iOS.
155
- */
156
- useLiveEdit ?: boolean ;
157
-
158
152
/**
159
153
* Forces a build before the initial livesync.
160
154
*/
@@ -167,6 +161,13 @@ interface ILiveSyncInfo extends IProjectDir, IEnvOptions, IBundle, IRelease, IOp
167
161
timeout : string ;
168
162
}
169
163
164
+ interface IHasUseHotModuleReloadOption {
165
+ /**
166
+ * Defines if the hot module reload should be used.
167
+ */
168
+ useHotModuleReload ?: boolean ;
169
+ }
170
+
170
171
interface ILatestAppPackageInstalledSettings extends IDictionary < IDictionary < boolean > > { /* empty */ }
171
172
172
173
interface IIsEmulator {
@@ -317,28 +318,25 @@ interface IShouldSkipEmitLiveSyncNotification {
317
318
interface IAttachDebuggerOptions extends IDebuggingAdditionalOptions , IEnableDebuggingDeviceOptions , IIsEmulator , IPlatform , IOptionalOutputPath {
318
319
}
319
320
320
- interface ILiveSyncWatchInfo extends IProjectDataComposition {
321
+ interface ILiveSyncWatchInfo extends IProjectDataComposition , IHasUseHotModuleReloadOption {
321
322
filesToRemove : string [ ] ;
322
323
filesToSync : string [ ] ;
323
324
isReinstalled : boolean ;
324
325
syncAllFiles : boolean ;
325
- useLiveEdit ?: boolean ;
326
326
}
327
327
328
- interface ILiveSyncResultInfo {
328
+ interface ILiveSyncResultInfo extends IHasUseHotModuleReloadOption {
329
329
modifiedFilesData : Mobile . ILocalToDevicePathData [ ] ;
330
330
isFullSync : boolean ;
331
331
deviceAppData : Mobile . IDeviceAppData ;
332
- useLiveEdit ?: boolean ;
333
332
}
334
333
335
334
interface IAndroidLiveSyncResultInfo extends ILiveSyncResultInfo , IAndroidLivesyncSyncOperationResult { }
336
335
337
- interface IFullSyncInfo extends IProjectDataComposition {
336
+ interface IFullSyncInfo extends IProjectDataComposition , IHasUseHotModuleReloadOption {
338
337
device : Mobile . IDevice ;
339
338
watch : boolean ;
340
339
syncAllFiles : boolean ;
341
- useLiveEdit ?: boolean ;
342
340
}
343
341
344
342
interface IPlatformLiveSyncService {
@@ -434,7 +432,7 @@ interface IAndroidLivesyncTool {
434
432
*/
435
433
removeFile ( filePath : string ) : Promise < boolean > ;
436
434
/**
437
- * Removes files
435
+ * Removes files
438
436
* @param filePaths - Array of files that will be removed.
439
437
* @returns {Promise<boolean[]> }
440
438
*/
0 commit comments