You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by gt...@apache.org on 2013/03/11 16:11:05 UTC
[27/50] [abbrv] git commit: The `cordova` build target can be removed.
The `cordova` build target can be removed.
This is because it was a proof of concept, is not primarily used, and is
also not kept up to date.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/552b8180
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/552b8180
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/552b8180
Branch: refs/heads/master
Commit: 552b8180d1753fa2cb6481f35d69f8f2b37a4f14
Parents: f3a9728
Author: Brent Lintner <br...@gmail.com>
Authored: Thu Dec 13 16:20:58 2012 -0500
Committer: Brent Lintner <br...@gmail.com>
Committed: Wed Feb 6 16:46:27 2013 -0500
----------------------------------------------------------------------
build/build.js | 7 +-
build/targets/cordova.js | 68 -
targets/cordova/blackberry.xml | 316 -
targets/cordova/build.xml | 115 -
targets/cordova/lib/ant-contrib/LICENSE.txt | 47 -
.../cordova/lib/ant-contrib/ant-contrib-1.0b3.jar | Bin 224277 -> 0 bytes
.../ext-air/Cordova_Network/library.xml | 22 -
.../src/org/apache/cordova/network/Network.as | 80 -
.../lib/cordova.1.5.0/ext/cordova.1.5.0.jar | Bin 161885 -> 0 bytes
.../lib/cordova.1.5.0/javascript/cordova-1.5.0.js | 5479 ---------------
.../javascript/playbook/cordova-1.5.0.js | 4260 -----------
targets/cordova/playbook.xml | 240 -
targets/cordova/project.properties | 96 -
targets/cordova/www/config.xml | 32 -
targets/cordova/www/cordova-1.5.0.js | 4260 -----------
.../www/ext-air/Cordova_Network/library.xml | 22 -
.../src/org/apache/cordova/network/Network.as | 80 -
targets/cordova/www/ext/cordova.1.5.0.jar | Bin 161885 -> 0 bytes
targets/cordova/www/playbook/cordova-1.5.0.js | 4260 -----------
targets/cordova/www/plugins.xml | 15 -
20 files changed, 1 insertions(+), 19398 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/build/build.js
----------------------------------------------------------------------
diff --git a/build/build.js b/build/build.js
index 91d6d90..19789cc 100644
--- a/build/build.js
+++ b/build/build.js
@@ -22,7 +22,6 @@ var fs = require('fs'),
compress = require('./compress'),
chromeExt = require('./targets/chrome.extension'),
rimChromeExt = require('./targets/rim.chrome.extension'),
- cordova = require('./targets/cordova'),
hosted = require('./targets/hosted'),
web = require('./targets/web');
@@ -64,9 +63,6 @@ module.exports = _handle(function (ext, opts) {
case 'rim.chrome.extension':
build.andThen(rimChromeExt);
break;
- case 'cordova':
- build.andThen(cordova);
- break;
case 'hosted':
build.andThen(hosted);
break;
@@ -74,8 +70,7 @@ module.exports = _handle(function (ext, opts) {
build.andThen(chromeExt)
.andThen(rimChromeExt)
.andThen(web)
- .andThen(hosted)
- .andThen(cordova);
+ .andThen(hosted);
}
if (opts.compress) {
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/build/targets/cordova.js
----------------------------------------------------------------------
diff --git a/build/targets/cordova.js b/build/targets/cordova.js
deleted file mode 100644
index 82aa9d8..0000000
--- a/build/targets/cordova.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright 2011 Research In Motion Limited.
- *
- * Licensed 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.
- */
-var childProcess = require('child_process'),
- fs = require('fs'),
- _c = require('./../conf');
-
-function create(path) {
- return function (prev, baton) {
- baton.take();
- var cmd = 'mkdir ' + _c.DEPLOY + path;
- childProcess.exec(cmd, baton.pass);
- };
-}
-
-function copy(from, to) {
- return function (prev, baton) {
- baton.take();
- var cmd = 'cp -r ' + from + ' ' + _c.DEPLOY + to;
- childProcess.exec(cmd, baton.pass);
- };
-}
-
-function write(src) {
- return function () {
- var css = _c.ASSETS + "client/ripple.css",
- cssDeploy = _c.DEPLOY + "cordova/www/ripple.css",
- index = _c.DEPLOY + "cordova/www/index.html",
- js = _c.DEPLOY + "cordova/www/ripple.js",
- doc = src.html.replace(/#URL_PREFIX#/g, "")
- .replace(/#OVERLAY_VIEWS#/g, src.overlays)
- .replace(/#DIALOG_VIEWS#/g, src.dialogs)
- .replace(/#PANEL_VIEWS#/g, src.panels);
-
- fs.writeFileSync(cssDeploy, fs.readFileSync(css, "utf-8") + src.skins);
-
- fs.writeFileSync(index, doc);
- fs.writeFileSync(js, src.js +
- "ripple('ui').register('omnibar');" +
- "ripple('bootstrap').bootstrap();");
- };
-}
-
-module.exports = function (src, baton) {
- var jWorkflow = require("jWorkflow");
- baton.take();
-
- jWorkflow.order(create('cordova'))
- .andThen(create('cordova/www'))
- .andThen(copy(_c.EXT + "cordova", ""))
- .andThen(create('cordova/www/assets'))
- .andThen(copy(_c.ASSETS + "client/*", "cordova/www/assets"))
- .andThen(copy(_c.PACKAGE_JSON, "cordova/www"))
- .andThen(write(src))
- .start(baton.pass);
-};
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/targets/cordova/blackberry.xml
----------------------------------------------------------------------
diff --git a/targets/cordova/blackberry.xml b/targets/cordova/blackberry.xml
deleted file mode 100644
index 018b378..0000000
--- a/targets/cordova/blackberry.xml
+++ /dev/null
@@ -1,316 +0,0 @@
-<project default="help">
-
- <!-- LOAD PROPERTIES -->
-
- <property prefix="properties" file="project.properties" />
- <property name="build.dir" location="build" />
- <property name="widget.dir" location="${build.dir}/widget" />
- <property name="code.sign" value="false" />
- <property name="generate.ext" value="cod" />
-
- <!-- BlackBerry WebWorks Packager directory is required. -->
- <fail unless="properties.blackberry.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'blackberry.bbwp.dir' in your 'project.properties' file." />
-
- <!-- OS identification -->
- <condition property="isMacOSX" else="false">
- <and>
- <os family="mac" />
- <os family="unix" />
- </and>
- </condition>
-
- <condition property="javaloader" value="${properties.blackberry.bbwp.dir}/bin/javaloader" else="${properties.blackberry.bbwp.dir}/bin/JavaLoader.exe">
- <equals arg1="${isMacOSX}" arg2="true" />
- </condition>
-
- <condition property="bbwp" value="${properties.blackberry.bbwp.dir}/bbwp" else="${properties.blackberry.bbwp.dir}/bbwp.exe">
- <equals arg1="${isMacOSX}" arg2="true" />
- </condition>
-
-
- <!-- LOAD DEVICE -->
-
- <target name="load-device" depends="package-app">
- <bbwp code-sign="true" />
- <exec executable="${javaloader}" dir="." failonerror="true">
- <arg value="-u" />
- <arg value="-w${properties.blackberry.sim.password}" />
- <arg value="load" />
- <arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
- </exec>
- </target>
-
- <!-- LOAD SIMULATOR -->
-
- <target name="load-simulator" depends="build">
-
- <!-- Find the simulator directory -->
- <set-simulator-dir />
-
- <!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
- <path id="bbwp.sim.path">
- <first>
- <fileset dir="${properties.blackberry.bbwp.dir}/simpack">
- <include name="**/handhelds.manifest.txt" />
- </fileset>
- </first>
- </path>
- <dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
-
- <!-- Simulator directory: Use sim.dir property if set in project.properties file.
- Otherwise, use bbwp simulator directory. -->
- <condition
- property="simulator.dir"
- value="${properties.blackberry.sim.dir}"
- else="${bbwp.sim.dir}">
- <available file="${properties.blackberry.sim.dir}" type="dir" />
- </condition>
- <echo message="Simulator directory=${simulator.dir}" />
-
- <!-- Simulator binary: Use sim.bin property if set in project.properties file
- or try setting to 'defaultSimulator.bat' in simulator directory. -->
- <condition
- property="sim.bin"
- value="${properties.blackberry.sim.bin}"
- else="defaultSimulator.bat">
- <available file="${simulator.dir}/${properties.blackberry.sim.bin}"/>
- </condition>
-
- <!-- If simulator executable does not exist, use the first device listed
- in the 'handhelds.manifest.txt' file in the simulator directory. -->
- <loadfile
- property="device.list"
- srcFile="${simulator.dir}/handhelds.manifest.txt">
- <filterchain>
- <tokenFilter>
- <stringtokenizer/>
- </tokenFilter>
- </filterchain>
- </loadfile>
-
- <propertyregex property="device"
- input="${device.list}"
- regexp="^\d{4}"
- select="\0"
- override="true" />
- <property name="device.bin" value="${device}.bat" />
-
- <condition
- property="simulator.bin"
- value="${sim.bin}"
- else="${device.bin}">
- <available file="${simulator.dir}/${sim.bin}" />
- </condition>
-
- <echo message="Simulator executable=${simulator.dir}/${simulator.bin}" />
-
- <!-- Close running simulators -->
- <echo message="Closing all running simulators..." />
- <exec executable="${simulator.dir}/fledgecontroller.exe" dir="${simulator.dir}" spawn="false">
- <arg value="/execute=kill" />
- </exec>
-
- <!-- MDS directory: Use mds.dir property if set in project.properties file.
- Otherwise, use bbwp MDS directory. -->
- <condition
- property="mds.dir"
- value="${properties.blackberry.mds.dir}"
- else="${properties.blackberry.bbwp.dir}/mds">
- <available file="${properties.blackberry.mds.dir}" type="dir" />
- </condition>
- <echo message="MDS directory=${mds.dir}" />
-
- <copy todir="${simulator.dir}">
- <fileset dir="${build.dir}/StandardInstall" includes="*.cod, *.cso, *.csl, *.alx" />
- </copy>
- <exec executable="${mds.dir}/run.bat" dir="${mds.dir}" spawn="true" />
- <exec executable="${simulator.dir}/${simulator.bin}" dir="${simulator.dir}" spawn="true" />
-
- <!-- Only invoke FledgeHook.exe if it is found. Newer versions of the
- WebWorks SDK do not include it. -->
- <if>
- <available file="${properties.blackberry.bbwp.dir}/FledgeHook.exe" />
- <then>
- <exec executable="${properties.blackberry.bbwp.dir}/FledgeHook.exe" dir="${properties.blackberry.bbwp.dir}" spawn="true" />
- </then>
- </if>
- </target>
-
- <!-- PACKAGE-APP -->
-
- <target name="package-app" depends="generate-cod-name, clean">
- <!-- Copy the WebWorks application -->
- <mkdir dir="${widget.dir}" />
- <copy todir="${widget.dir}" overwrite="true">
- <fileset dir="www" excludes="ext-air/**,playbook/**"/>
- </copy>
-
- <!-- Package the WebWorks app by zipping the widget dir. -->
- <mkdir dir="${build.dir}" />
- <zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
- </target>
-
- <!-- BUILD -->
-
- <target name="build" depends="package-app">
- <bbwp code-sign="${code.sign}" />
- </target>
-
- <!-- BBWP MACRO -->
-
- <macrodef name="bbwp">
- <attribute name="code-sign" default="false" />
- <sequential>
-
- <!-- Ensure bbwp executable exists. -->
- <property name="properties.blackberry.bbwp.bin" location="${bbwp}" />
- <available file="${properties.blackberry.bbwp.bin}" property="properties.blackberry.bbwp.exists" />
- <fail unless="properties.blackberry.bbwp.exists" message="Cannot find ${properties.blackberry.bbwp.bin}. Please edit 'blackberry.bbwp.dir' in your 'project.properties' file." />
-
- <if>
- <equals arg1="@{code-sign}" arg2="true" />
- <then>
- <exec executable="${properties.blackberry.bbwp.bin}">
- <arg file="${build.dir}/${cod.name}.zip" />
- <arg value="/g" />
- <arg value="${properties.blackberry.sigtool.password}" />
- <arg value="/o" />
- <arg file="${build.dir}" />
- </exec>
- </then>
- <else>
- <exec executable="${properties.blackberry.bbwp.bin}">
- <arg file="${build.dir}/${cod.name}.zip" />
- <arg value="/o" />
- <arg file="${build.dir}" />
- </exec>
- </else>
- </if>
- </sequential>
- </macrodef>
-
- <!-- CLEAN -->
-
- <target name="clean">
- <delete dir="${build.dir}" />
- <delete dir="${widget.dir}" />
- </target>
-
- <!-- CLEAN DEVICE -->
-
- <target name="clean-device" depends="generate-cod-name">
- <exec executable="${javaloader}">
- <arg value="-usb" />
- <arg value="erase" />
- <arg value="-f" />
- <arg value="${cod.name}.cod" />
- </exec>
- </target>
-
- <!-- CLEAN SIMULATOR -->
-
- <target name="clean-simulator">
- <!-- Find the simulator directory -->
- <set-simulator-dir />
-
- <exec executable="${simulator.dir}/clean.bat" dir="${simulator.dir}" />
-
- <delete>
- <fileset dir="${simulator.dir}" includes="*.cod,*.csl,*.cso,*.debug,*.jar" />
- </delete>
- </target>
-
- <!-- HELPER TASKS -->
-
- <target name="generate-cod-name">
- <xmlproperty file="www/config.xml" prefix="config.xml" />
- <propertyregex property="cod.name"
- input="${config.xml.widget.name}"
- regexp="(\W+)"
- replace=""
- casesensitive="false"
- global="true"
- defaultValue="${config.xml.widget.name}" />
- <echo message="Generated name: ${cod.name}.cod" />
- </target>
-
- <!-- MACRO: SET SIMULATOR DIRECTORY -->
-
- <macrodef name="set-simulator-dir">
- <sequential>
- <!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
- <path id="bbwp.sim.path">
- <first>
- <fileset dir="${properties.blackberry.bbwp.dir}/simpack">
- <include name="**/handhelds.manifest.txt" />
- </fileset>
- </first>
- </path>
- <dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
-
- <!-- Simulator directory: Use sim.dir property if set in project.properties file.
- Otherwise, use bbwp simulator directory. -->
- <condition
- property="simulator.dir"
- value="${properties.blackberry.sim.dir}"
- else="${bbwp.sim.dir}">
- <available file="${properties.blackberry.sim.dir}" type="dir" />
- </condition>
- <echo message="Simulator directory=${simulator.dir}" />
- </sequential>
- </macrodef>
-
- <!-- HELP -->
-
- <target name="help">
- <echo>
-NAME
- ${ant.project.name}
-
-SYNOPSIS
- ant TARGET COMMAND [-D<argument>=<value>]...
-
-DESCRIPTION
- You can build and deploy your project to a device or simulator.
-
-TARGETS
- blackberry ........ Builds a cod file and deploys to a device or simulator
-
- playbook .......... Builds a bar file and deploys to a device or simulator
-
-COMMANDS
- help .............. Show this help menu.
- ant, ant help
-
- load-device ....... Builds and deploys project to a connected USB device.
- ant load-device
-
- load-simulator .... Builds and deploys project to default simulator.
- ant load-simulator
-
- build ............. Compiles and packages the project for deployment.
- ant build
-
- clean ............. Remove all files from the build/ directory.
- ant clean
-
- clean-device ...... Remove this project from the connected USB device.
- ant clean-device
-
- clean-simulator ... Remove this project from the simulator (takes a while).
- ant clean-simulator
-
-GETTING STARTED
- 1. Edit project.properties
-
- 2. <ant load-simulator> to run the project on the simulator
-
- 3. Customize your project by editing www/config.xml
-
- 4. To run the project on a BlackBerry device, you will need to obtain
- code signing keys from RIM. Once you have the key, a project is
- installed by connecting a BlackBerry via USB and running
- <ant load-device>.
- </echo>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/targets/cordova/build.xml
----------------------------------------------------------------------
diff --git a/targets/cordova/build.xml b/targets/cordova/build.xml
deleted file mode 100644
index 537ff13..0000000
--- a/targets/cordova/build.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<project name="Build and Deploy a Cordova BlackBerry WebWorks Project" default="help">
-
- <!-- LOAD ANT-CONTRIB LIBRARY -->
-
- <taskdef resource="net/sf/antcontrib/antcontrib.properties">
- <classpath>
- <pathelement location="./lib/ant-contrib/ant-contrib-1.0b3.jar" />
- </classpath>
- </taskdef>
-
- <!-- LOAD PROPERTIES -->
-
- <property prefix="properties" file="project.properties" />
- <property name="build.dir" location="build" />
- <property name="widget.dir" location="${build.dir}/widget" />
- <property name="code.sign" value="false" />
-
- <target name="blackberry" >
- <property name="subant.file" value="blackberry.xml" />
- </target>
-
- <target name="playbook" >
- <property name="subant.file" value="playbook.xml" />
- </target>
-
- <target name="load-device">
- <subant target="load-device">
- <fileset dir="." includes="${subant.file}"/>
- </subant>
- </target>
-
- <target name="load-simulator">
- <subant target="load-simulator">
- <fileset dir="." includes="${subant.file}"/>
- </subant>
- </target>
-
- <target name="build">
- <subant target="build">
- <fileset dir="." includes="${subant.file}"/>
- </subant>
- </target>
-
- <target name="clean">
- <subant target="clean">
- <fileset dir="." includes="${subant.file}"/>
- </subant>
- </target>
-
- <target name="clean-device">
- <subant target="clean-device">
- <fileset dir="." includes="${subant.file}"/>
- </subant>
- </target>
-
- <target name="clean-simulator">
- <subant target="clean-simulator">
- <fileset dir="." includes="${subant.file}"/>
- </subant>
- </target>
-
- <!-- HELP -->
-
- <target name="help">
- <echo>
-NAME
- ${ant.project.name}
-
-SYNOPSIS
- ant TARGET COMMAND [-D<argument>=<value>]...
-
-DESCRIPTION
- You can build and deploy your project to a device or simulator.
-
-TARGETS
- blackberry ........ Builds a cod file and deploys to a device or simulator
-
- playbook .......... Builds a bar file and deploys to a device or simulator
-
-COMMANDS
- help .............. Show this help menu.
- ant, ant help
-
- load-device ....... Builds and deploys project to a connected USB device.
- ant load-device
-
- load-simulator .... Builds and deploys project to default simulator.
- ant load-simulator
-
- build ............. Compiles and packages the project for deployment.
- ant build
-
- clean ............. Remove all files from the build/ directory.
- ant clean
-
- clean-device ...... Remove this project from the connected USB device.
- ant clean-device
-
- clean-simulator ... Remove this project from the simulator (takes a while).
- ant clean-simulator
-
-GETTING STARTED
- 1. Edit project.properties
-
- 2. <ant load-simulator> to run the project on the simulator
-
- 3. Customize your project by editing www/config.xml
-
- 4. To run the project on a BlackBerry device, you will need to obtain
- code signing keys from RIM. Once you have the key, a project is
- installed by connecting a BlackBerry via USB and running
- <ant load-device>.
- </echo>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/targets/cordova/lib/ant-contrib/LICENSE.txt
----------------------------------------------------------------------
diff --git a/targets/cordova/lib/ant-contrib/LICENSE.txt b/targets/cordova/lib/ant-contrib/LICENSE.txt
deleted file mode 100644
index 4d8c2fb..0000000
--- a/targets/cordova/lib/ant-contrib/LICENSE.txt
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2001-2003 Ant-Contrib project. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Ant-Contrib project (http://sourceforge.net/projects/ant-contrib)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The name Ant-Contrib must not be used to endorse or promote products
- * derived from this software without prior written permission. For
- * written permission, please contact
- * ant-contrib-developers@lists.sourceforge.net.
- *
- * 5. Products derived from this software may not be called "Ant-Contrib"
- * nor may "Ant-Contrib" appear in their names without prior written
- * permission of the Ant-Contrib project.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE ANT-CONTRIB PROJECT OR ITS
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- */
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/targets/cordova/lib/ant-contrib/ant-contrib-1.0b3.jar
----------------------------------------------------------------------
diff --git a/targets/cordova/lib/ant-contrib/ant-contrib-1.0b3.jar b/targets/cordova/lib/ant-contrib/ant-contrib-1.0b3.jar
deleted file mode 100644
index 0625376..0000000
Binary files a/targets/cordova/lib/ant-contrib/ant-contrib-1.0b3.jar and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/targets/cordova/lib/cordova.1.5.0/ext-air/Cordova_Network/library.xml
----------------------------------------------------------------------
diff --git a/targets/cordova/lib/cordova.1.5.0/ext-air/Cordova_Network/library.xml b/targets/cordova/lib/cordova.1.5.0/ext-air/Cordova_Network/library.xml
deleted file mode 100644
index 870fd58..0000000
--- a/targets/cordova/lib/cordova.1.5.0/ext-air/Cordova_Network/library.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<library isWhitelist="true">
- <extension>
- <entryClass>org.apache.cordova.network.Network</entryClass>
- </extension>
-
- <platforms>
- <platform value="AIR">
- <target version="default" config="AIR_XHR" />
- </platform>
- </platforms>
-
- <configurations>
- <configuration name="AIR_XHR" version="1.0" comment="For XHR architecture for Java implementation">
- <src type="text/actionscript" path="src" comment="ActionScript implementation" />
- </configuration>
- </configurations>
-
- <features>
- <feature id="org.apache.cordova" version="1.0.0" />
- </features>
-</library>
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/targets/cordova/lib/cordova.1.5.0/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
----------------------------------------------------------------------
diff --git a/targets/cordova/lib/cordova.1.5.0/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as b/targets/cordova/lib/cordova.1.5.0/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
deleted file mode 100644
index cd8be87..0000000
--- a/targets/cordova/lib/cordova.1.5.0/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * 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.
- *
- * Copyright (c) 2011, Research In Motion Limited.
- */
-
-
-package org.apache.cordova.network {
- import flash.net.NetworkInfo;
- import flash.net.NetworkInterface;
- import flash.events.Event;
-
- import webworks.extension.DefaultExtension;
-
- public class Network extends DefaultExtension{
-
- private var _jsFunctionCallbackIDs:Array = [];
- private const FEATURE_ID:Array = [ "org.apache.cordova" ];
-
- public function Network() {
- //Attach event listener once only
- NetworkInfo.networkInfo.addEventListener(flash.events.Event.NETWORK_CHANGE, networkChange);
- }
-
- override public function getFeatureList():Array {
- return FEATURE_ID;
- }
-
- public function getConnectionInfo(param:String):void{
- if(_jsFunctionCallbackIDs.indexOf(param) < 0){
- _jsFunctionCallbackIDs.push(param);
- }
- }
-
- private function networkChange( event: Event ) : void {
-
- /**
- * Right now, we only care if there is a connection or not, since PlayBook only has WiFi
- * At the JS layer, we will map this from offline/online.
- * At some point in the future where there are more connection types on PlayBook,
- * we will want to attempt to map this to the real Cordova connection types...
- */
-
- var haveCoverage : Boolean = false;
- var networkStatus : String = "offline";
- var connectionType = "none";
-
- NetworkInfo.networkInfo.findInterfaces().some(
- function callback(item:NetworkInterface, index:int, vector:Vector.<NetworkInterface>):Boolean {
- this.webView.executeJavaScript("alert('Network Interface ' + item.name)");
- haveCoverage = item.active || haveCoverage;
- return haveCoverage;
- }, this);
-
- if (haveCoverage) {
- networkStatus = "online";
- connectionType = "wifi";
- }
-
- for (var i:Number=0; i<_jsFunctionCallbackIDs.length ; i++){
- evalJavaScriptEvent(_jsFunctionCallbackIDs[i], [{"type" : connectionType, "event" : networkStatus }] );
- }
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/552b8180/targets/cordova/lib/cordova.1.5.0/ext/cordova.1.5.0.jar
----------------------------------------------------------------------
diff --git a/targets/cordova/lib/cordova.1.5.0/ext/cordova.1.5.0.jar b/targets/cordova/lib/cordova.1.5.0/ext/cordova.1.5.0.jar
deleted file mode 100644
index 9e4ada7..0000000
Binary files a/targets/cordova/lib/cordova.1.5.0/ext/cordova.1.5.0.jar and /dev/null differ