Skip to content

fix(platform-add): respect nativePlatformStatus property from .nsprepare file when adding the platform #4092

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 3 commits into from
Nov 5, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Nov 3, 2018

As the preview command add only the .js part of the platform, we need to check nativePlatformStatus in order to decide correctly if platform add is necessary.

PR Checklist

What is the current behavior?

tns preview
tns platform add

throws an error "Platform already added" but actually no native platform is added.

What is the new behavior?

tns preview
tns platform add

adds both js and native platform.

rel to:
#4090

Fatme added 3 commits November 3, 2018 22:24
…are file when adding the platform

As the preview command add only the .js part of the platform, we need to check nativePlatformStatus in order to decide correctly if platform add is necessary
@Fatme Fatme added this to the 5.0.1 milestone Nov 3, 2018
@Fatme
Copy link
Contributor Author

Fatme commented Nov 4, 2018

run ci

@DimitarTachev DimitarTachev merged commit b3b2044 into release Nov 5, 2018
@DimitarTachev DimitarTachev deleted the fatme/fix-platform-add-after-preview branch November 5, 2018 08:49
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.

2 participants