Commit Graph

3276 Commits

Author SHA1 Message Date
Slava Kim
339af7c22e Don't try to hack into AndroidManifest if Android is not requested 2014-10-22 20:03:41 -07:00
Slava Kim
501f08d0d8 Only add platform to the cordova project if it has the SDK installed 2014-10-22 19:48:19 -07:00
Slava Kim
2151fc1f40 Rework the error messages on different platforms in different situations
Affecting factors:

- requested platforms
- platforms added to the project
- installed SDKs
- if platform is available on system at all (e.g. iOS is not available on linux)
- if it is build or run (should the errors be ignored or not?)
2014-10-22 19:33:39 -07:00
David Glasser
d90511128b Correctly parse app release during meteor update 2014-10-22 19:16:16 -07:00
ekatek
d13057f4b2 use three spaces before packaging messages 2014-10-22 16:16:21 -07:00
Slava Kim
0a73902325 New default icons and launchscreens for mobile apps 2014-10-22 14:15:46 -07:00
Emily Stark
da4d925a7c Don't unconditionally exit after starting Cordova apps. 2014-10-22 13:51:06 -07:00
David Greenspan
480b05bc2c Display progress when restarting the server
Previously, all progress display was turned off after the app’s initial start, so no progress would be displayed on restart due to server code change.

Now, we enable/disable progress display from inside the loop that re-runs the app on change.

Remove the “suppressDisplay” approach to hiding the spinner when there’s an error building the app, because it didn’t work on rebuilds, only the first build.  Better to just call enableProgressDisplay(false) and hope for the best like we do elsewhere.
2014-10-22 13:05:19 -07:00
David Greenspan
83542e9650 Display progress message in case of multiple jobs
Previously, if there were two parallel jobs like “Starting your app” and “Bundling app,” we’d display just a spinner and no message.  Now, we choose a message and display it.
2014-10-22 13:05:19 -07:00
Slava Kim
eddc136fb8 Add a verbose log 2014-10-22 12:25:29 -07:00
Slava Kim
dc0563c620 Properly escape command line arguments for cordova plugins 2014-10-22 12:25:29 -07:00
Nick Martin
ccbac61cf0 Disable color by default. 2014-10-22 11:09:20 -07:00
Sashko Stubailo
5257732e47 Make offline message only appear when we are actually offline 2014-10-22 10:59:42 -07:00
David Greenspan
da1b34c449 Print “server restarting” only when doing so 2014-10-22 10:59:11 -07:00
David Greenspan
46c77c142a Print in console when we are restarting the server
(…due to a server-side code change)

Restarting the server can take a while (30 seconds for one particular app), so it’s nice to at least print when we start doing it.  Soon there will be progress displays during it, too (when we add more of them to `meteor run`).

We lose the opportunity to coalesce server restarted messages, as in `Meteor server restarted (x2)`, but adding any sort of progress display also does that.
2014-10-22 10:55:12 -07:00
Emily Stark
620edd3f0c Line-wrap springboarding failure messages 2014-10-22 10:48:18 -07:00
Justin SB
e92f9b3ff9 Style fix: use _.map instead of _.each 2014-10-22 10:03:42 -07:00
Justin SB
8c99924685 Make USE_GLOBAL_ADK work again, and install Android SDK more carefully 2014-10-22 09:57:19 -07:00
Avital Oliver
011b14e949 Help users install HAXM if that's all they're missing for Android dev
We intentionally consider a machine without HAXM to be "acceptable"
since HAXM can't be installed on VMs. But we should still let the users
know how to install if if that's what they're missing.
2014-10-22 09:37:09 -07:00
Nick Martin
f064c2d03f Bump catalog update timer from 15min to 3hr.
This should save load on the package server. The tradeoff is
it makes the case in #2847 have a wider window to affect users.
2014-10-21 22:36:44 -07:00
Sashko Stubailo
b71d2751e5 Change explainIfRefreshFailed to recommend connecting to the internet 2014-10-21 20:28:04 -07:00
Sashko Stubailo
678b510e4c Wrap all cordova errors since none of them print a useful stack trace 2014-10-21 20:11:34 -07:00
Emily Stark
7f2df72de2 Line-wrap a 'meteor update' message 2014-10-21 17:51:39 -07:00
ekatek
f2378ce616 some processing on how we display release name 2014-10-21 17:49:48 -07:00
David Glasser
5a2892a26c Better error on springboard failures 2014-10-21 17:18:50 -07:00
David Glasser
2db8e7bc61 Fix release.forced/explicit comment, simplify code
This comment has been wrong since "explicit" was introduced.

