Skip to content

Fix asking for user's emails on postinstall and starting of emualtor on tns debug #2919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 26, 2017

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Jun 23, 2017

Fix starting of emulator on tns debug <platform> when device is not attached

tns debug <platform> command should start emulator in case device is not attached. The current command does not start emulator as we have passed skipInferPlatform - when this option is used, devicesService does not know for which platform to start the emulator.
Fix this by passing correct options.
Fixes #2916

Fix asking for user email on postinstall

On postinstall CLI asks the users if they want to subscribe for NativeScript's newsletter. This check has been broken in 3.0.0 because of incorrect await.
In order to add tests for this functionality, introduce a new service that handles the check and sending of information about the user's mail.
Add the following tests:

Fix livesync of .css files on iOS devices

In case the application has been restarted during livesync, the fast sync of .xml and .css is not working anymore for iOS devices. The problem is in ios-device-lib, where the incorrect socket had been closed. Fix this by updating the library to its latest version.
Fixes #2879

@rosen-vladimirov rosen-vladimirov added this to the 3.1.1 milestone Jun 23, 2017
@rosen-vladimirov rosen-vladimirov self-assigned this Jun 23, 2017
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-email-check branch from e8e43fc to adcd755 Compare June 23, 2017 15:27
… attached

`tns debug <platform>` command should start emulator in case device is not attached. The current command does not start emulator as we have passed `skipInferPlatform` - when this option is used, devicesService does not know for which platform to start the emulator.
Fix this by passing correct options.
On postinstall CLI asks the users if they want to subscribe for NativeScript's newsletter. This check has been broken in 3.0.0 because of incorrect await.
In order to add tests for this functionality, introduce a new service that handles the check and sending of information about the user's mail.
Add the following tests:
 - ensure postinstall.js calls correct CLI command
 - ensure the post-install-cli command calls the new service
 - ensure the new service works correctly
Update ios-device-lib to 0.4.7, which will fix livesync of `.css` files on iOS Device after application has been restarted.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-email-check branch from 8c6fb50 to e5ba743 Compare June 26, 2017 05:57
@rosen-vladimirov rosen-vladimirov merged commit 8c9f3cf into master Jun 26, 2017
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-email-check branch June 26, 2017 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants