-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Establish a recommended workflow for simultaneous Android & iOS development #2470
Comments
related issue: #2445 My vote goes to running livesync/run for each platform. In other words always specifying the platform. Simply because it's less error prone. |
I don't think tns run is error prone - we can detect the connected devices and emulators and build&deploy to them. I actually expected that to work, as it is the default behavior in Cordova CLI. |
Cordova CLI is different and I don't think it's a good measure. We can make anything work, that's a fact. I prefer taking the safest rout and making the commands stable before anything else. |
Just adding a vote for |
Looking forward to a resolution on this--I'm demoing NS 3.0.0-rc.1 to my dev team at work and was hoping to show simultaneous android & ios live reloading. |
Hey @jlooper , @tjvantoll , @ejsuncy , Please give it a try and inform us in case you have any questions or concerns. |
@rosen-vladimirov Just tested this out and it works great! Long term I wonder if we could come up with a way to also launch an emulator as part of this command. My typical use case is I want to deploy my app to an iOS simulator and Android emulator... but I have neither of those things open at the moment. With this command I can now do Anyways, something to monitor to see if this is just me. For now |
Hey @tjvantoll , We were wondering the same thing - should we start emulator/simulator with Lets see what the community will think about the idea, maybe it is worth creating a separate issue for this. Btw the latest official CLI release - 3.1.3 has the |
@rosen-vladimirov Agreed. I think it would be weird if I think this issue can be closed as simultaneous development is now totally possible 😄 We can discuss in #3009 if we can further improve the current workflow. Thanks! |
I commonly develop on Android & iOS at the same time, and I believe a lot of our users do as well. Before the 2.5 release I ran
tns run android
andtns run ios
, and then rantns livesync --watch
to watch both platforms simultaneously.Since 2.5 that workflow no longer really works. The
livesync
command is now marked as deprecated, and executing two separatetns run
commands is problematic.With that in mind we need to establish a recommended workflow for cross-platform simultaneous development. Let’s list ideas in this issue; I’ll start with an idea I’m stealing from @bundyo.
What if we made
tns run
with no platform work. On macOS,tns run
could build and deploy for iOS and Android, and watch each. On Windows and Linuxtns run
could build and deploy for just Android, and watch there as well.Thoughts? Other ideas? Regardless of what we come up with I do think it’s important to have an established workflow for this common scenario for our next release.
The text was updated successfully, but these errors were encountered: