cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: [CB-2545] Deprecate "EnableLocation" Project Setting - use the "onload" attribute of the <plugin> element
Date Mon, 04 Mar 2013 21:12:15 GMT
Updated Branches:
  refs/heads/master c5bbcb89d -> 4dc06fd97


[CB-2545] Deprecate "EnableLocation" Project Setting - use the "onload" attribute of the <plugin>
element


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/4dc06fd9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/4dc06fd9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/4dc06fd9

Branch: refs/heads/master
Commit: 4dc06fd978af759b010f9744f03cca3eae43e295
Parents: c5bbcb8
Author: Shazron Abdullah <shazron@apache.org>
Authored: Mon Mar 4 13:12:08 2013 -0800
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Mon Mar 4 13:12:08 2013 -0800

----------------------------------------------------------------------
 CordovaLib/Classes/CDVViewController.m       |    1 +
 CordovaLibTests/CordovaLibApp/config.xml     |    2 +-
 bin/templates/project/__TESTING__/config.xml |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4dc06fd9/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m
index 63a4521..01ac317 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -280,6 +280,7 @@
      */
 
     if ([enableLocation boolValue]) {
+        NSLog(@"Deprecated: The 'EnableLocation' boolean property is deprecated in 2.5.0,
and will be removed in 3.0.0. Use the 'onload' boolean attribute (of the CDVLocation plugin.");
         [[self.commandDelegate getCommandInstance:@"Geolocation"] getLocation:[CDVInvokedUrlCommand
new]];
     }
 

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4dc06fd9/CordovaLibTests/CordovaLibApp/config.xml
----------------------------------------------------------------------
diff --git a/CordovaLibTests/CordovaLibApp/config.xml b/CordovaLibTests/CordovaLibApp/config.xml
index 512bd1f..af311b6 100644
--- a/CordovaLibTests/CordovaLibApp/config.xml
+++ b/CordovaLibTests/CordovaLibApp/config.xml
@@ -4,7 +4,7 @@
     <preference name="SuppressesIncrementalRendering" value="false" />
     <preference name="UIWebViewBounce" value="true" />
     <preference name="TopActivityIndicator" value="gray" />
-    <preference name="EnableLocation" value="false" />
+    <preference name="EnableLocation" value="false" /><!-- DEPRECATED -->
     <preference name="EnableViewportScale" value="false" />
     <preference name="AutoHideSplashScreen" value="true" />
     <preference name="ShowSplashScreenSpinner" value="true" />

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4dc06fd9/bin/templates/project/__TESTING__/config.xml
----------------------------------------------------------------------
diff --git a/bin/templates/project/__TESTING__/config.xml b/bin/templates/project/__TESTING__/config.xml
index 1555b5e..04260aa 100644
--- a/bin/templates/project/__TESTING__/config.xml
+++ b/bin/templates/project/__TESTING__/config.xml
@@ -23,7 +23,7 @@
     <preference name="AllowInlineMediaPlayback" value="false" />
     <preference name="AutoHideSplashScreen" value="true" />
     <preference name="BackupWebStorage" value="cloud" />
-    <preference name="EnableLocation" value="false" />
+    <preference name="EnableLocation" value="false" /><!-- DEPRECATED -->
     <preference name="EnableViewportScale" value="false" />
     <preference name="FadeSplashScreen" value="true" />
     <preference name="FadeSplashScreenDuration" value=".25" />


Mime
View raw message