Commit Graph

15216 Commits

Author SHA1 Message Date
David Greenspan
20db245ace crosswalk has documentation:null release/METEOR@1.2-rc.5 2015-08-26 17:46:04 -07:00
David Greenspan
2e2a573d40 version bumps 2015-08-26 17:39:55 -07:00
David Greenspan
ef9f489b5a bump to RC 5 2015-08-26 17:27:03 -07:00
David Greenspan
e300723916 work on History.md 2015-08-26 17:16:46 -07:00
David Greenspan
2b751b549b Merge branch 'devel' into release-1.2 2015-08-26 17:13:32 -07:00
Sashko Stubailo
45f3133b24 Improve the meteor create experience and fix bugs with existing dir PR 2015-08-26 15:14:21 -07:00
Avital Oliver
f47cf27b27 Revert "Let Meteor.call within observe call server methods."
This reverts commit 1aaea772f2.

Apparently tests fail after this commit. Not sure how that happened.
2015-08-26 14:24:16 -07:00
Avital Oliver
5bf8885534 Revert "Let Meteor.call within observe call server methods."
This reverts commit 1aaea772f2.

Apparently tests fail after this commit. Not sure how that happened.
2015-08-26 14:23:49 -07:00
Avital Oliver
d9fe23bc60 Let Meteor.call within observe call server methods.
Since `observe` callbacks fire synchronously, before this change,
if you run a method on the client that leads to an observe
callback firing, and in that observe callback you call `Meteor.call`,
it would act the same as when you call `Meteor.call` within a method
stub -- that is, it would call the method stub but not send the
method invocation to the server.
2015-08-26 12:38:49 -07:00
Avital Oliver
1aaea772f2 Let Meteor.call within observe call server methods.
Since `observe` callbacks fire synchronously, before this change,
if you run a method on the client that leads to an observe
callback firing, and in that observe callback you call `Meteor.call`,
it would act the same as when you call `Meteor.call` within a method
stub -- that is, it would call the method stub but not send the
method invocation to the server.
2015-08-26 12:38:12 -07:00
Avital Oliver
2efd196d91 Revert "Let Meteor.call within observe call server methods."
This reverts commit b2cb10ef20.

Going to squash and re-commit
2015-08-26 12:35:40 -07:00
Avital Oliver
a80185846a Revert "Glasser code review comments"
This reverts commit a4a92b3f8f.

Going to squash and re-commit
2015-08-26 12:35:19 -07:00
Avital Oliver
a4a92b3f8f Glasser code review comments 2015-08-26 12:32:35 -07:00
Avital Oliver
b2cb10ef20 Let Meteor.call within observe call server methods.
Since `observe` callbacks fire synchronously, before this change,
if you run a method on the client that leads to an observe
callback firing, and in that observe callback you call `Meteor.call`,
it would act the same as when you call `Meteor.call` within a method
stub -- that is, it would call the method stub but not send the
method invocation to the server.
2015-08-26 12:32:35 -07:00
Martijn Walraven
dac019fda8 Add case-insensitive accounts-password utility functions
Since we have added additional constraints to the database around case
sensitivity, we now want to discourage people from working with the Accounts
collection directly and provide an API for changing certain fields in a correct
way.

Methods that do database checks before and after the operation:
  Accounts.setUsername
  Accounts.addEmail
  Accounts.removeEmail

Methods that make sure to use a case-insensitive query to retrieve the user
  Accounts.findUserByUsername
  Accounts.findUserByEmail

