cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hermw...@apache.org
Subject git commit: wrapped android permissions in <config-file>
Date Mon, 10 Jun 2013 23:38:47 GMT
Updated Branches:
  refs/heads/master efbacd5e3 -> 1d7c6a44a


wrapped android permissions in <config-file>


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/commit/1d7c6a44
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/1d7c6a44
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/1d7c6a44

Branch: refs/heads/master
Commit: 1d7c6a44aafa1b83617d84fa44bc581a76998bfc
Parents: efbacd5
Author: hermwong <herm.wong@gmail.com>
Authored: Mon Jun 10 16:34:39 2013 -0700
Committer: hermwong <herm.wong@gmail.com>
Committed: Mon Jun 10 16:34:39 2013 -0700

----------------------------------------------------------------------
 plugin.xml | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/1d7c6a44/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 97ee7db..612300f 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -22,28 +22,30 @@ id="org.apache.cordova.core.CompassListener"
     <!-- android -->
     <platform name="android">
         <config-file target="res/xml/config.xml" parent="/*">
-	    <feature name="Compass">
-	        <param name="android-package" value="org.apache.cordova.core.CompassListener"/>
-	    </feature>
-	</config-file>
+	        <feature name="Compass">
+	            <param name="android-package" value="org.apache.cordova.core.CompassListener"/>
+	        </feature>
+	    </config-file>
 	
-	<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
-    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
+	    <config-file target="AndroidManifest.xml" parent="/*">
+	        <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
+            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
+        </config-file>
 
-	<source-file src="src/android/CompassListener.java" target-dir="src/org/apache/cordova/core"
/>
+	    <source-file src="src/android/CompassListener.java" target-dir="src/org/apache/cordova/core"
/>
     </platform>
     
     <!-- ios -->
     <platform name="ios">
         
         <config-file target="config.xml" parent="/*">
-	    <feature name="Compass">
-	        <param name="ios-package" value="CDVCompass"/>
-	    </feature>
+	        <feature name="Compass">
+	            <param name="ios-package" value="CDVCompass"/>
+	        </feature>
         </config-file>
         
-	<header-file src="src/ios/CDVCompass.h" />
-	<source-file src="src/ios/CDVCompass.m" />
+	    <header-file src="src/ios/CDVCompass.h" />
+	    <source-file src="src/ios/CDVCompass.m" />
         
     </platform>
 


Mime
View raw message