├── .gitignore ├── iOS app ├── Cordova-1.7.0+ │ └── Loading data in Cordova │ │ ├── Loading data in Cordova.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── Loading data in Cordova │ │ ├── Classes │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── MainViewController.h │ │ │ ├── MainViewController.m │ │ │ └── MainViewController.xib │ │ ├── Cordova.plist │ │ ├── Loading data in Cordova-Info.plist │ │ ├── Loading data in Cordova-Prefix.pch │ │ ├── Plugins │ │ │ └── README │ │ ├── Resources │ │ │ ├── Capture.bundle │ │ │ │ ├── controls_bg.png │ │ │ │ ├── controls_bg@2x.png │ │ │ │ ├── controls_bg~ipad.png │ │ │ │ ├── microphone.png │ │ │ │ ├── microphone@2x.png │ │ │ │ ├── microphone~ipad.png │ │ │ │ ├── record_button.png │ │ │ │ ├── record_button@2x.png │ │ │ │ ├── record_button~ipad.png │ │ │ │ ├── recording_bg.png │ │ │ │ ├── recording_bg@2x.png │ │ │ │ ├── recording_bg~ipad.png │ │ │ │ ├── stop_button.png │ │ │ │ ├── stop_button@2x.png │ │ │ │ └── stop_button~ipad.png │ │ │ ├── de.lproj │ │ │ │ └── Localizable.strings │ │ │ ├── en.lproj │ │ │ │ └── Localizable.strings │ │ │ ├── es.lproj │ │ │ │ └── Localizable.strings │ │ │ ├── icons │ │ │ │ ├── icon-72.png │ │ │ │ ├── icon.png │ │ │ │ └── icon@2x.png │ │ │ ├── se.lproj │ │ │ │ └── Localizable.strings │ │ │ └── splash │ │ │ │ ├── Default@2x~iphone.png │ │ │ │ └── Default~iphone.png │ │ ├── en.lproj │ │ │ └── InfoPlist.strings │ │ ├── main.m │ │ └── verify.sh │ │ └── www │ │ ├── cordova-1.7.0.js │ │ ├── index.html │ │ └── js │ │ ├── jquery-1.7.2.min.js │ │ └── load-json.js ├── PhoneGap-0.95 │ ├── Classes │ │ ├── AppDelegate.h │ │ └── AppDelegate.m │ ├── Loading data into PhoneGap.xcodeproj │ │ └── project.pbxproj │ ├── Loading_data_into_PhoneGap-Info.plist │ ├── Loading_data_into_PhoneGap-Prefix.pch │ ├── PhoneGap.plist │ ├── PhoneGapBuildSettings.xcconfig │ ├── Plugins │ │ └── README │ ├── Resources │ │ ├── icons │ │ │ ├── icon-72.png │ │ │ ├── icon.png │ │ │ └── icon@2x.png │ │ └── splash │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default.png │ │ │ ├── Default@2x.png │ │ │ └── Default~iPad.png │ ├── main.m │ └── www │ │ ├── index.html │ │ ├── js │ │ ├── jquery-1.5.min.js │ │ └── load-json.js │ │ └── phonegap.0.9.5.1.min.js └── PhoneGap-1.00+ │ ├── Loading data into PhoneGap.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── Loading data into PhoneGap │ ├── Classes │ │ ├── AppDelegate.h │ │ └── AppDelegate.m │ ├── Loading data into PhoneGap-Info.plist │ ├── Loading data into PhoneGap-Prefix.pch │ ├── PhoneGap.plist │ ├── Plugins │ │ └── README │ ├── Resources │ │ ├── Capture.bundle │ │ │ ├── controls_bg.png │ │ │ ├── controls_bg@2x.png │ │ │ ├── controls_bg~ipad.png │ │ │ ├── microphone.png │ │ │ ├── microphone@2x.png │ │ │ ├── microphone~ipad.png │ │ │ ├── record_button.png │ │ │ ├── record_button@2x.png │ │ │ ├── record_button~ipad.png │ │ │ ├── recording_bg.png │ │ │ ├── recording_bg@2x.png │ │ │ ├── recording_bg~ipad.png │ │ │ ├── stop_button.png │ │ │ ├── stop_button@2x.png │ │ │ └── stop_button~ipad.png │ │ ├── en.lproj │ │ │ └── Localizable.strings │ │ ├── es.lproj │ │ │ └── Localizable.strings │ │ ├── icons │ │ │ ├── icon-72.png │ │ │ ├── icon.png │ │ │ └── icon@2x.png │ │ └── splash │ │ │ ├── Default.png │ │ │ └── Default@2x.png │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m │ └── www │ ├── index.html │ ├── js │ ├── jquery-1.5.min.js │ └── load-json.js │ └── phonegap-1.2.0.js ├── readme └── server components ├── landmarks.php └── landmarks.sql /.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.perspectivev3 3 | *.pbxuser 4 | xcuserdata 5 | .DS_Store 6 | build 7 | www/phonegap.0.9.5.1.min.js 8 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 22D2D29715A0743C00197498 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D29615A0743C00197498 /* Foundation.framework */; }; 11 | 22D2D29915A0743C00197498 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D29815A0743C00197498 /* UIKit.framework */; }; 12 | 22D2D29B15A0743C00197498 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D29A15A0743C00197498 /* CoreGraphics.framework */; }; 13 | 22D2D29D15A0743C00197498 /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D29C15A0743C00197498 /* AddressBook.framework */; }; 14 | 22D2D29F15A0743C00197498 /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D29E15A0743C00197498 /* AddressBookUI.framework */; }; 15 | 22D2D2A115A0743C00197498 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2A015A0743C00197498 /* AudioToolbox.framework */; }; 16 | 22D2D2A315A0743C00197498 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2A215A0743C00197498 /* AVFoundation.framework */; }; 17 | 22D2D2A515A0743C00197498 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2A415A0743C00197498 /* CoreLocation.framework */; }; 18 | 22D2D2A715A0743C00197498 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2A615A0743C00197498 /* MediaPlayer.framework */; }; 19 | 22D2D2A915A0743C00197498 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2A815A0743C00197498 /* QuartzCore.framework */; }; 20 | 22D2D2AB15A0743C00197498 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2AA15A0743C00197498 /* SystemConfiguration.framework */; }; 21 | 22D2D2AD15A0743C00197498 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2AC15A0743C00197498 /* MobileCoreServices.framework */; }; 22 | 22D2D2AF15A0743C00197498 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2AE15A0743C00197498 /* CoreMedia.framework */; }; 23 | 22D2D2B515A0743C00197498 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2B315A0743C00197498 /* InfoPlist.strings */; }; 24 | 22D2D2B715A0743C00197498 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D2D2B615A0743C00197498 /* main.m */; }; 25 | 22D2D2BA15A0743C00197498 /* Cordova.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22D2D2B915A0743C00197498 /* Cordova.framework */; }; 26 | 22D2D2BF15A0743C00197498 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2BD15A0743C00197498 /* Localizable.strings */; }; 27 | 22D2D2C315A0743C00197498 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2C115A0743C00197498 /* Localizable.strings */; }; 28 | 22D2D2C715A0743C00197498 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2C515A0743C00197498 /* Localizable.strings */; }; 29 | 22D2D2CB15A0743C00197498 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2C915A0743C00197498 /* Localizable.strings */; }; 30 | 22D2D2CE15A0743C00197498 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2CD15A0743C00197498 /* icon.png */; }; 31 | 22D2D2D015A0743C00197498 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2CF15A0743C00197498 /* icon@2x.png */; }; 32 | 22D2D2D215A0743C00197498 /* icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2D115A0743C00197498 /* icon-72.png */; }; 33 | 22D2D2D515A0743C00197498 /* Default~iphone.png in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2D415A0743C00197498 /* Default~iphone.png */; }; 34 | 22D2D2D715A0743C00197498 /* Default@2x~iphone.png in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2D615A0743C00197498 /* Default@2x~iphone.png */; }; 35 | 22D2D2D915A0743C00197498 /* Capture.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2D815A0743C00197498 /* Capture.bundle */; }; 36 | 22D2D2DB15A0743C00197498 /* Cordova.plist in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2DA15A0743C00197498 /* Cordova.plist */; }; 37 | 22D2D2DF15A0743C00197498 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D2D2DE15A0743C00197498 /* AppDelegate.m */; }; 38 | 22D2D2E215A0743C00197498 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22D2D2E115A0743C00197498 /* MainViewController.m */; }; 39 | 22D2D2E415A0743C00197498 /* MainViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2E315A0743C00197498 /* MainViewController.xib */; }; 40 | 22D2D2E815A0743C00197498 /* verify.sh in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2E715A0743C00197498 /* verify.sh */; }; 41 | 22D2D2EF15A074A300197498 /* www in Resources */ = {isa = PBXBuildFile; fileRef = 22D2D2EE15A074A300197498 /* www */; }; 42 | /* End PBXBuildFile section */ 43 | 44 | /* Begin PBXFileReference section */ 45 | 22D2D29215A0743B00197498 /* Loading data in Cordova.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Loading data in Cordova.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 22D2D29615A0743C00197498 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 47 | 22D2D29815A0743C00197498 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 48 | 22D2D29A15A0743C00197498 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 49 | 22D2D29C15A0743C00197498 /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; }; 50 | 22D2D29E15A0743C00197498 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; }; 51 | 22D2D2A015A0743C00197498 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; 52 | 22D2D2A215A0743C00197498 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 53 | 22D2D2A415A0743C00197498 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; }; 54 | 22D2D2A615A0743C00197498 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; 55 | 22D2D2A815A0743C00197498 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; 56 | 22D2D2AA15A0743C00197498 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 57 | 22D2D2AC15A0743C00197498 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; 58 | 22D2D2AE15A0743C00197498 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; 59 | 22D2D2B215A0743C00197498 /* Loading data in Cordova-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Loading data in Cordova-Info.plist"; sourceTree = ""; }; 60 | 22D2D2B415A0743C00197498 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 61 | 22D2D2B615A0743C00197498 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 62 | 22D2D2B815A0743C00197498 /* Loading data in Cordova-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Loading data in Cordova-Prefix.pch"; sourceTree = ""; }; 63 | 22D2D2B915A0743C00197498 /* Cordova.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cordova.framework; path = /Users/Shared/Cordova/Frameworks/Cordova.framework; sourceTree = ""; }; 64 | 22D2D2BE15A0743C00197498 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = Resources/en.lproj/Localizable.strings; sourceTree = ""; }; 65 | 22D2D2C215A0743C00197498 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = Resources/es.lproj/Localizable.strings; sourceTree = ""; }; 66 | 22D2D2C615A0743C00197498 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = Resources/de.lproj/Localizable.strings; sourceTree = ""; }; 67 | 22D2D2CA15A0743C00197498 /* se */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = se; path = Resources/se.lproj/Localizable.strings; sourceTree = ""; }; 68 | 22D2D2CD15A0743C00197498 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = Resources/icons/icon.png; sourceTree = ""; }; 69 | 22D2D2CF15A0743C00197498 /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon@2x.png"; path = "Resources/icons/icon@2x.png"; sourceTree = ""; }; 70 | 22D2D2D115A0743C00197498 /* icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon-72.png"; path = "Resources/icons/icon-72.png"; sourceTree = ""; }; 71 | 22D2D2D415A0743C00197498 /* Default~iphone.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default~iphone.png"; path = "Resources/splash/Default~iphone.png"; sourceTree = ""; }; 72 | 22D2D2D615A0743C00197498 /* Default@2x~iphone.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x~iphone.png"; path = "Resources/splash/Default@2x~iphone.png"; sourceTree = ""; }; 73 | 22D2D2D815A0743C00197498 /* Capture.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Capture.bundle; path = Resources/Capture.bundle; sourceTree = ""; }; 74 | 22D2D2DA15A0743C00197498 /* Cordova.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Cordova.plist; sourceTree = ""; }; 75 | 22D2D2DD15A0743C00197498 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Classes/AppDelegate.h; sourceTree = ""; }; 76 | 22D2D2DE15A0743C00197498 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Classes/AppDelegate.m; sourceTree = ""; }; 77 | 22D2D2E015A0743C00197498 /* MainViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MainViewController.h; path = Classes/MainViewController.h; sourceTree = ""; }; 78 | 22D2D2E115A0743C00197498 /* MainViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MainViewController.m; path = Classes/MainViewController.m; sourceTree = ""; }; 79 | 22D2D2E315A0743C00197498 /* MainViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = MainViewController.xib; path = Classes/MainViewController.xib; sourceTree = ""; }; 80 | 22D2D2E615A0743C00197498 /* README */ = {isa = PBXFileReference; lastKnownFileType = text; name = README; path = Plugins/README; sourceTree = ""; }; 81 | 22D2D2E715A0743C00197498 /* verify.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = verify.sh; sourceTree = ""; }; 82 | 22D2D2EE15A074A300197498 /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = ""; }; 83 | /* End PBXFileReference section */ 84 | 85 | /* Begin PBXFrameworksBuildPhase section */ 86 | 22D2D28C15A0743B00197498 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | 22D2D29715A0743C00197498 /* Foundation.framework in Frameworks */, 91 | 22D2D29915A0743C00197498 /* UIKit.framework in Frameworks */, 92 | 22D2D29B15A0743C00197498 /* CoreGraphics.framework in Frameworks */, 93 | 22D2D29D15A0743C00197498 /* AddressBook.framework in Frameworks */, 94 | 22D2D29F15A0743C00197498 /* AddressBookUI.framework in Frameworks */, 95 | 22D2D2A115A0743C00197498 /* AudioToolbox.framework in Frameworks */, 96 | 22D2D2A315A0743C00197498 /* AVFoundation.framework in Frameworks */, 97 | 22D2D2A515A0743C00197498 /* CoreLocation.framework in Frameworks */, 98 | 22D2D2A715A0743C00197498 /* MediaPlayer.framework in Frameworks */, 99 | 22D2D2A915A0743C00197498 /* QuartzCore.framework in Frameworks */, 100 | 22D2D2AB15A0743C00197498 /* SystemConfiguration.framework in Frameworks */, 101 | 22D2D2AD15A0743C00197498 /* MobileCoreServices.framework in Frameworks */, 102 | 22D2D2AF15A0743C00197498 /* CoreMedia.framework in Frameworks */, 103 | 22D2D2BA15A0743C00197498 /* Cordova.framework in Frameworks */, 104 | ); 105 | runOnlyForDeploymentPostprocessing = 0; 106 | }; 107 | 22D2D28F15A0743B00197498 /* Frameworks */ = { 108 | isa = PBXFrameworksBuildPhase; 109 | buildActionMask = 2147483647; 110 | files = ( 111 | ); 112 | runOnlyForDeploymentPostprocessing = 0; 113 | }; 114 | /* End PBXFrameworksBuildPhase section */ 115 | 116 | /* Begin PBXGroup section */ 117 | 22D2D28415A0743B00197498 = { 118 | isa = PBXGroup; 119 | children = ( 120 | 22D2D2EE15A074A300197498 /* www */, 121 | 22D2D2B015A0743C00197498 /* Loading data in Cordova */, 122 | 22D2D29515A0743B00197498 /* Frameworks */, 123 | 22D2D29315A0743B00197498 /* Products */, 124 | ); 125 | sourceTree = ""; 126 | }; 127 | 22D2D29315A0743B00197498 /* Products */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 22D2D29215A0743B00197498 /* Loading data in Cordova.app */, 131 | ); 132 | name = Products; 133 | sourceTree = ""; 134 | }; 135 | 22D2D29515A0743B00197498 /* Frameworks */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 22D2D29615A0743C00197498 /* Foundation.framework */, 139 | 22D2D29815A0743C00197498 /* UIKit.framework */, 140 | 22D2D29A15A0743C00197498 /* CoreGraphics.framework */, 141 | 22D2D29C15A0743C00197498 /* AddressBook.framework */, 142 | 22D2D29E15A0743C00197498 /* AddressBookUI.framework */, 143 | 22D2D2A015A0743C00197498 /* AudioToolbox.framework */, 144 | 22D2D2A215A0743C00197498 /* AVFoundation.framework */, 145 | 22D2D2A415A0743C00197498 /* CoreLocation.framework */, 146 | 22D2D2A615A0743C00197498 /* MediaPlayer.framework */, 147 | 22D2D2A815A0743C00197498 /* QuartzCore.framework */, 148 | 22D2D2AA15A0743C00197498 /* SystemConfiguration.framework */, 149 | 22D2D2AC15A0743C00197498 /* MobileCoreServices.framework */, 150 | 22D2D2AE15A0743C00197498 /* CoreMedia.framework */, 151 | ); 152 | name = Frameworks; 153 | sourceTree = ""; 154 | }; 155 | 22D2D2B015A0743C00197498 /* Loading data in Cordova */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 22D2D2B915A0743C00197498 /* Cordova.framework */, 159 | 22D2D2BB15A0743C00197498 /* Resources */, 160 | 22D2D2DC15A0743C00197498 /* Classes */, 161 | 22D2D2E515A0743C00197498 /* Plugins */, 162 | 22D2D2B115A0743C00197498 /* Supporting Files */, 163 | ); 164 | path = "Loading data in Cordova"; 165 | sourceTree = ""; 166 | }; 167 | 22D2D2B115A0743C00197498 /* Supporting Files */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 22D2D2B215A0743C00197498 /* Loading data in Cordova-Info.plist */, 171 | 22D2D2B315A0743C00197498 /* InfoPlist.strings */, 172 | 22D2D2B615A0743C00197498 /* main.m */, 173 | 22D2D2B815A0743C00197498 /* Loading data in Cordova-Prefix.pch */, 174 | 22D2D2DA15A0743C00197498 /* Cordova.plist */, 175 | 22D2D2E315A0743C00197498 /* MainViewController.xib */, 176 | 22D2D2E715A0743C00197498 /* verify.sh */, 177 | ); 178 | name = "Supporting Files"; 179 | sourceTree = ""; 180 | }; 181 | 22D2D2BB15A0743C00197498 /* Resources */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 22D2D2D815A0743C00197498 /* Capture.bundle */, 185 | 22D2D2BC15A0743C00197498 /* en.lproj */, 186 | 22D2D2C015A0743C00197498 /* es.lproj */, 187 | 22D2D2C415A0743C00197498 /* de.lproj */, 188 | 22D2D2C815A0743C00197498 /* se.lproj */, 189 | 22D2D2CC15A0743C00197498 /* icons */, 190 | 22D2D2D315A0743C00197498 /* splash */, 191 | ); 192 | name = Resources; 193 | sourceTree = ""; 194 | }; 195 | 22D2D2BC15A0743C00197498 /* en.lproj */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | 22D2D2BD15A0743C00197498 /* Localizable.strings */, 199 | ); 200 | name = en.lproj; 201 | sourceTree = ""; 202 | }; 203 | 22D2D2C015A0743C00197498 /* es.lproj */ = { 204 | isa = PBXGroup; 205 | children = ( 206 | 22D2D2C115A0743C00197498 /* Localizable.strings */, 207 | ); 208 | name = es.lproj; 209 | sourceTree = ""; 210 | }; 211 | 22D2D2C415A0743C00197498 /* de.lproj */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 22D2D2C515A0743C00197498 /* Localizable.strings */, 215 | ); 216 | name = de.lproj; 217 | sourceTree = ""; 218 | }; 219 | 22D2D2C815A0743C00197498 /* se.lproj */ = { 220 | isa = PBXGroup; 221 | children = ( 222 | 22D2D2C915A0743C00197498 /* Localizable.strings */, 223 | ); 224 | name = se.lproj; 225 | sourceTree = ""; 226 | }; 227 | 22D2D2CC15A0743C00197498 /* icons */ = { 228 | isa = PBXGroup; 229 | children = ( 230 | 22D2D2CD15A0743C00197498 /* icon.png */, 231 | 22D2D2CF15A0743C00197498 /* icon@2x.png */, 232 | 22D2D2D115A0743C00197498 /* icon-72.png */, 233 | ); 234 | name = icons; 235 | sourceTree = ""; 236 | }; 237 | 22D2D2D315A0743C00197498 /* splash */ = { 238 | isa = PBXGroup; 239 | children = ( 240 | 22D2D2D415A0743C00197498 /* Default~iphone.png */, 241 | 22D2D2D615A0743C00197498 /* Default@2x~iphone.png */, 242 | ); 243 | name = splash; 244 | sourceTree = ""; 245 | }; 246 | 22D2D2DC15A0743C00197498 /* Classes */ = { 247 | isa = PBXGroup; 248 | children = ( 249 | 22D2D2DD15A0743C00197498 /* AppDelegate.h */, 250 | 22D2D2DE15A0743C00197498 /* AppDelegate.m */, 251 | 22D2D2E015A0743C00197498 /* MainViewController.h */, 252 | 22D2D2E115A0743C00197498 /* MainViewController.m */, 253 | ); 254 | name = Classes; 255 | sourceTree = ""; 256 | }; 257 | 22D2D2E515A0743C00197498 /* Plugins */ = { 258 | isa = PBXGroup; 259 | children = ( 260 | 22D2D2E615A0743C00197498 /* README */, 261 | ); 262 | name = Plugins; 263 | sourceTree = ""; 264 | }; 265 | /* End PBXGroup section */ 266 | 267 | /* Begin PBXNativeTarget section */ 268 | 22D2D29115A0743B00197498 /* Loading data in Cordova */ = { 269 | isa = PBXNativeTarget; 270 | buildConfigurationList = 22D2D2EB15A0743C00197498 /* Build configuration list for PBXNativeTarget "Loading data in Cordova" */; 271 | buildPhases = ( 272 | 22D2D28B15A0743B00197498 /* Sources */, 273 | 22D2D28C15A0743B00197498 /* Frameworks */, 274 | 22D2D28D15A0743B00197498 /* Resources */, 275 | 22D2D28E15A0743B00197498 /* Sources */, 276 | 22D2D28F15A0743B00197498 /* Frameworks */, 277 | 22D2D29015A0743B00197498 /* ShellScript */, 278 | ); 279 | buildRules = ( 280 | ); 281 | dependencies = ( 282 | ); 283 | name = "Loading data in Cordova"; 284 | productName = "Loading data in Cordova"; 285 | productReference = 22D2D29215A0743B00197498 /* Loading data in Cordova.app */; 286 | productType = "com.apple.product-type.application"; 287 | }; 288 | /* End PBXNativeTarget section */ 289 | 290 | /* Begin PBXProject section */ 291 | 22D2D28615A0743B00197498 /* Project object */ = { 292 | isa = PBXProject; 293 | attributes = { 294 | LastUpgradeCheck = 0430; 295 | }; 296 | buildConfigurationList = 22D2D28915A0743B00197498 /* Build configuration list for PBXProject "Loading data in Cordova" */; 297 | compatibilityVersion = "Xcode 3.2"; 298 | developmentRegion = English; 299 | hasScannedForEncodings = 0; 300 | knownRegions = ( 301 | en, 302 | es, 303 | de, 304 | se, 305 | ); 306 | mainGroup = 22D2D28415A0743B00197498; 307 | productRefGroup = 22D2D29315A0743B00197498 /* Products */; 308 | projectDirPath = ""; 309 | projectRoot = ""; 310 | targets = ( 311 | 22D2D29115A0743B00197498 /* Loading data in Cordova */, 312 | ); 313 | }; 314 | /* End PBXProject section */ 315 | 316 | /* Begin PBXResourcesBuildPhase section */ 317 | 22D2D28D15A0743B00197498 /* Resources */ = { 318 | isa = PBXResourcesBuildPhase; 319 | buildActionMask = 2147483647; 320 | files = ( 321 | 22D2D2B515A0743C00197498 /* InfoPlist.strings in Resources */, 322 | 22D2D2BF15A0743C00197498 /* Localizable.strings in Resources */, 323 | 22D2D2C315A0743C00197498 /* Localizable.strings in Resources */, 324 | 22D2D2C715A0743C00197498 /* Localizable.strings in Resources */, 325 | 22D2D2CB15A0743C00197498 /* Localizable.strings in Resources */, 326 | 22D2D2CE15A0743C00197498 /* icon.png in Resources */, 327 | 22D2D2D015A0743C00197498 /* icon@2x.png in Resources */, 328 | 22D2D2D215A0743C00197498 /* icon-72.png in Resources */, 329 | 22D2D2D515A0743C00197498 /* Default~iphone.png in Resources */, 330 | 22D2D2D715A0743C00197498 /* Default@2x~iphone.png in Resources */, 331 | 22D2D2D915A0743C00197498 /* Capture.bundle in Resources */, 332 | 22D2D2DB15A0743C00197498 /* Cordova.plist in Resources */, 333 | 22D2D2E415A0743C00197498 /* MainViewController.xib in Resources */, 334 | 22D2D2E815A0743C00197498 /* verify.sh in Resources */, 335 | 22D2D2EF15A074A300197498 /* www in Resources */, 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | /* End PBXResourcesBuildPhase section */ 340 | 341 | /* Begin PBXShellScriptBuildPhase section */ 342 | 22D2D29015A0743B00197498 /* ShellScript */ = { 343 | isa = PBXShellScriptBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | inputPaths = ( 348 | ); 349 | outputPaths = ( 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | shellPath = /bin/bash; 353 | shellScript = "\n\t\t\t\t\t\t\t\tchmod 755 \"$PROJECT_DIR/$PROJECT_NAME/verify.sh\"\n\t\t\t\t\t\t\t\t\"$PROJECT_DIR/$PROJECT_NAME/verify.sh\"\n\t\t\t\t\t"; 354 | }; 355 | /* End PBXShellScriptBuildPhase section */ 356 | 357 | /* Begin PBXSourcesBuildPhase section */ 358 | 22D2D28B15A0743B00197498 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 22D2D2B715A0743C00197498 /* main.m in Sources */, 363 | 22D2D2DF15A0743C00197498 /* AppDelegate.m in Sources */, 364 | 22D2D2E215A0743C00197498 /* MainViewController.m in Sources */, 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | }; 368 | 22D2D28E15A0743B00197498 /* Sources */ = { 369 | isa = PBXSourcesBuildPhase; 370 | buildActionMask = 2147483647; 371 | files = ( 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | /* End PBXSourcesBuildPhase section */ 376 | 377 | /* Begin PBXVariantGroup section */ 378 | 22D2D2B315A0743C00197498 /* InfoPlist.strings */ = { 379 | isa = PBXVariantGroup; 380 | children = ( 381 | 22D2D2B415A0743C00197498 /* en */, 382 | ); 383 | name = InfoPlist.strings; 384 | sourceTree = ""; 385 | }; 386 | 22D2D2BD15A0743C00197498 /* Localizable.strings */ = { 387 | isa = PBXVariantGroup; 388 | children = ( 389 | 22D2D2BE15A0743C00197498 /* en */, 390 | ); 391 | name = Localizable.strings; 392 | sourceTree = ""; 393 | }; 394 | 22D2D2C115A0743C00197498 /* Localizable.strings */ = { 395 | isa = PBXVariantGroup; 396 | children = ( 397 | 22D2D2C215A0743C00197498 /* es */, 398 | ); 399 | name = Localizable.strings; 400 | sourceTree = ""; 401 | }; 402 | 22D2D2C515A0743C00197498 /* Localizable.strings */ = { 403 | isa = PBXVariantGroup; 404 | children = ( 405 | 22D2D2C615A0743C00197498 /* de */, 406 | ); 407 | name = Localizable.strings; 408 | sourceTree = ""; 409 | }; 410 | 22D2D2C915A0743C00197498 /* Localizable.strings */ = { 411 | isa = PBXVariantGroup; 412 | children = ( 413 | 22D2D2CA15A0743C00197498 /* se */, 414 | ); 415 | name = Localizable.strings; 416 | sourceTree = ""; 417 | }; 418 | /* End PBXVariantGroup section */ 419 | 420 | /* Begin XCBuildConfiguration section */ 421 | 22D2D2E915A0743C00197498 /* Debug */ = { 422 | isa = XCBuildConfiguration; 423 | buildSettings = { 424 | ALWAYS_SEARCH_USER_PATHS = NO; 425 | ARCHS = ( 426 | armv6, 427 | "$(ARCHS_STANDARD_32_BIT)", 428 | ); 429 | CLANG_ENABLE_OBJC_ARC = YES; 430 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 431 | COPY_PHASE_STRIP = NO; 432 | GCC_C_LANGUAGE_STANDARD = gnu99; 433 | GCC_DYNAMIC_NO_PIC = NO; 434 | GCC_OPTIMIZATION_LEVEL = 0; 435 | GCC_PREPROCESSOR_DEFINITIONS = ( 436 | "DEBUG=1", 437 | "$(inherited)", 438 | ); 439 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 440 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 441 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 442 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 443 | GCC_WARN_UNUSED_VARIABLE = YES; 444 | IPHONEOS_DEPLOYMENT_TARGET = 3.0; 445 | SDKROOT = iphoneos; 446 | }; 447 | name = Debug; 448 | }; 449 | 22D2D2EA15A0743C00197498 /* Release */ = { 450 | isa = XCBuildConfiguration; 451 | buildSettings = { 452 | ALWAYS_SEARCH_USER_PATHS = NO; 453 | ARCHS = ( 454 | armv6, 455 | "$(ARCHS_STANDARD_32_BIT)", 456 | ); 457 | CLANG_ENABLE_OBJC_ARC = YES; 458 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 459 | COPY_PHASE_STRIP = YES; 460 | GCC_C_LANGUAGE_STANDARD = gnu99; 461 | GCC_VERSION = com.apple.compilers.llvm.clang.1_0; 462 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 463 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 464 | GCC_WARN_UNUSED_VARIABLE = YES; 465 | IPHONEOS_DEPLOYMENT_TARGET = 3.0; 466 | SDKROOT = iphoneos; 467 | VALIDATE_PRODUCT = YES; 468 | }; 469 | name = Release; 470 | }; 471 | 22D2D2EC15A0743C00197498 /* Debug */ = { 472 | isa = XCBuildConfiguration; 473 | buildSettings = { 474 | ALWAYS_SEARCH_USER_PATHS = YES; 475 | COPY_PHASE_STRIP = NO; 476 | FRAMEWORK_SEARCH_PATHS = /Users/Shared/Cordova/Frameworks; 477 | GCC_DYNAMIC_NO_PIC = NO; 478 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 479 | GCC_PREFIX_HEADER = "Loading data in Cordova/Loading data in Cordova-Prefix.pch"; 480 | GCC_PREPROCESSOR_DEFINITIONS = ( 481 | "DEBUG=1,", 482 | "CORDOVA_FRAMEWORK=1", 483 | ); 484 | GCC_VERSION = com.apple.compilers.llvmgcc42; 485 | INFOPLIST_FILE = "Loading data in Cordova/Loading data in Cordova-Info.plist"; 486 | OTHER_LDFLAGS = ( 487 | "-weak_framework", 488 | UIKit, 489 | "-weak_framework", 490 | AVFoundation, 491 | "-weak_framework", 492 | CoreMedia, 493 | "-weak_library", 494 | /usr/lib/libSystem.B.dylib, 495 | ); 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | TARGETED_DEVICE_FAMILY = "1,2"; 498 | WRAPPER_EXTENSION = app; 499 | }; 500 | name = Debug; 501 | }; 502 | 22D2D2ED15A0743C00197498 /* Release */ = { 503 | isa = XCBuildConfiguration; 504 | buildSettings = { 505 | ALWAYS_SEARCH_USER_PATHS = YES; 506 | COPY_PHASE_STRIP = YES; 507 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 508 | FRAMEWORK_SEARCH_PATHS = /Users/Shared/Cordova/Frameworks; 509 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 510 | GCC_PREFIX_HEADER = "Loading data in Cordova/Loading data in Cordova-Prefix.pch"; 511 | GCC_PREPROCESSOR_DEFINITIONS = ( 512 | "NDEBUG=1,", 513 | "CORDOVA_FRAMEWORK=1", 514 | ); 515 | GCC_VERSION = com.apple.compilers.llvmgcc42; 516 | INFOPLIST_FILE = "Loading data in Cordova/Loading data in Cordova-Info.plist"; 517 | OTHER_LDFLAGS = ( 518 | "-weak_framework", 519 | UIKit, 520 | "-weak_framework", 521 | AVFoundation, 522 | "-weak_framework", 523 | CoreMedia, 524 | "-weak_library", 525 | /usr/lib/libSystem.B.dylib, 526 | ); 527 | PRODUCT_NAME = "$(TARGET_NAME)"; 528 | TARGETED_DEVICE_FAMILY = "1,2"; 529 | VALIDATE_PRODUCT = YES; 530 | WRAPPER_EXTENSION = app; 531 | }; 532 | name = Release; 533 | }; 534 | /* End XCBuildConfiguration section */ 535 | 536 | /* Begin XCConfigurationList section */ 537 | 22D2D28915A0743B00197498 /* Build configuration list for PBXProject "Loading data in Cordova" */ = { 538 | isa = XCConfigurationList; 539 | buildConfigurations = ( 540 | 22D2D2E915A0743C00197498 /* Debug */, 541 | 22D2D2EA15A0743C00197498 /* Release */, 542 | ); 543 | defaultConfigurationIsVisible = 0; 544 | defaultConfigurationName = Release; 545 | }; 546 | 22D2D2EB15A0743C00197498 /* Build configuration list for PBXNativeTarget "Loading data in Cordova" */ = { 547 | isa = XCConfigurationList; 548 | buildConfigurations = ( 549 | 22D2D2EC15A0743C00197498 /* Debug */, 550 | 22D2D2ED15A0743C00197498 /* Release */, 551 | ); 552 | defaultConfigurationIsVisible = 0; 553 | }; 554 | /* End XCConfigurationList section */ 555 | }; 556 | rootObject = 22D2D28615A0743B00197498 /* Project object */; 557 | } 558 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Classes/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // 21 | // AppDelegate.h 22 | // Loading data in Cordova 23 | // 24 | // Created by Samuel Croft on 01/07/2012. 25 | // Copyright __MyCompanyName__ 2012. All rights reserved. 26 | // 27 | 28 | #import 29 | 30 | #ifdef CORDOVA_FRAMEWORK 31 | #import 32 | #else 33 | #import "CDVViewController.h" 34 | #endif 35 | 36 | 37 | @interface AppDelegate : NSObject < UIApplicationDelegate > { 38 | 39 | } 40 | 41 | // invoke string is passed to your app on launch, this is only valid if you 42 | // edit Loading data in Cordova-Info.plist to add a protocol 43 | // a simple tutorial can be found here : 44 | // http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html 45 | 46 | @property (nonatomic, retain) IBOutlet UIWindow* window; 47 | @property (nonatomic, retain) IBOutlet CDVViewController* viewController; 48 | 49 | @end 50 | 51 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Classes/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // 21 | // AppDelegate.m 22 | // Loading data in Cordova 23 | // 24 | // Created by Samuel Croft on 01/07/2012. 25 | // Copyright __MyCompanyName__ 2012. All rights reserved. 26 | // 27 | 28 | #import "AppDelegate.h" 29 | #import "MainViewController.h" 30 | 31 | #ifdef CORDOVA_FRAMEWORK 32 | #import 33 | #import 34 | #else 35 | #import "CDVPlugin.h" 36 | #import "CDVURLProtocol.h" 37 | #endif 38 | 39 | 40 | @implementation AppDelegate 41 | 42 | @synthesize window, viewController; 43 | 44 | - (id) init 45 | { 46 | /** If you need to do any extra app-specific initialization, you can do it here 47 | * -jm 48 | **/ 49 | NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; 50 | [cookieStorage setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways]; 51 | 52 | [CDVURLProtocol registerURLProtocol]; 53 | 54 | return [super init]; 55 | } 56 | 57 | #pragma UIApplicationDelegate implementation 58 | 59 | /** 60 | * This is main kick off after the app inits, the views and Settings are setup here. (preferred - iOS4 and up) 61 | */ 62 | - (BOOL) application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions 63 | { 64 | NSURL* url = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey]; 65 | NSString* invokeString = nil; 66 | 67 | if (url && [url isKindOfClass:[NSURL class]]) { 68 | invokeString = [url absoluteString]; 69 | NSLog(@"Loading data in Cordova launchOptions = %@", url); 70 | } 71 | 72 | CGRect screenBounds = [[UIScreen mainScreen] bounds]; 73 | self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease]; 74 | self.window.autoresizesSubviews = YES; 75 | 76 | CGRect viewBounds = [[UIScreen mainScreen] applicationFrame]; 77 | 78 | self.viewController = [[[MainViewController alloc] init] autorelease]; 79 | self.viewController.useSplashScreen = YES; 80 | self.viewController.wwwFolderName = @"www"; 81 | self.viewController.startPage = @"index.html"; 82 | self.viewController.invokeString = invokeString; 83 | self.viewController.view.frame = viewBounds; 84 | 85 | // check whether the current orientation is supported: if it is, keep it, rather than forcing a rotation 86 | BOOL forceStartupRotation = YES; 87 | UIDeviceOrientation curDevOrientation = [[UIDevice currentDevice] orientation]; 88 | 89 | if (UIDeviceOrientationUnknown == curDevOrientation) { 90 | // UIDevice isn't firing orientation notifications yet… go look at the status bar 91 | curDevOrientation = (UIDeviceOrientation)[[UIApplication sharedApplication] statusBarOrientation]; 92 | } 93 | 94 | if (UIDeviceOrientationIsValidInterfaceOrientation(curDevOrientation)) { 95 | for (NSNumber *orient in self.viewController.supportedOrientations) { 96 | if ([orient intValue] == curDevOrientation) { 97 | forceStartupRotation = NO; 98 | break; 99 | } 100 | } 101 | } 102 | 103 | if (forceStartupRotation) { 104 | NSLog(@"supportedOrientations: %@", self.viewController.supportedOrientations); 105 | // The first item in the supportedOrientations array is the start orientation (guaranteed to be at least Portrait) 106 | UIInterfaceOrientation newOrient = [[self.viewController.supportedOrientations objectAtIndex:0] intValue]; 107 | NSLog(@"AppDelegate forcing status bar to: %d from: %d", newOrient, curDevOrientation); 108 | [[UIApplication sharedApplication] setStatusBarOrientation:newOrient]; 109 | } 110 | 111 | [self.window addSubview:self.viewController.view]; 112 | [self.window makeKeyAndVisible]; 113 | 114 | return YES; 115 | } 116 | 117 | // this happens while we are running ( in the background, or from within our own app ) 118 | // only valid if Loading data in Cordova-Info.plist specifies a protocol to handle 119 | - (BOOL) application:(UIApplication*)application handleOpenURL:(NSURL*)url 120 | { 121 | if (!url) { 122 | return NO; 123 | } 124 | 125 | // calls into javascript global function 'handleOpenURL' 126 | NSString* jsString = [NSString stringWithFormat:@"handleOpenURL(\"%@\");", url]; 127 | [self.viewController.webView stringByEvaluatingJavaScriptFromString:jsString]; 128 | 129 | // all plugins will get the notification, and their handlers will be called 130 | [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; 131 | 132 | return YES; 133 | } 134 | 135 | - (void) dealloc 136 | { 137 | [super dealloc]; 138 | } 139 | 140 | @end 141 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Classes/MainViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // 21 | // MainViewController.h 22 | // Loading data in Cordova 23 | // 24 | // Created by Samuel Croft on 01/07/2012. 25 | // Copyright __MyCompanyName__ 2012. All rights reserved. 26 | // 27 | 28 | #ifdef CORDOVA_FRAMEWORK 29 | #import 30 | #else 31 | #import "CDVViewController.h" 32 | #endif 33 | 34 | @interface MainViewController : CDVViewController 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Classes/MainViewController.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // 21 | // MainViewController.h 22 | // Loading data in Cordova 23 | // 24 | // Created by Samuel Croft on 01/07/2012. 25 | // Copyright __MyCompanyName__ 2012. All rights reserved. 26 | // 27 | 28 | #import "MainViewController.h" 29 | 30 | @implementation MainViewController 31 | 32 | - (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 33 | { 34 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 35 | if (self) { 36 | // Custom initialization 37 | } 38 | return self; 39 | } 40 | 41 | - (void) didReceiveMemoryWarning 42 | { 43 | // Releases the view if it doesn't have a superview. 44 | [super didReceiveMemoryWarning]; 45 | 46 | // Release any cached data, images, etc that aren't in use. 47 | } 48 | 49 | #pragma mark - View lifecycle 50 | 51 | - (void) viewDidLoad 52 | { 53 | [super viewDidLoad]; 54 | // Do any additional setup after loading the view from its nib. 55 | } 56 | 57 | - (void) viewDidUnload 58 | { 59 | [super viewDidUnload]; 60 | // Release any retained subviews of the main view. 61 | // e.g. self.myOutlet = nil; 62 | } 63 | 64 | - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 65 | { 66 | // Return YES for supported orientations 67 | return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation]; 68 | } 69 | 70 | /* Comment out the block below to over-ride */ 71 | /* 72 | - (CDVCordovaView*) newCordovaViewWithFrame:(CGRect)bounds 73 | { 74 | return[super newCordovaViewWithFrame:bounds]; 75 | } 76 | */ 77 | 78 | /* Comment out the block below to over-ride */ 79 | /* 80 | #pragma CDVCommandDelegate implementation 81 | 82 | - (id) getCommandInstance:(NSString*)className 83 | { 84 | return [super getCommandInstance:className]; 85 | } 86 | 87 | - (BOOL) execute:(CDVInvokedUrlCommand*)command 88 | { 89 | return [super execute:command]; 90 | } 91 | 92 | - (NSString*) pathForResource:(NSString*)resourcepath; 93 | { 94 | return [super pathForResource:resourcepath]; 95 | } 96 | 97 | - (void) registerPlugin:(CDVPlugin*)plugin withClassName:(NSString*)className 98 | { 99 | return [super registerPlugin:plugin withClassName:className]; 100 | } 101 | */ 102 | 103 | #pragma UIWebDelegate implementation 104 | 105 | - (void) webViewDidFinishLoad:(UIWebView*) theWebView 106 | { 107 | // only valid if ___PROJECTNAME__-Info.plist specifies a protocol to handle 108 | if (self.invokeString) 109 | { 110 | // this is passed before the deviceready event is fired, so you can access it in js when you receive deviceready 111 | NSString* jsString = [NSString stringWithFormat:@"var invokeString = \"%@\";", self.invokeString]; 112 | [theWebView stringByEvaluatingJavaScriptFromString:jsString]; 113 | } 114 | 115 | // Black base color for background matches the native apps 116 | theWebView.backgroundColor = [UIColor blackColor]; 117 | 118 | return [super webViewDidFinishLoad:theWebView]; 119 | } 120 | 121 | /* Comment out the block below to over-ride */ 122 | /* 123 | 124 | - (void) webViewDidStartLoad:(UIWebView*)theWebView 125 | { 126 | return [super webViewDidStartLoad:theWebView]; 127 | } 128 | 129 | - (void) webView:(UIWebView*)theWebView didFailLoadWithError:(NSError*)error 130 | { 131 | return [super webView:theWebView didFailLoadWithError:error]; 132 | } 133 | 134 | - (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType 135 | { 136 | return [super webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; 137 | } 138 | */ 139 | 140 | @end 141 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Classes/MainViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1280 5 | 11C25 6 | 1919 7 | 1138.11 8 | 566.00 9 | 10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 11 | 916 12 | 13 | 14 | IBProxyObject 15 | IBUIView 16 | 17 | 18 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 19 | 20 | 21 | PluginDependencyRecalculationVersion 22 | 23 | 24 | 25 | 26 | IBFilesOwner 27 | IBCocoaTouchFramework 28 | 29 | 30 | IBFirstResponder 31 | IBCocoaTouchFramework 32 | 33 | 34 | 35 | 274 36 | {{0, 20}, {320, 460}} 37 | 38 | 39 | 40 | 3 41 | MQA 42 | 43 | 2 44 | 45 | 46 | 47 | IBCocoaTouchFramework 48 | 49 | 50 | 51 | 52 | 53 | 54 | view 55 | 56 | 57 | 58 | 3 59 | 60 | 61 | 62 | 63 | 64 | 0 65 | 66 | 67 | 68 | 69 | 70 | 1 71 | 72 | 73 | 74 | 75 | -1 76 | 77 | 78 | File's Owner 79 | 80 | 81 | -2 82 | 83 | 84 | 85 | 86 | 87 | 88 | MainViewController 89 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 90 | UIResponder 91 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 92 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 93 | 94 | 95 | 96 | 97 | 98 | 3 99 | 100 | 101 | 102 | 103 | MainViewController 104 | UIViewController 105 | 106 | IBProjectSource 107 | ./Classes/MainViewController.h 108 | 109 | 110 | 111 | 112 | 0 113 | IBCocoaTouchFramework 114 | YES 115 | 3 116 | 916 117 | 118 | 119 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Cordova.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIWebViewBounce 6 | 7 | TopActivityIndicator 8 | gray 9 | EnableLocation 10 | 11 | EnableViewportScale 12 | 13 | AutoHideSplashScreen 14 | 15 | ShowSplashScreenSpinner 16 | 17 | MediaPlaybackRequiresUserAction 18 | 19 | AllowInlineMediaPlayback 20 | 21 | OpenAllWhitelistURLsInWebView 22 | 23 | ExternalHosts 24 | 25 | samcroft.co.uk 26 | 27 | Plugins 28 | 29 | Compass 30 | CDVLocation 31 | Accelerometer 32 | CDVAccelerometer 33 | Camera 34 | CDVCamera 35 | NetworkStatus 36 | CDVConnection 37 | Contacts 38 | CDVContacts 39 | Debug Console 40 | CDVDebugConsole 41 | File 42 | CDVFile 43 | FileTransfer 44 | CDVFileTransfer 45 | Geolocation 46 | CDVLocation 47 | Notification 48 | CDVNotification 49 | Media 50 | CDVSound 51 | Capture 52 | CDVCapture 53 | SplashScreen 54 | CDVSplashScreen 55 | Battery 56 | CDVBattery 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Loading data in Cordova-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIcons 6 | 7 | CFBundlePrimaryIcon 8 | 9 | CFBundleIconFiles 10 | 11 | icon.png 12 | icon@2x.png 13 | icon-72.png 14 | icon-72@2x.png 15 | 16 | UIPrerenderedIcon 17 | 18 | 19 | 20 | UISupportedInterfaceOrientations~ipad 21 | 22 | UIInterfaceOrientationPortrait 23 | UIInterfaceOrientationLandscapeLeft 24 | UIInterfaceOrientationPortraitUpsideDown 25 | UIInterfaceOrientationLandscapeRight 26 | 27 | UISupportedInterfaceOrientations 28 | 29 | UIInterfaceOrientationPortrait 30 | 31 | CFBundleDevelopmentRegion 32 | English 33 | CFBundleDisplayName 34 | ${PRODUCT_NAME} 35 | CFBundleExecutable 36 | ${EXECUTABLE_NAME} 37 | CFBundleIconFile 38 | icon.png 39 | CFBundleIdentifier 40 | RITH.Loading_data_in_Cordova 41 | CFBundleInfoDictionaryVersion 42 | 6.0 43 | CFBundleName 44 | ${PRODUCT_NAME} 45 | CFBundlePackageType 46 | APPL 47 | CFBundleSignature 48 | ???? 49 | CFBundleVersion 50 | 1.0 51 | LSRequiresIPhoneOS 52 | 53 | NSMainNibFile 54 | 55 | NSMainNibFile~ipad 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Loading data in Cordova-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Loading data in Cordova' target in the 'Loading data in Cordova' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Plugins/README: -------------------------------------------------------------------------------- 1 | Put the .h and .m files of your plugin here. The .js files of your plugin belong in the www folder. -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/controls_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/controls_bg.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/controls_bg@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/controls_bg@2x.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/controls_bg~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/controls_bg~ipad.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/microphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/microphone.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/microphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/microphone@2x.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/microphone~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/microphone~ipad.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/record_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/record_button.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/record_button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/record_button@2x.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/record_button~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/record_button~ipad.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/recording_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/recording_bg.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/recording_bg@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/recording_bg@2x.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/recording_bg~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/recording_bg~ipad.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/stop_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/stop_button.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/stop_button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/stop_button@2x.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/stop_button~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/Capture.bundle/stop_button~ipad.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/de.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | 21 | // accessibility label for recording button 22 | "toggle audio recording" = "starten/beenden der Tonaufnahme"; 23 | // notification spoken by VoiceOver when timed recording finishes 24 | "timed recording complete" = "programmierte Aufnahme beendet"; 25 | // accessibility hint for display of recorded elapsed time 26 | "recorded time in minutes and seconds" = "aufgenommene Zeit in Minuten und Sekunden"; -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // accessibility label for recording button 21 | "toggle audio recording" = "toggle audio recording"; 22 | // notification spoken by VoiceOver when timed recording finishes 23 | "timed recording complete" = "timed recording complete"; 24 | // accessibility hint for display of recorded elapsed time 25 | "recorded time in minutes and seconds" = "recorded time in minutes and seconds"; -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/es.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // accessibility label for recording button 21 | "toggle audio recording" = "grabación de audio cambiar"; 22 | // notification spoken by VoiceOver when timed recording finishes 23 | "timed recording complete" = "tiempo de grabación completo"; 24 | // accessibility hint for display of recorded elapsed time 25 | "recorded time in minutes and seconds" = "tiempo registrado en minutos y segundos"; -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/icons/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/icons/icon-72.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/icons/icon.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/icons/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/icons/icon@2x.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/se.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | 21 | // accessibility label for recording button 22 | "toggle audio recording" = "börja/avsluta inspelning"; 23 | // notification spoken by VoiceOver when timed recording finishes 24 | "timed recording complete" = "inspelning har avslutad"; 25 | // accessibility hint for display of recorded elapsed time 26 | "recorded time in minutes and seconds" = "inspelad tid in minuter och sekund"; -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/Resources/splash/Default~iphone.png -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/main.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | // 20 | // main.m 21 | // Loading data in Cordova 22 | // 23 | // Created by Samuel Croft on 01/07/2012. 24 | // Copyright __MyCompanyName__ 2012. All rights reserved. 25 | // 26 | 27 | #import 28 | 29 | int main(int argc, char *argv[]) { 30 | 31 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 32 | int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); 33 | [pool release]; 34 | return retVal; 35 | } 36 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/Loading data in Cordova/verify.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | if [ ! -d "$PROJECT_DIR/www" ] ; then 5 | cp -R /Users/Shared/Cordova/Frameworks/Cordova.framework/www "$PROJECT_DIR" 6 | fi 7 | # detect www folder reference in project, if missing, print warning 8 | grep "{isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = \"\"; };" "$PROJECT_DIR/$PROJECT_NAME.xcodeproj/project.pbxproj" 9 | rc=$? 10 | if [ $rc != 0 ] ; then 11 | echo -e "warning: Missing - Add $PROJECT_DIR/www as a folder reference in your project. Just drag and drop the folder into your project, into the Project Navigator of Xcode 4. Make sure you select the second radio-button: 'Create folder references for any added folders' (which will create a blue folder)" 1>&2 12 | fi -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /iOS app/Cordova-1.7.0+/Loading data in Cordova/www/js/load-json.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $(document).bind('deviceready', function(){ 3 | //Phonegap ready 4 | onDeviceReady(); 5 | }); 6 | 7 | var output = $('#output'); 8 | 9 | $.ajax({ 10 | url: 'http://samcroft.co.uk/demos/updated-load-data-into-phonegap/landmarks.php', 11 | dataType: 'jsonp', 12 | jsonp: 'jsoncallback', 13 | timeout: 5000, 14 | success: function(data, status){ 15 | $.each(data, function(i,item){ 16 | var landmark = '

'+item.name+'

' 17 | + '

'+item.latitude+'
' 18 | + item.longitude+'

'; 19 | 20 | output.append(landmark); 21 | }); 22 | }, 23 | error: function(){ 24 | output.text('There was an error loading the data.'); 25 | } 26 | }); 27 | }); -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Classes/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Loading data into PhoneGap 4 | // 5 | // Created by Sam Croft on 08/07/2011. 6 | // Copyright __MyCompanyName__ 2011. All rights reserved. 7 | // 8 | 9 | #import 10 | #ifdef PHONEGAP_FRAMEWORK 11 | #import 12 | #else 13 | #import "PhoneGapDelegate.h" 14 | #endif 15 | 16 | @interface AppDelegate : PhoneGapDelegate { 17 | 18 | NSString* invokeString; 19 | } 20 | 21 | // invoke string is passed to your app on launch, this is only valid if you 22 | // edit Loading data into PhoneGap.plist to add a protocol 23 | // a simple tutorial can be found here : 24 | // http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html 25 | 26 | @property (copy) NSString* invokeString; 27 | 28 | @end 29 | 30 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Classes/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Loading data into PhoneGap 4 | // 5 | // Created by Sam Croft on 08/07/2011. 6 | // Copyright __MyCompanyName__ 2011. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #ifdef PHONEGAP_FRAMEWORK 11 | #import 12 | #else 13 | #import "PhoneGapViewController.h" 14 | #endif 15 | 16 | @implementation AppDelegate 17 | 18 | @synthesize invokeString; 19 | 20 | - (id) init 21 | { 22 | /** If you need to do any extra app-specific initialization, you can do it here 23 | * -jm 24 | **/ 25 | return [super init]; 26 | } 27 | 28 | /** 29 | * This is main kick off after the app inits, the views and Settings are setup here. (preferred - iOS4 and up) 30 | */ 31 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 32 | { 33 | 34 | NSArray *keyArray = [launchOptions allKeys]; 35 | if ([launchOptions objectForKey:[keyArray objectAtIndex:0]]!=nil) 36 | { 37 | NSURL *url = [launchOptions objectForKey:[keyArray objectAtIndex:0]]; 38 | self.invokeString = [url absoluteString]; 39 | NSLog(@"Loading data into PhoneGap launchOptions = %@",url); 40 | } 41 | 42 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 43 | } 44 | 45 | // this happens while we are running ( in the background, or from within our own app ) 46 | // only valid if Loading data into PhoneGap.plist specifies a protocol to handle 47 | - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url 48 | { 49 | // Do something with the url here 50 | NSString* jsString = [NSString stringWithFormat:@"handleOpenURL(\"%@\");", url]; 51 | [webView stringByEvaluatingJavaScriptFromString:jsString]; 52 | 53 | return YES; 54 | } 55 | 56 | -(id) getCommandInstance:(NSString*)className 57 | { 58 | /** You can catch your own commands here, if you wanted to extend the gap: protocol, or add your 59 | * own app specific protocol to it. -jm 60 | **/ 61 | return [super getCommandInstance:className]; 62 | } 63 | 64 | /** 65 | Called when the webview finishes loading. This stops the activity view and closes the imageview 66 | */ 67 | - (void)webViewDidFinishLoad:(UIWebView *)theWebView 68 | { 69 | // only valid if Loading data into PhoneGap.plist specifies a protocol to handle 70 | if(self.invokeString) 71 | { 72 | // this is passed before the deviceready event is fired, so you can access it in js when you receive deviceready 73 | NSString* jsString = [NSString stringWithFormat:@"var invokeString = \"%@\";", self.invokeString]; 74 | [theWebView stringByEvaluatingJavaScriptFromString:jsString]; 75 | } 76 | return [ super webViewDidFinishLoad:theWebView ]; 77 | } 78 | 79 | - (void)webViewDidStartLoad:(UIWebView *)theWebView 80 | { 81 | //prevent numbers being converted to tel. links 82 | theWebView.dataDetectorTypes = UIDataDetectorTypeNone; 83 | return [ super webViewDidStartLoad:theWebView ]; 84 | } 85 | 86 | /** 87 | * Fail Loading With Error 88 | * Error - If the webpage failed to load display an error with the reason. 89 | */ 90 | - (void)webView:(UIWebView *)theWebView didFailLoadWithError:(NSError *)error 91 | { 92 | return [ super webView:theWebView didFailLoadWithError:error ]; 93 | } 94 | 95 | /** 96 | * Start Loading Request 97 | * This is where most of the magic happens... We take the request(s) and process the response. 98 | * From here we can re direct links and other protocalls to different internal methods. 99 | */ 100 | - (BOOL)webView:(UIWebView *)theWebView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType 101 | { 102 | return [ super webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType ]; 103 | } 104 | 105 | 106 | - (BOOL) execute:(InvokedUrlCommand*)command 107 | { 108 | return [ super execute:command]; 109 | } 110 | 111 | - (void)dealloc 112 | { 113 | [ super dealloc ]; 114 | } 115 | 116 | @end 117 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Loading data into PhoneGap.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 45; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1D3623260D0F684500981E51 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* AppDelegate.m */; }; 11 | 1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; }; 12 | 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; 13 | 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; 14 | 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; 15 | 301BF552109A68D80062928A /* libPhoneGap.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF535109A57CC0062928A /* libPhoneGap.a */; }; 16 | 301BF570109A69640062928A /* www in Resources */ = {isa = PBXBuildFile; fileRef = 301BF56E109A69640062928A /* www */; }; 17 | 301BF5B5109A6A2B0062928A /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5B4109A6A2B0062928A /* AddressBook.framework */; }; 18 | 301BF5B7109A6A2B0062928A /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5B6109A6A2B0062928A /* AddressBookUI.framework */; }; 19 | 301BF5B9109A6A2B0062928A /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5B8109A6A2B0062928A /* AudioToolbox.framework */; }; 20 | 301BF5BB109A6A2B0062928A /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5BA109A6A2B0062928A /* AVFoundation.framework */; }; 21 | 301BF5BD109A6A2B0062928A /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5BC109A6A2B0062928A /* CFNetwork.framework */; }; 22 | 301BF5BF109A6A2B0062928A /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5BE109A6A2B0062928A /* CoreLocation.framework */; }; 23 | 301BF5C1109A6A2B0062928A /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5C0109A6A2B0062928A /* MediaPlayer.framework */; }; 24 | 301BF5C3109A6A2B0062928A /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5C2109A6A2B0062928A /* QuartzCore.framework */; }; 25 | 301BF5C5109A6A2B0062928A /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 301BF5C4109A6A2B0062928A /* SystemConfiguration.framework */; }; 26 | 3053AC6F109B7857006FCFE7 /* VERSION in Resources */ = {isa = PBXBuildFile; fileRef = 3053AC6E109B7857006FCFE7 /* VERSION */; }; 27 | 305D5FD1115AB8F900A74A75 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 305D5FD0115AB8F900A74A75 /* MobileCoreServices.framework */; }; 28 | 307D28A2123043360040C0FA /* PhoneGapBuildSettings.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 307D28A1123043350040C0FA /* PhoneGapBuildSettings.xcconfig */; }; 29 | 308D05371370CCF300D202BF /* icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D052E1370CCF300D202BF /* icon-72.png */; }; 30 | 308D05381370CCF300D202BF /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D052F1370CCF300D202BF /* icon.png */; }; 31 | 308D05391370CCF300D202BF /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D05301370CCF300D202BF /* icon@2x.png */; }; 32 | 308D053A1370CCF300D202BF /* Default-Landscape.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D05321370CCF300D202BF /* Default-Landscape.png */; }; 33 | 308D053B1370CCF300D202BF /* Default-Portrait.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D05331370CCF300D202BF /* Default-Portrait.png */; }; 34 | 308D053C1370CCF300D202BF /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D05341370CCF300D202BF /* Default.png */; }; 35 | 308D053D1370CCF300D202BF /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D05351370CCF300D202BF /* Default@2x.png */; }; 36 | 308D053E1370CCF300D202BF /* Default~iPad.png in Resources */ = {isa = PBXBuildFile; fileRef = 308D05361370CCF300D202BF /* Default~iPad.png */; }; 37 | 30E1352710E2C1420031B30D /* PhoneGap.plist in Resources */ = {isa = PBXBuildFile; fileRef = 30E1352610E2C1420031B30D /* PhoneGap.plist */; }; 38 | /* End PBXBuildFile section */ 39 | 40 | /* Begin PBXContainerItemProxy section */ 41 | 301BF534109A57CC0062928A /* PBXContainerItemProxy */ = { 42 | isa = PBXContainerItemProxy; 43 | containerPortal = 301BF52D109A57CC0062928A /* PhoneGapLib.xcodeproj */; 44 | proxyType = 2; 45 | remoteGlobalIDString = D2AAC07E0554694100DB518D; 46 | remoteInfo = PhoneGapLib; 47 | }; 48 | 301BF550109A68C00062928A /* PBXContainerItemProxy */ = { 49 | isa = PBXContainerItemProxy; 50 | containerPortal = 301BF52D109A57CC0062928A /* PhoneGapLib.xcodeproj */; 51 | proxyType = 1; 52 | remoteGlobalIDString = D2AAC07D0554694100DB518D; 53 | remoteInfo = PhoneGapLib; 54 | }; 55 | 30E47BC2136F595F00DBB853 /* PBXContainerItemProxy */ = { 56 | isa = PBXContainerItemProxy; 57 | containerPortal = 301BF52D109A57CC0062928A /* PhoneGapLib.xcodeproj */; 58 | proxyType = 2; 59 | remoteGlobalIDString = 303258D8136B2C9400982B63; 60 | remoteInfo = PhoneGap; 61 | }; 62 | /* End PBXContainerItemProxy section */ 63 | 64 | /* Begin PBXFileReference section */ 65 | 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 66 | 1D3623240D0F684500981E51 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 67 | 1D3623250D0F684500981E51 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 68 | 1D6058910D05DD3D006BFB54 /* Loading data into PhoneGap.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Loading data into PhoneGap.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 70 | 288765FC0DF74451002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 71 | 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 72 | 301BF52D109A57CC0062928A /* PhoneGapLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = PhoneGapLib.xcodeproj; sourceTree = PHONEGAPLIB; }; 73 | 301BF56E109A69640062928A /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = SOURCE_ROOT; }; 74 | 301BF5B4109A6A2B0062928A /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; }; 75 | 301BF5B6109A6A2B0062928A /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; }; 76 | 301BF5B8109A6A2B0062928A /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; 77 | 301BF5BA109A6A2B0062928A /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 78 | 301BF5BC109A6A2B0062928A /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; 79 | 301BF5BE109A6A2B0062928A /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; }; 80 | 301BF5C0109A6A2B0062928A /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; 81 | 301BF5C2109A6A2B0062928A /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; 82 | 301BF5C4109A6A2B0062928A /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 83 | 3053AC6E109B7857006FCFE7 /* VERSION */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = VERSION; sourceTree = PHONEGAPLIB; }; 84 | 305D5FD0115AB8F900A74A75 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; 85 | 307D28A1123043350040C0FA /* PhoneGapBuildSettings.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = PhoneGapBuildSettings.xcconfig; sourceTree = ""; }; 86 | 308D052E1370CCF300D202BF /* icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon-72.png"; sourceTree = ""; }; 87 | 308D052F1370CCF300D202BF /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = ""; }; 88 | 308D05301370CCF300D202BF /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon@2x.png"; sourceTree = ""; }; 89 | 308D05321370CCF300D202BF /* Default-Landscape.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Landscape.png"; sourceTree = ""; }; 90 | 308D05331370CCF300D202BF /* Default-Portrait.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Portrait.png"; sourceTree = ""; }; 91 | 308D05341370CCF300D202BF /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; 92 | 308D05351370CCF300D202BF /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; 93 | 308D05361370CCF300D202BF /* Default~iPad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default~iPad.png"; sourceTree = ""; }; 94 | 30E1352610E2C1420031B30D /* PhoneGap.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = PhoneGap.plist; sourceTree = ""; }; 95 | 32CA4F630368D1EE00C91783 /* Loading_data_into_PhoneGap-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Loading_data_into_PhoneGap-Prefix.pch"; sourceTree = ""; }; 96 | 8D1107310486CEB800E47090 /* Loading_data_into_PhoneGap-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Loading_data_into_PhoneGap-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; 97 | /* End PBXFileReference section */ 98 | 99 | /* Begin PBXFrameworksBuildPhase section */ 100 | 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { 101 | isa = PBXFrameworksBuildPhase; 102 | buildActionMask = 2147483647; 103 | files = ( 104 | 301BF552109A68D80062928A /* libPhoneGap.a in Frameworks */, 105 | 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, 106 | 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, 107 | 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */, 108 | 301BF5B5109A6A2B0062928A /* AddressBook.framework in Frameworks */, 109 | 301BF5B7109A6A2B0062928A /* AddressBookUI.framework in Frameworks */, 110 | 301BF5B9109A6A2B0062928A /* AudioToolbox.framework in Frameworks */, 111 | 301BF5BB109A6A2B0062928A /* AVFoundation.framework in Frameworks */, 112 | 301BF5BD109A6A2B0062928A /* CFNetwork.framework in Frameworks */, 113 | 301BF5BF109A6A2B0062928A /* CoreLocation.framework in Frameworks */, 114 | 301BF5C1109A6A2B0062928A /* MediaPlayer.framework in Frameworks */, 115 | 301BF5C3109A6A2B0062928A /* QuartzCore.framework in Frameworks */, 116 | 301BF5C5109A6A2B0062928A /* SystemConfiguration.framework in Frameworks */, 117 | 305D5FD1115AB8F900A74A75 /* MobileCoreServices.framework in Frameworks */, 118 | ); 119 | runOnlyForDeploymentPostprocessing = 0; 120 | }; 121 | /* End PBXFrameworksBuildPhase section */ 122 | 123 | /* Begin PBXGroup section */ 124 | 080E96DDFE201D6D7F000001 /* Classes */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 1D3623240D0F684500981E51 /* AppDelegate.h */, 128 | 1D3623250D0F684500981E51 /* AppDelegate.m */, 129 | ); 130 | path = Classes; 131 | sourceTree = SOURCE_ROOT; 132 | }; 133 | 19C28FACFE9D520D11CA2CBB /* Products */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 1D6058910D05DD3D006BFB54 /* Loading data into PhoneGap.app */, 137 | ); 138 | name = Products; 139 | sourceTree = ""; 140 | }; 141 | 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 301BF56E109A69640062928A /* www */, 145 | 301BF52D109A57CC0062928A /* PhoneGapLib.xcodeproj */, 146 | 080E96DDFE201D6D7F000001 /* Classes */, 147 | 307C750510C5A3420062BCA9 /* Plugins */, 148 | 29B97315FDCFA39411CA2CEA /* Other Sources */, 149 | 29B97317FDCFA39411CA2CEA /* Resources */, 150 | 29B97323FDCFA39411CA2CEA /* Frameworks */, 151 | 19C28FACFE9D520D11CA2CBB /* Products */, 152 | ); 153 | name = CustomTemplate; 154 | sourceTree = ""; 155 | }; 156 | 29B97315FDCFA39411CA2CEA /* Other Sources */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 32CA4F630368D1EE00C91783 /* Loading_data_into_PhoneGap-Prefix.pch */, 160 | 29B97316FDCFA39411CA2CEA /* main.m */, 161 | ); 162 | name = "Other Sources"; 163 | sourceTree = ""; 164 | }; 165 | 29B97317FDCFA39411CA2CEA /* Resources */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 308D052D1370CCF300D202BF /* icons */, 169 | 308D05311370CCF300D202BF /* splash */, 170 | 30E1352610E2C1420031B30D /* PhoneGap.plist */, 171 | 3053AC6E109B7857006FCFE7 /* VERSION */, 172 | 8D1107310486CEB800E47090 /* Loading_data_into_PhoneGap-Info.plist */, 173 | 307D28A1123043350040C0FA /* PhoneGapBuildSettings.xcconfig */, 174 | ); 175 | name = Resources; 176 | sourceTree = ""; 177 | }; 178 | 29B97323FDCFA39411CA2CEA /* Frameworks */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, 182 | 1D30AB110D05D00D00671497 /* Foundation.framework */, 183 | 288765FC0DF74451002DB57D /* CoreGraphics.framework */, 184 | 301BF5B4109A6A2B0062928A /* AddressBook.framework */, 185 | 301BF5B6109A6A2B0062928A /* AddressBookUI.framework */, 186 | 301BF5B8109A6A2B0062928A /* AudioToolbox.framework */, 187 | 301BF5BA109A6A2B0062928A /* AVFoundation.framework */, 188 | 301BF5BC109A6A2B0062928A /* CFNetwork.framework */, 189 | 301BF5BE109A6A2B0062928A /* CoreLocation.framework */, 190 | 301BF5C0109A6A2B0062928A /* MediaPlayer.framework */, 191 | 301BF5C2109A6A2B0062928A /* QuartzCore.framework */, 192 | 301BF5C4109A6A2B0062928A /* SystemConfiguration.framework */, 193 | 305D5FD0115AB8F900A74A75 /* MobileCoreServices.framework */, 194 | ); 195 | name = Frameworks; 196 | sourceTree = ""; 197 | }; 198 | 301BF52E109A57CC0062928A /* Products */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 301BF535109A57CC0062928A /* libPhoneGap.a */, 202 | 30E47BC3136F595F00DBB853 /* PhoneGap.framework */, 203 | ); 204 | name = Products; 205 | sourceTree = ""; 206 | }; 207 | 307C750510C5A3420062BCA9 /* Plugins */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | ); 211 | path = Plugins; 212 | sourceTree = SOURCE_ROOT; 213 | }; 214 | 308D052D1370CCF300D202BF /* icons */ = { 215 | isa = PBXGroup; 216 | children = ( 217 | 308D052E1370CCF300D202BF /* icon-72.png */, 218 | 308D052F1370CCF300D202BF /* icon.png */, 219 | 308D05301370CCF300D202BF /* icon@2x.png */, 220 | ); 221 | name = icons; 222 | path = Resources/icons; 223 | sourceTree = ""; 224 | }; 225 | 308D05311370CCF300D202BF /* splash */ = { 226 | isa = PBXGroup; 227 | children = ( 228 | 308D05321370CCF300D202BF /* Default-Landscape.png */, 229 | 308D05331370CCF300D202BF /* Default-Portrait.png */, 230 | 308D05341370CCF300D202BF /* Default.png */, 231 | 308D05351370CCF300D202BF /* Default@2x.png */, 232 | 308D05361370CCF300D202BF /* Default~iPad.png */, 233 | ); 234 | name = splash; 235 | path = Resources/splash; 236 | sourceTree = ""; 237 | }; 238 | /* End PBXGroup section */ 239 | 240 | /* Begin PBXNativeTarget section */ 241 | 1D6058900D05DD3D006BFB54 /* Loading data into PhoneGap */ = { 242 | isa = PBXNativeTarget; 243 | buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Loading data into PhoneGap" */; 244 | buildPhases = ( 245 | 30E9A9A110B758320022D3BA /* Check PhoneGap Reference */, 246 | 304B58A110DAC018002A0835 /* Touch www folder */, 247 | 1D60588D0D05DD3D006BFB54 /* Resources */, 248 | 1D60588E0D05DD3D006BFB54 /* Sources */, 249 | 1D60588F0D05DD3D006BFB54 /* Frameworks */, 250 | ); 251 | buildRules = ( 252 | ); 253 | dependencies = ( 254 | 301BF551109A68C00062928A /* PBXTargetDependency */, 255 | ); 256 | name = "Loading data into PhoneGap"; 257 | productName = "Loading data into PhoneGap"; 258 | productReference = 1D6058910D05DD3D006BFB54 /* Loading data into PhoneGap.app */; 259 | productType = "com.apple.product-type.application"; 260 | }; 261 | /* End PBXNativeTarget section */ 262 | 263 | /* Begin PBXProject section */ 264 | 29B97313FDCFA39411CA2CEA /* Project object */ = { 265 | isa = PBXProject; 266 | buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Loading data into PhoneGap" */; 267 | compatibilityVersion = "Xcode 3.1"; 268 | developmentRegion = English; 269 | hasScannedForEncodings = 1; 270 | knownRegions = ( 271 | English, 272 | Japanese, 273 | French, 274 | German, 275 | ); 276 | mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; 277 | projectDirPath = ""; 278 | projectReferences = ( 279 | { 280 | ProductGroup = 301BF52E109A57CC0062928A /* Products */; 281 | ProjectRef = 301BF52D109A57CC0062928A /* PhoneGapLib.xcodeproj */; 282 | }, 283 | ); 284 | projectRoot = ""; 285 | targets = ( 286 | 1D6058900D05DD3D006BFB54 /* Loading data into PhoneGap */, 287 | ); 288 | }; 289 | /* End PBXProject section */ 290 | 291 | /* Begin PBXReferenceProxy section */ 292 | 301BF535109A57CC0062928A /* libPhoneGap.a */ = { 293 | isa = PBXReferenceProxy; 294 | fileType = archive.ar; 295 | path = libPhoneGap.a; 296 | remoteRef = 301BF534109A57CC0062928A /* PBXContainerItemProxy */; 297 | sourceTree = BUILT_PRODUCTS_DIR; 298 | }; 299 | 30E47BC3136F595F00DBB853 /* PhoneGap.framework */ = { 300 | isa = PBXReferenceProxy; 301 | fileType = wrapper.cfbundle; 302 | path = PhoneGap.framework; 303 | remoteRef = 30E47BC2136F595F00DBB853 /* PBXContainerItemProxy */; 304 | sourceTree = BUILT_PRODUCTS_DIR; 305 | }; 306 | /* End PBXReferenceProxy section */ 307 | 308 | /* Begin PBXResourcesBuildPhase section */ 309 | 1D60588D0D05DD3D006BFB54 /* Resources */ = { 310 | isa = PBXResourcesBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | 301BF570109A69640062928A /* www in Resources */, 314 | 3053AC6F109B7857006FCFE7 /* VERSION in Resources */, 315 | 30E1352710E2C1420031B30D /* PhoneGap.plist in Resources */, 316 | 307D28A2123043360040C0FA /* PhoneGapBuildSettings.xcconfig in Resources */, 317 | 308D05371370CCF300D202BF /* icon-72.png in Resources */, 318 | 308D05381370CCF300D202BF /* icon.png in Resources */, 319 | 308D05391370CCF300D202BF /* icon@2x.png in Resources */, 320 | 308D053A1370CCF300D202BF /* Default-Landscape.png in Resources */, 321 | 308D053B1370CCF300D202BF /* Default-Portrait.png in Resources */, 322 | 308D053C1370CCF300D202BF /* Default.png in Resources */, 323 | 308D053D1370CCF300D202BF /* Default@2x.png in Resources */, 324 | 308D053E1370CCF300D202BF /* Default~iPad.png in Resources */, 325 | ); 326 | runOnlyForDeploymentPostprocessing = 0; 327 | }; 328 | /* End PBXResourcesBuildPhase section */ 329 | 330 | /* Begin PBXShellScriptBuildPhase section */ 331 | 304B58A110DAC018002A0835 /* Touch www folder */ = { 332 | isa = PBXShellScriptBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | ); 336 | inputPaths = ( 337 | ); 338 | name = "Touch www folder"; 339 | outputPaths = ( 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | shellPath = /bin/sh; 343 | shellScript = "touch -cm ${PROJECT_DIR}/www"; 344 | }; 345 | 30E9A9A110B758320022D3BA /* Check PhoneGap Reference */ = { 346 | isa = PBXShellScriptBuildPhase; 347 | buildActionMask = 2147483647; 348 | files = ( 349 | ); 350 | inputPaths = ( 351 | ); 352 | name = "Check PhoneGap Reference"; 353 | outputPaths = ( 354 | ); 355 | runOnlyForDeploymentPostprocessing = 0; 356 | shellPath = /bin/sh; 357 | shellScript = "# get the PhoneGapLib version\nPGVER=`head -1 \"${PHONEGAPLIB}/VERSION\"`\nTARGET=\"${PROJECT_DIR}/www\"\n\n# look for a reference in all files for \"phonegap.{PGVER}.*.js\" in www, warn if missing\nfind \"${TARGET}\" | xargs grep \"phonegap.${PGVER}.*.js\" -sl\nrc=$?\nif [ $rc != 0 ] ; then\n\techo -e \"${PROJECT_DIR}/www:0: warning: Missing - A reference to 'phonegap.${PGVER}.js' or 'phonegap.${PGVER}.min.js' was not found in your HTML file(s).\" 1>&2\nfi"; 358 | }; 359 | /* End PBXShellScriptBuildPhase section */ 360 | 361 | /* Begin PBXSourcesBuildPhase section */ 362 | 1D60588E0D05DD3D006BFB54 /* Sources */ = { 363 | isa = PBXSourcesBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | 1D60589B0D05DD56006BFB54 /* main.m in Sources */, 367 | 1D3623260D0F684500981E51 /* AppDelegate.m in Sources */, 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | }; 371 | /* End PBXSourcesBuildPhase section */ 372 | 373 | /* Begin PBXTargetDependency section */ 374 | 301BF551109A68C00062928A /* PBXTargetDependency */ = { 375 | isa = PBXTargetDependency; 376 | name = PhoneGapLib; 377 | targetProxy = 301BF550109A68C00062928A /* PBXContainerItemProxy */; 378 | }; 379 | /* End PBXTargetDependency section */ 380 | 381 | /* Begin XCBuildConfiguration section */ 382 | 1D6058940D05DD3E006BFB54 /* Debug */ = { 383 | isa = XCBuildConfiguration; 384 | buildSettings = { 385 | ALWAYS_SEARCH_USER_PATHS = NO; 386 | COPY_PHASE_STRIP = NO; 387 | GCC_DYNAMIC_NO_PIC = NO; 388 | GCC_OPTIMIZATION_LEVEL = 0; 389 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 390 | GCC_PREFIX_HEADER = "Loading_data_into_PhoneGap-Prefix.pch"; 391 | INFOPLIST_FILE = "Loading_data_into_PhoneGap-Info.plist"; 392 | PRODUCT_NAME = "Loading data into PhoneGap"; 393 | }; 394 | name = Debug; 395 | }; 396 | 1D6058950D05DD3E006BFB54 /* Release */ = { 397 | isa = XCBuildConfiguration; 398 | buildSettings = { 399 | ALWAYS_SEARCH_USER_PATHS = NO; 400 | COPY_PHASE_STRIP = YES; 401 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 402 | GCC_PREFIX_HEADER = "Loading_data_into_PhoneGap-Prefix.pch"; 403 | INFOPLIST_FILE = "Loading_data_into_PhoneGap-Info.plist"; 404 | PRODUCT_NAME = "Loading data into PhoneGap"; 405 | }; 406 | name = Release; 407 | }; 408 | C01FCF4F08A954540054247B /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 307D28A1123043350040C0FA /* PhoneGapBuildSettings.xcconfig */; 411 | buildSettings = { 412 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Don't Code Sign"; 414 | GCC_C_LANGUAGE_STANDARD = c99; 415 | GCC_VERSION = com.apple.compilers.llvmgcc42; 416 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 417 | GCC_WARN_UNUSED_VARIABLE = YES; 418 | IPHONEOS_DEPLOYMENT_TARGET = 3.0; 419 | OTHER_LDFLAGS = ( 420 | "-all_load", 421 | "-Obj-C", 422 | ); 423 | PREBINDING = NO; 424 | "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; 425 | SDKROOT = iphoneos; 426 | SKIP_INSTALL = NO; 427 | USER_HEADER_SEARCH_PATHS = "\"$(PHONEGAPLIB)/Classes/JSON\" \"$(PHONEGAPLIB)/Classes\""; 428 | }; 429 | name = Debug; 430 | }; 431 | C01FCF5008A954540054247B /* Release */ = { 432 | isa = XCBuildConfiguration; 433 | baseConfigurationReference = 307D28A1123043350040C0FA /* PhoneGapBuildSettings.xcconfig */; 434 | buildSettings = { 435 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 436 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Don't Code Sign"; 437 | GCC_C_LANGUAGE_STANDARD = c99; 438 | GCC_VERSION = com.apple.compilers.llvmgcc42; 439 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 440 | GCC_WARN_UNUSED_VARIABLE = YES; 441 | IPHONEOS_DEPLOYMENT_TARGET = 3.0; 442 | OTHER_LDFLAGS = ( 443 | "-all_load", 444 | "-Obj-C", 445 | ); 446 | PREBINDING = NO; 447 | "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; 448 | SDKROOT = iphoneos; 449 | SKIP_INSTALL = NO; 450 | USER_HEADER_SEARCH_PATHS = "\"$(PHONEGAPLIB)/Classes/JSON\" \"$(PHONEGAPLIB)/Classes\""; 451 | }; 452 | name = Release; 453 | }; 454 | /* End XCBuildConfiguration section */ 455 | 456 | /* Begin XCConfigurationList section */ 457 | 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Loading data into PhoneGap" */ = { 458 | isa = XCConfigurationList; 459 | buildConfigurations = ( 460 | 1D6058940D05DD3E006BFB54 /* Debug */, 461 | 1D6058950D05DD3E006BFB54 /* Release */, 462 | ); 463 | defaultConfigurationIsVisible = 0; 464 | defaultConfigurationName = Release; 465 | }; 466 | C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Loading data into PhoneGap" */ = { 467 | isa = XCConfigurationList; 468 | buildConfigurations = ( 469 | C01FCF4F08A954540054247B /* Debug */, 470 | C01FCF5008A954540054247B /* Release */, 471 | ); 472 | defaultConfigurationIsVisible = 0; 473 | defaultConfigurationName = Release; 474 | }; 475 | /* End XCConfigurationList section */ 476 | }; 477 | rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; 478 | } 479 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Loading_data_into_PhoneGap-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIconFiles 6 | 7 | icon.png 8 | icon@2x.png 9 | icon-72.png 10 | 11 | UISupportedInterfaceOrientations~ipad 12 | 13 | UIInterfaceOrientationPortrait 14 | UIInterfaceOrientationLandscapeLeft 15 | UIInterfaceOrientationPortraitUpsideDown 16 | UIInterfaceOrientationLandscapeRight 17 | 18 | UISupportedInterfaceOrientations 19 | 20 | UIInterfaceOrientationPortrait 21 | 22 | CFBundleDevelopmentRegion 23 | English 24 | CFBundleDisplayName 25 | ${PRODUCT_NAME} 26 | CFBundleExecutable 27 | ${EXECUTABLE_NAME} 28 | CFBundleIconFile 29 | icon.png 30 | CFBundleIdentifier 31 | com.yourcompany.Loading_data_into_PhoneGap 32 | CFBundleInfoDictionaryVersion 33 | 6.0 34 | CFBundleName 35 | ${PRODUCT_NAME} 36 | CFBundlePackageType 37 | APPL 38 | CFBundleSignature 39 | ???? 40 | CFBundleVersion 41 | 1.0 42 | LSRequiresIPhoneOS 43 | 44 | NSMainNibFile 45 | 46 | NSMainNibFile~ipad 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Loading_data_into_PhoneGap-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Loading data into PhoneGap' target in the 'Loading data into PhoneGap' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/PhoneGap.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | DetectPhoneNumber 6 | 7 | TopActivityIndicator 8 | gray 9 | EnableLocation 10 | 11 | EnableAcceleration 12 | 13 | ExternalHosts 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/PhoneGapBuildSettings.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // PhoneGap.xcconfig 3 | // Loading data into PhoneGap 4 | // 5 | 6 | // Override this to use your project specific PHONEGAPLIB. 7 | // You can base it off the current project path, $(PROJECT_DIR) 8 | PHONEGAPLIB = $(PHONEGAPLIB) -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Plugins/README: -------------------------------------------------------------------------------- 1 | Put the .h and .m files of your plugin here. The .js files of your plugin belong in the www folder. -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Resources/icons/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-0.95/Resources/icons/icon-72.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Resources/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-0.95/Resources/icons/icon.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Resources/icons/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-0.95/Resources/icons/icon@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Resources/splash/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-0.95/Resources/splash/Default-Landscape.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Resources/splash/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-0.95/Resources/splash/Default-Portrait.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Resources/splash/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-0.95/Resources/splash/Default.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Resources/splash/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-0.95/Resources/splash/Default@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/Resources/splash/Default~iPad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-0.95/Resources/splash/Default~iPad.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Loading data into PhoneGap 4 | // 5 | // Created by Sam Croft on 08/07/2011. 6 | // Copyright __MyCompanyName__ 2011. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | 13 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/www/js/load-json.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $(document).bind('deviceready', function(){ 3 | var output = $('#output'); 4 | 5 | $.ajax({ 6 | url: 'http://samcroft.co.uk/demos/updated-load-data-into-phonegap/landmarks.php', 7 | dataType: 'jsonp', 8 | jsonp: 'jsoncallback', 9 | timeout: 5000, 10 | success: function(data, status){ 11 | $.each(data, function(i,item){ 12 | var landmark = '

'+item.name+'

' 13 | + '

'+item.latitude+'
' 14 | + item.longitude+'

'; 15 | 16 | output.append(landmark); 17 | }); 18 | }, 19 | error: function(){ 20 | output.text('There was an error loading the data.'); 21 | } 22 | }); 23 | }); 24 | }); -------------------------------------------------------------------------------- /iOS app/PhoneGap-0.95/www/phonegap.0.9.5.1.min.js: -------------------------------------------------------------------------------- 1 | var _anomFunkMap={};var _anomFunkMapNextId=0;function anomToNameFunk(fun){var funkId="f"+_anomFunkMapNextId++;var funk=function(){fun.apply(this,arguments);_anomFunkMap[funkId]=null;delete _anomFunkMap[funkId]};_anomFunkMap[funkId]=funk;return"_anomFunkMap."+funkId}function GetFunctionName(fn){if(typeof fn==="function"){var name=fn.name;if(!name){var m=fn.toString().match(/^\s*function\s+([^\s\(]+)/);name=m&&m[1]}if(name&&(window[name]===fn)){return name}else{return anomToNameFunk(fn)}}else{return null}}if(typeof PhoneGap==="undefined"){if(typeof(DeviceInfo)!=="object"){DeviceInfo={}}PhoneGap={queue:{ready:true,commands:[],timer:null},_constructors:[]};PhoneGap.resources={base:true};PhoneGap.hasResource=function(name){return PhoneGap.resources[name]};PhoneGap.addResource=function(name){PhoneGap.resources[name]=true};PhoneGap.available=DeviceInfo.uuid!=undefined;PhoneGap.addConstructor=function(func){var state=document.readyState;if((state=="loaded"||state=="complete")&&DeviceInfo.uuid!=null){func()}else{PhoneGap._constructors.push(func)}};(function(){var timer=setInterval(function(){var state=document.readyState;if((state=="loaded"||state=="complete")&&DeviceInfo.uuid!=null){clearInterval(timer);while(PhoneGap._constructors.length>0){var constructor=PhoneGap._constructors.shift();try{constructor()}catch(e){if(typeof(debug.log)=="function"){debug.log("Failed to run constructor: "+debug.processMessage(e))}else{alert("Failed to run constructor: "+e.message)}}}var e=document.createEvent("Events");e.initEvent("deviceready");document.dispatchEvent(e)}},1)})();PhoneGap.callbackId=0;PhoneGap.callbacks={};PhoneGap.callbackStatus={NO_RESULT:0,OK:1,CLASS_NOT_FOUND_EXCEPTION:2,ILLEGAL_ACCESS_EXCEPTION:3,INSTANTIATION_EXCEPTION:4,MALFORMED_URL_EXCEPTION:5,IO_EXCEPTION:6,INVALID_ACTION:7,JSON_EXCEPTION:8,ERROR:9};PhoneGap.exec=function(){PhoneGap.queue.commands.push(arguments);if(PhoneGap.queue.timer==null){PhoneGap.queue.timer=setInterval(PhoneGap.run_command,10)}};PhoneGap.run_command=function(){if(!PhoneGap.available||!PhoneGap.queue.ready){return}PhoneGap.queue.ready=false;if(!this.gapBridge){this.gapBridge=document.createElement("IFRAME");this.gapBridge.setAttribute("height","0px");this.gapBridge.setAttribute("width","0px");this.gapBridge.setAttribute("frameborder","0");document.documentElement.appendChild(this.gapBridge)}var args=PhoneGap.queue.commands.shift();if(PhoneGap.queue.commands.length==0){clearInterval(PhoneGap.queue.timer);PhoneGap.queue.timer=null}var service;var callbackId=null;var start=0;try{if(args[0]==null||typeof args[0]==="function"){var success=args[0];var fail=args[1];service=args[2]+"."+args[3];args=args[4];callbackId=service+PhoneGap.callbackId++;if(success||fail){PhoneGap.callbacks[callbackId]={success:success,fail:fail}}}else{service=args[0];start=1}var uri=[];var dict=null;for(var i=start;ithis.length){this.position=this.length}else{this.position=offset}}};FileWriter.prototype.truncate=function(size){if(this.readyState===FileWriter.WRITING){throw FileError.INVALID_STATE_ERR}this.readyState=FileWriter.WRITING;var me=this;if(typeof me.onwritestart==="function"){var evt=File._createEvent("writestart",me);me.onwritestart(evt)}navigator.fileMgr.truncate(this.fileName,size,function(r){var evt;if(me.readyState===FileWriter.DONE){return}me.length=r;me.position=Math.min(me.position,r);if(typeof me.onwrite==="function"){evt=File._createEvent("write",me);me.onwrite(evt)}me.readyState=FileWriter.DONE;if(typeof me.onwriteend==="function"){evt=File._createEvent("writeend",me);me.onwriteend(evt)}},function(e){var evt;if(me.readyState===FileWriter.DONE){return}me.error=e;if(typeof me.onerror==="function"){evt=File._createEvent("error",me);me.onerror(evt)}me.readyState=FileWriter.DONE;if(typeof me.onwriteend==="function"){evt=File._createEvent("writeend",me);me.onwriteend(evt)}})};LocalFileSystem=function(){};LocalFileSystem.TEMPORARY=0;LocalFileSystem.PERSISTENT=1;LocalFileSystem.RESOURCE=2;LocalFileSystem.APPLICATION=3;LocalFileSystem.prototype.requestFileSystem=function(type,size,successCallback,errorCallback){if(type<0||type>3){if(typeof errorCallback=="function"){errorCallback({code:FileError.SYNTAX_ERR})}}else{PhoneGap.exec(successCallback,errorCallback,"File","requestFileSystem",[type,size])}};LocalFileSystem.prototype.resolveLocalFileSystemURI=function(uri,successCallback,errorCallback){PhoneGap.exec(successCallback,errorCallback,"File","resolveLocalFileSystemURI",[uri])};LocalFileSystem.prototype._castFS=function(pluginResult){var entry=null;entry=new DirectoryEntry();entry.isDirectory=pluginResult.message.root.isDirectory;entry.isFile=pluginResult.message.root.isFile;entry.name=pluginResult.message.root.name;entry.fullPath=pluginResult.message.root.fullPath;pluginResult.message.root=entry;return pluginResult};LocalFileSystem.prototype._castEntry=function(pluginResult){var entry=null;if(pluginResult.message.isDirectory){entry=new DirectoryEntry()}else{if(pluginResult.message.isFile){entry=new FileEntry()}}entry.isDirectory=pluginResult.message.isDirectory;entry.isFile=pluginResult.message.isFile;entry.name=pluginResult.message.name;entry.fullPath=pluginResult.message.fullPath;pluginResult.message=entry;return pluginResult};LocalFileSystem.prototype._castEntries=function(pluginResult){var entries=pluginResult.message;var retVal=[];for(i=0;ioptions.maximumAge){this.callbacks.onHeadingChanged.push(successCallback);this.callbacks.onError.push(errorCallback);this.start(options);return}}if(typeof successCallback=="function"){var returnHeading=-1;if(this.lastHeading.trueHeading>-1){returnHeading=this.lastHeading.trueHeading}else{if(this.lastHeading.magneticHeading){returnHeading=this.lastHeading.magneticHeading}}successCallback(returnHeading)}}};Compass.prototype.watchHeading=function(successCallback,errorCallback,options){var frequency=(options&&options.frequency)?options.frequency:1000;var self=this;var funk=function(){self.getCurrentHeading(successCallback,errorCallback,options)};funk();return setInterval(funk,frequency)};Compass.prototype.clearWatch=function(watchId){clearInterval(watchId)};Compass.prototype.setHeading=function(heading){this.lastHeading=heading;var returnHeading=-1;if(this.lastHeading.trueHeading>-1){returnHeading=this.lastHeading.trueHeading}else{if(this.lastHeading.magneticHeading){returnHeading=this.lastHeading.magneticHeading}}var arr=this.callbacks.onHeadingChanged;for(var i=0,len=arr.length;i\\\"; };\" \"$PROJECT_DIR/$PROJECT_NAME.xcodeproj/project.pbxproj\"\n\t\t\t\t\t\t\t\trc=$? \n\t\t\t\t\t\t\t\tif [ $rc != 0 ] ; then\n\t\t\t\t\t\t\t\techo -e \"warning: Missing - Add $PROJECT_DIR/www as a folder reference in your project. Just drag and drop the folder into your project, into the Project Navigator of Xcode 4. Make sure you select the second radio-button: 'Create folder references for any added folders' (which will create a blue folder)\" 1>&2\n\t\t\t\t\t\t\t\tfi\t\t\t\t\t\t\t"; 312 | }; 313 | /* End PBXShellScriptBuildPhase section */ 314 | 315 | /* Begin PBXSourcesBuildPhase section */ 316 | 22F0B287148A295F003483F0 /* Sources */ = { 317 | isa = PBXSourcesBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | 22F0B2B3148A295F003483F0 /* main.m in Sources */, 321 | 22F0B2D3148A2960003483F0 /* AppDelegate.m in Sources */, 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | }; 325 | 22F0B28A148A295F003483F0 /* Sources */ = { 326 | isa = PBXSourcesBuildPhase; 327 | buildActionMask = 2147483647; 328 | files = ( 329 | ); 330 | runOnlyForDeploymentPostprocessing = 0; 331 | }; 332 | /* End PBXSourcesBuildPhase section */ 333 | 334 | /* Begin PBXVariantGroup section */ 335 | 22F0B2AF148A295F003483F0 /* InfoPlist.strings */ = { 336 | isa = PBXVariantGroup; 337 | children = ( 338 | 22F0B2B0148A295F003483F0 /* en */, 339 | ); 340 | name = InfoPlist.strings; 341 | sourceTree = ""; 342 | }; 343 | 22F0B2B9148A295F003483F0 /* Localizable.strings */ = { 344 | isa = PBXVariantGroup; 345 | children = ( 346 | 22F0B2BA148A295F003483F0 /* en */, 347 | ); 348 | name = Localizable.strings; 349 | sourceTree = ""; 350 | }; 351 | 22F0B2BD148A295F003483F0 /* Localizable.strings */ = { 352 | isa = PBXVariantGroup; 353 | children = ( 354 | 22F0B2BE148A295F003483F0 /* es */, 355 | ); 356 | name = Localizable.strings; 357 | sourceTree = ""; 358 | }; 359 | /* End PBXVariantGroup section */ 360 | 361 | /* Begin XCBuildConfiguration section */ 362 | 22F0B2D6148A2960003483F0 /* Debug */ = { 363 | isa = XCBuildConfiguration; 364 | buildSettings = { 365 | ALWAYS_SEARCH_USER_PATHS = NO; 366 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 367 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 368 | COPY_PHASE_STRIP = NO; 369 | GCC_C_LANGUAGE_STANDARD = gnu99; 370 | GCC_DYNAMIC_NO_PIC = NO; 371 | GCC_OPTIMIZATION_LEVEL = 0; 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 377 | GCC_VERSION = com.apple.compilers.llvmgcc42; 378 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; 379 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 380 | GCC_WARN_UNUSED_VARIABLE = YES; 381 | IPHONEOS_DEPLOYMENT_TARGET = 3.0; 382 | SDKROOT = iphoneos; 383 | }; 384 | name = Debug; 385 | }; 386 | 22F0B2D7148A2960003483F0 /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | buildSettings = { 389 | ALWAYS_SEARCH_USER_PATHS = NO; 390 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 391 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 392 | COPY_PHASE_STRIP = YES; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_VERSION = com.apple.compilers.llvmgcc42; 395 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; 396 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 3.0; 399 | SDKROOT = iphoneos; 400 | VALIDATE_PRODUCT = YES; 401 | }; 402 | name = Release; 403 | }; 404 | 22F0B2D9148A2960003483F0 /* Debug */ = { 405 | isa = XCBuildConfiguration; 406 | buildSettings = { 407 | ALWAYS_SEARCH_USER_PATHS = YES; 408 | COPY_PHASE_STRIP = NO; 409 | FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks; 410 | GCC_DYNAMIC_NO_PIC = NO; 411 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 412 | GCC_PREFIX_HEADER = "Loading data into PhoneGap/Loading data into PhoneGap-Prefix.pch"; 413 | GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES"; 414 | INFOPLIST_FILE = "Loading data into PhoneGap/Loading data into PhoneGap-Info.plist"; 415 | OTHER_LDFLAGS = ( 416 | "-weak_framework", 417 | UIKit, 418 | "-weak_framework", 419 | AVFoundation, 420 | "-weak_framework", 421 | CoreMedia, 422 | "-weak_library", 423 | /usr/lib/libSystem.B.dylib, 424 | ); 425 | PRODUCT_NAME = "$(TARGET_NAME)"; 426 | TARGETED_DEVICE_FAMILY = "1,2"; 427 | WRAPPER_EXTENSION = app; 428 | }; 429 | name = Debug; 430 | }; 431 | 22F0B2DA148A2960003483F0 /* Release */ = { 432 | isa = XCBuildConfiguration; 433 | buildSettings = { 434 | ALWAYS_SEARCH_USER_PATHS = YES; 435 | COPY_PHASE_STRIP = YES; 436 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 437 | FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks; 438 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 439 | GCC_PREFIX_HEADER = "Loading data into PhoneGap/Loading data into PhoneGap-Prefix.pch"; 440 | GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES"; 441 | INFOPLIST_FILE = "Loading data into PhoneGap/Loading data into PhoneGap-Info.plist"; 442 | OTHER_LDFLAGS = ( 443 | "-weak_framework", 444 | UIKit, 445 | "-weak_framework", 446 | AVFoundation, 447 | "-weak_framework", 448 | CoreMedia, 449 | "-weak_library", 450 | /usr/lib/libSystem.B.dylib, 451 | ); 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | VALIDATE_PRODUCT = YES; 455 | WRAPPER_EXTENSION = app; 456 | }; 457 | name = Release; 458 | }; 459 | /* End XCBuildConfiguration section */ 460 | 461 | /* Begin XCConfigurationList section */ 462 | 22F0B285148A295F003483F0 /* Build configuration list for PBXProject "Loading data into PhoneGap" */ = { 463 | isa = XCConfigurationList; 464 | buildConfigurations = ( 465 | 22F0B2D6148A2960003483F0 /* Debug */, 466 | 22F0B2D7148A2960003483F0 /* Release */, 467 | ); 468 | defaultConfigurationIsVisible = 0; 469 | defaultConfigurationName = Release; 470 | }; 471 | 22F0B2D8148A2960003483F0 /* Build configuration list for PBXNativeTarget "Loading data into PhoneGap" */ = { 472 | isa = XCConfigurationList; 473 | buildConfigurations = ( 474 | 22F0B2D9148A2960003483F0 /* Debug */, 475 | 22F0B2DA148A2960003483F0 /* Release */, 476 | ); 477 | defaultConfigurationIsVisible = 0; 478 | defaultConfigurationName = Release; 479 | }; 480 | /* End XCConfigurationList section */ 481 | }; 482 | rootObject = 22F0B282148A295F003483F0 /* Project object */; 483 | } 484 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Classes/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Loading data into PhoneGap 4 | // 5 | // Created by Samuel Croft on 03/12/2011. 6 | // Copyright __MyCompanyName__ 2011. All rights reserved. 7 | // 8 | 9 | #import 10 | #ifdef PHONEGAP_FRAMEWORK 11 | #import 12 | #else 13 | #import "PhoneGapDelegate.h" 14 | #endif 15 | 16 | @interface AppDelegate : PhoneGapDelegate { 17 | 18 | NSString* invokeString; 19 | } 20 | 21 | // invoke string is passed to your app on launch, this is only valid if you 22 | // edit Loading data into PhoneGap.plist to add a protocol 23 | // a simple tutorial can be found here : 24 | // http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html 25 | 26 | @property (copy) NSString* invokeString; 27 | 28 | @end 29 | 30 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Classes/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Loading data into PhoneGap 4 | // 5 | // Created by Samuel Croft on 03/12/2011. 6 | // Copyright __MyCompanyName__ 2011. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #ifdef PHONEGAP_FRAMEWORK 11 | #import 12 | #else 13 | #import "PhoneGapViewController.h" 14 | #endif 15 | 16 | @implementation AppDelegate 17 | 18 | @synthesize invokeString; 19 | 20 | - (id) init 21 | { 22 | /** If you need to do any extra app-specific initialization, you can do it here 23 | * -jm 24 | **/ 25 | return [super init]; 26 | } 27 | 28 | /** 29 | * This is main kick off after the app inits, the views and Settings are setup here. (preferred - iOS4 and up) 30 | */ 31 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 32 | { 33 | 34 | NSArray *keyArray = [launchOptions allKeys]; 35 | if ([launchOptions objectForKey:[keyArray objectAtIndex:0]]!=nil) 36 | { 37 | NSURL *url = [launchOptions objectForKey:[keyArray objectAtIndex:0]]; 38 | self.invokeString = [url absoluteString]; 39 | NSLog(@"Loading data into PhoneGap launchOptions = %@",url); 40 | } 41 | 42 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 43 | } 44 | 45 | // this happens while we are running ( in the background, or from within our own app ) 46 | // only valid if Loading data into PhoneGap.plist specifies a protocol to handle 47 | - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url 48 | { 49 | // must call super so all plugins will get the notification, and their handlers will be called 50 | // super also calls into javascript global function 'handleOpenURL' 51 | return [super application:application handleOpenURL:url]; 52 | } 53 | 54 | -(id) getCommandInstance:(NSString*)className 55 | { 56 | /** You can catch your own commands here, if you wanted to extend the gap: protocol, or add your 57 | * own app specific protocol to it. -jm 58 | **/ 59 | return [super getCommandInstance:className]; 60 | } 61 | 62 | /** 63 | Called when the webview finishes loading. This stops the activity view and closes the imageview 64 | */ 65 | - (void)webViewDidFinishLoad:(UIWebView *)theWebView 66 | { 67 | // only valid if Loading data into PhoneGap.plist specifies a protocol to handle 68 | if(self.invokeString) 69 | { 70 | // this is passed before the deviceready event is fired, so you can access it in js when you receive deviceready 71 | NSString* jsString = [NSString stringWithFormat:@"var invokeString = \"%@\";", self.invokeString]; 72 | [theWebView stringByEvaluatingJavaScriptFromString:jsString]; 73 | } 74 | return [ super webViewDidFinishLoad:theWebView ]; 75 | } 76 | 77 | - (void)webViewDidStartLoad:(UIWebView *)theWebView 78 | { 79 | return [ super webViewDidStartLoad:theWebView ]; 80 | } 81 | 82 | /** 83 | * Fail Loading With Error 84 | * Error - If the webpage failed to load display an error with the reason. 85 | */ 86 | - (void)webView:(UIWebView *)theWebView didFailLoadWithError:(NSError *)error 87 | { 88 | return [ super webView:theWebView didFailLoadWithError:error ]; 89 | } 90 | 91 | /** 92 | * Start Loading Request 93 | * This is where most of the magic happens... We take the request(s) and process the response. 94 | * From here we can re direct links and other protocalls to different internal methods. 95 | */ 96 | - (BOOL)webView:(UIWebView *)theWebView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType 97 | { 98 | return [ super webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType ]; 99 | } 100 | 101 | 102 | - (BOOL) execute:(InvokedUrlCommand*)command 103 | { 104 | return [ super execute:command]; 105 | } 106 | 107 | - (void)dealloc 108 | { 109 | [ super dealloc ]; 110 | } 111 | 112 | @end 113 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Loading data into PhoneGap-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleIconFiles 6 | 7 | icon.png 8 | icon@2x.png 9 | icon-72.png 10 | 11 | UISupportedInterfaceOrientations~ipad 12 | 13 | UIInterfaceOrientationPortrait 14 | UIInterfaceOrientationLandscapeLeft 15 | UIInterfaceOrientationPortraitUpsideDown 16 | UIInterfaceOrientationLandscapeRight 17 | 18 | UISupportedInterfaceOrientations 19 | 20 | UIInterfaceOrientationPortrait 21 | 22 | CFBundleDevelopmentRegion 23 | English 24 | CFBundleDisplayName 25 | ${PRODUCT_NAME} 26 | CFBundleExecutable 27 | ${EXECUTABLE_NAME} 28 | CFBundleIconFile 29 | icon.png 30 | CFBundleIdentifier 31 | Sam-Croft.Loading_data_into_PhoneGap 32 | CFBundleInfoDictionaryVersion 33 | 6.0 34 | CFBundleName 35 | ${PRODUCT_NAME} 36 | CFBundlePackageType 37 | APPL 38 | CFBundleSignature 39 | ???? 40 | CFBundleVersion 41 | 1.0 42 | LSRequiresIPhoneOS 43 | 44 | NSMainNibFile 45 | 46 | NSMainNibFile~ipad 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Loading data into PhoneGap-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Loading data into PhoneGap' target in the 'Loading data into PhoneGap' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/PhoneGap.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | DetectPhoneNumber 6 | 7 | TopActivityIndicator 8 | gray 9 | EnableLocation 10 | 11 | EnableAcceleration 12 | 13 | EnableViewportScale 14 | 15 | AutoHideSplashScreen 16 | 17 | ShowSplashScreenSpinner 18 | 19 | MediaPlaybackRequiresUserAction 20 | 21 | AllowInlineMediaPlayback 22 | 23 | OpenAllWhitelistURLsInWebView 24 | 25 | ExternalHosts 26 | 27 | samcroft.co.uk 28 | 29 | Plugins 30 | 31 | com.phonegap.accelerometer 32 | PGAccelerometer 33 | com.phonegap.camera 34 | PGCamera 35 | com.phonegap.connection 36 | PGConnection 37 | com.phonegap.contacts 38 | PGContacts 39 | com.phonegap.debugconsole 40 | PGDebugConsole 41 | com.phonegap.file 42 | PGFile 43 | com.phonegap.filetransfer 44 | PGFileTransfer 45 | com.phonegap.geolocation 46 | PGLocation 47 | com.phonegap.notification 48 | PGNotification 49 | com.phonegap.media 50 | PGSound 51 | com.phonegap.mediacapture 52 | PGCapture 53 | com.phonegap.splashscreen 54 | PGSplashScreen 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Plugins/README: -------------------------------------------------------------------------------- 1 | Put the .h and .m files of your plugin here. The .js files of your plugin belong in the www folder. -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/controls_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/controls_bg.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/controls_bg@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/controls_bg@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/controls_bg~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/controls_bg~ipad.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/microphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/microphone.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/microphone@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/microphone@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/microphone~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/microphone~ipad.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/record_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/record_button.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/record_button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/record_button@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/record_button~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/record_button~ipad.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/recording_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/recording_bg.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/recording_bg@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/recording_bg@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/recording_bg~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/recording_bg~ipad.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/stop_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/stop_button.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/stop_button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/stop_button@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/stop_button~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/Capture.bundle/stop_button~ipad.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | * PhoneGap is available under *either* the terms of the modified BSD license *or* the 3 | * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text. 4 | * 5 | * Copyright (c) 2011, IBM Corporation 6 | */ 7 | 8 | 9 | // accessibility label for recording button 10 | "toggle audio recording" = "toggle audio recording"; 11 | // notification spoken by VoiceOver when timed recording finishes 12 | "timed recording complete" = "timed recording complete"; 13 | // accessibility hint for display of recorded elapsed time 14 | "recorded time in minutes and seconds" = "recorded time in minutes and seconds"; -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/es.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | * PhoneGap is available under *either* the terms of the modified BSD license *or* the 3 | * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text. 4 | * 5 | * Copyright (c) 2011, IBM Corporation 6 | */ 7 | 8 | // accessibility label for recording button 9 | "toggle audio recording" = "grabación de audio cambiar"; 10 | // notification spoken by VoiceOver when timed recording finishes 11 | "timed recording complete" = "tiempo de grabación completo"; 12 | // accessibility hint for display of recorded elapsed time 13 | "recorded time in minutes and seconds" = "tiempo registrado en minutos y segundos"; -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/icons/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/icons/icon-72.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/icons/icon.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/icons/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/icons/icon@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/splash/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/splash/Default.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/splash/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcroft/Loading-data-into-PhoneGap/841a0190d6d589346a239e627b4ec9ee4b9dbd3f/iOS app/PhoneGap-1.00+/Loading data into PhoneGap/Resources/splash/Default@2x.png -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/Loading data into PhoneGap/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Loading data into PhoneGap 4 | // 5 | // Created by Samuel Croft on 03/12/2011. 6 | // Copyright __MyCompanyName__ 2011. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | 13 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /iOS app/PhoneGap-1.00+/www/js/load-json.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $(document).bind('deviceready', function(){ 3 | var output = $('#output'); 4 | 5 | $.ajax({ 6 | url: 'http://samcroft.co.uk/demos/updated-load-data-into-phonegap/landmarks.php', 7 | dataType: 'jsonp', 8 | jsonp: 'jsoncallback', 9 | timeout: 5000, 10 | success: function(data, status){ 11 | $.each(data, function(i,item){ 12 | var landmark = '

'+item.name+'

' 13 | + '

'+item.latitude+'
' 14 | + item.longitude+'

'; 15 | 16 | output.append(landmark); 17 | }); 18 | }, 19 | error: function(){ 20 | output.text('There was an error loading the data.'); 21 | } 22 | }); 23 | }); 24 | }); -------------------------------------------------------------------------------- /readme: -------------------------------------------------------------------------------- 1 | A demonstration of how to load JSON objects into a PhoneGap app and a PHP server component to handle the data requests. -------------------------------------------------------------------------------- /server components/landmarks.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /server components/landmarks.sql: -------------------------------------------------------------------------------- 1 | # Sequel Pro dump 2 | # Version 2492 3 | # http://code.google.com/p/sequel-pro 4 | # 5 | # Host: 127.0.0.1 (MySQL 5.1.44) 6 | # Database: landmarks 7 | # Generation Time: 2011-07-08 10:20:34 +0100 8 | # ************************************************************ 9 | 10 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 11 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 12 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 13 | /*!40101 SET NAMES utf8 */; 14 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 15 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 16 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 17 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 18 | 19 | 20 | # Dump of table landmarks 21 | # ------------------------------------------------------------ 22 | 23 | DROP TABLE IF EXISTS `landmarks`; 24 | 25 | CREATE TABLE `landmarks` ( 26 | `id` int(11) NOT NULL AUTO_INCREMENT, 27 | `l_name` varchar(50) DEFAULT NULL, 28 | `l_lat` decimal(18,12) DEFAULT NULL, 29 | `l_long` decimal(18,12) DEFAULT NULL, 30 | PRIMARY KEY (`id`) 31 | ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; 32 | 33 | LOCK TABLES `landmarks` WRITE; 34 | /*!40000 ALTER TABLE `landmarks` DISABLE KEYS */; 35 | INSERT INTO `landmarks` (`id`,`l_name`,`l_lat`,`l_long`) 36 | VALUES 37 | (1,'Big Ben',51.500600000000,-0.124610000000), 38 | (2,'Stonehenge',51.178850000000,-1.826446000000), 39 | (3,'White Cliffs of Dover',51.132020000000,1.334070000000), 40 | (4,'Hadrian\'s Wall',55.024453000000,2.142310000000); 41 | 42 | /*!40000 ALTER TABLE `landmarks` ENABLE KEYS */; 43 | UNLOCK TABLES; 44 | 45 | 46 | 47 | 48 | 49 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 50 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 51 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 52 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 53 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 54 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 55 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 56 | --------------------------------------------------------------------------------