diff --git a/README.md b/README.md
index a785943b..0b145518 100755
--- a/README.md
+++ b/README.md
@@ -14,7 +14,6 @@ Requires
- Java JDK 1.5 or greater
- Apache ANT 1.8.0 or greater
- Android SDK [http://developer.android.com](http://developer.android.com)
-- Apache Commons Codec [http://commons.apache.org/codec/](http://commons.apache.org/codec/)
Cordova Android Developer Tools
@@ -83,11 +82,7 @@ Note: The Developer Tools handle this. This is only to be done if the tooling f
you are developing directly against the framework.
-To create your `cordova.jar` file, copy the commons codec:
-
- mv commons-codec-1.7.jar framework/libs
-
-then run in the framework directory:
+To create your `cordova.jar` file, run in the framework directory:
android update project -p . -t android-17
ant jar
diff --git a/bin/create b/bin/create
index 39aff6b8..71f98bc6 100755
--- a/bin/create
+++ b/bin/create
@@ -99,16 +99,6 @@ then
# update the cordova-android framework for the desired target
"$ANDROID_BIN" update project --target $TARGET --path "$BUILD_PATH"/framework &> /dev/null
- if [ ! -e "$BUILD_PATH"/framework/libs/commons-codec-1.7.jar ]; then
- # Use curl to get the jar (TODO: Support Apache Mirrors)
- curl -OL http://archive.apache.org/dist/commons/codec/binaries/commons-codec-1.7-bin.zip &> /dev/null
- unzip commons-codec-1.7-bin.zip &> /dev/null
- mkdir -p "$BUILD_PATH"/framework/libs
- cp commons-codec-1.7/commons-codec-1.7.jar "$BUILD_PATH"/framework/libs
- # cleanup yo
- rm commons-codec-1.7-bin.zip && rm -rf commons-codec-1.7
- fi
-
# compile cordova.js and cordova.jar
pushd "$BUILD_PATH"/framework > /dev/null
ant jar > /dev/null
diff --git a/bin/create.js b/bin/create.js
index b1de5fe1..07c2e569 100644
--- a/bin/create.js
+++ b/bin/create.js
@@ -120,46 +120,6 @@ function cleanup() {
}
}
-function downloadCommonsCodec() {
- if (!fso.FileExists(ROOT + '\\framework\\libs\\commons-codec-1.7.jar')) {
- // We need the .jar
- var url = 'http://archive.apache.org/dist/commons/codec/binaries/commons-codec-1.7-bin.zip';
- var libsPath = ROOT + '\\framework\\libs';
- var savePath = libsPath + '\\commons-codec-1.7-bin.zip';
- if (!fso.FileExists(savePath)) {
- if(!fso.FolderExists(ROOT + '\\framework\\libs')) {
- fso.CreateFolder(libsPath);
- }
- // We need the zip to get the jar
- var xhr = WScript.CreateObject('MSXML2.XMLHTTP');
- xhr.open('GET', url, false);
- xhr.send();
- if (xhr.status == 200) {
- var stream = WScript.CreateObject('ADODB.Stream');
- stream.Open();
- stream.Type = 1;
- stream.Write(xhr.ResponseBody);
- stream.Position = 0;
- stream.SaveToFile(savePath);
- stream.Close();
- } else {
- Log('Could not retrieve the commons-codec. Please download it yourself and put into the framework/libs directory. This process may fail now. Sorry.');
- }
- }
- var app = WScript.CreateObject('Shell.Application');
- var source = app.NameSpace(savePath).Items();
- var target = app.NameSpace(ROOT + '\\framework\\libs');
- target.CopyHere(source, 256);
-
- // Move the jar into libs
- fso.MoveFile(ROOT + '\\framework\\libs\\commons-codec-1.7\\commons-codec-1.7.jar', ROOT + '\\framework\\libs\\commons-codec-1.7.jar');
-
- // Clean up
- fso.DeleteFile(ROOT + '\\framework\\libs\\commons-codec-1.7-bin.zip');
- fso.DeleteFolder(ROOT + '\\framework\\libs\\commons-codec-1.7', true);
- }
-}
-
// working dir
var ROOT = WScript.ScriptFullName.split('\\bin\\create.js').join('');
if (args.Count() > 0) {
@@ -206,8 +166,6 @@ if (!fso.FileExists(ROOT+'\\cordova-'+VERSION+'.jar') &&
Log("Building jar and js files...");
// update the cordova framework project to a target that exists on this machine
exec('android.bat update project --target "'+TARGET+'" --path "'+ROOT+'\\framework"');
- // pull down commons codec if necessary
- downloadCommonsCodec();
exec('ant.bat -f "'+ ROOT +'\\framework\\build.xml" jar');
}
diff --git a/bin/update b/bin/update
index 9a968b1b..2e716a7d 100755
--- a/bin/update
+++ b/bin/update
@@ -105,16 +105,6 @@ then
# update the cordova-android framework for the desired target
"$ANDROID_BIN" update project --target $TARGET --path "$BUILD_PATH"/framework &> /dev/null
- if [ ! -e "$BUILD_PATH"/framework/libs/commons-codec-1.7.jar ]; then
- # Use curl to get the jar (TODO: Support Apache Mirrors)
- curl -OL http://archive.apache.org/dist/commons/codec/binaries/commons-codec-1.7-bin.zip &> /dev/null
- unzip commons-codec-1.7-bin.zip &> /dev/null
- mkdir -p "$BUILD_PATH"/framework/libs
- cp commons-codec-1.7/commons-codec-1.7.jar "$BUILD_PATH"/framework/libs
- # cleanup yo
- rm commons-codec-1.7-bin.zip && rm -rf commons-codec-1.7
- fi
-
# compile cordova.js and cordova.jar
(cd "$BUILD_PATH"/framework && ant jar &> /dev/null )
fi
diff --git a/bin/update.js b/bin/update.js
index 748d6026..8396d6fe 100644
--- a/bin/update.js
+++ b/bin/update.js
@@ -96,46 +96,6 @@ function cleanup() {
}
}
-function downloadCommonsCodec() {
- if (!fso.FileExists(ROOT + '\\framework\\libs\\commons-codec-1.7.jar')) {
- // We need the .jar
- var url = 'http://archive.apache.org/dist/commons/codec/binaries/commons-codec-1.7-bin.zip';
- var libsPath = ROOT + '\\framework\\libs';
- var savePath = libsPath + '\\commons-codec-1.7-bin.zip';
- if (!fso.FileExists(savePath)) {
- if(!fso.FolderExists(ROOT + '\\framework\\libs')) {
- fso.CreateFolder(libsPath);
- }
- // We need the zip to get the jar
- var xhr = WScript.CreateObject('MSXML2.XMLHTTP');
- xhr.open('GET', url, false);
- xhr.send();
- if (xhr.status == 200) {
- var stream = WScript.CreateObject('ADODB.Stream');
- stream.Open();
- stream.Type = 1;
- stream.Write(xhr.ResponseBody);
- stream.Position = 0;
- stream.SaveToFile(savePath);
- stream.Close();
- } else {
- WScript.Echo('Could not retrieve the commons-codec. Please download it yourself and put into the framework/libs directory. This process may fail now. Sorry.');
- }
- }
- var app = WScript.CreateObject('Shell.Application');
- var source = app.NameSpace(savePath).Items();
- var target = app.NameSpace(ROOT + '\\framework\\libs');
- target.CopyHere(source, 256);
-
- // Move the jar into libs
- fso.MoveFile(ROOT + '\\framework\\libs\\commons-codec-1.7\\commons-codec-1.7.jar', ROOT + '\\framework\\libs\\commons-codec-1.7.jar');
-
- // Clean up
- fso.DeleteFile(ROOT + '\\framework\\libs\\commons-codec-1.7-bin.zip');
- fso.DeleteFolder(ROOT + '\\framework\\libs\\commons-codec-1.7', true);
- }
-}
-
var args = WScript.Arguments, PROJECT_PATH="example",
shell=WScript.CreateObject("WScript.Shell");
@@ -161,8 +121,6 @@ if (!fso.FileExists(ROOT+'\\cordova-'+VERSION+'.jar') &&
WScript.Echo("Building jar and js files...");
// update the cordova framework project to a target that exists on this machine
exec('android.bat update project --target '+TARGET+' --path '+ROOT+'\\framework');
- // pull down commons codec if necessary
- downloadCommonsCodec();
exec('ant.bat -f \"'+ ROOT +'\\framework\\build.xml\" jar');
}
diff --git a/framework/build.xml b/framework/build.xml
index 989dbb2f..46242aa1 100644
--- a/framework/build.xml
+++ b/framework/build.xml
@@ -31,22 +31,6 @@
-
-
-
-
-
-
-
-
-
-
-