aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap/iPhone/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'phonegap/iPhone/FixMyStreet')
-rw-r--r--phonegap/iPhone/FixMyStreet/Classes/AppDelegate.h52
-rw-r--r--phonegap/iPhone/FixMyStreet/Classes/AppDelegate.m191
-rw-r--r--phonegap/iPhone/FixMyStreet/Classes/MainViewController.h36
-rw-r--r--phonegap/iPhone/FixMyStreet/Classes/MainViewController.m70
-rw-r--r--phonegap/iPhone/FixMyStreet/Classes/MainViewController.xib118
-rw-r--r--phonegap/iPhone/FixMyStreet/Cordova.plist62
-rw-r--r--phonegap/iPhone/FixMyStreet/FixMyStreet-Info.plist51
-rw-r--r--phonegap/iPhone/FixMyStreet/FixMyStreet-Prefix.pch7
-rw-r--r--phonegap/iPhone/FixMyStreet/Plugins/README1
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg.pngbin0 -> 955 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg@2x.pngbin0 -> 971 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg~ipad.pngbin0 -> 969 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone.pngbin0 -> 72226 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone@2x.pngbin0 -> 282409 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone~ipad.pngbin0 -> 393975 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button.pngbin0 -> 5852 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button@2x.pngbin0 -> 13875 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button~ipad.pngbin0 -> 7547 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg.pngbin0 -> 973 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg@2x.pngbin0 -> 990 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg~ipad.pngbin0 -> 996 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button.pngbin0 -> 5514 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button@2x.pngbin0 -> 12965 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button~ipad.pngbin0 -> 7119 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/de.lproj/Localizable.strings26
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/en.lproj/Localizable.strings25
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/es.lproj/Localizable.strings25
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/icons/icon-72.pngbin0 -> 4944 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/icons/icon.pngbin0 -> 3902 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/icons/icon@2x.pngbin0 -> 7869 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/se.lproj/Localizable.strings26
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/splash/Default.pngbin0 -> 9537 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/Resources/splash/Default@2x.pngbin0 -> 22029 bytes
-rw-r--r--phonegap/iPhone/FixMyStreet/en.lproj/InfoPlist.strings2
-rw-r--r--phonegap/iPhone/FixMyStreet/main.m35
-rwxr-xr-xphonegap/iPhone/FixMyStreet/verify.sh12
36 files changed, 739 insertions, 0 deletions
diff --git a/phonegap/iPhone/FixMyStreet/Classes/AppDelegate.h b/phonegap/iPhone/FixMyStreet/Classes/AppDelegate.h
new file mode 100644
index 000000000..f583369ad
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Classes/AppDelegate.h
@@ -0,0 +1,52 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+//
+// AppDelegate.h
+// FixMyStreet
+//
+// Created by Struan Donald on 08/03/2012.
+// Copyright __MyCompanyName__ 2012. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#ifdef CORDOVA_FRAMEWORK
+ #import <Cordova/CDVViewController.h>
+#else
+ #import "CDVViewController.h"
+#endif
+
+
+@interface AppDelegate : NSObject < UIApplicationDelegate, UIWebViewDelegate, CDVCommandDelegate > {
+
+ NSString* invokeString;
+}
+
+// invoke string is passed to your app on launch, this is only valid if you
+// edit FooBar.plist to add a protocol
+// a simple tutorial can be found here :
+// http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
+
+@property (nonatomic, copy) NSString* invokeString;
+@property (nonatomic, retain) IBOutlet UIWindow* window;
+@property (nonatomic, retain) IBOutlet CDVViewController* viewController;
+
+@end
+
diff --git a/phonegap/iPhone/FixMyStreet/Classes/AppDelegate.m b/phonegap/iPhone/FixMyStreet/Classes/AppDelegate.m
new file mode 100644
index 000000000..8faa38ca6
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Classes/AppDelegate.m
@@ -0,0 +1,191 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+//
+// AppDelegate.m
+// FixMyStreet
+//
+// Created by Struan Donald on 08/03/2012.
+// Copyright __MyCompanyName__ 2012. All rights reserved.
+//
+
+#import "AppDelegate.h"
+#import "MainViewController.h"
+
+#ifdef CORDOVA_FRAMEWORK
+ #import <Cordova/CDVPlugin.h>
+ #import <Cordova/CDVURLProtocol.h>
+#else
+ #import "CDVPlugin.h"
+ #import "CDVURLProtocol.h"
+#endif
+
+
+@implementation AppDelegate
+
+@synthesize invokeString, window, viewController;
+
+- (id) init
+{
+ /** If you need to do any extra app-specific initialization, you can do it here
+ * -jm
+ **/
+ NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
+ [cookieStorage setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
+
+ [CDVURLProtocol registerPGHttpURLProtocol];
+
+ return [super init];
+}
+
+#pragma UIApplicationDelegate implementation
+
+/**
+ * This is main kick off after the app inits, the views and Settings are setup here. (preferred - iOS4 and up)
+ */
+- (BOOL) application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
+{
+ NSURL* url = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
+ if (url && [url isKindOfClass:[NSURL class]]) {
+ self.invokeString = [url absoluteString];
+ NSLog(@"FixMyStreet launchOptions = %@", url);
+ }
+
+ CGRect screenBounds = [[UIScreen mainScreen] bounds];
+ self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease];
+ self.window.autoresizesSubviews = YES;
+
+ CGRect viewBounds = [[UIScreen mainScreen] applicationFrame];
+
+ self.viewController = [[[MainViewController alloc] init] autorelease];
+ self.viewController.useSplashScreen = YES;
+ self.viewController.wwwFolderName = @"www";
+ self.viewController.startPage = @"index.html";
+ self.viewController.view.frame = viewBounds;
+
+ // over-ride delegates
+ self.viewController.webView.delegate = self;
+ self.viewController.commandDelegate = self;
+
+ // check whether the current orientation is supported: if it is, keep it, rather than forcing a rotation
+ BOOL forceStartupRotation = YES;
+ UIDeviceOrientation curDevOrientation = [[UIDevice currentDevice] orientation];
+
+ if (UIDeviceOrientationUnknown == curDevOrientation) {
+ // UIDevice isn't firing orientation notifications yet… go look at the status bar
+ curDevOrientation = (UIDeviceOrientation)[[UIApplication sharedApplication] statusBarOrientation];
+ }
+
+ if (UIDeviceOrientationIsValidInterfaceOrientation(curDevOrientation)) {
+ for (NSNumber *orient in self.viewController.supportedOrientations) {
+ if ([orient intValue] == curDevOrientation) {
+ forceStartupRotation = NO;
+ break;
+ }
+ }
+ }
+
+ if (forceStartupRotation) {
+ NSLog(@"supportedOrientations: %@", self.viewController.supportedOrientations);
+ // The first item in the supportedOrientations array is the start orientation (guaranteed to be at least Portrait)
+ UIInterfaceOrientation newOrient = [[self.viewController.supportedOrientations objectAtIndex:0] intValue];
+ NSLog(@"AppDelegate forcing status bar to: %d from: %d", newOrient, curDevOrientation);
+ [[UIApplication sharedApplication] setStatusBarOrientation:newOrient];
+ }
+
+ [self.window addSubview:self.viewController.view];
+ [self.window makeKeyAndVisible];
+
+ return YES;
+}
+
+// this happens while we are running ( in the background, or from within our own app )
+// only valid if FooBar.plist specifies a protocol to handle
+- (BOOL) application:(UIApplication*)application handleOpenURL:(NSURL*)url
+{
+ if (!url) {
+ return NO;
+ }
+
+ // calls into javascript global function 'handleOpenURL'
+ NSString* jsString = [NSString stringWithFormat:@"handleOpenURL(\"%@\");", url];
+ [self.viewController.webView stringByEvaluatingJavaScriptFromString:jsString];
+
+ // all plugins will get the notification, and their handlers will be called
+ [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]];
+
+ return YES;
+}
+
+#pragma PGCommandDelegate implementation
+
+- (id) getCommandInstance:(NSString*)className
+{
+ return [self.viewController getCommandInstance:className];
+}
+
+- (BOOL) execute:(CDVInvokedUrlCommand*)command
+{
+ return [self.viewController execute:command];
+}
+
+- (NSString*) pathForResource:(NSString*)resourcepath;
+{
+ return [self.viewController pathForResource:resourcepath];
+}
+
+#pragma UIWebDelegate implementation
+
+- (void) webViewDidFinishLoad:(UIWebView*) theWebView
+{
+ // only valid if FooBar.plist specifies a protocol to handle
+ if (self.invokeString)
+ {
+ // this is passed before the deviceready event is fired, so you can access it in js when you receive deviceready
+ NSString* jsString = [NSString stringWithFormat:@"var invokeString = \"%@\";", self.invokeString];
+ [theWebView stringByEvaluatingJavaScriptFromString:jsString];
+ }
+
+ // Black base color for background matches the native apps
+ theWebView.backgroundColor = [UIColor blackColor];
+
+ return [self.viewController webViewDidFinishLoad:theWebView];
+}
+
+- (void) webViewDidStartLoad:(UIWebView*)theWebView
+{
+ return [self.viewController webViewDidStartLoad:theWebView];
+}
+
+- (void) webView:(UIWebView*)theWebView didFailLoadWithError:(NSError*)error
+{
+ return [self.viewController webView:theWebView didFailLoadWithError:error];
+}
+
+- (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
+{
+ return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType];
+}
+
+- (void) dealloc
+{
+ [super dealloc];
+}
+
+@end
diff --git a/phonegap/iPhone/FixMyStreet/Classes/MainViewController.h b/phonegap/iPhone/FixMyStreet/Classes/MainViewController.h
new file mode 100644
index 000000000..3222496ce
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Classes/MainViewController.h
@@ -0,0 +1,36 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+//
+// MainViewController.h
+// FixMyStreet
+//
+// Created by Struan Donald on 08/03/2012.
+// Copyright __MyCompanyName__ 2012. All rights reserved.
+//
+
+#ifdef CORDOVA_FRAMEWORK
+ #import <Cordova/CDVViewController.h>
+#else
+ #import "CDVViewController.h"
+#endif
+
+@interface MainViewController : CDVViewController
+
+@end
diff --git a/phonegap/iPhone/FixMyStreet/Classes/MainViewController.m b/phonegap/iPhone/FixMyStreet/Classes/MainViewController.m
new file mode 100644
index 000000000..ef5d1c0be
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Classes/MainViewController.m
@@ -0,0 +1,70 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+//
+// MainViewController.h
+// FixMyStreet
+//
+// Created by Struan Donald on 08/03/2012.
+// Copyright __MyCompanyName__ 2012. All rights reserved.
+//
+
+#import "MainViewController.h"
+
+@implementation MainViewController
+
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
+{
+ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
+ if (self) {
+ // Custom initialization
+ }
+ return self;
+}
+
+- (void)didReceiveMemoryWarning
+{
+ // Releases the view if it doesn't have a superview.
+ [super didReceiveMemoryWarning];
+
+ // Release any cached data, images, etc that aren't in use.
+}
+
+#pragma mark - View lifecycle
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ // Do any additional setup after loading the view from its nib.
+}
+
+- (void)viewDidUnload
+{
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+ // e.g. self.myOutlet = nil;
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ // Return YES for supported orientations
+ return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
+}
+
+@end
diff --git a/phonegap/iPhone/FixMyStreet/Classes/MainViewController.xib b/phonegap/iPhone/FixMyStreet/Classes/MainViewController.xib
new file mode 100644
index 000000000..9837f578c
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Classes/MainViewController.xib
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1280</int>
+ <string key="IBDocument.SystemVersion">11C25</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1919</string>
+ <string key="IBDocument.AppKitVersion">1138.11</string>
+ <string key="IBDocument.HIToolboxVersion">566.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">916</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUIView</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="191373211"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">MainViewController</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">3</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">MainViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/MainViewController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">916</string>
+ </data>
+</archive>
diff --git a/phonegap/iPhone/FixMyStreet/Cordova.plist b/phonegap/iPhone/FixMyStreet/Cordova.plist
new file mode 100644
index 000000000..dd600894d
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Cordova.plist
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>UIWebViewBounce</key>
+ <true/>
+ <key>TopActivityIndicator</key>
+ <string>gray</string>
+ <key>EnableLocation</key>
+ <false/>
+ <key>EnableViewportScale</key>
+ <false/>
+ <key>AutoHideSplashScreen</key>
+ <true/>
+ <key>ShowSplashScreenSpinner</key>
+ <true/>
+ <key>MediaPlaybackRequiresUserAction</key>
+ <false/>
+ <key>AllowInlineMediaPlayback</key>
+ <false/>
+ <key>OpenAllWhitelistURLsInWebView</key>
+ <false/>
+ <key>ExternalHosts</key>
+ <array>
+ <string>photek.local</string>
+ <string>mapit.mysociety.org</string>
+ <string>matthew.fixmystreet.dev.mysociety.org</string>
+ <string>*.tile.openstreetmap.org</string>
+ <string>struan.fixmystreet.com</string>
+ <string>*.virtualearth.net</string>
+ </array>
+ <key>Plugins</key>
+ <dict>
+ <key>org.apache.cordova.accelerometer</key>
+ <string>CDVAccelerometer</string>
+ <key>org.apache.cordova.camera</key>
+ <string>CDVCamera</string>
+ <key>org.apache.cordova.connection</key>
+ <string>CDVConnection</string>
+ <key>org.apache.cordova.contacts</key>
+ <string>CDVContacts</string>
+ <key>org.apache.cordova.debugconsole</key>
+ <string>CDVDebugConsole</string>
+ <key>org.apache.cordova.file</key>
+ <string>CDVFile</string>
+ <key>org.apache.cordova.filetransfer</key>
+ <string>CDVFileTransfer</string>
+ <key>org.apache.cordova.geolocation</key>
+ <string>CDVLocation</string>
+ <key>org.apache.cordova.notification</key>
+ <string>CDVNotification</string>
+ <key>org.apache.cordova.media</key>
+ <string>CDVSound</string>
+ <key>org.apache.cordova.mediacapture</key>
+ <string>CDVCapture</string>
+ <key>org.apache.cordova.splashscreen</key>
+ <string>CDVSplashScreen</string>
+ <key>org.apache.cordova.battery</key>
+ <string>CDVBattery</string>
+ </dict>
+</dict>
+</plist>
diff --git a/phonegap/iPhone/FixMyStreet/FixMyStreet-Info.plist b/phonegap/iPhone/FixMyStreet/FixMyStreet-Info.plist
new file mode 100644
index 000000000..2bc039db3
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/FixMyStreet-Info.plist
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string>icon.png</string>
+ <key>CFBundleIconFiles</key>
+ <array>
+ <string>icon.png</string>
+ <string>icon@2x.png</string>
+ <string>icon-72.png</string>
+ </array>
+ <key>CFBundleIdentifier</key>
+ <string>org.mysociety.FixMyStreet</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>2.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>2.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>NSMainNibFile</key>
+ <string></string>
+ <key>NSMainNibFile~ipad</key>
+ <string></string>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
diff --git a/phonegap/iPhone/FixMyStreet/FixMyStreet-Prefix.pch b/phonegap/iPhone/FixMyStreet/FixMyStreet-Prefix.pch
new file mode 100644
index 000000000..b74079015
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/FixMyStreet-Prefix.pch
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'FixMyStreet' target in the 'FixMyStreet' project
+//
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+#endif
diff --git a/phonegap/iPhone/FixMyStreet/Plugins/README b/phonegap/iPhone/FixMyStreet/Plugins/README
new file mode 100644
index 000000000..438840dbc
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Plugins/README
@@ -0,0 +1 @@
+Put the .h and .m files of your plugin here. The .js files of your plugin belong in the www folder. \ No newline at end of file
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg.png
new file mode 100644
index 000000000..784e9c7dd
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg@2x.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg@2x.png
new file mode 100644
index 000000000..1e28c6dbc
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg@2x.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg~ipad.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg~ipad.png
new file mode 100644
index 000000000..efbef8aaa
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/controls_bg~ipad.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone.png
new file mode 100644
index 000000000..155b88cae
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone@2x.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone@2x.png
new file mode 100644
index 000000000..79ef16bac
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone@2x.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone~ipad.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone~ipad.png
new file mode 100644
index 000000000..ef1c472bf
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/microphone~ipad.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button.png
new file mode 100644
index 000000000..ceb95898f
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button@2x.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button@2x.png
new file mode 100644
index 000000000..d6ce30281
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button@2x.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button~ipad.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button~ipad.png
new file mode 100644
index 000000000..d8e24a4d0
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/record_button~ipad.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg.png
new file mode 100644
index 000000000..bafc087e2
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg@2x.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg@2x.png
new file mode 100644
index 000000000..798490b0f
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg@2x.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg~ipad.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg~ipad.png
new file mode 100644
index 000000000..3b467f632
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/recording_bg~ipad.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button.png
new file mode 100644
index 000000000..9c31838a4
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button@2x.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button@2x.png
new file mode 100644
index 000000000..8cf657eaa
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button@2x.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button~ipad.png b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button~ipad.png
new file mode 100644
index 000000000..59bb7a573
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/Capture.bundle/stop_button~ipad.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/de.lproj/Localizable.strings b/phonegap/iPhone/FixMyStreet/Resources/de.lproj/Localizable.strings
new file mode 100644
index 000000000..f1cdb42d1
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/de.lproj/Localizable.strings
@@ -0,0 +1,26 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+
+// accessibility label for recording button
+"toggle audio recording" = "starten/beenden der Tonaufnahme";
+// notification spoken by VoiceOver when timed recording finishes
+"timed recording complete" = "programmierte Aufnahme beendet";
+// accessibility hint for display of recorded elapsed time
+"recorded time in minutes and seconds" = "aufgenommene Zeit in Minuten und Sekunden"; \ No newline at end of file
diff --git a/phonegap/iPhone/FixMyStreet/Resources/en.lproj/Localizable.strings b/phonegap/iPhone/FixMyStreet/Resources/en.lproj/Localizable.strings
new file mode 100644
index 000000000..897268443
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/en.lproj/Localizable.strings
@@ -0,0 +1,25 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+// accessibility label for recording button
+"toggle audio recording" = "toggle audio recording";
+// notification spoken by VoiceOver when timed recording finishes
+"timed recording complete" = "timed recording complete";
+// accessibility hint for display of recorded elapsed time
+"recorded time in minutes and seconds" = "recorded time in minutes and seconds"; \ No newline at end of file
diff --git a/phonegap/iPhone/FixMyStreet/Resources/es.lproj/Localizable.strings b/phonegap/iPhone/FixMyStreet/Resources/es.lproj/Localizable.strings
new file mode 100644
index 000000000..23831e662
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/es.lproj/Localizable.strings
@@ -0,0 +1,25 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+// accessibility label for recording button
+"toggle audio recording" = "grabación de audio cambiar";
+// notification spoken by VoiceOver when timed recording finishes
+"timed recording complete" = "tiempo de grabación completo";
+// accessibility hint for display of recorded elapsed time
+"recorded time in minutes and seconds" = "tiempo registrado en minutos y segundos"; \ No newline at end of file
diff --git a/phonegap/iPhone/FixMyStreet/Resources/icons/icon-72.png b/phonegap/iPhone/FixMyStreet/Resources/icons/icon-72.png
new file mode 100644
index 000000000..8c6e5df34
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/icons/icon-72.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/icons/icon.png b/phonegap/iPhone/FixMyStreet/Resources/icons/icon.png
new file mode 100644
index 000000000..b2571a719
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/icons/icon.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/icons/icon@2x.png b/phonegap/iPhone/FixMyStreet/Resources/icons/icon@2x.png
new file mode 100644
index 000000000..d75098f5a
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/icons/icon@2x.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/se.lproj/Localizable.strings b/phonegap/iPhone/FixMyStreet/Resources/se.lproj/Localizable.strings
new file mode 100644
index 000000000..0af964685
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/se.lproj/Localizable.strings
@@ -0,0 +1,26 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+
+// accessibility label for recording button
+"toggle audio recording" = "börja/avsluta inspelning";
+// notification spoken by VoiceOver when timed recording finishes
+"timed recording complete" = "inspelning har avslutad";
+// accessibility hint for display of recorded elapsed time
+"recorded time in minutes and seconds" = "inspelad tid in minuter och sekund"; \ No newline at end of file
diff --git a/phonegap/iPhone/FixMyStreet/Resources/splash/Default.png b/phonegap/iPhone/FixMyStreet/Resources/splash/Default.png
new file mode 100644
index 000000000..644f3804c
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/splash/Default.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/Resources/splash/Default@2x.png b/phonegap/iPhone/FixMyStreet/Resources/splash/Default@2x.png
new file mode 100644
index 000000000..02d6e3593
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/Resources/splash/Default@2x.png
Binary files differ
diff --git a/phonegap/iPhone/FixMyStreet/en.lproj/InfoPlist.strings b/phonegap/iPhone/FixMyStreet/en.lproj/InfoPlist.strings
new file mode 100644
index 000000000..477b28ff8
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
diff --git a/phonegap/iPhone/FixMyStreet/main.m b/phonegap/iPhone/FixMyStreet/main.m
new file mode 100644
index 000000000..b6fba52b1
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/main.m
@@ -0,0 +1,35 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+//
+// main.m
+// FixMyStreet
+//
+// Created by Struan Donald on 08/03/2012.
+// Copyright __MyCompanyName__ 2012. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+int main(int argc, char *argv[]) {
+
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+ int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
+ [pool release];
+ return retVal;
+}
diff --git a/phonegap/iPhone/FixMyStreet/verify.sh b/phonegap/iPhone/FixMyStreet/verify.sh
new file mode 100755
index 000000000..0f6f0373c
--- /dev/null
+++ b/phonegap/iPhone/FixMyStreet/verify.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+
+if [ ! -d "$PROJECT_DIR/www" ] ; then
+ cp -R /Users/Shared/Cordova/Frameworks/Cordova.framework/www "$PROJECT_DIR"
+fi
+# detect www folder reference in project, if missing, print warning
+grep "{isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = \"<group>\"; };" "$PROJECT_DIR/$PROJECT_NAME.xcodeproj/project.pbxproj"
+rc=$?
+if [ $rc != 0 ] ; then
+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
+fi \ No newline at end of file