The code change is intended to be a no-op that is a clarity improvement.
2014-10-21 17:18:50 -07:00
Justin SB
a25173a71c Format meteor show nicely
We only do 'meteor show mypackage', not 'meteor show mypackage@1.0'
2014-10-21 17:07:45 -07:00
Emily Stark
a2f9385211 Show pretty progess spinners during 'meteor build' 2014-10-21 17:03:56 -07:00
Emily Stark
139a7fd024 Fix call to getCordovaDependenciesFromStar
Not sure how this happened... maybe mistake during rebase?
2014-10-21 16:58:03 -07:00
Justin SB
b569095119 Use the progress startTime for time estimates 2014-10-21 16:40:43 -07:00
Emily Stark
97c85bc3da Exit 'meteor run' when cordova plugins or platforms change.
We don't have a way to HCP a changed set of plugins or platforms, so
just exit and ask the user to re-run. There are probably some cases
where we don't have to exit (e.g. if you add the android platform, we
probably don't need to exit out of 'meteor run ios'), but we exit in all
cases for simplicity.
2014-10-21 15:59:40 -07:00
ekatek
5d9cde97bb adding a test for watching the versions file 2014-10-21 15:58:18 -07:00
ekatek
68406388a6 the .meteor/versions file is part of the app control files 2014-10-21 15:39:07 -07:00
Justin SB
f59aa4c0f3 future.isResolved is a function 2014-10-21 15:12:44 -07:00
Ben Newman
b45bc06fff Catch shell socket server errors so they don't break self-test. 2014-10-21 17:49:16 -04:00
Sashko Stubailo
4bbb03db29 Add message about not being able to start app on Android device
Also, don't print the stack trace in this case
2014-10-21 14:44:00 -07:00
Emily Stark
88143939a6 Use displayRelease helper for running-from-checkout message 2014-10-21 14:31:18 -07:00
Emily Stark
14e6b8e298 Use Console.stderr for package stats errors 2014-10-21 14:14:16 -07:00
Emily Stark
420d6e59e2 Supress progress spinner while waiting for file changes.
This prevents "Starting your app..." from showing immediately after
"Your app is crashing. Waiting for file changes."
2014-10-21 14:10:56 -07:00
Avital Oliver
9b5c7a8198 Kill iOS/iPhone simulator better
Turns out different versions of the iOS simular
have differently named apps, so we now call killall
for both the old and the new name.
2014-10-21 13:50:43 -07:00
Slava Kim
a6eb9c3dc4 Merge branch 'ios-build' into devel
Allows to build projects with 'ios' platform included on linux machines that
cannot build for iOS. Creates an easier workaround for #2867.
2014-10-21 12:34:25 -07:00
Emily Stark
1179d402ed Fix usage of utils.displayRelease; it already includes "Meteor " 2014-10-21 11:39:49 -07:00
Emily Stark
397109b167 Use existing 'utils.displayRelease' helper 2014-10-21 11:37:34 -07:00
Emily Stark
1eaba883ae Use Console in tools/main.js
The specific issue is the "Could not springboard to release..." message
showing up on the same line as a progress bar. Seems like a good idea to
use Console everywhere in this file anyway.
2014-10-21 10:56:03 -07:00
Ben Newman
fe487ef0a3 Further simplify NpmDiscards to perform no additional disk I/O. 2014-10-21 12:19:59 -04:00
Ben Newman
e20572a8a7 Disallow passing nested objects to Npm.strip.
As you can see, this simplifies the implementation considerably.
2014-10-21 12:07:32 -04:00
Slava Kim
debbdd5f38 Merge branch 'meteor-update-ux' into devel 2014-10-20 22:57:46 -07:00
Emily Stark
23eba80656 Print release name more prettily in 'meteor update' message.
Instead of "Meteor METEOR@1.0", print "Meteor 1.0".

This change is somewhat untested because in order to test it we need
1. a built release, and 2. installed 'meteor' to point to that built
release.
2014-10-20 22:55:36 -07:00
Emily Stark
79aa54bcde Update publish-one-arch test for new 'meteor publish' output 2014-10-20 22:43:15 -07:00
Emily Stark
8d8589714f Update old cli tests for new 'meteor remove' text 2014-10-20 22:39:44 -07:00