cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [3/3] git commit: added ubuntu support
Date Tue, 03 Dec 2013 00:27:43 GMT
added ubuntu support


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/50218b43
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/50218b43
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/50218b43

Branch: refs/heads/dev
Commit: 50218b43e26f6dc783a0a6c0956a39ee4c2c68df
Parents: bfe7ab7 9bc7912
Author: Steven Gill <stevengill97@gmail.com>
Authored: Mon Dec 2 16:27:38 2013 -0800
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Mon Dec 2 16:27:38 2013 -0800

----------------------------------------------------------------------
 plugin.xml                         | 11 ++++++
 src/ubuntu/network_information.cpp | 63 +++++++++++++++++++++++++++++++++
 src/ubuntu/network_information.h   | 47 ++++++++++++++++++++++++
 3 files changed, 121 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/50218b43/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index 55c4225,d8a360c..c5a79f5
--- a/plugin.xml
+++ b/plugin.xml
@@@ -49,23 -44,17 +49,34 @@@ xmlns:android="http://schemas.android.c
          
      </platform>
  
 +    <!-- amazon-fireos -->
 +    <platform name="amazon-fireos">
 +        <config-file target="res/xml/config.xml" parent="/*">
 +            <feature name="NetworkStatus">
 +                <param name="android-package" value="org.apache.cordova.networkinformation.NetworkManager"/>
 +            </feature>   
 +        </config-file>
 +        
 +        <config-file target="AndroidManifest.xml" parent="/*">
 +            <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 +        </config-file>
 +
 +        <source-file src="src/android/NetworkManager.java" target-dir="src/org/apache/cordova/networkinformation"
/>
 +        
 +    </platform>
 +
 +
+     <!-- ubuntu -->
+     <platform name="ubuntu">
+         <config-file target="config.xml" parent="/*">
+             <feature name="Camera">
+                 <param policy_group="connectivity" policy_version="1" />
+             </feature>
+         </config-file>
+         <header-file src="src/ubuntu/network_information.h" />
+         <source-file src="src/ubuntu/network_information.cpp" />
+     </platform>
+ 
      <!-- ios -->
      <platform name="ios">    
          <config-file target="config.xml" parent="/*">


Mime
View raw message