Skip to content

Fix tns run ios --justlaunch #3657

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 2 commits into from
Jun 14, 2018
Merged

Fix tns run ios --justlaunch #3657

merged 2 commits into from
Jun 14, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jun 1, 2018

In case when tns run ios --justlaunch command is executed on real iOS device, the console should be released and the process should exit. Actually the process does not exit because a device's log process is started and this prevents the console to be released. So this PR fixes this behaviour.

Fixes #3644

PR Checklist

What is the current behavior?

The console is not released when tns run ios --justlaunch command is executed.

What is the new behavior?

The console is released when tns run ios command is executed.

@Fatme Fatme force-pushed the fatme/fix-justlaunch branch from e444bc5 to 8efec72 Compare June 1, 2018 09:24
@Fatme Fatme force-pushed the fatme/fix-justlaunch branch from 8efec72 to 55b5813 Compare June 4, 2018 10:57
@@ -51,7 +51,7 @@ export class DebugService extends EventEmitter implements IDebugService {
this.$errors.failWithoutHelp(`Unsupported device OS: ${device.deviceInfo.platform}. You can debug your applications only on iOS or Android.`);
}

if (this.$mobileHelper.isiOSPlatform(device.deviceInfo.platform)) {
if (this.$mobileHelper.isiOSPlatform(device.deviceInfo.platform)) { // TODO: Consider to move this code to ios-debug-service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the TODO above the code

@@ -456,8 +456,11 @@ export class LiveSyncService extends EventEmitter implements IDebugLiveSyncServi
const deviceAction = async (device: Mobile.IDevice): Promise<void> => {
try {
const platform = device.deviceInfo.platform;
const liveSyncService = this.getLiveSyncService(platform);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be called const platformLiveSyncService

@miroslavaivanova
Copy link
Contributor

run ci

@Natalia-Hristova Natalia-Hristova added this to the 4.1.1 milestone Jun 13, 2018
@miroslavaivanova
Copy link
Contributor

run ci

@rosen-vladimirov rosen-vladimirov merged commit d112c1a into release Jun 14, 2018
@rosen-vladimirov rosen-vladimirov deleted the fatme/fix-justlaunch branch June 14, 2018 12:58
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