Skip to content

tns preview - app is refreshed on ios devices when changing android specific files #4075

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

Closed
endarova opened this issue Oct 29, 2018 · 0 comments
Assignees
Milestone

Comments

@endarova
Copy link
Contributor

endarova commented Oct 29, 2018

Environment

  • CLI: 5.0 RC

When changing platform specific files app is refreshed in preview on all connected devices (even from other platform).

Steps:

  1. tns create TestApp --js
  2. Add platform specific files. For example main-view-model.android.js and main-view-model.android.ios.js
  3. tns preview
  4. Scan the QR code on android and ios
  5. Change only main-view-model.android.js and save
    Expected : only android devices are refreshed and changes are synced.
    Actual: ios devices are refreshed also (the changes are synced correctly only on android)

Also error is shown in the log when adding platform specific files:

  1. tns create TestApp --js
  2. tns preview
  3. Scan the QR code on android and ios
  4. Add new test.android.js file to the project

The change is synced for android but there is also error for ios :
Unable to apply changes for platform ios. Error is: Error: ENOENT: no such file or directory, open '/Users/TestProjects/TestApp/platforms/ios/prev/app/test.js', {
"errno": -2,
"code": "ENOENT",
"syscall": "open",
"path": "/Users/TestProjects/TestApp/platforms/ios/prev/app/test.js"
}.

@Fatme Fatme added this to the 5.0.1 milestone Oct 29, 2018
@endarova endarova changed the title tns preview - app is refreshed on ios devices also when changing android specific files, tns preview - app is refreshed on ios devices also when changing android specific files Oct 29, 2018
@endarova endarova changed the title tns preview - app is refreshed on ios devices also when changing android specific files tns preview - app is refreshed on ios devices when changing android specific files Oct 29, 2018
@miroslavaivanova miroslavaivanova modified the milestones: 5.0.1, 5.0.2 Nov 8, 2018
@KristianDD KristianDD self-assigned this Nov 8, 2018
@rosen-vladimirov rosen-vladimirov assigned Fatme and unassigned KristianDD Nov 13, 2018
@Fatme Fatme modified the milestones: 5.0.2, 5.1.0 Nov 23, 2018
@endarova endarova self-assigned this Dec 5, 2018
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

No branches or pull requests

4 participants