PR #5024
2015-08-26 12:07:51 -07:00
Sashko Stubailo
c237c37618 Improve History.md 2015-08-26 11:52:56 -07:00
Sashko Stubailo
09ce102316 Reorg 2015-08-26 11:02:54 -07:00
Sashko Stubailo
f5e9d0c5a4 Line breaks 2015-08-26 10:58:54 -07:00
Martijn Walraven
2caddbfc02 Bump dev bundle version to 0.5.12 2015-08-26 19:27:20 +02:00
Martijn Walraven
b7ef287db5 Update History.md with Cordova changes 2015-08-26 19:26:57 +02:00
Martijn Walraven
e8d4362535 Disable building mobile apps on Windows for now 2015-08-26 19:26:57 +02:00
Martijn Walraven
0ea336424a Clarify some comments 2015-08-26 19:26:57 +02:00
Martijn Walraven
83c64a4a65 Fix upgrader and print more information about Cordova changes 2015-08-26 19:26:56 +02:00
Martijn Walraven
883000a149 Print instructions for launching SDK Manager in android-launch command 2015-08-26 19:26:56 +02:00
Martijn Walraven
4e786ab85d Rename plugins to pluginVersions in CordovaProject#prepareFromAppBundle 2015-08-26 19:26:56 +02:00
Martijn Walraven
b977943f68 Print installation instructions URL if not all requirements are satisfied 2015-08-26 19:26:56 +02:00
Martijn Walraven
7d2cb49b65 Rename installationInstructionsURLForPlatform to installationInstructionsUrlForPlatform 2015-08-26 19:26:56 +02:00
Martijn Walraven
9cb686e3b6 Some renames in tools/cordova/builder.js 2015-08-26 19:26:56 +02:00
Martijn Walraven
7e5a9942c4 Update references in API docs for App object to latest Cordova version 2015-08-26 19:26:56 +02:00
Martijn Walraven
14d301f8ab Add comments and apply better naming to clarify plugins code
In particular, clearly differentiate between plugins (an array of
plugin IDs) and pluginVersions (an object of with id -> version
properties).
2015-08-26 19:26:56 +02:00
Martijn Walraven
e4bb7726ca Make Cordova self-tests pass again 2015-08-26 19:26:56 +02:00
Martijn Walraven
2109bedb85 Add conversion to new Cordova plugin IDs
Cordova plugin IDs have changed as part of moving to npm. We convert
old plugin IDs to new IDs in the 1.2.0-cordova-changes upgrader, when
adding plugins, and when preparing for build.
2015-08-26 19:26:55 +02:00
Martijn Walraven
b8f853db37 Make Cordova self-tests pass again 2015-08-26 19:26:55 +02:00
Martijn Walraven
ae5c9670ad Add upgrader for the Cordova changes in 1.2 2015-08-26 19:26:55 +02:00
Martijn Walraven
cb1a62924f Add 'Cordova error:' to Cordova error messages 2015-08-26 19:26:55 +02:00
Martijn Walraven
ef78afbca6 Fix CordovaProject#updatePlatforms 2015-08-26 19:26:55 +02:00
Martijn Walraven
a5a5b4c758 Use parsed run targets to detect a run on a device
This fixes a bug where test-packages on a device sets localhost as the
mobile server URL.
2015-08-26 19:26:55 +02:00
Martijn Walraven
a259834026 Add webapp dependency to test-in-browser
This ensures the app created for test-packages will have the default
Cordova plugins installed.
2015-08-26 19:26:55 +02:00
Martijn Walraven
0980cd8d04 Add log filtering and formatting for Android 2015-08-26 19:26:55 +02:00
Martijn Walraven
b2c5ff4d5a Allow specifying a destination option for execFileSync/Async
If specified, instead of capturing the output, the child process stdout
will be piped to the destination stream.

Although the standard spawn stdio option lets you pass in streams,
these have to be connected to an open file descriptor. The destination
option allows you to use any Writable, so it can be used with a
Transform for instance.
2015-08-26 19:26:55 +02:00
Martijn Walraven
df708d7309 Add first version of tailing logs on Android 2015-08-26 19:26:55 +02:00
Martijn Walraven
e55c9f46c4 Replace execFile with execFileSync when opening Xcode project 2015-08-26 19:26:54 +02:00
Martijn Walraven
a5b49b8aa4 Exit when running platforms are removed or plugins changed 2015-08-26 19:26:54 +02:00
Martijn Walraven
a5784d54b6 Don't rebuild packages immediately after add/remove platform
This happens automatically before build/run.
2015-08-26 19:26:54 +02:00
Martijn Walraven
f8ae2e8a72 Update cordova-lib reference in dev bundle 2015-08-26 19:26:54 +02:00
Martijn Walraven
1407143e9f Make CordovaProject#run use the new execFileAsync with waitForClose false
This fixes an issue where starting up the Android Emulator with stdio
piped would only exit when the emulator exits, instead of when the app
is successfully installed, thus blocking further startup.

The reason for this was that cordova-lib superspawn listens for the
‘close’ event of its child process, which is emitted when the stdio
streams have all terminated. If those streams are shared with other
processes (such as further child processes spawned by the child
process), that means we won't receive a 'close' until all processes
have exited, so we should listen for 'exit' instead.
2015-08-26 19:26:54 +02:00
Martijn Walraven
63461fcd8f Remove unused RunCommand and add promise-based execFileSync/Async
The execFileSync function is meant to resemble the similarly-named Node
0.12 synchronous process creation API, but instead of being fully
blocking it uses a promise-based implementation. You can also use
execFileAsync directly, which returns a promise.

Some functionality is currently missing but could be added when the
need arises (e.g. support for timeout, maxBuffer, and encoding options).

Eventually, these versions should replace the ones in
tools/utils/utils.js and tools/tool-testing/selftest.js.
2015-08-26 19:26:54 +02:00
Martijn Walraven
9af83ebe3c Add Crosswalk package for Android 2015-08-26 19:26:54 +02:00
Martijn Walraven
0538dc1f28 Some changes to the buildmessage structure and job naming 2015-08-26 19:26:54 +02:00
Martijn Walraven
1a4e940529 Create Cordova project from generated config.xml
We now create a temporary directory with a generated config.xml
to use as a template for creating the Cordova project. This way, we are
not dependent on the contents of cordova-app-hello-world but we base
our initial project state on our own defaults and optionally a
mobile-config.js.

This change was in part motivated by a bug in Cordova where changing
the app name to a version with a different case, on a case insensitive
file system like OS X, means the project will no longer build. Because
our app name on creation was based on the project directory and we
didn’t respect the app name set in mobile-config.js until the first
build, there was always a rename needed, triggering the bug.

This bug affected both the todos and localmarket example apps.
2015-08-26 19:26:54 +02:00