From 39c791c06e2fa2f837a4af8bf7bdadf8b1d75d56 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Thu, 6 Aug 2015 15:15:59 +0300 Subject: [PATCH 01/12] Update to latest common --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index 57c6e6907d..137970b109 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 57c6e6907dc7326be6d16ea3f9f54676425fd0da +Subproject commit 137970b1096353affdcd4d7c065121cb2c741634 From 898c744bf6ec5d873855b490d84cf8599a5ec046 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Fri, 7 Aug 2015 11:27:35 +0300 Subject: [PATCH 02/12] Fix livesync help Fix livesync help. Add information about 1.2.2 in CHANGELOG.md --- CHANGELOG.md | 22 +++++++++++++++++++ .../project/testing/build-android.md | 2 +- docs/man_pages/project/testing/build-ios.md | 2 +- docs/man_pages/project/testing/build.md | 2 +- .../project/testing/debug-android.md | 16 +++++++------- docs/man_pages/project/testing/debug-ios.md | 2 +- docs/man_pages/project/testing/debug.md | 2 +- docs/man_pages/project/testing/deploy.md | 2 +- .../project/testing/emulate-android.md | 2 +- docs/man_pages/project/testing/emulate-ios.md | 2 +- docs/man_pages/project/testing/emulate.md | 2 +- .../project/testing/livesync-android.md | 2 +- .../man_pages/project/testing/livesync-ios.md | 15 +++++++++---- docs/man_pages/project/testing/livesync.md | 2 +- docs/man_pages/project/testing/run-android.md | 2 +- docs/man_pages/project/testing/run-ios.md | 2 +- docs/man_pages/project/testing/run.md | 2 +- 17 files changed, 55 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b5b6c1921..0105b41655 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,28 @@ NativeScript CLI Changelog ================ +1.2.2 (2015, August 7) +== + +### New +* [Implemented #470](https://github.com/NativeScript/nativescript-cli/issues/470): Add `--timeout` option to `tns debug`. +* [Implemented #682](https://github.com/NativeScript/nativescript-cli/issues/682): Set `--debug-brk` as the default option of `tns debug`. +* [Implemented #706](https://github.com/NativeScript/nativescript-cli/issues/706): LiveSync to iOS Simulator devices running iOS 8.x. + +### Fixed + +* [Fixed #470](https://github.com/NativeScript/nativescript-cli/issues/470): Command failed due to space in file path. +* [Fixed #632](https://github.com/NativeScript/nativescript-cli/issues/632): Android debugger does not work on some OS X systems. +* [Fixed #652](https://github.com/NativeScript/nativescript-cli/issues/652): `tns debug ios` does not load inspector from the added iOS runtime. +* [Fixed #663](https://github.com/NativeScript/nativescript-cli/issues/663): Verify that Java is at least 1.7. +* [Fixed #671](https://github.com/NativeScript/nativescript-cli/issues/671): `tns debug ios` doesn't work for projects created with framework versions earlier than 1.2.0. +* [Fixed #679](https://github.com/NativeScript/nativescript-cli/issues/679): `tns library add ios` adds the framework with its full path in the Xcode project. +* [Fixed #695](https://github.com/NativeScript/nativescript-cli/issues/695): Exceptions tracking is not correctly set in the user settings. +* [Fixed #699](https://github.com/NativeScript/nativescript-cli/issues/699): Unable to update Android platform when npm cache is in an inconsistent state. +* [Fixed #722](https://github.com/NativeScript/nativescript-cli/issues/722): `tns debug` builds and installs the app twice. +* [Fixed #742](https://github.com/NativeScript/nativescript-cli/issues/742): `tns livesync android` doesn't work on some Android devices. +* [Fixed #747](https://github.com/NativeScript/nativescript-cli/issues/747): New files are not respected by `tns livesync`. + 1.2.1 (2015, July 27) == diff --git a/docs/man_pages/project/testing/build-android.md b/docs/man_pages/project/testing/build-android.md index 4433005924..24c9ec8642 100644 --- a/docs/man_pages/project/testing/build-android.md +++ b/docs/man_pages/project/testing/build-android.md @@ -29,7 +29,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/build-ios.md b/docs/man_pages/project/testing/build-ios.md index ed178b3f06..ab293e007e 100644 --- a/docs/man_pages/project/testing/build-ios.md +++ b/docs/man_pages/project/testing/build-ios.md @@ -34,7 +34,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/build.md b/docs/man_pages/project/testing/build.md index b2f6d12ae9..6c380cdc96 100644 --- a/docs/man_pages/project/testing/build.md +++ b/docs/man_pages/project/testing/build.md @@ -31,7 +31,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/debug-android.md b/docs/man_pages/project/testing/debug-android.md index 0ffdda5579..297ec8921c 100644 --- a/docs/man_pages/project/testing/debug-android.md +++ b/docs/man_pages/project/testing/debug-android.md @@ -3,12 +3,12 @@ debug android Usage | Synopsis ---|--- -Deploy on device, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk [--device ] [--debug-port ]` -Deploy in the native emulator, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --emulator []` -Deploy in Genymotion, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --geny ` -Attach the debug tools to a running app on device | `$ tns debug android --start [--device ] [--debug-port ]` -Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator []` -Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny [--print-app-output]` +Deploy on device, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk [--device ] [--debug-port ] [--timeout ]` +Deploy in the native emulator, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --emulator [] [--timeout ]` +Deploy in Genymotion, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --geny [--timeout ]` +Attach the debug tools to a running app on device | `$ tns debug android --start [--device ] [--debug-port ] [--timeout ]` +Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [] [--timeout ]` +Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny [--print-app-output] [--timeout ]` Retrieve the device port on which you are debugging | `$ tns debug android [--device ] --get-port` Detach the debug tools | `$ tns debug android --stop` @@ -23,7 +23,7 @@ Debugs your project on a connected device, in a native emulator or in Genymotion * `--stop` - Detaches the debug tools. * `--get-port` - Retrieves the port on which you are debugging your application. * `--debug-port` - Sets a new port on which to attach the debug tools. -* `--timeout` - Sets the number of seconds that NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds. +* `--timeout` - Sets the number of seconds that the NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds. ### Attributes * `` is the index or name of the target device as listed by `$ tns device` @@ -50,7 +50,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/debug-ios.md b/docs/man_pages/project/testing/debug-ios.md index 5749f11888..cef820d174 100644 --- a/docs/man_pages/project/testing/debug-ios.md +++ b/docs/man_pages/project/testing/debug-ios.md @@ -49,7 +49,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/debug.md b/docs/man_pages/project/testing/debug.md index 4a9739884b..5d152cc2d6 100644 --- a/docs/man_pages/project/testing/debug.md +++ b/docs/man_pages/project/testing/debug.md @@ -31,7 +31,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/deploy.md b/docs/man_pages/project/testing/deploy.md index 8c16c14641..1b2979e7bd 100644 --- a/docs/man_pages/project/testing/deploy.md +++ b/docs/man_pages/project/testing/deploy.md @@ -45,7 +45,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/emulate-android.md b/docs/man_pages/project/testing/emulate-android.md index b73e09e235..7ee9fef86b 100644 --- a/docs/man_pages/project/testing/emulate-android.md +++ b/docs/man_pages/project/testing/emulate-android.md @@ -57,7 +57,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/emulate-ios.md b/docs/man_pages/project/testing/emulate-ios.md index 5109707b38..0e7844792e 100644 --- a/docs/man_pages/project/testing/emulate-ios.md +++ b/docs/man_pages/project/testing/emulate-ios.md @@ -42,7 +42,7 @@ Command | Description [emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/emulate.md b/docs/man_pages/project/testing/emulate.md index b8f66aa2a0..1d7dc62a34 100644 --- a/docs/man_pages/project/testing/emulate.md +++ b/docs/man_pages/project/testing/emulate.md @@ -27,7 +27,7 @@ Command | Description [emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator. [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/livesync-android.md b/docs/man_pages/project/testing/livesync-android.md index 43256edca3..29feb97835 100644 --- a/docs/man_pages/project/testing/livesync-android.md +++ b/docs/man_pages/project/testing/livesync-android.md @@ -34,7 +34,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. <% } %> \ No newline at end of file diff --git a/docs/man_pages/project/testing/livesync-ios.md b/docs/man_pages/project/testing/livesync-ios.md index 2bef024660..ed0d74ee81 100644 --- a/docs/man_pages/project/testing/livesync-ios.md +++ b/docs/man_pages/project/testing/livesync-ios.md @@ -3,19 +3,26 @@ livesync ios Usage | Synopsis ------|------- -General | `$ tns livesync ios [--device ] [--watch] [--emulator]` +Synchronize changes to all connected devices | `$ tns livesync ios [--watch]` +Synchronize changes to a selected device | `$ tns livesync ios --device [--watch]` +Synchronize changes to the iOS Simulator | `$ tns livesync ios --emulator [--watch]` -Synchronizes the latest changes in your project to iOS devices or iOS simulator. +Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. ### Options * `--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device. -* `--device` - Specifies the serial number or the index of the connected device to which you want to synchronize changes. To list all connected devices, grouped by platform, run `$ tns device` -* `--emulator` - If set, changes are synchronized to iOS simulator. +* `--device` - Specifies the serial number or the index of the connected device to which you want to synchronize changes. To list all connected devices, grouped by platform, run `$ tns device`. You cannot set `--device` and `--emulator` simultaneously. +* `--emulator` - Synchronizes changes to the iOS Simulator. You cannot set `--device` and `--emulator` simultaneously. ### Attributes * `` is the device index or identifier as listed by `$ tns device` <% if(isHtml) { %> +### Command Limitations + +* You cannot set `--device` and `--emulator` simultaneously. +* For the iOS Simulator, you can synchronize changes only to iOS 8.x devices. + ### Related Commands Command | Description diff --git a/docs/man_pages/project/testing/livesync.md b/docs/man_pages/project/testing/livesync.md index de0cbdc83f..0aa8b26dec 100644 --- a/docs/man_pages/project/testing/livesync.md +++ b/docs/man_pages/project/testing/livesync.md @@ -31,7 +31,7 @@ Command | Description [emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator. [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. diff --git a/docs/man_pages/project/testing/run-android.md b/docs/man_pages/project/testing/run-android.md index ddf6a49ea3..dbdf1b300c 100644 --- a/docs/man_pages/project/testing/run-android.md +++ b/docs/man_pages/project/testing/run-android.md @@ -56,7 +56,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. [run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform. diff --git a/docs/man_pages/project/testing/run-ios.md b/docs/man_pages/project/testing/run-ios.md index 58db58214a..c23c17b6d8 100644 --- a/docs/man_pages/project/testing/run-ios.md +++ b/docs/man_pages/project/testing/run-ios.md @@ -48,7 +48,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform. diff --git a/docs/man_pages/project/testing/run.md b/docs/man_pages/project/testing/run.md index d34e3b8a3a..83d5ba9aa8 100644 --- a/docs/man_pages/project/testing/run.md +++ b/docs/man_pages/project/testing/run.md @@ -32,7 +32,7 @@ Command | Description [emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator. [emulate](emulate.html) | You must run the emulate command with a related command. [livesync](livesync.html) | Synchronizes the latest changes in your project to devices. -[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices. +[livesync ios](livesync-ios.html) | Synchronizes the latest changes in your project to iOS devices or the iOS Simulator. [livesync android](livesync-android.html) | Synchronizes the latest changes in your project to Android devices. [run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured. [run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured. From 87e5b3f4661aaf2e0200b568bdb6913ffe2cd6b3 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Mon, 10 Aug 2015 11:31:04 +0300 Subject: [PATCH 03/12] Fixes https://github.com/NativeScript/nativescript-cli/issues/761 and https://github.com/NativeScript/nativescript-cli/issues/762 --- CHANGELOG.md | 2 +- lib/common | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0105b41655..ca0b73de39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ NativeScript CLI Changelog ================ -1.2.2 (2015, August 7) +1.2.2 (2015, August 10) == ### New diff --git a/lib/common b/lib/common index 137970b109..1d04d7eefd 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 137970b1096353affdcd4d7c065121cb2c741634 +Subproject commit 1d04d7eefd224b7eaff1df04acce2bcc60e93c83 From b18afb390b81d6ad156d26b306063156e4dbb5b9 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Mon, 10 Aug 2015 11:51:01 +0300 Subject: [PATCH 04/12] Fix livesync docs Fix documentation for iOS livesync (iOS Simulator). --- CHANGELOG.md | 2 +- docs/man_pages/project/testing/livesync-ios.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca0b73de39..11705837ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ NativeScript CLI Changelog ### New * [Implemented #470](https://github.com/NativeScript/nativescript-cli/issues/470): Add `--timeout` option to `tns debug`. * [Implemented #682](https://github.com/NativeScript/nativescript-cli/issues/682): Set `--debug-brk` as the default option of `tns debug`. -* [Implemented #706](https://github.com/NativeScript/nativescript-cli/issues/706): LiveSync to iOS Simulator devices running iOS 8.x. +* [Implemented #706](https://github.com/NativeScript/nativescript-cli/issues/706): LiveSync to iOS Simulator. ### Fixed diff --git a/docs/man_pages/project/testing/livesync-ios.md b/docs/man_pages/project/testing/livesync-ios.md index ed0d74ee81..6dde0cdebf 100644 --- a/docs/man_pages/project/testing/livesync-ios.md +++ b/docs/man_pages/project/testing/livesync-ios.md @@ -21,7 +21,6 @@ Synchronizes the latest changes in your project to iOS devices or the iOS Simula ### Command Limitations * You cannot set `--device` and `--emulator` simultaneously. -* For the iOS Simulator, you can synchronize changes only to iOS 8.x devices. ### Related Commands From c21278566d051d86f47e2b6f500f44dad3dbd529 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Mon, 10 Aug 2015 17:47:10 +0300 Subject: [PATCH 05/12] Fix "An error was encountered processing the command (code=146): Exception encountered connecting to CoreSimulatorBridge: Unable to connect to CoreSimulatorBridge" --- CHANGELOG.md | 2 +- lib/common | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11705837ae..8cc8397e0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ NativeScript CLI Changelog ================ -1.2.2 (2015, August 10) +1.2.2 (2015, August 11) == ### New diff --git a/lib/common b/lib/common index 1d04d7eefd..77324953db 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 1d04d7eefd224b7eaff1df04acce2bcc60e93c83 +Subproject commit 77324953dbf89ec296e1ed1711bdf28e1e83b5d6 From 32d474f4ba5366430665d25904a82a2607de584f Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Thu, 13 Aug 2015 09:45:12 +0300 Subject: [PATCH 06/12] Fix livesync ios --emulator --watch if the file is not at project root level Fixes https://github.com/NativeScript/nativescript-cli/issues/776 --- lib/common | 2 +- lib/services/usb-livesync-service.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/common b/lib/common index 77324953db..7ce1a0bbfe 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 77324953dbf89ec296e1ed1711bdf28e1e83b5d6 +Subproject commit 7ce1a0bbfeb93989197d6fb675872286a960f46f diff --git a/lib/services/usb-livesync-service.ts b/lib/services/usb-livesync-service.ts index 1c0f9f8263..334e4eeb3d 100644 --- a/lib/services/usb-livesync-service.ts +++ b/lib/services/usb-livesync-service.ts @@ -87,10 +87,14 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer return Future.fromResult(); } + let iOSSimulatorRelativeToProjectBasePathAction = (projectFile: string): string => { + return path.join(constants.APP_FOLDER_NAME, path.dirname(projectFile.split(`/${constants.APP_FOLDER_NAME}/`)[1])); + } + let watchGlob = path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME); let localProjectRootPath = platform.toLowerCase() === "ios" ? platformData.appDestinationDirectoryPath : null; - this.sync(platform, this.$projectData.projectId, projectFilesPath, this.excludedProjectDirsAndFiles, watchGlob, restartAppOnDeviceAction, notInstalledAppOnDeviceAction, notRunningiOSSimulatorAction, localProjectRootPath, beforeLiveSyncAction, beforeBatchLiveSyncAction).wait(); + this.sync(platform, this.$projectData.projectId, projectFilesPath, this.excludedProjectDirsAndFiles, watchGlob, restartAppOnDeviceAction, notInstalledAppOnDeviceAction, notRunningiOSSimulatorAction, localProjectRootPath, beforeLiveSyncAction, beforeBatchLiveSyncAction, iOSSimulatorRelativeToProjectBasePathAction).wait(); }).future()(); } From abcd805d0e3a93411cecbd8fa8b53085f3a47400 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Thu, 13 Aug 2015 12:09:41 +0300 Subject: [PATCH 07/12] Trim library path Fixes https://github.com/NativeScript/nativescript-cli/issues/779 --- lib/services/android-project-service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/services/android-project-service.ts b/lib/services/android-project-service.ts index fdf04a8516..21aa7de351 100644 --- a/lib/services/android-project-service.ts +++ b/lib/services/android-project-service.ts @@ -204,6 +204,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService private parseProjectProperties(projDir: string, destDir: string): IFuture { // projDir is libraryPath, targetPath is the path to lib folder return (() => { + projDir = projDir.trim(); let projProp = path.join(projDir, "project.properties"); if (!this.$fs.exists(projProp).wait()) { this.$logger.warn("Warning: File %s does not exist", projProp); From fda8e3472dc3d9ac76db6d6e3d356ba0e7b9cfbb Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Fri, 14 Aug 2015 09:16:39 +0300 Subject: [PATCH 08/12] Bump up the version to 1.2.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6c21960815..7272861d27 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nativescript", "preferGlobal": true, - "version": "1.2.2", + "version": "1.2.3", "author": "Telerik ", "description": "Command-line interface for building NativeScript projects", "bin": { From 5bb170665561e7e89ac69d678a4135af9ffd5c15 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Fri, 14 Aug 2015 09:41:30 +0300 Subject: [PATCH 09/12] Update to latest common lib --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index 7ce1a0bbfe..b0f4f1dc7d 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 7ce1a0bbfeb93989197d6fb675872286a960f46f +Subproject commit b0f4f1dc7d5309b1674a3390ff14c193cf4b5f44 From e369d938d2d64041a7f3b68c1e82c41423d1a644 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 14 Aug 2015 16:01:57 +0300 Subject: [PATCH 10/12] Update to latest common lib Update to latest common lib. --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index b0f4f1dc7d..ed6f02ace3 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit b0f4f1dc7d5309b1674a3390ff14c193cf4b5f44 +Subproject commit ed6f02ace384f4b0dedf78b2b164cfaa06edc4b7 From 5c873d4c63a53d673dee5b25b110511f2c962063 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Mon, 17 Aug 2015 15:12:22 +0300 Subject: [PATCH 11/12] Output ios libraries in lib/iOS insted lib/iOS/libraryName folder --- lib/services/ios-project-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index 081c78130e..949d0e6eed 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -182,7 +182,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase var umbrellaHeader = this.getUmbrellaHeaderFromDynamicFramework(libraryPath).wait(); let frameworkName = path.basename(libraryPath, path.extname(libraryPath)); - let targetPath = path.join("lib", this.platformData.normalizedPlatformName, frameworkName); + let targetPath = path.join("lib", this.platformData.normalizedPlatformName); let fullTargetPath = path.join(this.$projectData.projectDir, targetPath); this.$fs.ensureDirectoryExists(fullTargetPath).wait(); shell.cp("-R", libraryPath, fullTargetPath); @@ -273,7 +273,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase private getFrameworkRelativePath(libraryPath: string): string { let frameworkName = path.basename(libraryPath, path.extname(libraryPath)); - let targetPath = path.join("lib", this.platformData.normalizedPlatformName, frameworkName); + let targetPath = path.join("lib", this.platformData.normalizedPlatformName); let frameworkPath = path.relative("platforms/ios", path.join(targetPath, frameworkName + ".framework")); return frameworkPath; } From 6be598d5611ed01d0b597dabea61b96ff69f8626 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Mon, 17 Aug 2015 16:28:09 +0300 Subject: [PATCH 12/12] Changelog 1.2.3 --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cc8397e0c..76c1777689 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ NativeScript CLI Changelog ================ +1.2.3 (2015, August 18) +== + +### Fixed + +* [Fixed #776](https://github.com/NativeScript/nativescript-cli/issues/776): `tns livesync ios --emulator --watch` doesn't sync changes. +* [Fixed #777](https://github.com/NativeScript/nativescript-cli/issues/777): `tns library add ios` does not build correct relative paths to referenced frameworks for mdgenerator. +* [Fixed #779](https://github.com/NativeScript/nativescript-cli/issues/779): Command failed due to space in library reference path. + 1.2.2 (2015, August 11) ==