raphinesse commented on a change in pull request #763: refactor: replace
superspawn & child_process with execa
URL: https://github.com/apache/cordova-ios/pull/763#discussion_r364472711
##########
File path: bin/templates/scripts/cordova/lib/list-started-emulators
##########
@@ -19,21 +19,33 @@
under the License.
*/
-var Q = require('q');
-var exec = require('child_process').exec;
+const execa = require('execa');
/**
* Gets list of running iOS simulators
* @return {Promise} Promise fulfilled with list of running iOS simulators
+ *
+ * @todo In the next PR, I will refactor this entire method.
+ *
+ * The process no longer contains the pattern "[i]OS Simulator".
+ * The process is now called "Simulator.app"
+ *
+ * Additionaly, `defaults read com.apple.iphonesimulator "SimulateDevice"` is
also not valid aymore.
+ *
+ * I will replace this entire method to locate the active simulators though
`simctl`
+ *
+ * Alternativly, remove this file. It is not documented in Cordova and not
used anywhere in our code base.
Review comment:
I think we should definitely evaluate the bins we do not use ourselves and
get rid of anything non-essential
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]