You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2013/05/31 00:44:04 UTC

[3/3] git commit: added configuration for iOS files & JS files

added configuration for iOS files & JS files


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/a4aa44de
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/a4aa44de
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/a4aa44de

Branch: refs/heads/master
Commit: a4aa44de9d465f1a4dfdaaae2be19014b3498d51
Parents: 8a595eb
Author: hermwong <he...@gmail.com>
Authored: Thu May 30 15:43:46 2013 -0700
Committer: hermwong <he...@gmail.com>
Committed: Thu May 30 15:43:46 2013 -0700

----------------------------------------------------------------------
 plugin.xml |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/a4aa44de/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 76e1b11..bc5abbd 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,10 +2,18 @@
 
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
 xmlns:android="http://schemas.android.com/apk/res/android"
-id="org.apache.cordova.core">
+id="org.apache.cordova.core.Globalization"
     version="0.1.0">
     <name>Globalization</name>
 
+    <js-module src="www/GlobalizationError.js" name="GlobalizationError">
+        <clobbers target="window.GlobalizationError" />
+    </js-module>
+    
+    <js-module src="www/globalization.js" name="globalization">
+        <clobbers target="navigator.globalization" />
+    </js-module>
+    
     <!-- android -->
     <platform name="android">
         <config-file target="res/xml/config.xml" parent="/cordova/plugins">
@@ -15,4 +23,16 @@ id="org.apache.cordova.core">
         <source-file src="Globalization.java" target-dir="org/apache/cordova/core" />
         <source-file src="GlobalizationError.java" target-dir="org/apache/cordova/core" />
        </platform>
+       
+       <!-- ios -->
+       <platform name="ios">    
+           <config-file target="config.xml" parent="/*">
+               <feature name="Globalization">
+                   <param name="ios-package" value="CDVGlobalization" /> 
+               </feature>
+           </config-file>
+           <header-file src="src/ios/CDVGlobalization.h" />
+           <source-file src="src/ios/CDVGlobalization.m" />
+       </platform>
+              
 </plugin>