incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [65/78] [abbrv] [partial] added platform specs and basic work
Date Fri, 27 Jul 2012 00:29:16 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/blackberry/www/ext-air/Cordova_Network/library.xml
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/blackberry/www/ext-air/Cordova_Network/library.xml b/lib/cordova-1.9.0/lib/blackberry/www/ext-air/Cordova_Network/library.xml
deleted file mode 100755
index c1835b4..0000000
--- a/lib/cordova-1.9.0/lib/blackberry/www/ext-air/Cordova_Network/library.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- 
-       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.
--->
-<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-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/blackberry/www/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/blackberry/www/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
b/lib/cordova-1.9.0/lib/blackberry/www/ext-air/Cordova_Network/src/org/apache/cordova/network/Network.as
deleted file mode 100755
index cd8be87..0000000
--- a/lib/cordova-1.9.0/lib/blackberry/www/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-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/blackberry/www/ext/cordova.1.9.0.jar
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/blackberry/www/ext/cordova.1.9.0.jar b/lib/cordova-1.9.0/lib/blackberry/www/ext/cordova.1.9.0.jar
deleted file mode 100755
index a0691ee..0000000
Binary files a/lib/cordova-1.9.0/lib/blackberry/www/ext/cordova.1.9.0.jar and /dev/null differ


Mime
View raw message