From 97bee03d62c2ca240fcdaad118853de8f1cb84a8 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Thu, 18 Feb 2016 09:31:11 +0200 Subject: [PATCH 1/5] Fix livesync on multiple devices when app is not installed When you try to livesync on multiple devices and application is not installed on more than one, calling `tns livesync ` installs the application only on one of them. There's warning in the output that the application is not installed for each of the devices, but it is installed only on one of them. The problem is the current logic that is executed for each device - as we want to build only one, in case the app is already built, we've skipped the install part for all devices except the first one. So we have to build once, but install the built package on all devices where the app does not exist. --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index 778e48aa07..d22c5cadca 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 778e48aa07b68025dc8c2b543bcb94397088a13f +Subproject commit d22c5cadcabf7d89bf41558a59d477be2635efe2 From c3f92995dfd8e30f8daad4010bc75be88a61913e Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Wed, 17 Feb 2016 23:44:48 +0200 Subject: [PATCH 2/5] Fix livesync of TypeScript projects Pass .js.map and .ts as excluded patterns for livesync. Fix livesync of TypeScript projects - make sure gaze does not trigger any livesync logic in case the file that's changed is excluded via any pattern from livesync data. Currently when .ts file is change, gaze detects changes for .ts, .js and .js.map files and fails as only .js files exist in platforms dir. --- lib/common | 2 +- lib/services/livesync/livesync-service.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common b/lib/common index d22c5cadca..9ea72d51ec 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit d22c5cadcabf7d89bf41558a59d477be2635efe2 +Subproject commit 9ea72d51ec24537f15bd6d8f72de0bc0eb20d0cc diff --git a/lib/services/livesync/livesync-service.ts b/lib/services/livesync/livesync-service.ts index 8eb83a9c40..6a81215557 100644 --- a/lib/services/livesync/livesync-service.ts +++ b/lib/services/livesync/livesync-service.ts @@ -53,11 +53,12 @@ class LiveSyncService implements ILiveSyncService { let platformData = this.$platformsData.getPlatformData(platformLowerCase); this.ensureAndroidFrameworkVersion(platformData).wait(); - let liveSyncData = { + let liveSyncData: ILiveSyncData = { platform: platform, appIdentifier: this.$projectData.projectId, projectFilesPath: path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME), syncWorkingDirectory: path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME), + excludedProjectDirsAndFiles: ["**/*.js.map", "**/*.ts"] }; this.$liveSyncServiceBase.sync(liveSyncData).wait(); }).future()(); From 79eb4643bb1196e8bd18ac33d2574ffd055a306d Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Thu, 18 Feb 2016 10:55:17 +0200 Subject: [PATCH 3/5] Set version to 1.6.1 Set version to 1.6.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 86929a1908..b88da43b6e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nativescript", "preferGlobal": true, - "version": "1.6.0", + "version": "1.6.1", "author": "Telerik ", "description": "Command-line interface for building NativeScript projects", "bin": { From 26ac1e379b89a2bb1fb6e3bc75d76360a3c6698b Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Thu, 18 Feb 2016 11:17:15 +0200 Subject: [PATCH 4/5] Update CHANGELOG for 1.6.1 Update CHANGELOG for 1.6.1 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce65b64da6..cae0a6245f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ NativeScript CLI Changelog ================ +1.6.1 (2016, February 19) +== + +### Fixed +* [Fixed #1499](https://github.com/NativeScript/nativescript-cli/issues/1499): `livesync --watch` fails for TypeScript projects with `sourceMaps` enabled. +* [Fixed #1503](https://github.com/NativeScript/nativescript-cli/issues/1503): Livesync fails to install app on multiple devices. + 1.6.0 (2016, February 17) == From e9da5ab5d96968fc45beb8c0ec62a8d780c77aff Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Thu, 18 Feb 2016 22:47:25 +0200 Subject: [PATCH 5/5] Update to latest common lib --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index f256fe98df..c9fb84ccb9 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit f256fe98dfd6d59729d5d56f4bbadb12f0e39833 +Subproject commit c9fb84ccb92eb57f335b8005abcd54ee9f1ab3cf