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 2013/01/16 02:27:06 UTC

docs commit: [CB-2203] CordovaLib and upgrading instructions for iOS

Updated Branches:
  refs/heads/master 76e4bfa48 -> c4f27e0c9


[CB-2203] CordovaLib and upgrading instructions for iOS


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

Branch: refs/heads/master
Commit: c4f27e0c9d4032bd14faf1e882619e05b48e6ebc
Parents: 76e4bfa
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Jan 15 17:27:00 2013 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Jan 15 17:27:00 2013 -0800

----------------------------------------------------------------------
 docs/en/2.3.0/guide/upgrading/ios/index.md |   11 ++++++-----
 docs/en/edge/guide/upgrading/ios/index.md  |   11 ++++++-----
 2 files changed, 12 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/c4f27e0c/docs/en/2.3.0/guide/upgrading/ios/index.md
----------------------------------------------------------------------
diff --git a/docs/en/2.3.0/guide/upgrading/ios/index.md b/docs/en/2.3.0/guide/upgrading/ios/index.md
index f968b71..a16b2db 100644
--- a/docs/en/2.3.0/guide/upgrading/ios/index.md
+++ b/docs/en/2.3.0/guide/upgrading/ios/index.md
@@ -32,20 +32,21 @@ Please note that **Xcode 4.5 is required**. To submit to the Apple App Store, yo
 6. **Update** the Cordova script reference in your **www/index.html** file (and any other files that contain the script reference) to point to the new **cordova-2.3.0.js** file
 7. Update (or replace, if you never changed the file) your **MainViewController.m** according to the one from the new project.
 8. Delete your **"cordova"** folder, and copy the **"cordova"** folder from the new project into your project's root folder **(in 2.3.0, this has new scripts)** 
-9. Next, update your CordovaLib sub-project reference.
+9. Delete your **"CordovaLib"** folder, and copy the **"CordovaLib"** folder from the new project into your project's root folder
+10. Next, update your CordovaLib sub-project reference.
     1. Launch **Terminal.app**
     2. Go to the location where you installed Cordova **(see Step 1)**, in the **bin** sub-folder
     3. Run the script below where the first parameter is the path to your project's **.xcodeproj** file:
     
         `update_cordova_subproject path/to/your/project/xcodeproj`
 
-10. Convert your **Cordova.plist** file to **config.xml**, by running the script **bin/cordova\_plist\_to\_config\_xml** on your project file.
-11. Add the InAppBrowser plugin to your **config.xml**, by adding this tag under **&lt;cordova&gt;&lt;plugins&gt;**:
+11. Convert your **Cordova.plist** file to **config.xml**, by running the script **bin/cordova\_plist\_to\_config\_xml** on your project file.
+12. Add the InAppBrowser plugin to your **config.xml**, by adding this tag under **&lt;cordova&gt;&lt;plugins&gt;**:
 
         <plugin name="InAppBrowser" value="CDVInAppBrowser" />
-12. Note that Objective-C plugins are **not** whitelisted anymore. To whitelist your connections with the app whitelist, you will need to set the “User-Agent” header of the connection to the same user-agent as the main Cordova WebView. 
+13. Note that Objective-C plugins are **not** whitelisted anymore. To whitelist your connections with the app whitelist, you will need to set the “User-Agent” header of the connection to the same user-agent as the main Cordova WebView. 
 You can get this by accessing the **userAgent** property off the main view-controller. The main view-controller (CDVViewController) also has a **URLisAllowed** method for you to check whether a URL will pass the whitelist.        
-13. Device API changes: 
+14. Device API changes: 
     * For iOS, device.platform used to return “iPhone”, “iPad” or “iPod Touch” — now it returns (correctly) “iOS”. 
     * For iOS, device.name (now deprecated for all platforms) used to return the name of the user’s device (e.g ‘Shazron’s iPhone 5′) — now it returns what device.platform used to return: ”iPhone”, “iPad” or “iPod Touch”.  
     * For all platforms, there is a new property called device.model — this returns the specific device model, e.g “iPad2,5″ (for other platforms, this returns what device.name used to return).

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/c4f27e0c/docs/en/edge/guide/upgrading/ios/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/upgrading/ios/index.md b/docs/en/edge/guide/upgrading/ios/index.md
index f968b71..a16b2db 100644
--- a/docs/en/edge/guide/upgrading/ios/index.md
+++ b/docs/en/edge/guide/upgrading/ios/index.md
@@ -32,20 +32,21 @@ Please note that **Xcode 4.5 is required**. To submit to the Apple App Store, yo
 6. **Update** the Cordova script reference in your **www/index.html** file (and any other files that contain the script reference) to point to the new **cordova-2.3.0.js** file
 7. Update (or replace, if you never changed the file) your **MainViewController.m** according to the one from the new project.
 8. Delete your **"cordova"** folder, and copy the **"cordova"** folder from the new project into your project's root folder **(in 2.3.0, this has new scripts)** 
-9. Next, update your CordovaLib sub-project reference.
+9. Delete your **"CordovaLib"** folder, and copy the **"CordovaLib"** folder from the new project into your project's root folder
+10. Next, update your CordovaLib sub-project reference.
     1. Launch **Terminal.app**
     2. Go to the location where you installed Cordova **(see Step 1)**, in the **bin** sub-folder
     3. Run the script below where the first parameter is the path to your project's **.xcodeproj** file:
     
         `update_cordova_subproject path/to/your/project/xcodeproj`
 
-10. Convert your **Cordova.plist** file to **config.xml**, by running the script **bin/cordova\_plist\_to\_config\_xml** on your project file.
-11. Add the InAppBrowser plugin to your **config.xml**, by adding this tag under **&lt;cordova&gt;&lt;plugins&gt;**:
+11. Convert your **Cordova.plist** file to **config.xml**, by running the script **bin/cordova\_plist\_to\_config\_xml** on your project file.
+12. Add the InAppBrowser plugin to your **config.xml**, by adding this tag under **&lt;cordova&gt;&lt;plugins&gt;**:
 
         <plugin name="InAppBrowser" value="CDVInAppBrowser" />
-12. Note that Objective-C plugins are **not** whitelisted anymore. To whitelist your connections with the app whitelist, you will need to set the “User-Agent” header of the connection to the same user-agent as the main Cordova WebView. 
+13. Note that Objective-C plugins are **not** whitelisted anymore. To whitelist your connections with the app whitelist, you will need to set the “User-Agent” header of the connection to the same user-agent as the main Cordova WebView. 
 You can get this by accessing the **userAgent** property off the main view-controller. The main view-controller (CDVViewController) also has a **URLisAllowed** method for you to check whether a URL will pass the whitelist.        
-13. Device API changes: 
+14. Device API changes: 
     * For iOS, device.platform used to return “iPhone”, “iPad” or “iPod Touch” — now it returns (correctly) “iOS”. 
     * For iOS, device.name (now deprecated for all platforms) used to return the name of the user’s device (e.g ‘Shazron’s iPhone 5′) — now it returns what device.platform used to return: ”iPhone”, “iPad” or “iPod Touch”.  
     * For all platforms, there is a new property called device.model — this returns the specific device model, e.g “iPad2,5″ (for other platforms, this returns what device.name used to return).