Skip to content

Commit e1154ff

Browse files
author
DimitarTachev
committed
fix: start tracking the AAR and include.gradle changes during livesync
1 parent e83918b commit e1154ff

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/services/livesync/livesync-service.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as path from "path";
22
import * as choki from "chokidar";
33
import { EOL } from "os";
44
import { EventEmitter } from "events";
5-
import { hook, isAllowedFinalFile } from "../../common/helpers";
5+
import { hook } from "../../common/helpers";
66
import { PACKAGE_JSON_FILE_NAME, LiveSyncTrackActionNames, USER_INTERACTION_NEEDED_EVENT_NAME, DEBUGGER_ATTACHED_EVENT_NAME, DEBUGGER_DETACHED_EVENT_NAME, TrackActionNames } from "../../constants";
77
import { DeviceTypes, DeviceDiscoveryEventNames } from "../../common/constants";
88
import { cache } from "../../common/decorators";
@@ -671,12 +671,10 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
671671

672672
this.$logger.trace(`Chokidar raised event ${event} for ${filePath}.`);
673673

674-
if (!isAllowedFinalFile(filePath)) {
675-
if (event === "add" || event === "addDir" || event === "change" /* <--- what to do when change event is raised ? */) {
676-
filesToSync.push(filePath);
677-
} else if (event === "unlink" || event === "unlinkDir") {
678-
filesToRemove.push(filePath);
679-
}
674+
if (event === "add" || event === "addDir" || event === "change" /* <--- what to do when change event is raised ? */) {
675+
filesToSync.push(filePath);
676+
} else if (event === "unlink" || event === "unlinkDir") {
677+
filesToRemove.push(filePath);
680678
}
681679

682680
startSyncFilesTimeout();

0 commit comments

Comments
 (0)