Skip to content

Commit

Permalink
Added separate iPad project to template, 3.2 SDK required
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Apr 6, 2010
1 parent 39348a0 commit 96a5ef2
Show file tree
Hide file tree
Showing 13 changed files with 580 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -39,6 +39,9 @@ clean:
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___.xcodeproj/*.mode1v3
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___.xcodeproj/*.perspectivev3
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___.xcodeproj/*.pbxuser
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___-iPad.xcodeproj/*.mode1v3
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___-iPad.xcodeproj/*.perspectivev3
$(RM_F) PhoneGap-based\ Application/___PROJECTNAME___-iPad.xcodeproj/*.pbxuser
$(RM_F) PhoneGap-based\ Application/www/phonegap.js

installer: clean
Expand Down
Empty file.
Expand Up @@ -26,5 +26,7 @@
<true/>
<key>NSMainNibFile</key>
<string></string>
<key>NSMainNibFile~ipad</key>
<string>-iPad</string>
</dict>
</plist>
Binary file not shown.
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>This template provides a starting point for a PhoneGap based application. Just modify the www folder contents with your HTML, CSS and Javascript.</string>
</dict>
</plist>

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions PhoneGap-based Application/www/index.html
Expand Up @@ -8,6 +8,10 @@

<title>___PROJECTNAME___</title>

<!-- iPad/iPhone specific css below, add after your main css >
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" />
-->
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8">

Expand Down
@@ -1 +1,27 @@
<pkgref spec="1.12" uuid="0D80338D-25E2-4B70-A3D7-36B86FE654F5"><config><identifier>com.phonegap.phonegaplibinstaller.phonegaplib.pkg</identifier><version>1.0</version><description></description><post-install type="none"/><installFrom relative="true" mod="true">../PhoneGapLib</installFrom><installTo mod="true">/Documents/PhoneGapLib</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>installTo</mod><mod>scripts.scriptsDirectoryPath.path</mod><mod>installFrom.path</mod><mod>scripts.postinstall.path</mod><mod>identifier</mod><mod>parent</mod><mod>requireAuthorization</mod><mod>installTo.path</mod></config><scripts><postinstall relative="true" mod="true">scripts/xcodevars.postinstall</postinstall><scripts-dir relative="true" mod="true">scripts</scripts-dir></scripts></pkgref>
<?xml version="1.0"?>
<pkgref spec="1.12" uuid="0D80338D-25E2-4B70-A3D7-36B86FE654F5">
<config>
<identifier>com.phonegap.phonegaplibinstaller.phonegaplib.pkg</identifier>
<version>1.0</version>
<description/>
<post-install type="none"/>
<installFrom relative="true" mod="true">../PhoneGapLib</installFrom>
<installTo mod="true">/Documents/PhoneGapLib</installTo>
<flags>
<followSymbolicLinks/>
</flags>
<packageStore type="internal"/>
<mod>installTo</mod>
<mod>scripts.scriptsDirectoryPath.path</mod>
<mod>installFrom.path</mod>
<mod>scripts.postinstall.path</mod>
<mod>identifier</mod>
<mod>parent</mod>
<mod>requireAuthorization</mod>
<mod>installTo.path</mod>
</config>
<scripts>
<postinstall relative="true" mod="true">scripts/xcodevars.postinstall</postinstall>
<scripts-dir relative="true" mod="true">scripts</scripts-dir>
</scripts>
</pkgref>
@@ -1 +1,27 @@
<pkg-contents spec="1.12"><f n="PhoneGap-based Application" o="shazron" g="staff" p="16877" pt="/Users/shazron/Documents/Git/phonegap/iphone/PhoneGap-based Application" m="true" t="file"><f n=".DS_Store" o="shazron" g="staff" p="33188" x="true"/><f n="___PROJECTNAME___.xcodeproj" o="shazron" g="staff" p="16877"><f n="project.pbxproj" o="shazron" g="staff" p="33261"/><f n="shazron.pbxuser" o="shazron" g="staff" p="33188" x="true"/><f n="TemplateIcon.icns" o="shazron" g="staff" p="33188"/><f n="TemplateInfo.plist" o="shazron" g="staff" p="33188"/></f><f n="___PROJECTNAMEASIDENTIFIER___-Info.plist" o="shazron" g="staff" p="33188"/><f n="___PROJECTNAMEASIDENTIFIER____Prefix.pch" o="shazron" g="staff" p="33188"/><f n="Classes" o="shazron" g="staff" p="16877"><f n=".DS_Store" o="shazron" g="staff" p="33188" x="true"/><f n="___PROJECTNAMEASIDENTIFIER___AppDelegate.h" o="shazron" g="staff" p="33188"/><f n="___PROJECTNAMEASIDENTIFIER___AppDelegate.m" o="shazron" g="staff" p="33188"/></f><f n="main.m" o="shazron" g="staff" p="33188"/><f n="Plugins" o="shazron" g="staff" p="16877"/><f n="www" o="shazron" g="staff" p="16877"><f n=".DS_Store" o="shazron" g="staff" p="33188" x="true"/><f n="index.html" o="shazron" g="staff" p="33261"/><f n="master.css" o="shazron" g="staff" p="33261"/></f></f></pkg-contents>
<?xml version="1.0"?>
<pkg-contents spec="1.12">
<f n="PhoneGap-based Application" o="shazron" g="staff" p="16877" pt="../PhoneGap-based Application" m="true" t="file">
<f n="___PROJECTNAME___.xcodeproj" o="shazron" g="staff" p="16877">
<f n="project.pbxproj" o="shazron" g="staff" p="33261"/>
<f n="TemplateIcon.icns" o="shazron" g="staff" p="33188"/>
<f n="TemplateInfo.plist" o="shazron" g="staff" p="33188"/>
</f>
<f n="___PROJECTNAME___-iPad.xcodeproj" o="shazron" g="staff" p="16877">
<f n="project.pbxproj" o="shazron" g="staff" p="33261"/>
<f n="TemplateIcon.icns" o="shazron" g="staff" p="33188"/>
<f n="TemplateInfo.plist" o="shazron" g="staff" p="33188"/>
</f>
<f n="___PROJECTNAMEASIDENTIFIER___-Info.plist" o="shazron" g="staff" p="33188"/>
<f n="___PROJECTNAMEASIDENTIFIER____Prefix.pch" o="shazron" g="staff" p="33188"/>
<f n="Classes" o="shazron" g="staff" p="16877">
<f n="___PROJECTNAMEASIDENTIFIER___AppDelegate.h" o="shazron" g="staff" p="33188"/>
<f n="___PROJECTNAMEASIDENTIFIER___AppDelegate.m" o="shazron" g="staff" p="33188"/>
</f>
<f n="main.m" o="shazron" g="staff" p="33188"/>
<f n="Plugins" o="shazron" g="staff" p="16877"/>
<f n="www" o="shazron" g="staff" p="16877">
<f n="index.html" o="shazron" g="staff" p="33261"/>
<f n="master.css" o="shazron" g="staff" p="33261"/>
</f>
</f>
</pkg-contents>
38 changes: 37 additions & 1 deletion PhoneGapLibInstaller/PhoneGapLibInstaller.pmdoc/02phonegap.xml
@@ -1 +1,37 @@
<pkgref spec="1.12" uuid="3DC0F212-92D2-4056-AB07-C275232066A3"><config><identifier>com.phonegap.phonegaplibinstaller.PhoneGap-basedApplication.pkg</identifier><version>1.01</version><description></description><post-install type="none"/><installFrom relative="true">../PhoneGap-based Application</installFrom><installTo mod="true">/Library/Application Support/Developer/Shared/Xcode/Project Templates/PhoneGap/PhoneGap-based Application</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>installTo</mod><mod>scripts.scriptsDirectoryPath.path</mod><mod>installTo.isAbsoluteType</mod><mod>scripts.preinstall.path</mod><mod>requireAuthorization</mod><mod>parent</mod><mod>identifier</mod><mod>installTo.path</mod><mod>installFrom.isRelativeType</mod><mod>version</mod></config><scripts><preinstall relative="true" mod="true">scripts/xcodetemplate.preinstall</preinstall><scripts-dir relative="true" mod="true">scripts</scripts-dir></scripts><contents><file-list>02phonegap-contents.xml</file-list><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref>
<?xml version="1.0"?>
<pkgref spec="1.12" uuid="3DC0F212-92D2-4056-AB07-C275232066A3">
<config>
<identifier>com.phonegap.phonegaplibinstaller.PhoneGap-basedApplication.pkg</identifier>
<version>1.01</version>
<description/>
<post-install type="none"/>
<installFrom relative="true">../PhoneGap-based Application</installFrom>
<installTo mod="true">/Library/Application Support/Developer/Shared/Xcode/Project Templates/PhoneGap/PhoneGap-based Application</installTo>
<flags>
<followSymbolicLinks/>
</flags>
<packageStore type="internal"/>
<mod>installTo</mod>
<mod>scripts.scriptsDirectoryPath.path</mod>
<mod>installTo.isAbsoluteType</mod>
<mod>scripts.preinstall.path</mod>
<mod>requireAuthorization</mod>
<mod>parent</mod>
<mod>identifier</mod>
<mod>installTo.path</mod>
<mod>installFrom.isRelativeType</mod>
<mod>version</mod>
</config>
<scripts>
<preinstall relative="true" mod="true">scripts/xcodetemplate.preinstall</preinstall>
<scripts-dir relative="true" mod="true">scripts</scripts-dir>
</scripts>
<contents>
<file-list>02phonegap-contents.xml</file-list>
<filter>/CVS$</filter>
<filter>/\.svn$</filter>
<filter>/\.cvsignore$</filter>
<filter>/\.cvspass$</filter>
<filter>/\.DS_Store$</filter>
</contents>
</pkgref>
50 changes: 49 additions & 1 deletion PhoneGapLibInstaller/PhoneGapLibInstaller.pmdoc/index.xml
@@ -1 +1,49 @@
<pkmkdoc spec="1.12"><properties><title>PhoneGapLib</title><build>/Users/shazron/Desktop/PhoneGapLib.pkg</build><organization>com.phonegap.phonegaplibinstaller</organization><userSees ui="both"/><min-target os="3"/><domain user="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><contents><choice title="PhoneGapLib" id="choice5" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.phonegap.phonegaplibinstaller.phonegaplib.pkg"/></choice><choice title="PhoneGap-based Application" id="choice15" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.phonegap.phonegaplibinstaller.PhoneGap-basedApplication.pkg"/></choice></contents><resources bg-scale="none" bg-align="topleft"><locale lang="en"><resource relative="true" mod="true" type="readme">docs/readme.txt</resource><resource relative="true" mod="true" type="welcome">docs/introduction.txt</resource><resource relative="true" mod="true" type="conclusion">docs/finishup.txt</resource></locale></resources><requirements><requirement id="file" operator="eq" value="true"><file>/Developer/Applications/Xcode.app</file><message-title>Xcode not installed</message-title><message>Please install Xcode Developer Tools (it's on your OS DVD)</message></requirement><requirement id="file" operator="eq" value="true"><file>/Developer/Platforms/iPhoneOS.platform</file><message-title>iPhone SDK not found</message-title><message>Please download and install the iPhone SDK from http://developer.apple.com</message></requirement></requirements><flags/><item type="file">01phonegaplib.xml</item><item type="file">02phonegap.xml</item><mod>properties.title</mod><mod>properties.userDomain</mod><mod>properties.anywhereDomain</mod><mod>preinstallActions.actions</mod></pkmkdoc>
<?xml version="1.0"?>
<pkmkdoc spec="1.12">
<properties>
<title>PhoneGapLib</title>
<build>~/Desktop/PhoneGapLib.pkg</build>
<organization>com.phonegap.phonegaplibinstaller</organization>
<userSees ui="both"/>
<min-target os="3"/>
<domain user="true"/>
</properties>
<distribution>
<versions min-spec="1.000000"/>
<scripts/>
</distribution>
<contents>
<choice title="PhoneGapLib" id="choice5" starts_selected="true" starts_enabled="true" starts_hidden="false">
<pkgref id="com.phonegap.phonegaplibinstaller.phonegaplib.pkg"/>
</choice>
<choice title="PhoneGap-based Application" id="choice15" starts_selected="true" starts_enabled="true" starts_hidden="false">
<pkgref id="com.phonegap.phonegaplibinstaller.PhoneGap-basedApplication.pkg"/>
</choice>
</contents>
<resources bg-scale="none" bg-align="topleft">
<locale lang="en">
<resource relative="true" mod="true" type="readme">docs/readme.txt</resource>
<resource relative="true" mod="true" type="welcome">docs/introduction.txt</resource>
<resource relative="true" mod="true" type="conclusion">docs/finishup.txt</resource>
</locale>
</resources>
<requirements>
<requirement id="file" operator="eq" value="true">
<file>/Developer/Applications/Xcode.app</file>
<message-title>Xcode not installed</message-title>
<message>Please install Xcode Developer Tools (it's on your OS DVD)</message>
</requirement>
<requirement id="file" operator="eq" value="true">
<file>/Developer/Platforms/iPhoneOS.platform</file>
<message-title>iPhone SDK not found</message-title>
<message>Please download and install the iPhone SDK from http://developer.apple.com</message>
</requirement>
</requirements>
<flags/>
<item type="file">01phonegaplib.xml</item>
<item type="file">02phonegap.xml</item>
<mod>properties.title</mod>
<mod>properties.userDomain</mod>
<mod>properties.anywhereDomain</mod>
<mod>preinstallActions.actions</mod>
</pkmkdoc>
3 changes: 3 additions & 0 deletions PhoneGapLibInstaller/docs/finishup.txt
Expand Up @@ -8,5 +8,8 @@ Select the "Choose..." button, name your project and choose the location where y

That's it! Modify the contents of the "www" directory to add your HTML, CSS and Javascript.

iPad:
Go to your project folder and launch the "[projectname]-iPad" Xcode project. You will need the 3.2 iPhone OS SDK.

http://www.phonegap.com
http://github.com/phonegap
5 changes: 4 additions & 1 deletion PhoneGapLibInstaller/docs/introduction.txt
@@ -1,7 +1,10 @@
PREVIEW VERSION 20091103
VERSION 20100406

PhoneGapLib is a static library that enables users to include PhoneGap in their iPhone application projects easily, and also create new PhoneGap based iPhone application projects through a Xcode project template.

20100406
- added iPad universal xcodeproj file (3.2 OS required)

20091103
- fixed permissions and initial run problems

Expand Down

0 comments on commit 96a5ef2

Please sign in to comment.