CB-9827 Implement and expose PlatformApi for iOS This closes #176
Signed-off-by: Shazron Abdullah <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/26cca47e Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/26cca47e Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/26cca47e Branch: refs/heads/master Commit: 26cca47e3c1fa85f9f06232bfe099f9d4c9c8e40 Parents: 7d81a79 Author: sgrebnov <[email protected]> Authored: Mon Nov 9 13:46:47 2015 +0300 Committer: Shazron Abdullah <[email protected]> Committed: Wed Dec 2 18:21:40 2015 -0800 ---------------------------------------------------------------------- bin/check_reqs | 4 +- bin/create | 40 +- bin/lib/check_reqs.js | 4 - bin/lib/create.js | 26 +- bin/node_modules/cordova-common/.jscs.json | 24 + bin/node_modules/cordova-common/.jshintignore | 1 + bin/node_modules/cordova-common/.npmignore | 2 + bin/node_modules/cordova-common/.ratignore | 2 + bin/node_modules/cordova-common/README.md | 149 + bin/node_modules/cordova-common/RELEASENOTES.md | 34 + .../cordova-common/cordova-common.js | 42 + .../cordova-common/node_modules/.bin/semver | 1 + .../cordova-common/node_modules/.bin/shjs | 1 + .../node_modules/bplist-parser/.npmignore | 8 + .../node_modules/bplist-parser/README.md | 47 + .../node_modules/bplist-parser/bplistParser.js | 337 + .../node_modules/bplist-parser/package.json | 52 + .../bplist-parser/test/airplay.bplist | Bin 0 -> 341 bytes .../bplist-parser/test/iTunes-small.bplist | Bin 0 -> 24433 bytes .../bplist-parser/test/parseTest.js | 141 + .../bplist-parser/test/sample1.bplist | Bin 0 -> 605 bytes .../bplist-parser/test/sample2.bplist | Bin 0 -> 384 bytes .../node_modules/bplist-parser/test/uid.bplist | Bin 0 -> 365 bytes .../bplist-parser/test/utf16.bplist | Bin 0 -> 1273 bytes .../bplist-parser/test/utf16_chinese.plist | Bin 0 -> 2362 bytes .../cordova-registry-mapper/.npmignore | 1 + .../cordova-registry-mapper/.travis.yml | 7 + .../cordova-registry-mapper/README.md | 14 + .../cordova-registry-mapper/index.js | 199 + .../node_modules/.bin/tape | 1 + .../node_modules/tape/.npmignore | 1 + .../node_modules/tape/.travis.yml | 4 + .../node_modules/tape/LICENSE | 18 + .../node_modules/tape/bin/tape | 14 + .../node_modules/tape/example/array.js | 35 + .../node_modules/tape/example/fail.js | 35 + .../node_modules/tape/example/nested.js | 51 + .../node_modules/tape/example/nested_fail.js | 51 + .../node_modules/tape/example/not_enough.js | 35 + .../node_modules/tape/example/static/build.sh | 2 + .../node_modules/tape/example/static/index.html | 21 + .../node_modules/tape/example/static/server.js | 4 + .../node_modules/tape/example/stream/object.js | 10 + .../node_modules/tape/example/stream/tap.js | 8 + .../node_modules/tape/example/stream/test/x.js | 5 + .../node_modules/tape/example/stream/test/y.js | 11 + .../node_modules/tape/example/throw.js | 10 + .../node_modules/tape/example/timing.js | 12 + .../node_modules/tape/example/too_many.js | 35 + .../node_modules/tape/example/two.js | 18 + .../node_modules/tape/index.js | 140 + .../node_modules/tape/lib/default_stream.js | 31 + .../node_modules/tape/lib/results.js | 189 + .../node_modules/tape/lib/test.js | 496 + .../tape/node_modules/deep-equal/.travis.yml | 4 + .../tape/node_modules/deep-equal/LICENSE | 18 + .../tape/node_modules/deep-equal/example/cmp.js | 11 + .../tape/node_modules/deep-equal/index.js | 94 + .../node_modules/deep-equal/lib/is_arguments.js | 20 + .../tape/node_modules/deep-equal/lib/keys.js | 9 + .../tape/node_modules/deep-equal/package.json | 84 + .../node_modules/deep-equal/readme.markdown | 61 + .../tape/node_modules/deep-equal/test/cmp.js | 89 + .../tape/node_modules/defined/.travis.yml | 4 + .../tape/node_modules/defined/LICENSE | 18 + .../node_modules/defined/example/defined.js | 4 + .../tape/node_modules/defined/index.js | 5 + .../tape/node_modules/defined/package.json | 60 + .../tape/node_modules/defined/readme.markdown | 51 + .../tape/node_modules/defined/test/def.js | 22 + .../tape/node_modules/glob/.npmignore | 2 + .../tape/node_modules/glob/.travis.yml | 3 + .../node_modules/tape/node_modules/glob/LICENSE | 27 + .../tape/node_modules/glob/README.md | 250 + .../tape/node_modules/glob/examples/g.js | 9 + .../node_modules/glob/examples/usr-local.js | 9 + .../node_modules/tape/node_modules/glob/glob.js | 728 + .../glob/node_modules/minimatch/.npmignore | 1 + .../glob/node_modules/minimatch/LICENSE | 23 + .../glob/node_modules/minimatch/README.md | 218 + .../glob/node_modules/minimatch/minimatch.js | 1061 ++ .../minimatch/node_modules/lru-cache/.npmignore | 1 + .../node_modules/lru-cache/.travis.yml | 8 + .../node_modules/lru-cache/CONTRIBUTORS | 14 + .../minimatch/node_modules/lru-cache/LICENSE | 15 + .../minimatch/node_modules/lru-cache/README.md | 119 + .../node_modules/lru-cache/lib/lru-cache.js | 318 + .../node_modules/lru-cache/package.json | 58 + .../node_modules/lru-cache/test/basic.js | 396 + .../node_modules/lru-cache/test/foreach.js | 120 + .../node_modules/lru-cache/test/memory-leak.js | 51 + .../node_modules/lru-cache/test/serialize.js | 216 + .../minimatch/node_modules/sigmund/LICENSE | 15 + .../minimatch/node_modules/sigmund/README.md | 53 + .../minimatch/node_modules/sigmund/bench.js | 283 + .../minimatch/node_modules/sigmund/package.json | 60 + .../minimatch/node_modules/sigmund/sigmund.js | 39 + .../node_modules/sigmund/test/basic.js | 24 + .../glob/node_modules/minimatch/package.json | 57 + .../glob/node_modules/minimatch/test/basic.js | 399 + .../node_modules/minimatch/test/brace-expand.js | 33 + .../glob/node_modules/minimatch/test/caching.js | 14 + .../node_modules/minimatch/test/defaults.js | 274 + .../test/extglob-ending-with-state-char.js | 8 + .../tape/node_modules/glob/package.json | 58 + .../tape/node_modules/glob/test/00-setup.js | 176 + .../node_modules/glob/test/bash-comparison.js | 63 + .../node_modules/glob/test/bash-results.json | 351 + .../tape/node_modules/glob/test/cwd-test.js | 55 + .../node_modules/glob/test/globstar-match.js | 19 + .../tape/node_modules/glob/test/mark.js | 118 + .../glob/test/new-glob-optional-options.js | 10 + .../node_modules/glob/test/nocase-nomagic.js | 113 + .../tape/node_modules/glob/test/pause-resume.js | 73 + .../tape/node_modules/glob/test/readme-issue.js | 36 + .../tape/node_modules/glob/test/root-nomount.js | 39 + .../tape/node_modules/glob/test/root.js | 46 + .../tape/node_modules/glob/test/stat.js | 32 + .../tape/node_modules/glob/test/zz-cleanup.js | 11 + .../tape/node_modules/inherits/LICENSE | 16 + .../tape/node_modules/inherits/README.md | 42 + .../tape/node_modules/inherits/inherits.js | 1 + .../node_modules/inherits/inherits_browser.js | 23 + .../tape/node_modules/inherits/package.json | 50 + .../tape/node_modules/inherits/test.js | 25 + .../node_modules/object-inspect/.travis.yml | 4 + .../tape/node_modules/object-inspect/LICENSE | 18 + .../node_modules/object-inspect/example/all.js | 17 + .../object-inspect/example/circular.js | 4 + .../node_modules/object-inspect/example/fn.js | 3 + .../object-inspect/example/inspect.js | 7 + .../tape/node_modules/object-inspect/index.js | 127 + .../node_modules/object-inspect/package.json | 70 + .../node_modules/object-inspect/readme.markdown | 59 + .../object-inspect/test/browser/dom.js | 15 + .../object-inspect/test/circular.js | 9 + .../tape/node_modules/object-inspect/test/fn.js | 8 + .../node_modules/object-inspect/test/holes.js | 15 + .../node_modules/object-inspect/test/lowbyte.js | 12 + .../node_modules/object-inspect/test/undef.js | 12 + .../tape/node_modules/resumer/.travis.yml | 4 + .../tape/node_modules/resumer/LICENSE | 18 + .../tape/node_modules/resumer/example/resume.js | 8 + .../tape/node_modules/resumer/index.js | 29 + .../tape/node_modules/resumer/package.json | 71 + .../tape/node_modules/resumer/readme.markdown | 59 + .../tape/node_modules/resumer/test/resume.js | 37 + .../tape/node_modules/resumer/test/through.js | 36 + .../tape/node_modules/through/.travis.yml | 5 + .../tape/node_modules/through/LICENSE.APACHE2 | 15 + .../tape/node_modules/through/LICENSE.MIT | 24 + .../tape/node_modules/through/index.js | 108 + .../tape/node_modules/through/package.json | 66 + .../tape/node_modules/through/readme.markdown | 64 + .../tape/node_modules/through/test/async.js | 28 + .../node_modules/through/test/auto-destroy.js | 30 + .../tape/node_modules/through/test/buffering.js | 71 + .../tape/node_modules/through/test/end.js | 45 + .../tape/node_modules/through/test/index.js | 133 + .../node_modules/tape/package.json | 88 + .../node_modules/tape/readme.markdown | 317 + .../node_modules/tape/test/add-subtest-async.js | 11 + .../node_modules/tape/test/array.js | 68 + .../node_modules/tape/test/bound.js | 10 + .../node_modules/tape/test/browser/asserts.js | 9 + .../node_modules/tape/test/child_ordering.js | 54 + .../node_modules/tape/test/circular-things.js | 43 + .../node_modules/tape/test/deep.js | 9 + .../node_modules/tape/test/double_end.js | 27 + .../node_modules/tape/test/double_end/double.js | 9 + .../node_modules/tape/test/end-as-callback.js | 66 + .../node_modules/tape/test/exit.js | 142 + .../node_modules/tape/test/exit/fail.js | 35 + .../node_modules/tape/test/exit/ok.js | 35 + .../node_modules/tape/test/exit/second.js | 11 + .../node_modules/tape/test/exit/too_few.js | 35 + .../node_modules/tape/test/fail.js | 68 + .../node_modules/tape/test/many.js | 8 + .../node_modules/tape/test/max_listeners.js | 7 + .../tape/test/max_listeners/source.js | 5 + .../tape/test/nested-async-plan-noend.js | 36 + .../tape/test/nested-sync-noplan-noend.js | 50 + .../node_modules/tape/test/nested.js | 89 + .../node_modules/tape/test/nested2.js | 19 + .../node_modules/tape/test/no_callback.js | 3 + .../node_modules/tape/test/only.js | 53 + .../node_modules/tape/test/only2.js | 9 + .../node_modules/tape/test/only3.js | 15 + .../node_modules/tape/test/order.js | 17 + .../node_modules/tape/test/plan_optional.js | 15 + .../node_modules/tape/test/skip.js | 46 + .../node_modules/tape/test/subcount.js | 14 + .../node_modules/tape/test/subtest_and_async.js | 23 + .../node_modules/tape/test/subtest_plan.js | 21 + .../node_modules/tape/test/throws.js | 20 + .../node_modules/tape/test/timeoutAfter.js | 35 + .../node_modules/tape/test/too_many.js | 69 + .../node_modules/tape/test/undef.js | 32 + .../cordova-registry-mapper/package.json | 51 + .../cordova-registry-mapper/tests/test.js | 11 + .../node_modules/elementtree/.npmignore | 1 + .../node_modules/elementtree/.travis.yml | 10 + .../node_modules/elementtree/CHANGES.md | 39 + .../node_modules/elementtree/LICENSE.txt | 203 + .../node_modules/elementtree/Makefile | 21 + .../node_modules/elementtree/NOTICE | 5 + .../node_modules/elementtree/README.md | 141 + .../node_modules/elementtree/lib/constants.js | 20 + .../node_modules/elementtree/lib/elementpath.js | 343 + .../node_modules/elementtree/lib/elementtree.js | 611 + .../node_modules/elementtree/lib/errors.js | 31 + .../node_modules/elementtree/lib/parser.js | 33 + .../elementtree/lib/parsers/index.js | 1 + .../node_modules/elementtree/lib/parsers/sax.js | 56 + .../node_modules/elementtree/lib/sprintf.js | 86 + .../node_modules/elementtree/lib/treebuilder.js | 60 + .../node_modules/elementtree/lib/utils.js | 72 + .../elementtree/node_modules/sax/AUTHORS | 9 + .../elementtree/node_modules/sax/LICENSE | 23 + .../elementtree/node_modules/sax/README.md | 213 + .../sax/examples/big-not-pretty.xml | 8002 +++++++++ .../node_modules/sax/examples/example.js | 41 + .../node_modules/sax/examples/get-products.js | 58 + .../node_modules/sax/examples/hello-world.js | 4 + .../node_modules/sax/examples/not-pretty.xml | 8 + .../node_modules/sax/examples/pretty-print.js | 74 + .../node_modules/sax/examples/shopping.xml | 2 + .../node_modules/sax/examples/strict.dtd | 870 + .../node_modules/sax/examples/switch-bench.js | 45 + .../node_modules/sax/examples/test.html | 15 + .../node_modules/sax/examples/test.xml | 1254 ++ .../elementtree/node_modules/sax/lib/sax.js | 1006 ++ .../elementtree/node_modules/sax/package.json | 89 + .../node_modules/sax/test/buffer-overrun.js | 25 + .../node_modules/sax/test/cdata-chunked.js | 11 + .../node_modules/sax/test/cdata-end-split.js | 15 + .../node_modules/sax/test/cdata-fake-end.js | 28 + .../node_modules/sax/test/cdata-multiple.js | 15 + .../elementtree/node_modules/sax/test/cdata.js | 10 + .../elementtree/node_modules/sax/test/index.js | 86 + .../node_modules/sax/test/issue-23.js | 43 + .../node_modules/sax/test/issue-30.js | 24 + .../node_modules/sax/test/issue-35.js | 15 + .../node_modules/sax/test/issue-47.js | 13 + .../node_modules/sax/test/issue-49.js | 31 + .../node_modules/sax/test/parser-position.js | 28 + .../elementtree/node_modules/sax/test/script.js | 12 + .../sax/test/self-closing-child-strict.js | 40 + .../node_modules/sax/test/self-closing-child.js | 40 + .../node_modules/sax/test/self-closing-tag.js | 25 + .../node_modules/sax/test/stray-ending.js | 17 + .../sax/test/trailing-non-whitespace.js | 17 + .../node_modules/sax/test/unquoted.js | 17 + .../node_modules/sax/test/xmlns-issue-41.js | 67 + .../node_modules/sax/test/xmlns-rebinding.js | 59 + .../node_modules/sax/test/xmlns-strict.js | 71 + .../node_modules/sax/test/xmlns-unbound.js | 15 + .../test/xmlns-xml-default-prefix-attribute.js | 35 + .../sax/test/xmlns-xml-default-prefix.js | 20 + .../sax/test/xmlns-xml-default-redefine.js | 40 + .../node_modules/elementtree/package.json | 75 + .../elementtree/tests/data/xml1.xml | 17 + .../elementtree/tests/data/xml2.xml | 14 + .../elementtree/tests/test-simple.js | 339 + .../cordova-common/node_modules/glob/LICENSE | 15 + .../cordova-common/node_modules/glob/README.md | 377 + .../cordova-common/node_modules/glob/common.js | 245 + .../cordova-common/node_modules/glob/glob.js | 752 + .../glob/node_modules/inflight/.eslintrc | 17 + .../glob/node_modules/inflight/LICENSE | 15 + .../glob/node_modules/inflight/README.md | 37 + .../glob/node_modules/inflight/inflight.js | 44 + .../inflight/node_modules/wrappy/LICENSE | 15 + .../inflight/node_modules/wrappy/README.md | 36 + .../inflight/node_modules/wrappy/package.json | 52 + .../inflight/node_modules/wrappy/test/basic.js | 51 + .../inflight/node_modules/wrappy/wrappy.js | 33 + .../glob/node_modules/inflight/package.json | 61 + .../glob/node_modules/inflight/test.js | 97 + .../glob/node_modules/inherits/LICENSE | 16 + .../glob/node_modules/inherits/README.md | 42 + .../glob/node_modules/inherits/inherits.js | 1 + .../node_modules/inherits/inherits_browser.js | 23 + .../glob/node_modules/inherits/package.json | 50 + .../glob/node_modules/inherits/test.js | 25 + .../glob/node_modules/minimatch/LICENSE | 15 + .../glob/node_modules/minimatch/README.md | 216 + .../glob/node_modules/minimatch/minimatch.js | 912 + .../node_modules/brace-expansion/.npmignore | 3 + .../node_modules/brace-expansion/README.md | 122 + .../node_modules/brace-expansion/example.js | 8 + .../node_modules/brace-expansion/index.js | 191 + .../node_modules/balanced-match/.npmignore | 2 + .../node_modules/balanced-match/.travis.yml | 3 + .../node_modules/balanced-match/LICENSE.md | 21 + .../node_modules/balanced-match/Makefile | 6 + .../node_modules/balanced-match/README.md | 80 + .../node_modules/balanced-match/example.js | 5 + .../node_modules/balanced-match/index.js | 38 + .../node_modules/balanced-match/package.json | 73 + .../balanced-match/test/balanced.js | 56 + .../node_modules/concat-map/.travis.yml | 4 + .../node_modules/concat-map/LICENSE | 18 + .../node_modules/concat-map/README.markdown | 62 + .../node_modules/concat-map/example/map.js | 6 + .../node_modules/concat-map/index.js | 13 + .../node_modules/concat-map/package.json | 83 + .../node_modules/concat-map/test/map.js | 39 + .../node_modules/brace-expansion/package.json | 75 + .../glob/node_modules/minimatch/package.json | 60 + .../node_modules/glob/node_modules/once/LICENSE | 15 + .../glob/node_modules/once/README.md | 51 + .../once/node_modules/wrappy/LICENSE | 15 + .../once/node_modules/wrappy/README.md | 36 + .../once/node_modules/wrappy/package.json | 52 + .../once/node_modules/wrappy/test/basic.js | 51 + .../once/node_modules/wrappy/wrappy.js | 33 + .../node_modules/glob/node_modules/once/once.js | 21 + .../glob/node_modules/once/package.json | 60 + .../glob/node_modules/once/test/once.js | 23 + .../glob/node_modules/path-is-absolute/index.js | 20 + .../glob/node_modules/path-is-absolute/license | 21 + .../node_modules/path-is-absolute/package.json | 70 + .../node_modules/path-is-absolute/readme.md | 51 + .../node_modules/glob/package.json | 73 + .../cordova-common/node_modules/glob/sync.js | 460 + .../node_modules/osenv/.npmignore | 13 + .../node_modules/osenv/.travis.yml | 9 + .../cordova-common/node_modules/osenv/LICENSE | 15 + .../cordova-common/node_modules/osenv/README.md | 63 + .../osenv/node_modules/os-homedir/index.js | 24 + .../osenv/node_modules/os-homedir/license | 21 + .../osenv/node_modules/os-homedir/package.json | 70 + .../osenv/node_modules/os-homedir/readme.md | 33 + .../osenv/node_modules/os-tmpdir/index.js | 25 + .../osenv/node_modules/os-tmpdir/license | 21 + .../osenv/node_modules/os-tmpdir/package.json | 70 + .../osenv/node_modules/os-tmpdir/readme.md | 36 + .../cordova-common/node_modules/osenv/osenv.js | 72 + .../node_modules/osenv/package.json | 76 + .../node_modules/osenv/test/unix.js | 71 + .../node_modules/osenv/test/windows.js | 74 + .../cordova-common/node_modules/osenv/x.tap | 39 + .../cordova-common/node_modules/q/CHANGES.md | 786 + .../cordova-common/node_modules/q/LICENSE | 18 + .../cordova-common/node_modules/q/README.md | 881 + .../cordova-common/node_modules/q/package.json | 120 + .../cordova-common/node_modules/q/q.js | 2048 +++ .../cordova-common/node_modules/q/queue.js | 35 + .../node_modules/semver/.npmignore | 4 + .../node_modules/semver/.travis.yml | 5 + .../cordova-common/node_modules/semver/LICENSE | 15 + .../node_modules/semver/README.md | 303 + .../node_modules/semver/bin/semver | 133 + .../node_modules/semver/package.json | 51 + .../node_modules/semver/semver.js | 1200 ++ .../node_modules/semver/test/big-numbers.js | 31 + .../node_modules/semver/test/clean.js | 29 + .../node_modules/semver/test/gtr.js | 173 + .../node_modules/semver/test/index.js | 698 + .../node_modules/semver/test/ltr.js | 181 + .../semver/test/major-minor-patch.js | 72 + .../node_modules/shelljs/.documentup.json | 6 + .../node_modules/shelljs/.jshintrc | 7 + .../node_modules/shelljs/.npmignore | 2 + .../node_modules/shelljs/.travis.yml | 6 + .../cordova-common/node_modules/shelljs/LICENSE | 26 + .../node_modules/shelljs/README.md | 579 + .../node_modules/shelljs/RELEASE.md | 9 + .../node_modules/shelljs/bin/shjs | 51 + .../node_modules/shelljs/global.js | 3 + .../cordova-common/node_modules/shelljs/make.js | 56 + .../node_modules/shelljs/package.json | 64 + .../shelljs/scripts/generate-docs.js | 21 + .../node_modules/shelljs/scripts/run-tests.js | 50 + .../node_modules/shelljs/shell.js | 159 + .../node_modules/shelljs/src/cat.js | 43 + .../node_modules/shelljs/src/cd.js | 19 + .../node_modules/shelljs/src/chmod.js | 208 + .../node_modules/shelljs/src/common.js | 203 + .../node_modules/shelljs/src/cp.js | 204 + .../node_modules/shelljs/src/dirs.js | 191 + .../node_modules/shelljs/src/echo.js | 20 + .../node_modules/shelljs/src/error.js | 10 + .../node_modules/shelljs/src/exec.js | 216 + .../node_modules/shelljs/src/find.js | 51 + .../node_modules/shelljs/src/grep.js | 52 + .../node_modules/shelljs/src/ln.js | 53 + .../node_modules/shelljs/src/ls.js | 126 + .../node_modules/shelljs/src/mkdir.js | 68 + .../node_modules/shelljs/src/mv.js | 80 + .../node_modules/shelljs/src/popd.js | 1 + .../node_modules/shelljs/src/pushd.js | 1 + .../node_modules/shelljs/src/pwd.js | 11 + .../node_modules/shelljs/src/rm.js | 163 + .../node_modules/shelljs/src/sed.js | 43 + .../node_modules/shelljs/src/tempdir.js | 56 + .../node_modules/shelljs/src/test.js | 85 + .../node_modules/shelljs/src/to.js | 29 + .../node_modules/shelljs/src/toEnd.js | 29 + .../node_modules/shelljs/src/which.js | 83 + bin/node_modules/cordova-common/package.json | 89 + bin/node_modules/cordova-common/src/.jshintrc | 10 + .../cordova-common/src/ActionStack.js | 85 + .../src/ConfigChanges/ConfigChanges.js | 325 + .../src/ConfigChanges/ConfigFile.js | 208 + .../src/ConfigChanges/ConfigKeeper.js | 65 + .../src/ConfigChanges/munge-util.js | 160 + .../src/ConfigParser/ConfigParser.js | 499 + .../cordova-common/src/ConfigParser/README.md | 86 + .../src/CordovaError/CordovaError.js | 91 + .../CordovaExternalToolErrorContext.js | 48 + .../cordova-common/src/PlatformJson.js | 155 + .../cordova-common/src/PluginInfo/PluginInfo.js | 416 + .../src/PluginInfo/PluginInfoProvider.js | 82 + bin/node_modules/cordova-common/src/events.js | 19 + .../cordova-common/src/superspawn.js | 154 + .../cordova-common/src/util/plist-helpers.js | 101 + .../cordova-common/src/util/xml-helpers.js | 266 + bin/node_modules/plist/.jshintrc | 4 + bin/node_modules/plist/.travis.yml | 32 + bin/node_modules/plist/History.md | 112 + bin/node_modules/plist/LICENSE | 24 + bin/node_modules/plist/Makefile | 76 + bin/node_modules/plist/README.md | 113 + bin/node_modules/plist/dist/plist-build.js | 12596 ++++++++++++++ bin/node_modules/plist/dist/plist-parse.js | 3628 ++++ bin/node_modules/plist/dist/plist.js | 14920 +++++++++++++++++ .../plist/examples/browser/index.html | 14 + bin/node_modules/plist/lib/build.js | 136 + bin/node_modules/plist/lib/node.js | 49 + bin/node_modules/plist/lib/parse.js | 200 + bin/node_modules/plist/lib/plist.js | 23 + .../plist/node_modules/base64-js/.travis.yml | 5 + .../plist/node_modules/base64-js/LICENSE.MIT | 21 + .../plist/node_modules/base64-js/README.md | 31 + .../plist/node_modules/base64-js/bench/bench.js | 19 + .../plist/node_modules/base64-js/lib/b64.js | 121 + .../plist/node_modules/base64-js/package.json | 62 + .../node_modules/base64-js/test/convert.js | 52 + .../node_modules/util-deprecate/History.md | 5 + .../plist/node_modules/util-deprecate/LICENSE | 24 + .../plist/node_modules/util-deprecate/README.md | 53 + .../node_modules/util-deprecate/browser.js | 55 + .../plist/node_modules/util-deprecate/node.js | 6 + .../node_modules/util-deprecate/package.json | 52 + .../plist/node_modules/xmlbuilder/.npmignore | 4 + .../plist/node_modules/xmlbuilder/LICENSE | 21 + .../plist/node_modules/xmlbuilder/README.md | 82 + .../node_modules/xmlbuilder/lib/XMLAttribute.js | 32 + .../node_modules/xmlbuilder/lib/XMLBuilder.js | 70 + .../node_modules/xmlbuilder/lib/XMLCData.js | 48 + .../node_modules/xmlbuilder/lib/XMLComment.js | 48 + .../xmlbuilder/lib/XMLDTDAttList.js | 71 + .../xmlbuilder/lib/XMLDTDElement.js | 49 + .../node_modules/xmlbuilder/lib/XMLDTDEntity.js | 85 + .../xmlbuilder/lib/XMLDTDNotation.js | 59 + .../xmlbuilder/lib/XMLDeclaration.js | 70 + .../node_modules/xmlbuilder/lib/XMLDocType.js | 183 + .../node_modules/xmlbuilder/lib/XMLElement.js | 190 + .../node_modules/xmlbuilder/lib/XMLNode.js | 304 + .../xmlbuilder/lib/XMLProcessingInstruction.js | 50 + .../plist/node_modules/xmlbuilder/lib/XMLRaw.js | 48 + .../xmlbuilder/lib/XMLStringifier.js | 163 + .../node_modules/xmlbuilder/lib/XMLText.js | 49 + .../plist/node_modules/xmlbuilder/lib/index.js | 14 + .../node_modules/lodash-node/LICENSE.txt | 22 + .../node_modules/lodash-node/README.md | 44 + .../node_modules/lodash-node/compat/arrays.js | 40 + .../lodash-node/compat/arrays/compact.js | 38 + .../lodash-node/compat/arrays/difference.js | 31 + .../lodash-node/compat/arrays/findIndex.js | 65 + .../lodash-node/compat/arrays/findLastIndex.js | 63 + .../lodash-node/compat/arrays/first.js | 86 + .../lodash-node/compat/arrays/flatten.js | 66 + .../lodash-node/compat/arrays/indexOf.js | 50 + .../lodash-node/compat/arrays/initial.js | 82 + .../lodash-node/compat/arrays/intersection.js | 83 + .../lodash-node/compat/arrays/last.js | 84 + .../lodash-node/compat/arrays/lastIndexOf.js | 54 + .../lodash-node/compat/arrays/pull.js | 57 + .../lodash-node/compat/arrays/range.js | 69 + .../lodash-node/compat/arrays/remove.js | 71 + .../lodash-node/compat/arrays/rest.js | 83 + .../lodash-node/compat/arrays/sortedIndex.js | 77 + .../lodash-node/compat/arrays/union.js | 30 + .../lodash-node/compat/arrays/uniq.js | 69 + .../lodash-node/compat/arrays/without.js | 31 + .../lodash-node/compat/arrays/xor.js | 46 + .../lodash-node/compat/arrays/zip.js | 40 + .../lodash-node/compat/arrays/zipObject.js | 48 + .../node_modules/lodash-node/compat/chaining.js | 17 + .../lodash-node/compat/chaining/chain.js | 41 + .../lodash-node/compat/chaining/tap.js | 35 + .../lodash-node/compat/chaining/wrapperChain.js | 40 + .../compat/chaining/wrapperToString.js | 26 + .../compat/chaining/wrapperValueOf.js | 28 + .../lodash-node/compat/collections.js | 49 + .../lodash-node/compat/collections/at.js | 50 + .../lodash-node/compat/collections/contains.js | 65 + .../lodash-node/compat/collections/countBy.js | 55 + .../lodash-node/compat/collections/every.js | 75 + .../lodash-node/compat/collections/filter.js | 77 + .../lodash-node/compat/collections/find.js | 81 + .../lodash-node/compat/collections/findLast.js | 44 + .../lodash-node/compat/collections/forEach.js | 55 + .../compat/collections/forEachRight.js | 59 + .../lodash-node/compat/collections/groupBy.js | 56 + .../lodash-node/compat/collections/indexBy.js | 54 + .../lodash-node/compat/collections/invoke.js | 47 + .../lodash-node/compat/collections/map.js | 70 + .../lodash-node/compat/collections/max.js | 90 + .../lodash-node/compat/collections/min.js | 90 + .../lodash-node/compat/collections/pluck.js | 33 + .../lodash-node/compat/collections/reduce.js | 67 + .../compat/collections/reduceRight.js | 42 + .../lodash-node/compat/collections/reject.js | 57 + .../lodash-node/compat/collections/sample.js | 52 + .../lodash-node/compat/collections/shuffle.js | 39 + .../lodash-node/compat/collections/size.js | 36 + .../lodash-node/compat/collections/some.js | 76 + .../lodash-node/compat/collections/sortBy.js | 101 + .../lodash-node/compat/collections/toArray.js | 36 + .../lodash-node/compat/collections/where.js | 38 + .../lodash-node/compat/functions.js | 27 + .../lodash-node/compat/functions/after.js | 46 + .../lodash-node/compat/functions/bind.js | 41 + .../lodash-node/compat/functions/bindAll.js | 49 + .../lodash-node/compat/functions/bindKey.js | 52 + .../lodash-node/compat/functions/compose.js | 61 + .../compat/functions/createCallback.js | 81 + .../lodash-node/compat/functions/curry.js | 44 + .../lodash-node/compat/functions/debounce.js | 156 + .../lodash-node/compat/functions/defer.js | 35 + .../lodash-node/compat/functions/delay.js | 36 + .../lodash-node/compat/functions/memoize.js | 71 + .../lodash-node/compat/functions/once.js | 48 + .../lodash-node/compat/functions/partial.js | 34 + .../compat/functions/partialRight.js | 43 + .../lodash-node/compat/functions/throttle.js | 71 + .../lodash-node/compat/functions/wrap.js | 36 + .../node_modules/lodash-node/compat/index.js | 376 + .../lodash-node/compat/internals/arrayPool.js | 13 + .../lodash-node/compat/internals/baseBind.js | 62 + .../lodash-node/compat/internals/baseClone.js | 154 + .../lodash-node/compat/internals/baseCreate.js | 42 + .../compat/internals/baseCreateCallback.js | 80 + .../compat/internals/baseCreateWrapper.js | 78 + .../compat/internals/baseDifference.js | 52 + .../lodash-node/compat/internals/baseEach.js | 28 + .../lodash-node/compat/internals/baseFlatten.js | 52 + .../lodash-node/compat/internals/baseIndexOf.js | 32 + .../lodash-node/compat/internals/baseIsEqual.js | 212 + .../lodash-node/compat/internals/baseMerge.js | 79 + .../lodash-node/compat/internals/baseRandom.js | 29 + .../lodash-node/compat/internals/baseUniq.js | 64 + .../compat/internals/cacheIndexOf.js | 39 + .../lodash-node/compat/internals/cachePush.js | 38 + .../compat/internals/charAtCallback.js | 22 + .../compat/internals/compareAscending.js | 47 + .../compat/internals/createAggregator.js | 45 + .../lodash-node/compat/internals/createCache.js | 45 + .../compat/internals/createIterator.js | 127 + .../compat/internals/createWrapper.js | 106 + .../compat/internals/defaultsIteratorOptions.js | 26 + .../compat/internals/eachIteratorOptions.js | 20 + .../compat/internals/escapeHtmlChar.js | 22 + .../compat/internals/escapeStringChar.js | 33 + .../compat/internals/forOwnIteratorOptions.js | 17 + .../lodash-node/compat/internals/getArray.js | 21 + .../lodash-node/compat/internals/getObject.js | 35 + .../lodash-node/compat/internals/htmlEscapes.js | 26 + .../compat/internals/htmlUnescapes.js | 15 + .../compat/internals/indicatorObject.js | 13 + .../lodash-node/compat/internals/isNative.js | 34 + .../lodash-node/compat/internals/isNode.js | 23 + .../compat/internals/iteratorTemplate.js | 109 + .../lodash-node/compat/internals/keyPrefix.js | 13 + .../compat/internals/largeArraySize.js | 13 + .../compat/internals/lodashWrapper.js | 23 + .../lodash-node/compat/internals/maxPoolSize.js | 13 + .../lodash-node/compat/internals/objectPool.js | 13 + .../lodash-node/compat/internals/objectTypes.js | 20 + .../compat/internals/reEscapedHtml.js | 15 + .../compat/internals/reInterpolate.js | 13 + .../compat/internals/reUnescapedHtml.js | 15 + .../compat/internals/releaseArray.js | 25 + .../compat/internals/releaseObject.js | 29 + .../lodash-node/compat/internals/setBindData.js | 43 + .../compat/internals/shimIsPlainObject.js | 67 + .../lodash-node/compat/internals/shimKeys.js | 27 + .../lodash-node/compat/internals/slice.js | 38 + .../compat/internals/unescapeHtmlChar.js | 22 + .../node_modules/lodash-node/compat/objects.js | 52 + .../lodash-node/compat/objects/assign.js | 55 + .../lodash-node/compat/objects/clone.js | 63 + .../lodash-node/compat/objects/cloneDeep.js | 57 + .../lodash-node/compat/objects/create.js | 48 + .../lodash-node/compat/objects/defaults.js | 34 + .../lodash-node/compat/objects/findKey.js | 65 + .../lodash-node/compat/objects/findLastKey.js | 65 + .../lodash-node/compat/objects/forIn.js | 48 + .../lodash-node/compat/objects/forInRight.js | 57 + .../lodash-node/compat/objects/forOwn.js | 36 + .../lodash-node/compat/objects/forOwnRight.js | 44 + .../lodash-node/compat/objects/functions.js | 37 + .../lodash-node/compat/objects/has.js | 35 + .../lodash-node/compat/objects/invert.js | 37 + .../lodash-node/compat/objects/isArguments.js | 52 + .../lodash-node/compat/objects/isArray.js | 45 + .../lodash-node/compat/objects/isBoolean.js | 37 + .../lodash-node/compat/objects/isDate.js | 36 + .../lodash-node/compat/objects/isElement.js | 27 + .../lodash-node/compat/objects/isEmpty.js | 66 + .../lodash-node/compat/objects/isEqual.js | 54 + .../lodash-node/compat/objects/isFinite.js | 46 + .../lodash-node/compat/objects/isFunction.js | 42 + .../lodash-node/compat/objects/isNaN.js | 42 + .../lodash-node/compat/objects/isNull.js | 30 + .../lodash-node/compat/objects/isNumber.js | 39 + .../lodash-node/compat/objects/isObject.js | 39 + .../lodash-node/compat/objects/isPlainObject.js | 62 + .../lodash-node/compat/objects/isRegExp.js | 37 + .../lodash-node/compat/objects/isString.js | 37 + .../lodash-node/compat/objects/isUndefined.js | 27 + .../lodash-node/compat/objects/keys.js | 42 + .../lodash-node/compat/objects/mapValues.js | 58 + .../lodash-node/compat/objects/merge.js | 97 + .../lodash-node/compat/objects/omit.js | 67 + .../lodash-node/compat/objects/pairs.js | 38 + .../lodash-node/compat/objects/pick.js | 65 + .../lodash-node/compat/objects/transform.js | 67 + .../lodash-node/compat/objects/values.js | 36 + .../node_modules/lodash-node/compat/support.js | 177 + .../lodash-node/compat/utilities.js | 28 + .../lodash-node/compat/utilities/constant.js | 31 + .../lodash-node/compat/utilities/escape.js | 31 + .../lodash-node/compat/utilities/identity.js | 28 + .../lodash-node/compat/utilities/mixin.js | 88 + .../lodash-node/compat/utilities/noConflict.js | 30 + .../lodash-node/compat/utilities/noop.js | 26 + .../lodash-node/compat/utilities/now.js | 28 + .../lodash-node/compat/utilities/parseInt.js | 53 + .../lodash-node/compat/utilities/property.js | 40 + .../lodash-node/compat/utilities/random.js | 73 + .../lodash-node/compat/utilities/result.js | 45 + .../lodash-node/compat/utilities/template.js | 216 + .../compat/utilities/templateSettings.js | 73 + .../lodash-node/compat/utilities/times.js | 46 + .../lodash-node/compat/utilities/unescape.js | 32 + .../lodash-node/compat/utilities/uniqueId.js | 34 + .../node_modules/lodash-node/modern/arrays.js | 40 + .../lodash-node/modern/arrays/compact.js | 38 + .../lodash-node/modern/arrays/difference.js | 31 + .../lodash-node/modern/arrays/findIndex.js | 65 + .../lodash-node/modern/arrays/findLastIndex.js | 63 + .../lodash-node/modern/arrays/first.js | 86 + .../lodash-node/modern/arrays/flatten.js | 66 + .../lodash-node/modern/arrays/indexOf.js | 50 + .../lodash-node/modern/arrays/initial.js | 82 + .../lodash-node/modern/arrays/intersection.js | 83 + .../lodash-node/modern/arrays/last.js | 84 + .../lodash-node/modern/arrays/lastIndexOf.js | 54 + .../lodash-node/modern/arrays/pull.js | 57 + .../lodash-node/modern/arrays/range.js | 69 + .../lodash-node/modern/arrays/remove.js | 71 + .../lodash-node/modern/arrays/rest.js | 83 + .../lodash-node/modern/arrays/sortedIndex.js | 77 + .../lodash-node/modern/arrays/union.js | 30 + .../lodash-node/modern/arrays/uniq.js | 69 + .../lodash-node/modern/arrays/without.js | 31 + .../lodash-node/modern/arrays/xor.js | 46 + .../lodash-node/modern/arrays/zip.js | 40 + .../lodash-node/modern/arrays/zipObject.js | 48 + .../node_modules/lodash-node/modern/chaining.js | 17 + .../lodash-node/modern/chaining/chain.js | 41 + .../lodash-node/modern/chaining/tap.js | 35 + .../lodash-node/modern/chaining/wrapperChain.js | 40 + .../modern/chaining/wrapperToString.js | 26 + .../modern/chaining/wrapperValueOf.js | 29 + .../lodash-node/modern/collections.js | 49 + .../lodash-node/modern/collections/at.js | 46 + .../lodash-node/modern/collections/contains.js | 65 + .../lodash-node/modern/collections/countBy.js | 55 + .../lodash-node/modern/collections/every.js | 74 + .../lodash-node/modern/collections/filter.js | 76 + .../lodash-node/modern/collections/find.js | 80 + .../lodash-node/modern/collections/findLast.js | 44 + .../lodash-node/modern/collections/forEach.js | 55 + .../modern/collections/forEachRight.js | 52 + .../lodash-node/modern/collections/groupBy.js | 56 + .../lodash-node/modern/collections/indexBy.js | 54 + .../lodash-node/modern/collections/invoke.js | 47 + .../lodash-node/modern/collections/map.js | 70 + .../lodash-node/modern/collections/max.js | 91 + .../lodash-node/modern/collections/min.js | 91 + .../lodash-node/modern/collections/pluck.js | 33 + .../lodash-node/modern/collections/reduce.js | 67 + .../modern/collections/reduceRight.js | 42 + .../lodash-node/modern/collections/reject.js | 57 + .../lodash-node/modern/collections/sample.js | 49 + .../lodash-node/modern/collections/shuffle.js | 39 + .../lodash-node/modern/collections/size.js | 36 + .../lodash-node/modern/collections/some.js | 76 + .../lodash-node/modern/collections/sortBy.js | 101 + .../lodash-node/modern/collections/toArray.js | 33 + .../lodash-node/modern/collections/where.js | 38 + .../lodash-node/modern/functions.js | 27 + .../lodash-node/modern/functions/after.js | 46 + .../lodash-node/modern/functions/bind.js | 40 + .../lodash-node/modern/functions/bindAll.js | 49 + .../lodash-node/modern/functions/bindKey.js | 52 + .../lodash-node/modern/functions/compose.js | 61 + .../modern/functions/createCallback.js | 81 + .../lodash-node/modern/functions/curry.js | 44 + .../lodash-node/modern/functions/debounce.js | 156 + .../lodash-node/modern/functions/defer.js | 35 + .../lodash-node/modern/functions/delay.js | 36 + .../lodash-node/modern/functions/memoize.js | 71 + .../lodash-node/modern/functions/once.js | 48 + .../lodash-node/modern/functions/partial.js | 34 + .../modern/functions/partialRight.js | 43 + .../lodash-node/modern/functions/throttle.js | 71 + .../lodash-node/modern/functions/wrap.js | 36 + .../node_modules/lodash-node/modern/index.js | 354 + .../lodash-node/modern/internals/arrayPool.js | 13 + .../lodash-node/modern/internals/baseBind.js | 62 + .../lodash-node/modern/internals/baseClone.js | 152 + .../lodash-node/modern/internals/baseCreate.js | 42 + .../modern/internals/baseCreateCallback.js | 80 + .../modern/internals/baseCreateWrapper.js | 78 + .../modern/internals/baseDifference.js | 52 + .../lodash-node/modern/internals/baseFlatten.js | 52 + .../lodash-node/modern/internals/baseIndexOf.js | 32 + .../lodash-node/modern/internals/baseIsEqual.js | 209 + .../lodash-node/modern/internals/baseMerge.js | 79 + .../lodash-node/modern/internals/baseRandom.js | 29 + .../lodash-node/modern/internals/baseUniq.js | 64 + .../modern/internals/cacheIndexOf.js | 39 + .../lodash-node/modern/internals/cachePush.js | 38 + .../modern/internals/charAtCallback.js | 22 + .../modern/internals/compareAscending.js | 47 + .../modern/internals/createAggregator.js | 45 + .../lodash-node/modern/internals/createCache.js | 45 + .../modern/internals/createWrapper.js | 106 + .../modern/internals/escapeHtmlChar.js | 22 + .../modern/internals/escapeStringChar.js | 33 + .../lodash-node/modern/internals/getArray.js | 21 + .../lodash-node/modern/internals/getObject.js | 35 + .../lodash-node/modern/internals/htmlEscapes.js | 26 + .../modern/internals/htmlUnescapes.js | 15 + .../lodash-node/modern/internals/isNative.js | 34 + .../lodash-node/modern/internals/keyPrefix.js | 13 + .../modern/internals/largeArraySize.js | 13 + .../modern/internals/lodashWrapper.js | 23 + .../lodash-node/modern/internals/maxPoolSize.js | 13 + .../lodash-node/modern/internals/objectPool.js | 13 + .../lodash-node/modern/internals/objectTypes.js | 20 + .../modern/internals/reEscapedHtml.js | 15 + .../modern/internals/reInterpolate.js | 13 + .../modern/internals/reUnescapedHtml.js | 15 + .../modern/internals/releaseArray.js | 25 + .../modern/internals/releaseObject.js | 29 + .../lodash-node/modern/internals/setBindData.js | 43 + .../modern/internals/shimIsPlainObject.js | 52 + .../lodash-node/modern/internals/shimKeys.js | 38 + .../lodash-node/modern/internals/slice.js | 38 + .../modern/internals/unescapeHtmlChar.js | 22 + .../node_modules/lodash-node/modern/objects.js | 52 + .../lodash-node/modern/objects/assign.js | 70 + .../lodash-node/modern/objects/clone.js | 63 + .../lodash-node/modern/objects/cloneDeep.js | 57 + .../lodash-node/modern/objects/create.js | 48 + .../lodash-node/modern/objects/defaults.js | 54 + .../lodash-node/modern/objects/findKey.js | 65 + .../lodash-node/modern/objects/findLastKey.js | 65 + .../lodash-node/modern/objects/forIn.js | 54 + .../lodash-node/modern/objects/forInRight.js | 57 + .../lodash-node/modern/objects/forOwn.js | 50 + .../lodash-node/modern/objects/forOwnRight.js | 44 + .../lodash-node/modern/objects/functions.js | 37 + .../lodash-node/modern/objects/has.js | 35 + .../lodash-node/modern/objects/invert.js | 37 + .../lodash-node/modern/objects/isArguments.js | 40 + .../lodash-node/modern/objects/isArray.js | 45 + .../lodash-node/modern/objects/isBoolean.js | 37 + .../lodash-node/modern/objects/isDate.js | 36 + .../lodash-node/modern/objects/isElement.js | 27 + .../lodash-node/modern/objects/isEmpty.js | 63 + .../lodash-node/modern/objects/isEqual.js | 54 + .../lodash-node/modern/objects/isFinite.js | 46 + .../lodash-node/modern/objects/isFunction.js | 27 + .../lodash-node/modern/objects/isNaN.js | 42 + .../lodash-node/modern/objects/isNull.js | 30 + .../lodash-node/modern/objects/isNumber.js | 39 + .../lodash-node/modern/objects/isObject.js | 39 + .../lodash-node/modern/objects/isPlainObject.js | 60 + .../lodash-node/modern/objects/isRegExp.js | 36 + .../lodash-node/modern/objects/isString.js | 37 + .../lodash-node/modern/objects/isUndefined.js | 27 + .../lodash-node/modern/objects/keys.js | 36 + .../lodash-node/modern/objects/mapValues.js | 58 + .../lodash-node/modern/objects/merge.js | 97 + .../lodash-node/modern/objects/omit.js | 67 + .../lodash-node/modern/objects/pairs.js | 38 + .../lodash-node/modern/objects/pick.js | 65 + .../lodash-node/modern/objects/transform.js | 67 + .../lodash-node/modern/objects/values.js | 36 + .../node_modules/lodash-node/modern/support.js | 40 + .../lodash-node/modern/utilities.js | 28 + .../lodash-node/modern/utilities/constant.js | 31 + .../lodash-node/modern/utilities/escape.js | 31 + .../lodash-node/modern/utilities/identity.js | 28 + .../lodash-node/modern/utilities/mixin.js | 88 + .../lodash-node/modern/utilities/noConflict.js | 30 + .../lodash-node/modern/utilities/noop.js | 26 + .../lodash-node/modern/utilities/now.js | 28 + .../lodash-node/modern/utilities/parseInt.js | 53 + .../lodash-node/modern/utilities/property.js | 40 + .../lodash-node/modern/utilities/random.js | 73 + .../lodash-node/modern/utilities/result.js | 45 + .../lodash-node/modern/utilities/template.js | 216 + .../modern/utilities/templateSettings.js | 73 + .../lodash-node/modern/utilities/times.js | 46 + .../lodash-node/modern/utilities/unescape.js | 32 + .../lodash-node/modern/utilities/uniqueId.js | 34 + .../node_modules/lodash-node/package.json | 83 + .../lodash-node/underscore/arrays.js | 35 + .../lodash-node/underscore/arrays/compact.js | 38 + .../lodash-node/underscore/arrays/difference.js | 31 + .../lodash-node/underscore/arrays/first.js | 86 + .../lodash-node/underscore/arrays/flatten.js | 56 + .../lodash-node/underscore/arrays/indexOf.js | 50 + .../lodash-node/underscore/arrays/initial.js | 82 + .../underscore/arrays/intersection.js | 60 + .../lodash-node/underscore/arrays/last.js | 84 + .../underscore/arrays/lastIndexOf.js | 54 + .../lodash-node/underscore/arrays/range.js | 69 + .../lodash-node/underscore/arrays/rest.js | 83 + .../underscore/arrays/sortedIndex.js | 77 + .../lodash-node/underscore/arrays/union.js | 30 + .../lodash-node/underscore/arrays/uniq.js | 69 + .../lodash-node/underscore/arrays/without.js | 31 + .../lodash-node/underscore/arrays/zip.js | 39 + .../lodash-node/underscore/arrays/zipObject.js | 48 + .../lodash-node/underscore/chaining.js | 16 + .../lodash-node/underscore/chaining/chain.js | 41 + .../lodash-node/underscore/chaining/tap.js | 35 + .../underscore/chaining/wrapperChain.js | 40 + .../underscore/chaining/wrapperValueOf.js | 29 + .../lodash-node/underscore/collections.js | 47 + .../underscore/collections/contains.js | 54 + .../underscore/collections/countBy.js | 55 + .../lodash-node/underscore/collections/every.js | 75 + .../underscore/collections/filter.js | 76 + .../lodash-node/underscore/collections/find.js | 81 + .../underscore/collections/findWhere.js | 38 + .../underscore/collections/forEach.js | 55 + .../underscore/collections/forEachRight.js | 51 + .../underscore/collections/groupBy.js | 56 + .../underscore/collections/indexBy.js | 54 + .../underscore/collections/invoke.js | 47 + .../lodash-node/underscore/collections/map.js | 70 + .../lodash-node/underscore/collections/max.js | 86 + .../lodash-node/underscore/collections/min.js | 86 + .../lodash-node/underscore/collections/pluck.js | 33 + .../underscore/collections/reduce.js | 67 + .../underscore/collections/reduceRight.js | 42 + .../underscore/collections/reject.js | 57 + .../underscore/collections/sample.js | 49 + .../underscore/collections/shuffle.js | 39 + .../lodash-node/underscore/collections/size.js | 36 + .../lodash-node/underscore/collections/some.js | 77 + .../underscore/collections/sortBy.js | 86 + .../underscore/collections/toArray.js | 37 + .../lodash-node/underscore/collections/where.js | 44 + .../lodash-node/underscore/functions.js | 24 + .../lodash-node/underscore/functions/after.js | 46 + .../lodash-node/underscore/functions/bind.js | 40 + .../lodash-node/underscore/functions/bindAll.js | 49 + .../lodash-node/underscore/functions/compose.js | 61 + .../underscore/functions/createCallback.js | 67 + .../underscore/functions/debounce.js | 156 + .../lodash-node/underscore/functions/defer.js | 35 + .../lodash-node/underscore/functions/delay.js | 36 + .../lodash-node/underscore/functions/memoize.js | 65 + .../lodash-node/underscore/functions/once.js | 48 + .../lodash-node/underscore/functions/partial.js | 34 + .../underscore/functions/throttle.js | 65 + .../lodash-node/underscore/functions/wrap.js | 36 + .../lodash-node/underscore/index.js | 284 + .../underscore/internals/baseBind.js | 60 + .../underscore/internals/baseCreate.js | 42 + .../underscore/internals/baseCreateCallback.js | 47 + .../underscore/internals/baseCreateWrapper.js | 76 + .../underscore/internals/baseDifference.js | 35 + .../underscore/internals/baseFlatten.js | 52 + .../underscore/internals/baseIndexOf.js | 32 + .../underscore/internals/baseIsEqual.js | 149 + .../underscore/internals/baseRandom.js | 29 + .../underscore/internals/baseUniq.js | 45 + .../underscore/internals/compareAscending.js | 47 + .../underscore/internals/createAggregator.js | 45 + .../underscore/internals/createWrapper.js | 60 + .../underscore/internals/escapeHtmlChar.js | 22 + .../underscore/internals/escapeStringChar.js | 33 + .../underscore/internals/htmlEscapes.js | 26 + .../underscore/internals/htmlUnescapes.js | 15 + .../underscore/internals/indicatorObject.js | 13 + .../underscore/internals/isNative.js | 34 + .../underscore/internals/keyPrefix.js | 13 + .../underscore/internals/lodashWrapper.js | 23 + .../underscore/internals/objectTypes.js | 20 + .../underscore/internals/reEscapedHtml.js | 15 + .../underscore/internals/reInterpolate.js | 13 + .../underscore/internals/reUnescapedHtml.js | 15 + .../underscore/internals/shimKeys.js | 38 + .../lodash-node/underscore/internals/slice.js | 38 + .../underscore/internals/unescapeHtmlChar.js | 22 + .../lodash-node/underscore/objects.js | 42 + .../lodash-node/underscore/objects/assign.js | 58 + .../lodash-node/underscore/objects/clone.js | 61 + .../lodash-node/underscore/objects/defaults.js | 49 + .../lodash-node/underscore/objects/forIn.js | 54 + .../lodash-node/underscore/objects/forOwn.js | 53 + .../lodash-node/underscore/objects/functions.js | 37 + .../lodash-node/underscore/objects/has.js | 35 + .../lodash-node/underscore/objects/invert.js | 37 + .../underscore/objects/isArguments.js | 51 + .../lodash-node/underscore/objects/isArray.js | 45 + .../lodash-node/underscore/objects/isBoolean.js | 37 + .../lodash-node/underscore/objects/isDate.js | 36 + .../lodash-node/underscore/objects/isElement.js | 27 + .../lodash-node/underscore/objects/isEmpty.js | 54 + .../lodash-node/underscore/objects/isEqual.js | 53 + .../lodash-node/underscore/objects/isFinite.js | 46 + .../underscore/objects/isFunction.js | 42 + .../lodash-node/underscore/objects/isNaN.js | 42 + .../lodash-node/underscore/objects/isNull.js | 30 + .../lodash-node/underscore/objects/isNumber.js | 39 + .../lodash-node/underscore/objects/isObject.js | 39 + .../lodash-node/underscore/objects/isRegExp.js | 37 + .../lodash-node/underscore/objects/isString.js | 37 + .../underscore/objects/isUndefined.js | 27 + .../lodash-node/underscore/objects/keys.js | 36 + .../lodash-node/underscore/objects/omit.js | 57 + .../lodash-node/underscore/objects/pairs.js | 38 + .../lodash-node/underscore/objects/pick.js | 53 + .../lodash-node/underscore/objects/values.js | 36 + .../lodash-node/underscore/support.js | 46 + .../lodash-node/underscore/utilities.js | 26 + .../lodash-node/underscore/utilities/escape.js | 31 + .../underscore/utilities/identity.js | 28 + .../lodash-node/underscore/utilities/mixin.js | 74 + .../underscore/utilities/noConflict.js | 30 + .../lodash-node/underscore/utilities/noop.js | 26 + .../lodash-node/underscore/utilities/now.js | 28 + .../underscore/utilities/property.js | 40 + .../lodash-node/underscore/utilities/random.js | 58 + .../lodash-node/underscore/utilities/result.js | 45 + .../underscore/utilities/template.js | 163 + .../underscore/utilities/templateSettings.js | 73 + .../lodash-node/underscore/utilities/times.js | 46 + .../underscore/utilities/unescape.js | 32 + .../underscore/utilities/uniqueId.js | 34 + .../plist/node_modules/xmlbuilder/package.json | 65 + .../plist/node_modules/xmldom/.npmignore | 5 + .../plist/node_modules/xmldom/.travis.yml | 22 + .../plist/node_modules/xmldom/LICENSE | 8 + .../plist/node_modules/xmldom/__package__.js | 4 + .../plist/node_modules/xmldom/component.json | 10 + .../plist/node_modules/xmldom/dom-parser.js | 255 + .../plist/node_modules/xmldom/dom.js | 1138 ++ .../plist/node_modules/xmldom/package.json | 96 + .../plist/node_modules/xmldom/readme.md | 219 + .../plist/node_modules/xmldom/sax.js | 584 + bin/node_modules/plist/package.json | 90 + bin/node_modules/plist/test/build.js | 133 + bin/node_modules/plist/test/parse.js | 448 + bin/node_modules/underscore/LICENSE | 23 + bin/node_modules/underscore/README.md | 22 + bin/node_modules/underscore/package.json | 70 + bin/node_modules/underscore/underscore-min.js | 6 + bin/node_modules/underscore/underscore-min.map | 1 + bin/node_modules/underscore/underscore.js | 1548 ++ bin/node_modules/unorm/LICENSE.md | 42 + bin/node_modules/unorm/README.md | 118 + bin/node_modules/unorm/lib/unorm.js | 442 + bin/node_modules/unorm/package.json | 69 + bin/node_modules/xcode/.npmignore | 1 + bin/node_modules/xcode/AUTHORS | 6 + bin/node_modules/xcode/LICENSE | 14 + bin/node_modules/xcode/Makefile | 5 + bin/node_modules/xcode/README.md | 42 + bin/node_modules/xcode/index.js | 1 + bin/node_modules/xcode/lib/parseJob.js | 15 + bin/node_modules/xcode/lib/parser/pbxproj.js | 1843 ++ bin/node_modules/xcode/lib/parser/pbxproj.pegjs | 273 + bin/node_modules/xcode/lib/pbxFile.js | 194 + bin/node_modules/xcode/lib/pbxProject.js | 1623 ++ bin/node_modules/xcode/lib/pbxWriter.js | 282 + bin/node_modules/xcode/node_modules/.bin/pegjs | 1 + .../xcode/node_modules/node-uuid/.npmignore | 2 + .../xcode/node_modules/node-uuid/LICENSE.md | 3 + .../xcode/node_modules/node-uuid/README.md | 199 + .../node_modules/node-uuid/benchmark/README.md | 53 + .../node_modules/node-uuid/benchmark/bench.gnu | 174 + .../node_modules/node-uuid/benchmark/bench.sh | 34 + .../node-uuid/benchmark/benchmark-native.c | 34 + .../node-uuid/benchmark/benchmark.js | 84 + .../xcode/node_modules/node-uuid/package.json | 60 + .../node_modules/node-uuid/test/compare_v1.js | 63 + .../xcode/node_modules/node-uuid/test/test.html | 17 + .../xcode/node_modules/node-uuid/test/test.js | 240 + .../xcode/node_modules/node-uuid/uuid.js | 249 + .../xcode/node_modules/pegjs/CHANGELOG | 146 + .../xcode/node_modules/pegjs/LICENSE | 22 + .../xcode/node_modules/pegjs/README.md | 226 + .../xcode/node_modules/pegjs/VERSION | 1 + .../xcode/node_modules/pegjs/bin/pegjs | 142 + .../pegjs/examples/arithmetics.pegjs | 22 + .../xcode/node_modules/pegjs/examples/css.pegjs | 554 + .../pegjs/examples/javascript.pegjs | 1530 ++ .../node_modules/pegjs/examples/json.pegjs | 120 + .../xcode/node_modules/pegjs/lib/peg.js | 5141 ++++++ .../xcode/node_modules/pegjs/package.json | 57 + bin/node_modules/xcode/package.json | 90 + bin/templates/scripts/cordova/Api.js | 294 + bin/templates/scripts/cordova/build | 40 +- bin/templates/scripts/cordova/clean | 14 +- .../scripts/cordova/lib/ConsoleLogger.js | 75 + bin/templates/scripts/cordova/lib/build.js | 86 +- bin/templates/scripts/cordova/lib/clean.js | 8 +- .../scripts/cordova/lib/configMunger.js | 39 + .../scripts/cordova/lib/plugman/Plugman.js | 244 + .../cordova/lib/plugman/pluginHandlers.js | 309 + bin/templates/scripts/cordova/lib/prepare.js | 504 + .../scripts/cordova/lib/projectFile.js | 129 + bin/templates/scripts/cordova/lib/run.js | 72 +- bin/templates/scripts/cordova/lib/spawn.js | 1 - bin/templates/scripts/cordova/run | 39 +- bin/update | 27 +- package.json | 2 +- tests/spec/create.spec.js | 3 + 1044 files changed, 126035 insertions(+), 176 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/check_reqs ---------------------------------------------------------------------- diff --git a/bin/check_reqs b/bin/check_reqs index ba68ceb..d101ccd 100755 --- a/bin/check_reqs +++ b/bin/check_reqs @@ -23,10 +23,10 @@ var check_reqs = require('./lib/check_reqs'); // check for help flag if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) > -1) { - check_reqs.help(); + console.log('Usage: check_reqs or node check_reqs'); } else { check_reqs.run().done(null, function (err) { console.error('Failed to check requirements due to ' + err); process.exit(2); }); -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/create ---------------------------------------------------------------------- diff --git a/bin/create b/bin/create index e00b7ab..95f12a7 100755 --- a/bin/create +++ b/bin/create @@ -29,7 +29,10 @@ * ./create ~/Desktop/radness org.apache.cordova.radness Radness */ -var create = require('./lib/create'); +var path = require('path'); +var ConfigParser = require('cordova-common').ConfigParser; +var Api = require('./templates/scripts/cordova/Api'); + var argv = require('nopt')({ 'help' : Boolean, 'cli' : Boolean, @@ -40,16 +43,27 @@ var argv = require('nopt')({ var projectPath = argv.argv.remain[0]; if (argv.help || !projectPath) { - create.createHelp(); -} else { - var packageName = argv.argv.remain[1]; - var projectName = argv.argv.remain[2]; - var opts = { - project_template_dir: argv.argv.remain[3], - cli: argv.cli, - link: argv.link || argv.shared - }; - - create.createProject(projectPath, packageName, projectName, opts) - .done(); + console.log('Usage: $0 [--link] [--cli] <path_to_new_project> <package_name> <project_name> [<project_template_dir>]'); + console.log(' --link (optional): Link directly against the shared copy of the CordovaLib instead of a copy of it.'); + console.log(' --cli (optional): Use the CLI-project template.'); + console.log(' <path_to_new_project>: Path to your new Cordova iOS project'); + console.log(' <package_name>: Package name, following reverse-domain style convention'); + console.log(' <project_name>: Project name'); + console.log(' <project_template_dir>: Path to project template (override).'); + process.exit(0); } + +// use default configuration file from project template +var config = new ConfigParser(path.resolve(__dirname, 'templates/project/__PROJECT_NAME__/config.xml')); + +// apply overrides (package and project names +if (argv.argv.remain[1]) config.setPackageName(argv.argv.remain[1]); +if (argv.argv.remain[2]) config.setName(argv.argv.remain[2]); + +var options = { + cli: argv.cli, + link: argv.link || argv.shared, + customTemplate: argv.argv.remain[3], +}; + +Api.createPlatform(projectPath, config, options).done(); http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/lib/check_reqs.js ---------------------------------------------------------------------- diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js index 3da75c2..a133e7d 100644 --- a/bin/lib/check_reqs.js +++ b/bin/lib/check_reqs.js @@ -53,10 +53,6 @@ module.exports.check_os = function () { Q.reject('Cordova tooling for iOS requires Apple OS X'); }; -module.exports.help = function () { - console.log('Usage: check_reqs or node check_reqs'); -}; - /** * Checks if specific tool is available. * @param {String} tool Tool name to check. Known tools are 'xcodebuild' and 'ios-deploy' http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/lib/create.js ---------------------------------------------------------------------- diff --git a/bin/lib/create.js b/bin/lib/create.js index ab6dacf..9f0e706 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -25,16 +25,6 @@ var shell = require('shelljs'), fs = require('fs'), ROOT = path.join(__dirname, '..', '..'); -function createHelp() { - console.log('Usage: $0 [--link] [--cli] <path_to_new_project> <package_name> <project_name> [<project_template_dir>]'); - console.log(' --link (optional): Link directly against the shared copy of the CordovaLib instead of a copy of it.'); - console.log(' --cli (optional): Use the CLI-project template.'); - console.log(' <path_to_new_project>: Path to your new Cordova iOS project'); - console.log(' <package_name>: Package name, following reverse-domain style convention'); - console.log(' <project_name>: Project name'); - console.log(' <project_template_dir>: Path to project template (override).'); -} - function updateSubprojectHelp() { console.log('Updates the subproject path of the CordovaLib entry to point to this script\'s version of Cordova.'); console.log('Usage: CordovaVersion/bin/update_cordova_project path/to/your/app.xcodeproj [path/to/CordovaLib.xcodeproj]'); @@ -50,7 +40,8 @@ function setShellFatal(value, func) { function copyJsAndCordovaLib(projectPath, projectName, use_shared) { shell.cp('-f', path.join(ROOT, 'CordovaLib', 'cordova.js'), path.join(projectPath, 'www')); shell.cp('-rf', path.join(ROOT, 'cordova-js-src'), path.join(projectPath, 'platform_www')); - + shell.cp('-f', path.join(ROOT, 'CordovaLib', 'cordova.js'), path.join(projectPath, 'platform_www')); + fs.lstat(path.join(projectPath, 'CordovaLib'), function(err, stats) { if (!err) { if (stats.isSymbolicLink()) { @@ -59,7 +50,7 @@ function copyJsAndCordovaLib(projectPath, projectName, use_shared) { shell.rm('-rf', path.join(projectPath, 'CordovaLib')); } } - + if (use_shared) { update_cordova_subproject([path.join(projectPath, projectName +'.xcodeproj', 'project.pbxproj')]); // Symlink not used in project file, but is currently required for plugman because @@ -150,14 +141,14 @@ function relpath(_path, start) { * - <project_template_dir>: Path to a project template (override) * */ -exports.createProject = function(project_path, package_name, project_name, opts) { +exports.createProject = function(project_path, package_name, project_name, opts, events) { package_name = package_name || 'my.cordova.project'; project_name = project_name || 'CordovaExample'; var use_shared = !!opts.link; var use_cli = !!opts.cli; var bin_dir = path.join(ROOT, 'bin'), project_parent = path.dirname(project_path); - var project_template_dir = opts.project_template_dir || path.join(bin_dir, 'templates', 'project'); + var project_template_dir = opts.customTemplate || path.join(bin_dir, 'templates', 'project'); //check that project path doesn't exist if (fs.existsSync(project_path)) { @@ -212,16 +203,16 @@ exports.createProject = function(project_path, package_name, project_name, opts) copyJsAndCordovaLib(project_path, project_name, use_shared); copyScripts(project_path); - console.log(generateDoneMessage('create', use_shared)); + events.emit('log', generateDoneMessage('create', use_shared)); return Q.resolve(); }; -exports.updateProject = function(projectPath, opts) { +exports.updateProject = function(projectPath, opts, events) { var projectName = detectProjectName(projectPath); setShellFatal(true, function() { copyJsAndCordovaLib(projectPath, projectName, opts.link); copyScripts(projectPath); - console.log(generateDoneMessage('update', opts.link)); + events.emit('log',generateDoneMessage('update', opts.link)); }); return Q.resolve(); }; @@ -283,6 +274,5 @@ function update_cordova_subproject(argv) { } } -exports.createHelp = createHelp; exports.updateSubprojectHelp = updateSubprojectHelp; exports.update_cordova_subproject = update_cordova_subproject; http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/.jscs.json ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/.jscs.json b/bin/node_modules/cordova-common/.jscs.json new file mode 100644 index 0000000..5cc7e26 --- /dev/null +++ b/bin/node_modules/cordova-common/.jscs.json @@ -0,0 +1,24 @@ +{ + "disallowMixedSpacesAndTabs": true, + "disallowTrailingWhitespace": true, + "validateLineBreaks": "LF", + "validateIndentation": 4, + "requireLineFeedAtFileEnd": true, + + "disallowSpaceAfterPrefixUnaryOperators": true, + "disallowSpaceBeforePostfixUnaryOperators": true, + "requireSpaceAfterLineComment": true, + "requireCapitalizedConstructors": true, + + "disallowSpacesInNamedFunctionExpression": { + "beforeOpeningRoundBrace": true + }, + + "requireSpaceAfterKeywords": [ + "if", + "else", + "for", + "while", + "do" + ] +} http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/.jshintignore ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/.jshintignore b/bin/node_modules/cordova-common/.jshintignore new file mode 100644 index 0000000..d606f61 --- /dev/null +++ b/bin/node_modules/cordova-common/.jshintignore @@ -0,0 +1 @@ +spec/fixtures/* http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/.npmignore ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/.npmignore b/bin/node_modules/cordova-common/.npmignore new file mode 100644 index 0000000..5d14118 --- /dev/null +++ b/bin/node_modules/cordova-common/.npmignore @@ -0,0 +1,2 @@ +spec +coverage http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/.ratignore ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/.ratignore b/bin/node_modules/cordova-common/.ratignore new file mode 100644 index 0000000..26f7205 --- /dev/null +++ b/bin/node_modules/cordova-common/.ratignore @@ -0,0 +1,2 @@ +fixtures +coverage http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/README.md ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/README.md b/bin/node_modules/cordova-common/README.md new file mode 100644 index 0000000..f19b59f --- /dev/null +++ b/bin/node_modules/cordova-common/README.md @@ -0,0 +1,149 @@ +<!-- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +--> + +# cordova-common +Expoeses shared functionality used by [cordova-lib](https://github.com/apache/cordova-lib/) and Cordova platforms. +## Exposed APIs + +### `events` + +Represents special instance of NodeJS EventEmitter which is intended to be used to post events to cordova-lib and cordova-cli + +Usage: +``` +var events = require('cordova-common').events; +events.emit('warn', 'Some warning message') +``` + +There are the following events supported by cordova-cli: `verbose`, `log`, `info`, `warn`, `error`. + +### `CordovaError` + +An error class used by Cordova to throw cordova-specific errors. The CordovaError class is inherited from Error, so CordovaError instances is also valid Error instances (`instanceof` check succeeds). + +Usage: + +``` +var CordovaError = require('cordova-common').CordovaError; +throw new CordovaError('Some error message', SOME_ERR_CODE); +``` + +See [CordovaError](src/CordovaError/CordovaError.js) for supported error codes. + +### `ConfigParser` + +Exposes functionality to deal with cordova project `config.xml` files. For ConfigParser API reference check [ConfigParser Readme](src/ConfigParser/README.md). + +Usage: +``` +var ConfigParser = require('cordova-common').ConfigParser; +var appConfig = new ConfigParser('path/to/cordova-app/config.xml'); +console.log(appconfig.name() + ':' + appConfig.version()); +``` + +### `PluginInfoProvider` and `PluginInfo` + +`PluginInfo` is a wrapper for cordova plugins' `plugin.xml` files. This class may be instantiated directly or via `PluginInfoProvider`. The difference is that `PluginInfoProvider` caches `PluginInfo` instances based on plugin source directory. + +Usage: +``` +var PluginInfo: require('cordova-common').PluginInfo; +var PluginInfoProvider: require('cordova-common').PluginInfoProvider; + +// The following instances are equal +var plugin1 = new PluginInfo('path/to/plugin_directory'); +var plugin2 = new PluginInfoProvider().get('path/to/plugin_directory'); + +console.log('The plugin ' + plugin1.id + ' has version ' + plugin1.version) +``` + +### `ActionStack` + +Utility module for dealing with sequential tasks. Provides a set of tasks that are needed to be done and reverts all tasks that are already completed if one of those tasks fail to complete. Used internally by cordova-lib and platform's plugin installation routines. + +Usage: +``` +var ActionStack = require('cordova-common').ActionStack; +var stack = new ActionStack() + +var action1 = stack.createAction(task1, [<task parameters>], task1_reverter, [<reverter_parameters>]); +var action2 = stack.createAction(task2, [<task parameters>], task2_reverter, [<reverter_parameters>]); + +stack.push(action1); +stack.push(action2); + +stack.process() +.then(function() { + // all actions succeded +}) +.catch(function(error){ + // One of actions failed with error +}) +``` + +### `superspawn` + +Module for spawning child processes with some advanced logic. + +Usage: +``` +var superspawn = require('cordova-common').superspawn; +superspawn.spawn('adb', ['devices']) +.then(function(devices){ + // Do something... +}) +``` + +### `xmlHelpers` + +A set of utility methods for dealing with xml files. + +Usage: +``` +var xml = require('cordova-common').xmlHelpers; + +var xmlDoc1 = xml.parseElementtreeSync('some/xml/file'); +var xmlDoc2 = xml.parseElementtreeSync('another/xml/file'); + +xml.mergeXml(doc1, doc2); // doc2 now contains all the nodes from doc1 +``` + +### Other APIs + +The APIs listed below are also exposed but are intended to be only used internally by cordova plugin installation routines. + +``` +PlatformJson +ConfigChanges +ConfigKeeper +ConfigFile +mungeUtil +``` + +## Setup +* Clone this repository onto your local machine + `git clone https://git-wip-us.apache.org/repos/asf/cordova-lib.git` +* In terminal, navigate to the inner cordova-common directory + `cd cordova-lib/cordova-common` +* Install dependencies and npm-link + `npm install && npm link` +* Navigate to cordova-lib directory and link cordova-common + `cd ../cordova-lib && npm link cordova-common && npm install` http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/RELEASENOTES.md ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/RELEASENOTES.md b/bin/node_modules/cordova-common/RELEASENOTES.md new file mode 100644 index 0000000..5a4cc51 --- /dev/null +++ b/bin/node_modules/cordova-common/RELEASENOTES.md @@ -0,0 +1,34 @@ +<!-- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +--> +# Cordova-common Release Notes + +### 1.0.0 (Oct 29, 2015) + +* CB-9890 Documents cordova-common +* CB-9598 Correct cordova-lib -> cordova-common in README +* Pick ConfigParser changes from apache@0c3614e +* CB-9743 Removes system frameworks handling from ConfigChanges +* CB-9598 Cleans out code which has been moved to `cordova-common` +* Pick ConfigParser changes from apache@ddb027b +* Picking CordovaError changes from apache@a3b1fca +* CB-9598 Adds tests and fixtures based on existing cordova-lib ones +* CB-9598 Initial implementation for cordova-common + http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/cordova-common.js ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/cordova-common.js b/bin/node_modules/cordova-common/cordova-common.js new file mode 100644 index 0000000..59b52fc --- /dev/null +++ b/bin/node_modules/cordova-common/cordova-common.js @@ -0,0 +1,42 @@ +/** + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +*/ + +/* jshint node:true */ + +// For now expose plugman and cordova just as they were in the old repos +exports = module.exports = { + events: require('./src/events'), + superspawn: require('./src/superspawn'), + + ActionStack: require('./src/ActionStack'), + CordovaError: require('./src/CordovaError/CordovaError'), + CordovaExternalToolErrorContext: require('./src/CordovaError/CordovaExternalToolErrorContext'), + PlatformJson: require('./src/PlatformJson'), + ConfigParser: require('./src/ConfigParser/ConfigParser.js'), + + PluginInfo: require('./src/PluginInfo/PluginInfo.js'), + PluginInfoProvider: require('./src/PluginInfo/PluginInfoProvider.js'), + + ConfigChanges: require('./src/ConfigChanges/ConfigChanges.js'), + ConfigKeeper: require('./src/ConfigChanges/ConfigKeeper.js'), + ConfigFile: require('./src/ConfigChanges/ConfigFile.js'), + mungeUtil: require('./src/ConfigChanges/munge-util.js'), + + xmlHelpers: require('./src/util/xml-helpers') +}; http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/node_modules/.bin/semver ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/node_modules/.bin/semver b/bin/node_modules/cordova-common/node_modules/.bin/semver new file mode 100644 index 0000000..317eb29 --- /dev/null +++ b/bin/node_modules/cordova-common/node_modules/.bin/semver @@ -0,0 +1 @@ +../semver/bin/semver \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/node_modules/.bin/shjs ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/node_modules/.bin/shjs b/bin/node_modules/cordova-common/node_modules/.bin/shjs new file mode 100644 index 0000000..a044997 --- /dev/null +++ b/bin/node_modules/cordova-common/node_modules/.bin/shjs @@ -0,0 +1 @@ +../shelljs/bin/shjs \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/node_modules/bplist-parser/.npmignore ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/node_modules/bplist-parser/.npmignore b/bin/node_modules/cordova-common/node_modules/bplist-parser/.npmignore new file mode 100644 index 0000000..a9b46ea --- /dev/null +++ b/bin/node_modules/cordova-common/node_modules/bplist-parser/.npmignore @@ -0,0 +1,8 @@ +/build/* +node_modules +*.node +*.sh +*.swp +.lock* +npm-debug.log +.idea http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/26cca47e/bin/node_modules/cordova-common/node_modules/bplist-parser/README.md ---------------------------------------------------------------------- diff --git a/bin/node_modules/cordova-common/node_modules/bplist-parser/README.md b/bin/node_modules/cordova-common/node_modules/bplist-parser/README.md new file mode 100644 index 0000000..37e5e1c --- /dev/null +++ b/bin/node_modules/cordova-common/node_modules/bplist-parser/README.md @@ -0,0 +1,47 @@ +bplist-parser +============= + +Binary Mac OS X Plist (property list) parser. + +## Installation + +```bash +$ npm install bplist-parser +``` + +## Quick Examples + +```javascript +var bplist = require('bplist-parser'); + +bplist.parseFile('myPlist.bplist', function(err, obj) { + if (err) throw err; + + console.log(JSON.stringify(obj)); +}); +``` + +## License + +(The MIT License) + +Copyright (c) 2012 Near Infinity Corporation + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
