Skip to content

chore: merge release in master #3792

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 27 commits into from
Aug 3, 2018
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

chore: merge release in master

KristianDD and others added 27 commits July 25, 2018 10:33
…simulators-windows

chore: update common lib to get fix for detecting iOS devices on Win
…ortable

chore: update ios-sim-portable version
Fixes non working ctrl + c when `tns run android` command is executed
docs: improve the platform add logging by listing the installed runtime version
…nsecutive-syncs

fix: socket not cleared on time for second sync
…dle-migration

fix: plugin include.gradle not migrated
With the new LiveSync with sockets functionality, the `tns test android` command executes the tests twice and often exits with a non-zero exit code. The problem is that the command uses the LiveSync logic to upload the files first, restart the application after that and runs the tests. However, the new LiveSync requires the application to be running on device in order to have a socket for file transfer. When we start the application in order to execute the LiveSync, the tests are run. During the run the LiveSync may end and CLI will restart the app. If this happens during running the tests, Karma will mark them as failure and the next execution may not be triggered.
Fix this by creating a temp file on device before starting the LiveSync operation. Runtime will check if the file exists and if it does, it will sleep the application for 30 seconds, i.e. it will not load the JS implementation of the app. During this time CLI will transfer all files, remove the temp file from device and restart the application. Runtime will not find the file and it will load the application.
When LiveSync operation is executed, CLI tries to connect to device socket for 30 seconds. In case it succeeds, the timer is not stopped and this keeps the process alive for 30 seconds.
fix: Test command runs tests twice and often fails on Android
Destroy properly net connection to android's emulator port
Rename `getAvailableEmulators` to `getEmulatorImages` as we return information for all emulator images - running and not.
Rename the events `emulatorImagesFound` and `emulatorImagesLost` to `emulatorImageFound` and `emulatorImageLost` as emitted data contains a single emulator image.

Add docs for deviceEmitter
chore: rename exposed methods and events for emulators
@rosen-vladimirov rosen-vladimirov added this to the 4.3.0 milestone Aug 3, 2018
@miroslavaivanova miroslavaivanova self-requested a review August 3, 2018 06:06
@rosen-vladimirov rosen-vladimirov merged commit 242b03f into master Aug 3, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/merge-rel-master branch August 3, 2018 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants