Browse files

Updated README to simplify installation

  • Loading branch information...
1 parent 9bfeb3a commit 03eccc2cfa8a3529c8339670a333adfc1c5c5693 @jefflinwood committed Oct 13, 2011
Showing with 12 additions and 12 deletions.
  1. +12 −12 README
View
24 README
@@ -2,14 +2,21 @@ Notes on using the Drupal PhoneGap Plugin for iOS
Installation Notes
==================
-* Tested with PhoneGap 0.9.6 and XCode 4
-* Create a new PhoneGap Application from XCode 4 to get started
-* Follow directions under 0.1 to set up XCode Phonegap project - I would like to make this much, much better!
-* Add DrupalPlugin.m and DrupalPlugin.h to your XCode PhoneGap project's plugins directory
+* Tested with PhoneGap 1.1.0 and XCode 4.2
+* Create a new PhoneGap Application from XCode 4.2 to get started
+* Add my fork of the ASIHTTPRequest (git://github.com/jefflinwood/asi-http-request.git) to your XCode Project (but only the Classes folder). You can add it as a submodule - git submodule add git://github.com/jefflinwood/asi-http-request.git DrupalPhoneGapApp/Classes/asi-http-request
+* Add my fork of the Drupal IOS SDK (git://github.com/jefflinwood/drupal-ios-sdk.git) to your XCode Project. You can add it as a submodule - git submodule add git://github.com/jefflinwood/drupal-ios-sdk.git DrupalPhoneGapApp/Classes/drupal-ios-sdk
+* Add libz.1.2.5 as a dynamic library for your app
+* Add CFNetwork as a Framework for your app
+* Add DrupalPlugin.m and DrupalPlugin.h from this project to your XCode PhoneGap project's plugins directory
* Add the javascript file to your XCode project's www directory
* Reference the javascript file in your index.html
+<script type="text/javascript" charset="utf-8" src="drupal-phonegap.js"></script>
* Add DrupalPlugin to your PhoneGap.plist configuration file's list of plugins. Select the last plugin in the list (there are 14 out of the box) and then click the Plus sign.
* Type "DrupalPlugin" into both boxes of the new plugin and save the file.
+* You will need to edit DIOSConfig.h to reference your Drupal server's services URL, main URL, and domain
+* For PhoneGap 1.1.0, you will need to also add that Drupal Server to the list of allowed external hosts by editing the ExternalHosts property in the PhoneGap.plist file under Supporting Files
+
* Start using the plugin
Sample Code
@@ -39,15 +46,8 @@ function onDeviceReady()
window.plugins.drupal.viewGet("frontpage",frontPageSuccess,failureCallback);
}
-Version 0.1
+Version 0.2
===========
-* Requires the Drupal iOS SDK (https://github.com/workhabitinc/drupal-ios-sdk) and ASIHTTPRequest (https://github.com/pokeb/asi-http-request)
-* Drupal iOS SDK comes with NSData+Base64, but so does PhoneGap. Remove the NSData+Base64 folder from the Drupal iOS SDK in your XCode project and change the reference in DIOSConnect.h from "NSData+Base64.h" to <PhoneGap/NSData+Base64.h>
-* Edit ASIHTTPRequest/ASIHTTPRequest.m to use <PhoneGap/Reachability.h> - PhoneGap bundles Reachability
-* You will need to edit DIOSConnect.h to reference your Drupal server there
-* Add libz.1.2.3.framework as a Framework for your app
-* Add CFNetwork.framework as a Framework for your app
-
* Currently the plugin only supports a connection to one Drupal site per app
* Currently supported methods from Drupal Services:

0 comments on commit 03eccc2

Please sign in to comment.