You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/04/23 21:29:44 UTC

[2/3] ios commit: Fixed CB-494 - Move Cordova.plist section from "How to use Cordova as a Component Guide" to its own doc

Fixed CB-494 - Move Cordova.plist section from "How to use Cordova as a Component Guide" to its own doc


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

Branch: refs/heads/master
Commit: 9833c1f200806debf11535ea9986b7a12fb9ee09
Parents: 7f3805d
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon Apr 23 12:29:19 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Apr 23 12:29:19 2012 -0700

----------------------------------------------------------------------
 guides/Cordova Settings File.md             |   25 +++++++++++++++++++
 guides/How to Use Cordova as a Component.md |   28 +---------------------
 2 files changed, 26 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/9833c1f2/guides/Cordova Settings File.md
----------------------------------------------------------------------
diff --git a/guides/Cordova Settings File.md b/guides/Cordova Settings File.md
new file mode 100644
index 0000000..216dd2f
--- /dev/null
+++ b/guides/Cordova Settings File.md	
@@ -0,0 +1,25 @@
+# Cordova Settings File #
+
+The **Cordova.plist settings file** controls various settings of Cordova. This is application wide, and not set per CDVViewController instance. 
+
+1. A list of **Plugins** allowed to be used in a CDVViewController (set in the Plugins dictionary - key is the servicename used in JavaScript, and the value is the Objective-C class for the plugin that is a CDVPlugin sub-class)
+2. A **white-list** of hosts (with no scheme) that Cordova is allowed to connect to (set in the ExternalHosts array - wildcards allowed)
+3. Various **other** settings
+
+	a. **UIWebViewBounce (boolean, defaults to YES)** - set to NO if you don't want the WebView to rubber-band
+	
+	b. **TopActivityIndicator (string, defaults to 'gray')** - this is the top spinning throbber in the status/battery bar, valid values are "whiteLarge", "white" and "gray"
+	
+	c. **EnableLocation (boolean, defaults to NO)** - set to YES, to initialize the Geolocation plugin at start-up (so the fix on your location can be more accurate)
+	
+	d. **EnableViewportScale (boolean, defaults to NO)** - set to YES to prevent viewport scaling through a meta tag
+	
+	e. **AutoHideSplashScreen (boolean, defaults to YES)** - set to NO to control when the splashscreen is hidden through a JavaScript API
+	
+	f. **ShowSplashScreenSpinner (boolean, defaults to YES)** - set to NO to hide the splash-screen spinner
+	
+	g. **MediaPlaybackRequiresUserAction (boolean, defaults to NO)** - set to YES to not allow autoplayed HTML5 video
+	
+	h. **AllowInlineMediaPlayback (boolean, defaults to NO)** - set to YES to allow inline HTML5 media playback, also, the video element in the HTML document must also include the webkit-playsinline attribute
+	
+	i. **OpenAllWhitelistURLsInWebView (boolean, defaults to NO)** - set to YES to open all white-listed URLs in the main WebView

http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/9833c1f2/guides/How to Use Cordova as a Component.md
----------------------------------------------------------------------
diff --git a/guides/How to Use Cordova as a Component.md b/guides/How to Use Cordova as a Component.md
index 3d164ff..25553e2 100644
--- a/guides/How to Use Cordova as a Component.md	
+++ b/guides/How to Use Cordova as a Component.md	
@@ -8,7 +8,7 @@ It is recommended that you follow the Cordova.framework instructions below, the
 ## Pre-requisites ##
 1. **Cordova 1.4** or greater installed
 2. **Xcode 4.2** or greater installed
-3. **Cordova.plist** file
+3. **Cordova.plist** file (see 'Cordova Settings' guide)
 
 ## Adding Cleaver to your Xcode project (Cordova.framework) ##
 
@@ -143,29 +143,3 @@ adding new classes you need to follow a few additional steps:
         viewController.wwwFolderName = @"myfolder";
         viewController.startPage = @"mypage.html"
 <br />
-
-## Cordova.plist ##
-
-This file controls various settings of Cordova. This is application wide, and not set per CDVViewController instance. 
-
-1. A list of **Plugins** allowed to be used in a CDVViewController (set in the Plugins dictionary - key is the servicename used in JavaScript, and the value is the Objective-C class for the plugin that is a CDVPlugin sub-class)
-2. A **white-list** of hosts (with no scheme) that Cordova is allowed to connect to (set in the ExternalHosts array - wildcards allowed)
-3. Various **other** settings
-
-	a. **UIWebViewBounce (boolean, defaults to YES)** - set to NO if you don't want the WebView to rubber-band
-	
-	b. **TopActivityIndicator (string, defaults to 'gray')** - this is the top spinning throbber in the status/battery bar, valid values are "whiteLarge", "white" and "gray"
-	
-	c. **EnableLocation (boolean, defaults to NO)** - set to YES, to initialize the Geolocation plugin at start-up (so the fix on your location can be more accurate)
-	
-	d. **EnableViewportScale (boolean, defaults to NO)** - set to YES to prevent viewport scaling through a meta tag
-	
-	e. **AutoHideSplashScreen (boolean, defaults to YES)** - set to NO to control when the splashscreen is hidden through a JavaScript API
-	
-	f. **ShowSplashScreenSpinner (boolean, defaults to YES)** - set to NO to hide the splash-screen spinner
-	
-	g. **MediaPlaybackRequiresUserAction (boolean, defaults to NO)** - set to YES to not allow autoplayed HTML5 video
-	
-	h. **AllowInlineMediaPlayback (boolean, defaults to NO)** - set to YES to allow inline HTML5 media playback, also, the video element in the HTML document must also include the webkit-playsinline attribute
-	
-	i. **OpenAllWhitelistURLsInWebView (boolean, defaults to NO)** - set to YES to open all white-listed URLs in the main WebView