You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/12/05 01:58:58 UTC

[5/6] git commit: added ubuntu support

added ubuntu support


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/6a93d87a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/6a93d87a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/6a93d87a

Branch: refs/heads/master
Commit: 6a93d87a8d8553de9f0c8b8405eb00ae4bf4c10f
Parents: 356324b b098906
Author: Steven Gill <st...@gmail.com>
Authored: Mon Dec 2 16:20:12 2013 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Dec 2 16:20:12 2013 -0800

----------------------------------------------------------------------
 plugin.xml                   |  10 ++
 src/ubuntu/globalization.cpp | 342 ++++++++++++++++++++++++++++++++++++++
 src/ubuntu/globalization.h   |  93 +++++++++++
 www/ubuntu/globalization.js  | 166 ++++++++++++++++++
 4 files changed, 611 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/6a93d87a/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index 2713b43,891d86a..afe5b47
--- a/plugin.xml
+++ b/plugin.xml
@@@ -29,19 -29,17 +29,29 @@@
          <source-file src="src/android/Globalization.java" target-dir="src/org/apache/cordova/globalization" />
          <source-file src="src/android/GlobalizationError.java" target-dir="src/org/apache/cordova/globalization" />
      </platform>
 +       
 +    <!-- amazon-fireos -->
 +    <platform name="amazon-fireos">
 +        <config-file target="res/xml/config.xml" parent="/*">
 +            <feature name="Globalization">
 +                <param name="android-package" value="org.apache.cordova.globalization.Globalization" />
 +            </feature>
 +        </config-file>
  
 +        <source-file src="src/android/Globalization.java" target-dir="src/org/apache/cordova/globalization" />
 +        <source-file src="src/android/GlobalizationError.java" target-dir="src/org/apache/cordova/globalization" />
 +    </platform>
 +    
+    <!-- ubuntu -->
+    <platform name="ubuntu">
+        <header-file src="src/ubuntu/globalization.h" />
+        <source-file src="src/ubuntu/globalization.cpp" />
+ 
+        <js-module src="www/ubuntu/globalization.js" name="Globalization1">
+            <merges target="navigator.globalization" />
+        </js-module>
+    </platform>
+ 
     <!-- ios -->
     <platform name="ios">    
          <config-file target="config.xml" parent="/*">