Ian Clelland
233e513860
CB-3445: Ensure that JAR files in libs directory are included
2014-08-28 11:26:58 -04:00
Ian Clelland
7caa96abcd
Fix previous merges
...
Build scripts (create and build) were mangled somewhat by the previous
merge commits. This resets them to (almost) exactly the same state as
the 3.6.x (master) branch.
Conflicts:
bin/lib/create.js
2014-08-20 11:45:35 -04:00
Ian Clelland
b2776269cf
Merge branch 'master' into 4.0.x (Gradle library dependencies)
2014-08-20 11:43:58 -04:00
Ian Clelland
b6c5a5fc9a
CB-3445: Read project.properties to configure gradle libraries
2014-08-20 11:42:04 -04:00
Refael Ackermann
94943a9a84
CB-7325 Fix error message in android_sdk_version.js when missing SDK on windows
...
github: close #113
2014-08-20 11:20:02 -04:00
Andrew Grieve
4c1942e3fe
Merge branch 'master' into 4.0.x (build & create script updates)
...
Conflicts:
bin/lib/check_reqs.js
bin/lib/create.js
bin/node_modules/which/package.json
bin/templates/cordova/lib/build.js
2014-08-19 12:02:36 -04:00
Andrew Grieve
71e72f215d
CB-7335 Add a .gitignore to android project template
2014-08-19 11:59:18 -04:00
Andrew Grieve
58cdfd86d0
CB-7330 Fix dangling function call in last commit (broke gradle builds)
2014-08-19 11:53:53 -04:00
Andrew Grieve
dfa66b9dd4
CB-7330 Don't run "android update" during creation
...
Instead, have the build script copy do the equivalent logic on each
build.
Advantages:
- Scripts run much faster
- No more duplicate CordovaLib entries in project.properties
- Building is more independent from create/update script (more robust)
2014-08-18 23:24:29 -04:00
Andrew Grieve
d56ea25816
CB-3445 Add gradle support clean command (plus some code cleanup)
...
* Don't run ant clean for gradle ever
* Don't set sdk.dir since ANDROID_HOME is not always set
* Don't export builders
2014-08-18 16:19:40 -04:00
Andrew Grieve
c91b272648
CB-7044 Fix typo in prev commit causing check_reqs to always fail.
2014-08-18 15:26:52 -04:00
Andrew Grieve
ca8bb75b40
CB-3445 Copy gradle wrapper in build instead of create
...
This should play nicer with updates to the android SDK.
2014-08-18 14:51:40 -04:00
Andrew Grieve
36eab713a1
CB-3445 Add .gradle template files for "update" as well as "create"
2014-08-18 14:50:27 -04:00
Andrew Grieve
7133576fe9
CB-7044 Add JAVA_HOME when not set. Be stricter about ANDROID_HOME
...
Also switches to using the which module over shelljs.which (better
support for .bat files)
2014-08-18 14:45:23 -04:00
Andrew Grieve
effffcba1d
CB-3445 Speed up gradle building (incremental builds go from 10s -> 1.5s for me)
...
Biggest win is disabling the linter.
2014-08-18 14:17:34 -04:00
Ian Clelland
a91bd095b0
CB-3445: android: Copy Gradle wrapper from Android SDK rather than bundling a JAR
2014-08-18 09:48:31 -04:00
Ian Clelland
fd6a1e5ed0
CB-3445: Add which to checked-in node_modules
2014-08-18 09:48:31 -04:00
Ian Clelland
7d6ac87033
CB-3445: Add option to build and install with gradle
...
This gives build/cordova two new command-line arguments: --ant and
--gradle, and will select the build type from those. As a fallback
for the Cordova CLI, the environment variable ANDROID_BUILD can also be
used, set to either "ant" or "gradle".
The default is currently "ant", but it is intended for this to change in
the future.
2014-08-18 09:48:31 -04:00
Ian Clelland
8aa813b862
CB-3445: Add an initial set of Gradle build scripts
...
These scripts will build an android project, in debug and release mode.
They also support additional library projects, such as Crosswalk, being
added to libraries.gradle (and settings.gradle). A flag can be set in
libraries.gradle to enable multi-architecture builds.
2014-08-18 09:48:31 -04:00
Andrew Grieve
95aa5c9f1c
CB-7321 Don't require ant for create script
2014-08-15 13:58:53 -04:00
Andrew Grieve
4319447cb5
CB-7044, CB-7299 Fix up PATH problems when possible.
...
Uses heuristics:
- Adds javac to PATH based on default install paths on Windows
- Adds javac to PATH based on JAVA_HOME
- Adds android and adb to PATH based on ANDROID_HOME
- Sets ANDROID_HOME based on location of "android"
2014-08-15 13:46:20 -04:00
Andrew Grieve
e2b3f76a10
Merge branch 'master' into 4.0.x (PluginEntry refactor)
...
Conflicts:
framework/src/org/apache/cordova/PluginEntry.java
framework/src/org/apache/cordova/PluginManager.java
test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
2014-07-14 14:18:10 -04:00
Matt Ray
62101e85ff
Update to check for Google Glass APIs
...
This prevents the 'cordova build android' process from blowing up on this step if you assign the GDK as the target and want to rebuild via the CLI.
close #100
2014-07-14 10:30:23 -04:00
Eion Robb
0a3714e5e0
Fix for android
not being in PATH check on Windows
...
close #103
2014-07-14 10:28:27 -04:00
Ankit Jain
86a2830d75
Displaying error when regex does not match.
...
On my ubuntu when `android` is not found typical output is:
```
/bin/sh: 1: android: not found
```
close #104
2014-07-14 10:28:13 -04:00
Andrew Grieve
9c5e340fb8
Merge branch 'master' into 4.0.x (App plugin from config.xml -> code)
...
Conflicts:
bin/templates/cordova/defaults.xml
framework/res/xml/config.xml
framework/src/org/apache/cordova/CordovaWebView.java
2014-07-08 11:52:44 -04:00
Andrew Grieve
e86c2e5970
Move registration of App plugin from config.xml -> code
...
Less fragile this way.
2014-07-08 11:47:26 -04:00
Andrew Grieve
1571b26a65
Merge branch 'master' into 4.0.x (ConfigXmlParser + two-phase init)
...
Conflicts:
framework/src/org/apache/cordova/CordovaActivity.java
framework/src/org/apache/cordova/CordovaChromeClient.java
framework/src/org/apache/cordova/CordovaWebView.java
framework/src/org/apache/cordova/CordovaWebViewClient.java
framework/src/org/apache/cordova/PluginManager.java
2014-07-07 16:23:51 -04:00
Andrew Grieve
0f15608175
CB-4404 Revert setting android:windowSoftInputMode to "adjustPan"
...
"adjustResize" is what the value has been set to for the longest time (due to it
being in the wrong place in the manifest). "adjustResize" is a better default value anyways.
2014-07-07 13:07:51 -04:00
Andrew Grieve
705991e5b0
Refactor: Use ConfigXmlParser in activity. Adds CordovaWebView.init()
...
This does subtly change the API surface due to CordovaWebView.init(),
but only minimally, and is backwards compatibly with the default
generated projects from prior versions.
2014-07-04 16:32:09 -04:00
Andrew Grieve
4ce5123a12
Merge branch 'master' into 4.0.x (bindButton changes)
...
Conflicts:
framework/src/org/apache/cordova/CordovaWebView.java
package.json
2014-06-24 15:22:27 -04:00
Ian Clelland
4352456129
CB-5971: Fix package / project validation
2014-06-24 14:05:56 -04:00
Ian Clelland
bb141a70e8
CB-5971: Add unit tests to cordova-android
2014-06-24 14:05:56 -04:00
Ian Clelland
ff260c03ca
CB-5971: Factor out package/project name validation logic
2014-06-24 14:05:56 -04:00
Andrew Grieve
96a1192474
Merge branch 'master' into 4.0.x (back button default behaviour fix)
...
Conflicts:
framework/src/org/apache/cordova/CordovaChromeClient.java
framework/src/org/apache/cordova/CordovaWebView.java
2014-06-23 14:50:01 -04:00
Ian Clelland
0ffb5d253a
CB-3445: android: Copy Gradle wrapper from Android SDK rather than bundling a JAR
2014-06-19 16:12:40 -04:00
Andrew Grieve
693ec14df5
Rename App->CoreAndroid in defaults.xml (related to 635a6279a9
)
2014-06-17 20:55:55 -04:00
Ian Clelland
fa189b3234
CB-3445: Add an initial set of Gradle build scripts
...
These scripts will build an android project, in debug and release mode.
They also support additional library projects, such as Crosswalk, being
added to libraries.gradle (and settings.gradle). A flag can be set in
libraries.gradle to enable multi-architecture builds.
2014-06-17 17:36:26 -04:00
Joe Bowser
141bbfb051
CB-5971: This would have been a good first bug, too bad
2014-06-12 17:51:22 -07:00
Joe Bowser
663a919ed1
CB-4404: Changing where android:windowSoftInputMode is in the manifest so it works
2014-06-12 11:47:41 -07:00
Andrew Grieve
6abb9da88a
Merge branch 'master' into 4.0.x
...
Conflicts:
bin/templates/project/custom_rules.xml
framework/src/org/apache/cordova/CordovaWebView.java
test/src/org/apache/cordova/test/junit/MessageTest.java
2014-06-08 22:54:21 -04:00
Andrew Grieve
d5e8807756
Set version to 4.0.0-dev
2014-06-06 15:00:41 -04:00
Ian Clelland
7e9fdb3555
Remove Ant custom build directories
2014-06-05 13:11:14 -04:00
Marcel Kinard
32e07c22d0
CB-6876 Show the correct executable name
2014-06-04 19:23:43 -04:00
Marcel Kinard
d427c52aac
CB-6876 Fix the "print usage"
2014-06-04 19:12:55 -04:00
Andrew Grieve
743541218f
CB-6860 Add activity_name and launcher_name to AndroidManifest.xml & strings.xml
2014-06-03 16:08:35 -04:00
Andrew Grieve
94de0a7ce2
Add a comment to custom_rules.xml saying why we move AndroidManifest.xml
2014-06-03 15:29:06 -04:00
Michal Mocny
1641f09dc9
Revert "defaults.xml: Add AndroidLaunchMode preference"
...
This reverts commit 11fc6be328
.
2014-05-29 14:50:01 -04:00
Ian Clelland
22b1959333
Manually fix Android sdk location to support library projects without local.properties
2014-05-22 14:04:00 -04:00
Ian Clelland
97008305ff
Merge branch 'master' into pluggable_webview
...
Conflicts:
framework/src/org/apache/cordova/CordovaWebView.java
2014-05-15 15:59:11 -04:00
Joe Bowser
00caa1c0a0
Set VERSION to 3.6.0-dev (via coho)
2014-05-06 15:51:14 -07:00
Ningxin Hu
4a67dd2e28
Crosswalk runtime needs the two permissions to auto detect connection status.
...
See more details at: https://crosswalk-project.org/jira/browse/XWALK-1324
2014-04-29 22:50:11 -04:00
Ningxin Hu
e6adbb0e42
CB-6543 Fix cordova/run failure when no custom_rules.xml available
...
Github: Close #99
2014-04-28 22:50:22 -04:00
Fardjad Davari
11fc6be328
defaults.xml: Add AndroidLaunchMode preference
2014-04-25 00:27:33 +04:30
Michal Mocny
298cd9e065
Fix CB-6048: Set launchMode=singleTop so tapping app icon does not always restart app
2014-04-01 11:33:40 -04:00
Marcel Kinard
87285d94f7
CB-5908: add splascreen images to template
...
This will enable the default splashscreens to reside in the correct place
after creating a new project. Before only the default icons were present.
I copied these from cordova-app-hello-world.
2014-02-10 16:56:45 -05:00
Bas Bosman
438a8d8b75
CB-4984 Don't create on CordovaActivity name
2014-01-28 14:25:26 -08:00
Andrew Grieve
5b2a73e3eb
CB-5715 For CLI, hide assets/www and res/xml/config.xml by default
...
Add a helper file under assets to say how to re-show the hidden files.
Move the config.xml, www, merges entries to the root to be more discoverable.
2014-01-28 00:28:42 -05:00
Andrew Grieve
6f163a6ba5
CB-5793 ant builds: Rename AndroidManifest during -post-build to avoid Eclipse detecting ant-build/ as a project when importing
2014-01-25 21:58:28 -05:00
Andrew Grieve
cc94cc7d01
CB-5889 Make update script find project name instead of using "null" for CordovaLib
2014-01-24 10:40:40 -05:00
Andrew Grieve
94934ae2cf
CB-5889 Add a message in the update script about needing to import CordovaLib when using an IDE.
2014-01-24 10:29:04 -05:00
Joe Bowser
708c042b61
Set VERSION to 3.5.0-dev (via coho)
2014-01-22 16:30:02 -08:00
Andrew Grieve
600599f49e
Fix type "LANCH" -> "LAUNCH"
2014-01-22 14:53:40 -05:00
Andrew Grieve
1fe7bbbbc4
CB-5793 Make ant work-around work on windows.
2014-01-21 21:14:32 -05:00
Andrew Grieve
f83d7a7cd1
CB-5793 Add work-around for library references not working with custom output directory (ugh).
2014-01-21 15:09:15 -05:00
Andrew Grieve
7094047b3d
CB-5793 Forgot to update ant path for clean.
2014-01-20 10:26:53 -05:00
Andrew Grieve
11d3607688
CB-5793 Don't clean before build and change output directory to ant-build to avoid conflicts with Eclipse.
2014-01-19 23:09:00 -05:00
Andrew Grieve
fcae58d355
CB-4910 Fix CLI's eclipse project template not working on windows due to "*" in the virtual folder name.
2014-01-17 12:00:29 -05:00
Andrew Grieve
ef9ace9e65
CB-5803 Fix cordova/emulate on windows.
2014-01-16 13:19:39 -05:00
Andrew Grieve
22e4039133
CB-5801 Add spawn work-around on windows for it not being able to execute .cmd files
...
More info: https://github.com/joyent/node/issues/2318
2014-01-16 12:11:31 -05:00
Andrew Grieve
4971670e56
CB-5801 exec->spawn in build to make sure compile errors are shown.
2014-01-15 11:41:34 -05:00
Andrew Grieve
a643c3dba6
Remove package.json within bin/ since we never intend to ship bin/ as an npm module
2014-01-14 16:21:57 -05:00
Andrew Grieve
51abf5b0a6
CB-4910 Update CLI project template to point to config.xml at the root now that it's not in www/ by default.
2014-01-14 12:29:53 -05:00
Andrew Grieve
5e0479e414
CB-5715 Add Eclipse .project file to create template.
...
Adds resource filter to hide CordovaLib/, platform_www/, and cordova/.
Adds linked resources to root www/, merges/, config.xml
2014-01-02 16:40:48 -05:00
Andrew Grieve
942c77816d
CB-5447 Removed android:debuggable=“true” from project template.
2013-12-30 11:27:17 -05:00
Vyacheslav Shabelnik
8e260d5c40
CB-5714 Fix of android build when too big output stops build with error due to buffer overflow.
2013-12-30 11:06:37 -05:00
Justin Wark
be2f7d7a8a
Remove 2 X console.log from exec.js
...
With these console.log statements the output from commands such as 'list-devices' is very messy and hence difficult to parse the output programatically.
2013-12-23 08:54:46 -05:00
Michal Mocny
146e296826
CB-5047: Adding a defaults.xml template
...
This template will be consumed by the CLI, instead of the default
platform config.xml which is consumed by the bin/create workflow. We
remove the user app specific settings since those are to be edited in
the top level app config.xml by the user, and are injected by the CLI.
2013-12-05 14:33:21 -05:00
charles bourasseau
e646a0840d
Add missing semicolon
2013-12-05 12:41:28 -05:00
Josh Soref
74ea6bf00a
Spelling fixes
2013-12-05 12:20:58 -05:00
Joe Bowser
dbbe038939
Set VERSION to 3.4.0-dev (via coho)
2013-12-03 15:44:21 -08:00
Michal Mocny
3d4ccbec23
Moving the console.log out of run() method
...
Since cordova-cli calls the check_req library run() method, we do not
want to always console.log on success in there (not usually a useful side
effect).
2013-11-29 14:39:09 -05:00
Mark Koudritsky
2f66ec60db
CB-5422: Don't require JAVA_HOME to be defined
...
JAVA_HOME is not necessarily defined on Linux and Mac.
Print out the value of JAVA_HOME in the error message
in case "java -version" fails.
2013-11-29 14:31:48 -05:00
Joe Bowser
39fc45b8d8
CB-5255: Checking in the Google Check, TODO: Add Amazon FireOS check
2013-11-20 09:35:23 -08:00
Andrew Grieve
fd954adc81
CB-5232 Change create script to use Cordova as a library.
2013-11-15 13:17:56 -05:00
Steven Gill
763e34e861
CB-5349: fixed regression in update script
2013-11-11 16:32:34 -08:00
Joe Bowser
6856b02aa7
Set VERSION to 3.3.0-dev (via coho)
2013-11-06 15:06:19 -08:00
Braden Shepherdson
8783cf03b2
[CB-4996] Fix paths with spaces while launching on emulator and device
2013-11-06 10:37:59 -05:00
Marcel Kinard
4e1156e083
CB-5284 Fixing the version from coho
...
Fixing the hardcoded versions, it got auto-incremented by accident.
2013-11-05 14:43:01 -05:00
Joe Bowser
937056fcaf
Set VERSION to 2.10.0-dev (via coho)
2013-11-01 11:11:09 -07:00
Carlos Santana
41ed18684d
CB-5209 Win: Cannot build Android app if project path contains spaces
2013-10-29 16:29:19 -04:00
Joe Bowser
96d4a22215
CB-5209: Dirty, Dirty Fix for Building. This works, but needs to be prettier.
2013-10-29 14:27:46 -04:00
Braden Shepherdson
001570e941
Updating shelljs to 0.2.6. Copy now preserves mode bits.
2013-10-23 15:22:36 -04:00
Tim Kim
28c41294bb
CB-4872 - moved version script to promise model
2013-10-18 17:13:57 -07:00
Tim Kim
82898da507
CB-4872 - make sure to copy over version scripts to project
2013-10-18 17:13:57 -07:00
Tim Kim
eabcdbf129
[CB-4872] - added android version scripts
2013-10-18 17:13:57 -07:00
mbillau
5ab11edad2
CB-5117: Output confirmation message if check_reqs passes.
2013-10-18 14:22:27 -04:00
Braden Shepherdson
b57317bdc2
Refactoring Android project-level and platform scripts to use Q.js
...
This eliminates the use of shelljs.exec's sync mode, which is the source
of the filehandle leaks that can cause EMFILE on OSX, and are
CPU-intensive everywhere.
Tested locally, needs poking before it gets released.
2013-10-16 13:10:53 -04:00
Braden Shepherdson
1f49f29183
Updating to latest shelljs, old version doesn't preserve +x bits
2013-10-16 13:10:39 -04:00
Joe Bowser
b858a4a5d7
CB-4961: shell.js returns the full path on ls, rebuilding the full path isn't really needed
2013-09-30 16:01:42 -07:00
Joe Bowser
fe7b2a36ec
CB-4527: This was an easy fix, since the script deletes batch files
2013-09-24 10:52:41 -07:00
Andrew Grieve
2d88a726b7
[CB-4892] Fix create script only escaping the first space instead of all spaces.
2013-09-23 10:16:58 +02:00
Andrew Grieve
a51edd3579
Fix update script to clobber cordova.js file (missing -f)
2013-09-19 15:47:49 -04:00
Andrew Grieve
2c6285d4b3
Set VERSION to 3.2.0-dev (via coho)
2013-09-17 11:03:51 -04:00
Andrew Grieve
1d1cdb5ea4
Always have create script rebuild jar when on a dev version
2013-09-16 14:25:12 -04:00
Andrew Grieve
34bdef9c45
[CB-4817] Remove unused assets in project template.
2013-09-13 23:07:41 -04:00
Andrew Grieve
cad673f8cd
[CB-4817] Avoid generating unused files in create script
...
by using "android update project" instead of "android create project"
2013-09-13 22:49:15 -04:00
Andrew Grieve
7c446b222d
[CB-3542] Convert update script to be node-based.
2013-09-13 22:49:15 -04:00
Andrew Grieve
1bd0f8fcf4
[CB-3542] Delete old ant-based bin/create.xml file.
2013-09-13 22:49:14 -04:00
Andrew Grieve
dd3c261ba2
[CB-3542] Only update framework/ project when building the jar.
...
No need to do it during every check_reqs.
This also extracts the jar building into a helper function.
2013-09-13 22:49:14 -04:00
Andrew Grieve
70cc711ec1
[CB-3542] Delete custom replaceInFile with shelljs.sed().
2013-09-13 22:07:38 -04:00
Andrew Grieve
485f2ee923
[CB-3542] Fail create script if a copy fails.
2013-09-13 22:07:35 -04:00
Andrew Grieve
129be6e476
[CB-3542] Delete extra message when check_reqs fails.
...
check_reqs already outputs a message.
2013-09-13 22:07:31 -04:00
Andrew Grieve
c08b64efb3
[CB-3542] Fix create script's check for whether cordova.jar exists.
2013-09-13 22:07:23 -04:00
Andrew Grieve
f4a0f55b13
Fail fast in create script if package name is not com.foo.bar.
2013-09-13 16:08:45 -04:00
Joe Bowser
39d32bcb5b
CB-4620: Throwing this over the fence, since there is a problem actually in the wild here
2013-09-11 15:02:00 -07:00
Andrew Grieve
7be1f018aa
[CB-3542] Commit bin/node_modules so that it doesn't need to be npm installed.
2013-09-10 16:58:28 -04:00
Andrew Grieve
437daa368a
[CB-4782] Convert ApplicationInfo.java -> appinfo.js
2013-09-10 16:32:42 -04:00
Andrew Grieve
3df09eacf2
Remove out-of-date create script tests.
...
They have clearly not been run in a long time. We verify create script
output manually during releases, and I think that's more meaningful.
2013-09-10 15:25:01 -04:00
Andrew Grieve
483dd3435a
[CB-4769] Fix create script failure due to deleted version.js file
2013-09-10 09:21:57 -04:00
Andrew Grieve
1bfcc92677
Make version in version script easier to replace by coho
2013-09-09 15:37:00 -04:00
Joe Bowser
412d97fa0c
Incremeting version check for Android 4.3 API Level 18
2013-08-28 14:41:42 -07:00
Benn Mapes
57bed98cf1
Added commit 150cdfd
, override arg for project template
...
Conflicts:
bin/create
2013-08-28 14:04:43 -07:00
Benn Mapes
b1d8788506
Fix for cli with new node scripts
2013-08-27 11:41:54 -07:00
Benn Mapes
1bd4900981
[CB-3542] rewrote cli tooling scripts in node
2013-08-26 14:45:28 -07:00
Ian Clelland
150cdfd3ac
[CB-4652] Allow default project template to be overridden on create
2013-08-23 13:04:19 -04:00
Tomaz Muraus
121b74fa0c
[CB-4495] Modify start-emulator script to exit immediately on a fatal emulator error.
2013-08-15 11:46:50 -04:00
Ian Clelland
fa366eb7a8
[CB-4140] Fix master branch cordova version to 3.1.0-dev
2013-08-09 10:45:39 -04:00
Benn Mapes
53b8da8198
[CB-4466] fixed jscript check_reqs to get target from project.properties
2013-08-01 17:57:58 -07:00
Fil Maj
c2c5f71018
[CB-4463] Updated bin/check_reqs to looks for android-18 target.Also fixed an issue in unix version of script that would invoke the android
command if an error occurred.
2013-07-30 17:14:46 -07:00
Fil Maj
b4236b9783
[CB-4198] bin/create script should be better at handling non-word characters in activity name. Patched windows script as well.
2013-07-25 10:33:05 -07:00
Fil Maj
980c4699b0
[CB-4198] bin/create should handle spaces in activity better.
2013-07-24 21:21:41 -07:00
Fil Maj
01ad3f447a
[CB-3605] removing unused package.json
2013-07-12 10:27:27 -07:00
Ian Clelland
546948cb8c
[CB-4154] Set default Android target to android-17
...
This is done in the default project.properties file, as well as the create
script for new projects.
2013-07-11 22:26:15 -04:00
Ian Clelland
fff956304f
[CB-4140] Fix master branch cordova version to DEV
2013-07-11 14:11:37 -04:00
bennmapes
bf6291020a
Added 'log' back to windows cli tooling
2013-07-03 10:52:13 -07:00
Andrew Grieve
a97487bcec
[CB-4048] Merge branch '3.0.0' into master
2013-06-28 11:59:54 -04:00
Joe Bowser
fbf7f1c3f9
Fixes to the update command so it doesn't delete anything other than build artifacts
2013-06-27 12:59:49 -07:00
Fil Maj
6fe66ad79c
Accidentally commented "build" out when running ./run --emulator. Whoops D:
2013-06-21 14:23:40 -07:00
Benn Mapes
4ec3d6d064
[CB-3625] [CB-3338] updated windows cli scripts and added version option
2013-06-18 14:56:11 -07:00
Fil Maj
5ee178789f
Axed all permissions from template manifest except for INTERNET. Bumped minSDkVersion to 10.
2013-06-17 11:23:17 -07:00
Fil Maj
0efd9fcac0
[CB-3627] start-emulator now properly starts, waits for and unlocks an emulator, consumed by run as well.
2013-06-14 17:22:57 -07:00
Fil Maj
32d74f8623
correct refs to various lib scripts in run.
2013-06-14 14:48:23 -07:00
Fil Maj
53cc381c76
removing unused script anymore from create.
2013-06-14 14:44:26 -07:00
Fil Maj
add107583f
Proper modularization of bash scripts for [CB-3627], but not solved yet. wait_for_emulator does not work atm
2013-06-13 16:46:21 -07:00
Fil Maj
e86d811fc0
[CB-3626] fix to start-emulator: if no id is provided, should start the first emulator
2013-06-13 12:44:43 -07:00
Braden Shepherdson
e518eacbde
Replace naive relative path in version script with proper one
2013-06-06 12:00:33 -04:00
Joe Bowser
0dd4951be7
Forgot to update this so that it doesn't destroy someone's project, FAIL
2013-06-04 14:28:16 -07:00
Andrew Grieve
0e572aea36
[CB-3340] Add copying of the version script to bin/create
2013-05-29 10:23:00 -04:00
Andrew Grieve
420cee4ee6
[CB-3468] Add missing license headers found by RAT
2013-05-28 16:43:38 -04:00
David Kemp
78efe2a960
CB-3358: Change Commons-codec:base64 to Android:Base64
2013-05-27 22:25:23 -04:00
David Kemp
ee58107caa
CB-3480: update now uses cordova.js not cordova-<ver>.js
2013-05-23 12:20:15 -04:00
macdonst
230c635a54
[CB-3392] Fix a problem with the Windows jscript runtime
...
The problem is with this line in "create.js":
var ACTIVITY_PATH=PROJECT_PATH+'\\src\\'+PACKAGE_AS_PATH+'\\'+ACTIVITY+'.java';
[...]
exec('%comspec% /c copy "'+ROOT+'"\\bin\\templates\\project\\Activity.java '+ ACTIVITY_PATH +' /Y');
The Windows "copy" command will not create directories that don't exist, so the command above fails because "src\PACKAGE_AS_PATH" doesn't exist. This can be fixed with:
Also update cordova.js reference
2013-05-14 19:19:10 -04:00
Tim Kim
3917284f71
[CB-3340] - version script
2013-05-13 15:30:16 -07:00
Michal Mocny
8bfd45c095
[CB-3307] Fixing bin/create script due to cordova-$VERSION.js -> cordova.js change.
2013-05-13 10:30:02 -04:00
Andrew Grieve
8a95ed8ee6
[CB-3307] Rename cordova-VERSION.js -> cordova.js
2013-05-08 09:52:56 -04:00
ucavus
d226818be3
[CB-3304] Windows create script - Parameters should be quoted
...
Choking on spaces in filenames
2013-05-03 11:12:47 -04:00
Joe Bowser
a03df3fad0
Merge branch 'cordova-lib' of git://github.com/bennmapes/cordova-android
2013-04-19 12:59:05 -07:00
Benn Mapes
86cd20dcc3
[CB-2788] added bash check-reqs script
2013-04-19 11:39:48 -07:00
Joe Bowser
5d8d8e77f8
Merge branch 'cordova-lib' of git://github.com/bennmapes/cordova-android into scripts
2013-04-18 16:35:35 -07:00
Benn Mapes
4dee30ed84
[CB-2914] Cli script migration for unix bash
2013-04-18 16:34:52 -07:00
Benn Mapes
4599e9897d
[CB-2914] Cli script migration for windows jscript
2013-04-16 15:51:06 -07:00
lorinbeer
383b3dadd5
[CB-3024] expanded help string for cl create script
2013-04-12 08:32:22 -07:00
Joe Bowser
b42c918973
Prep for 2.6.0 final
2013-04-01 14:54:51 -07:00
Joe Bowser
f12262ea96
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cordova-android
2013-03-28 10:02:46 -07:00
James Jong
36c33a5889
CB-1944: Better error messages for Create script
...
- fixed to detect missing packages individually
- added a specific message for each missing package
- messages include how to correct and package download link
2013-03-27 15:46:45 -04:00
Joe Bowser
31bc015cdd
Pre-2.6 prep
2013-03-21 10:35:09 -07:00
Dave E
ee38b2ef03
Use pushd/popd instead of subshell
...
Improves the error message that happens when ant is not installed.
2013-03-14 12:31:56 -04:00
Joe Bowser
42c8105f13
CB-2623: Updated windows script, now it works here too for once
2013-03-05 16:13:43 -08:00
Joe Bowser
9a71cc5b4e
CB-2623: Added partial work on update script
2013-03-05 14:36:52 -08:00
Joe Bowser
c543b7469d
CB-2623 Adding update script to Android
2013-03-05 11:30:38 -08:00
Joe Bowser
fb1455a17b
Preparing to tag 2.5.0
2013-02-26 13:49:47 -08:00
Joe Bowser
5cd17730b1
Tagging 2.5.0rc1. Updating files
2013-02-19 11:53:36 -08:00
patrick kettner
2683803ef3
Add check for build targets in create script
...
I installed the android sdk via homebrew, which does not install any build targets by default.
That resulted in the create throwing the following somewhat cryptic error.
An unexpected error occurred: "$ANDROID_BIN" create project --target $TARGET --path "$PROJECT_PATH" --package $PACKAGE --activity $ACTIVITY >&/dev/null exited with 1
This just adds a check that the variables that are set to the values of the build targets are properly set, and exit if they are not.
2013-02-12 11:07:51 -05:00
Joe Bowser
db099e7722
Preparing for 2.4.0
2013-02-04 11:12:52 -08:00
Anis Kadri
77f9cae50b
CB-1961 update to create script for android/windows
2013-01-30 14:57:49 -08:00
Andrew Grieve
d29eb84010
Tagging 2.4.0rc2
2013-01-30 09:51:40 -05:00
Fil Maj
09035eb4c4
Setting template AndroidManifest values for version to 1.0 and code to 1.
2013-01-23 12:13:07 -08:00
Joe Bowser
dbfe12a993
Partial fix for CB-2269, we probably shoudln't call Config.init twice
2013-01-18 16:41:10 -08:00
Joe Bowser
679de40780
2.4.0rc1 updating
2013-01-18 15:33:38 -08:00
Fil Maj
b870214cca
Fixes CB-2204: if bin/create fails, exit with code 1
2013-01-11 10:24:03 -08:00
Braden Shepherdson
55074b925f
Added a comment to explain where the start page is getting set.
2013-01-11 10:24:03 -08:00
Braden Shepherdson
958424ce59
Add configurable start location to config.xml and template
...
Still possible to hardcode, there's a comment in the template showing
how that can be done.
2013-01-11 10:24:02 -08:00
Braden Shepherdson
d04fc289ac
Move config.xml parsing into its own Config class
...
Now the parsing happens very early in the bootstrap process, before
loadUrl() is called. This enables a future change to put the start page
in config.xml instead of hardcoding it.
2013-01-11 10:24:02 -08:00
Joe Bowser
7c069f14f8
Incrementing version to 2.3.0 final
2013-01-02 17:07:21 -08:00
Joe Bowser
6efeb1471c
Incremeting version to 2.3.0rc2
2012-12-10 14:26:38 -08:00
Brian M Dube
c0ee593c10
[CB-1959] Display usage and exit when no arguments given
2012-12-02 21:21:24 -05:00
Simon MacDonald
7b3724972b
Tagging to 2.3.0rc1
2012-11-26 16:09:52 -05:00
Anis Kadri
2ee4326a4d
updating create command
2012-11-22 22:23:51 -05:00
Anis Kadri
226e72ac18
adding release command
2012-11-22 22:23:51 -05:00
Anis Kadri
65c78b8f3f
removing ApplicationInfo.class
2012-11-22 22:23:51 -05:00
Anis Kadri
6137c7ca06
removing appinfo.jar
2012-11-22 22:23:51 -05:00
Anis Kadri
68161d2714
refactoring windows scripts
2012-11-22 22:23:51 -05:00
Anis Kadri
a6473cb826
adding install function
2012-11-22 22:23:51 -05:00
Anis Kadri
0084c6f96a
refactoring android commands
2012-11-22 22:23:51 -05:00
Anis Kadri
81f283e56f
CB-1794 fixing cordova commands for paths with spaces in them
2012-11-07 13:22:14 -08:00
Anis Kadri
ccdd2fd2ca
CB-1809 create
script should print out meaningful error messages
2012-11-05 17:51:32 -08:00
Joe Bowser
e55327b064
Tagging the 2.2.0 release after this commit
2012-10-31 10:57:57 -07:00
Joe Bowser
bef0d47924
Starting incrementing the tag to RC2
2012-10-24 12:06:00 -07:00
Joe Bowser
d3ee322d7c
Updating Hello World
2012-10-15 14:19:46 -07:00
Joe Bowser
08dfb13dbf
Updating Android to 2.2.0rc1
2012-10-15 13:52:19 -07:00
alunny
4e0c8982c9
get commons-codec from apache archive, not osuosl
...
prevents the issue where, when a new release of commons-codec comes out,
`bin/create` stops working
2012-10-08 15:12:13 -07:00
Anis Kadri
17a4b5155e
CB-1359 set target SDK to the highest available
2012-09-28 18:18:11 -07:00
Anis Kadri
d406e2ed22
merging conflict with create script
2012-09-28 17:43:26 -07:00
Anis Kadri
0bfc9935b2
CB-1359 simplifying API_LEVEL command
2012-09-28 17:41:12 -07:00
Joshua Granick
1bf12842ca
Allow for predefined ANDROID_BIN value, fix for paths with spaces
2012-09-27 14:05:01 -04:00
Anis Kadri
8eab8438cf
CB-1468 fixing paths with spaces
2012-09-26 16:22:35 -07:00
Anis Kadri
79682f5d52
updating windows create script test
2012-09-20 16:17:59 -07:00
Anis Kadri
f71e664952
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-09-18 14:45:20 -07:00
Anis Kadri
80d559f17e
removing verbosity
2012-09-18 14:45:04 -07:00
Anis Kadri
45d7c124c8
fixing windows appinfo.jar
2012-09-18 14:11:22 -07:00
Simon MacDonald
451688a12e
CB-1126: Splashscreen
2012-09-18 11:49:11 -04:00
Simon MacDonald
37b3e980dc
CB-1362: We should add android:hardwareAccelerated=true to the template manifest.xml
2012-09-17 22:09:51 -04:00
Josh Soref
ca583865ea
Spelling: substituted
2012-09-17 22:09:51 -04:00
Josh Soref
ac4fc3e54e
Spelling: occurred
2012-09-17 22:09:51 -04:00
Josh Soref
1bc49fe450
Spelling: explicitly
2012-09-17 22:09:51 -04:00
Josh Soref
2ecbde891a
Spelling: conjunction
2012-09-17 22:09:51 -04:00
Anis Kadri
d859bb8e67
adding windows createAppInfoJar
2012-09-17 17:14:25 -07:00
Fil Maj
b723beb545
[CB-1484] License headers audit
2012-09-17 14:19:02 -07:00
Joe Bowser
47daaaf14f
Fixing up the commons-codec issue - CB-1483
2012-09-17 13:26:23 -07:00
Joe Bowser
9ba5bae34d
Updating commons-codec
2012-09-17 09:44:47 -07:00
Philipp Klose
dbfa2d7994
Change bin/create to use bash as shell
...
Fixes script on older Ubuntu versions.
2012-09-17 11:09:53 -04:00
Joe Bowser
8134f86d1f
Fixing CB-1467
2012-09-14 11:42:16 -07:00
Joe Bowser
5c60b09bf4
Updating the manifest so that it is correct
2012-09-13 11:46:31 -07:00
Joe Bowser
20a19d67d0
Put this on the wrong branch
2012-09-13 11:44:09 -07:00
Simon MacDonald
59a3cf93e6
Tagging 2.1.0
2012-09-12 11:44:53 -04:00
Simon MacDonald
dc40d8afac
CB-1335: Update www/ Application
2012-09-03 13:42:15 -04:00
Simon MacDonald
774d21747a
Tagging 2.1.0rc2
2012-08-31 16:44:53 -04:00
macdonst
f111c245c1
Tagging 2.1.0rc1
2012-08-24 16:44:18 -04:00
Anis Kadri
c3502da4a0
arg forgot dest file
2012-08-24 13:40:23 -07:00
Anis Kadri
4a0605e09b
CB-1235 Fixing Android create script on Windows
2012-08-24 12:14:58 -07:00
macdonst
a219feaa60
Downgrade min sdk version of sample app
2012-08-13 13:30:27 -04:00
Anis Kadri
9ef487a7a5
fixing replace for mountain lion
2012-07-28 08:13:31 -07:00
Anis Kadri
563fa46ba4
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-07-27 18:30:59 -07:00
Anis Kadri
7865c06863
CB-1148 fix for directories with spaces
2012-07-27 18:30:39 -07:00
Joe Bowser
f2afa4dd50
Tweaking the Android Manfest to cope with new target changes: CB-1147
2012-07-27 13:31:25 -07:00
Joe Bowser
b9b2c6a013
Updating sample project
2012-07-23 10:43:23 -07:00
Joe Bowser
93ec092eaf
Forgot to add the example app. Works with the script
2012-07-20 09:57:26 -07:00
Joe Bowser
29ae492983
Upping the version to 2.0.0
2012-07-18 16:58:03 -07:00
Joe Bowser
9d5fb0b201
Tagging 2.0.0rc1
2012-07-13 15:46:09 -07:00
Anis Kadri
0ccd11e587
CB-1031 android create script fails
2012-07-11 14:00:42 -07:00
macdonst
2a8b9ab75e
Tagging to 1.9.0
2012-06-29 15:55:03 -04:00
Anis Kadri
e069bbb800
CB-937 fixing debug for windows
2012-06-28 17:11:21 -07:00
Anis Kadri
17ff6be6a9
CB-937 fixing debug
2012-06-28 17:08:32 -07:00
Anis Kadri
d42489c67a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-28 16:47:18 -07:00
Anis Kadri
98138a0a60
log was actually doing nothing...fixing it
2012-06-27 17:55:35 -07:00
Anis Kadri
e639b6303e
updating create script to work from distro and source
2012-06-27 17:54:57 -07:00
Anis Kadri
99fb3ebe00
creating project without source
2012-06-26 17:34:19 -07:00
Anis Kadri
4699ab5500
forgot to add +x on BOOM
2012-06-25 15:03:19 -07:00
Anis Kadri
69fc7f39b7
setting +x on script files
2012-06-25 14:59:35 -07:00
Anis Kadri
510a962a52
deleting old BOOM
2012-06-25 14:56:09 -07:00
Anis Kadri
570fc3cfb2
removing echoes
2012-06-25 14:46:10 -07:00
Anis Kadri
b9f9429542
windows build/debug/launch scripts
2012-06-21 21:15:53 -07:00
Anis Kadri
6f8e13297e
fixing create
2012-06-20 19:08:18 -07:00
Anis Kadri
e9a9144098
adding windows scripts
2012-06-20 19:07:41 -07:00
Anis Kadri
be83095edf
updating windows create.js and creating node test
2012-06-19 20:21:45 -04:00
Joe Bowser
67d46432ed
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
2012-06-18 16:01:19 -07:00
Joe Bowser
adf4166caa
Incrementing version to 1.9.0rc1 and doing some variable cleanup
2012-06-18 16:00:42 -07:00
Anis Kadri
e6d801a594
adding appinfo
2012-06-15 18:38:46 -07:00
Anis Kadri
0aec2be4dd
updating bash create script and node test
2012-06-15 18:36:06 -07:00
Anis Kadri
c86b618aaa
adding bash helper scripts
2012-06-15 18:35:34 -07:00
Anis Kadri
0a4d218010
updating test for CB-916
2012-06-13 15:52:26 -07:00
Anis Kadri
24944cff22
deleting old stuff
2012-06-13 15:42:31 -07:00
Anis Kadri
41ddcf2218
updated reference in test
2012-06-08 18:35:25 -07:00
Anis Kadri
cbe1216bc2
checking if project exits
2012-06-08 18:04:08 -07:00
Anis Kadri
2402541974
adding tools verification to batch file
2012-06-08 17:43:10 -07:00
Anis Kadri
8b1fb30f59
fixing create script
2012-06-08 17:42:53 -07:00
Anis Kadri
bf6864bce0
updating cordova.js version
2012-06-08 17:42:06 -07:00
Anis Kadri
55b1e40885
renaming create2
2012-06-08 10:36:10 -07:00
Anis Kadri
71972dcaab
updating templates reference
2012-06-07 20:11:28 -07:00
Anis Kadri
3fd158ad6e
renaming create2 and templates2
2012-06-07 20:10:14 -07:00
Anis Kadri
447af8da6a
removing old create and templates
2012-06-07 20:08:22 -07:00
Anis Kadri
e8b80e8752
updating Windows !@#% build script
2012-06-07 19:56:08 -07:00
Anis Kadri
30a1164f6a
Merge branch 'master' of https://github.com/imhotep/incubator-cordova-android into build
2012-06-07 18:18:16 -07:00
Joe Bowser
58c3f9a187
Updating the JS and the version for tagging
2012-06-06 10:45:44 -04:00
Anis Kadri
825b9eafc2
testing create2 script
2012-06-04 17:59:42 -07:00
Anis Kadri
d6d2749411
updating script to cleanup on exit/error
2012-05-31 12:23:56 -07:00
Anis Kadri
509588b130
adding a new create script
2012-05-30 19:59:20 -07:00
Joe Bowser
7d0cc5837d
Auto detect whether we have the jar already. Also, just create the directory whether it exists or not
2012-05-29 14:34:14 -07:00
Steven Gill
b77f1cbff8
updated create script CB 839
2012-05-30 00:11:11 +10:00
macdonst
d7b79f5042
Upping version to 1.8.0rc1
2012-05-24 21:39:45 -04:00
macdonst
fae0c3dcfd
Fix problem in Android template example getPicture
2012-05-22 14:48:02 -04:00
Fil Maj
0850229c9f
[CB-804] ADded proper cordova icon sizes for the create script
2012-05-17 11:14:23 -07:00
filmaj
1f45503e2f
[CB-659] create script for android on windows now works fully. also pulls down commons-codec jar appropriately
2012-05-17 10:59:38 -07:00
filmaj
7eb3e5d139
[CB-659] create script should work on android
2012-05-16 19:38:11 -07:00
Joe Bowser
c6349668dd
Tweaked create so it fetches the commons-codec using curl
2012-05-11 16:07:43 -07:00
Fil Maj
b84d64912b
comeat me lawyers
2012-05-07 16:08:28 -07:00
Joe Bowser
7de660808c
Accidentally committed a vim swp file
2012-05-07 14:36:13 -07:00
Joe Bowser
1fcaf2435f
Adding more Apache licence headers
2012-05-07 14:27:33 -07:00
Fil Maj
3636a18bba
added package.json for npm install goodness
2012-05-07 12:29:44 -07:00
Fil Maj
ea8d6b17ec
dont check in node_modules peepz!
2012-05-07 12:29:08 -07:00
Joe Bowser
a087116915
Working towards Apache compliance
2012-05-07 10:56:37 -07:00
Joe Bowser
216f6a9b32
Adding more Apache Headers. Not sure if this should have headers or not
2012-05-04 16:47:37 -07:00
Joe Bowser
634a9c0f4c
Updating the version to 1.7.0
2012-04-30 13:42:38 -07:00
Joe Bowser
39f261c6e2
Incrementing project to 1.7.0rc1
2012-04-25 11:49:55 -04:00
Fil Maj
3835144b93
[CB-473] run ant clean before ant debug install
2012-04-19 17:25:19 -07:00
Joe Bowser
0772a315c4
CB-489 - Adding .js to the example, thought it was removed for a reason
2012-04-13 13:08:13 -07:00
macdonst
08d7a9c87a
Remove duplicate files from repository
...
We should only have these files in one place in the repo. Changes have been made to the scripts to pick up the xml files from their proper location.
2012-04-13 15:35:49 -04:00
Joe Bowser
eb48055acd
Getting setup to tag 1.6.1
2012-04-12 16:37:27 -07:00
Joe Bowser
e4a52de0a5
Copying new XML into the templates for 1.6.1. Turns out tags are broken
2012-04-12 14:33:29 -07:00