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