vendor 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile.lock +2 -4
- data/LICENSE +20 -0
- data/Readme.markdown +91 -10
- data/bin/vendor +5 -53
- data/lib/vendor.rb +37 -26
- data/lib/vendor/api.rb +1 -1
- data/lib/vendor/cli.rb +3 -15
- data/lib/vendor/cli/app.rb +140 -0
- data/lib/vendor/cli/auth.rb +6 -4
- data/lib/vendor/cli/console.rb +25 -0
- data/lib/vendor/extensions/string.rb +1 -1
- data/lib/vendor/template.rb +55 -0
- data/lib/vendor/templates/Vendorfile +3 -0
- data/lib/vendor/templates/vendorspec +15 -0
- data/lib/vendor/ui.rb +62 -0
- data/lib/vendor/vendor_file.rb +12 -0
- data/lib/vendor/vendor_file/dsl.rb +54 -0
- data/lib/vendor/vendor_file/library.rb +16 -0
- data/lib/vendor/vendor_file/library/base.rb +95 -0
- data/lib/vendor/vendor_file/library/git.rb +71 -0
- data/lib/vendor/vendor_file/library/local.rb +22 -0
- data/lib/vendor/vendor_file/library/remote.rb +18 -0
- data/lib/vendor/vendor_file/loader.rb +36 -0
- data/lib/vendor/vendor_file/source.rb +21 -0
- data/lib/vendor/vendor_spec.rb +11 -0
- data/lib/vendor/vendor_spec/builder.rb +10 -3
- data/lib/vendor/version.rb +1 -1
- data/lib/vendor/xcode.rb +10 -0
- data/lib/vendor/xcode/project.rb +132 -19
- data/lib/vendor/xcode/proxy.rb +28 -0
- data/lib/vendor/xcode/{object.rb → proxy/base.rb} +52 -25
- data/lib/vendor/xcode/proxy/pbx_build_file.rb +9 -0
- data/lib/vendor/xcode/proxy/pbx_container_item_proxy.rb +8 -0
- data/lib/vendor/xcode/proxy/pbx_file_reference.rb +39 -0
- data/lib/vendor/xcode/proxy/pbx_frameworks_build_phase.rb +9 -0
- data/lib/vendor/xcode/proxy/pbx_group.rb +35 -0
- data/lib/vendor/xcode/{objects → proxy}/pbx_native_target.rb +2 -2
- data/lib/vendor/xcode/{objects → proxy}/pbx_project.rb +2 -2
- data/lib/vendor/xcode/proxy/pbx_resources_build_phase.rb +7 -0
- data/lib/vendor/xcode/proxy/pbx_shell_script_build_phase.rb +7 -0
- data/lib/vendor/xcode/proxy/pbx_sources_build_phase.rb +9 -0
- data/lib/vendor/xcode/proxy/pbx_target_dependency.rb +7 -0
- data/lib/vendor/xcode/proxy/pbx_variant_group.rb +7 -0
- data/lib/vendor/xcode/proxy/xc_build_configuration.rb +7 -0
- data/lib/vendor/xcode/proxy/xc_configuration_list.rb +9 -0
- data/lib/vendor/xcode/proxy/xc_version_group.rb +7 -0
- data/spec/{vendor → lib/vendor}/api_spec.rb +0 -0
- data/spec/{vendor → lib/vendor}/cli/auth_spec.rb +1 -1
- data/spec/{vendor → lib/vendor}/config_spec.rb +1 -1
- data/spec/lib/vendor/template_spec.rb +36 -0
- data/spec/lib/vendor/vendor_file/dsl_spec.rb +5 -0
- data/spec/lib/vendor/vendor_file/library/base_spec.rb +148 -0
- data/spec/lib/vendor/vendor_file/library/git_spec.rb +33 -0
- data/spec/lib/vendor/vendor_file/library/local_spec.rb +19 -0
- data/spec/lib/vendor/vendor_file/library/remote_spec.rb +13 -0
- data/spec/lib/vendor/vendor_file/loader_spec.rb +102 -0
- data/spec/lib/vendor/vendor_file/source_spec.rb +17 -0
- data/spec/{vendor → lib/vendor}/vendor_spec/builder_spec.rb +0 -0
- data/spec/{vendor → lib/vendor}/vendor_spec/dsl_spec.rb +0 -0
- data/spec/{vendor → lib/vendor}/vendor_spec/loader_spec.rb +1 -1
- data/spec/lib/vendor/xcode/project_spec.rb +400 -0
- data/spec/{vendor/xcode/object_spec.rb → lib/vendor/xcode/proxy/base_spec.rb} +15 -3
- data/spec/lib/vendor/xcode/proxy/pbx_file_reference_spec.rb +25 -0
- data/spec/lib/vendor/xcode/proxy/pbx_group_spec.rb +27 -0
- data/spec/{vendor/xcode/objects → lib/vendor/xcode/proxy}/pbx_project_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -3
- data/spec/support/api_stubs.rb +4 -3
- data/spec/support/resources/Vendorfile +22 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/BICoreDataCache.mom +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/BMMapCalloutView.nib +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/Info.plist +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/bingmaps_logo.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/bingmaps_logo@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/blue_selected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/blue_selected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/blue_unselected.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/blue_unselected@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/blue_unselected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/blue_unselected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/callout_white.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/callout_white@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/green_selected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/green_selected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/green_unselected.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/green_unselected@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/green_unselected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/green_unselected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/mapConfiguration.plist +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/me_dot_128.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/networkDefaults.plist +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/orange_selected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/orange_selected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/orange_unselected.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/orange_unselected@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/orange_unselected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/orange_unselected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/purple_selected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/purple_selected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/purple_unselected.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/purple_unselected@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/purple_unselected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/purple_unselected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/red_selected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/red_selected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/red_unselected.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/red_unselected@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/red_unselected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/red_unselected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/shadow.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/shadow@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/yellow_selected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/yellow_selected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/yellow_unselected.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/yellow_unselected@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/yellow_unselected_comp.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps.Resources.bundle/yellow_unselected_comp@2x.png +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMEntity.h +34 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMGeometry.h +67 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMMapView.h +159 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMMarker.h +41 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMMarkerView.h +47 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMPushpinView.h +31 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMReverseGeocoder.h +63 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMTypes.h +25 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BMUserLocation.h +26 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/BingMaps/BingMaps.h +210 -0
- data/spec/support/resources/cache/base/BingMapsIOS/MapControl/libBingMaps.a +0 -0
- data/spec/support/resources/cache/base/BingMapsIOS/README.html +8 -0
- data/spec/support/resources/cache/base/DKBenchmark-Manifest/data/DKBenchmark.h +18 -0
- data/spec/support/resources/cache/base/DKBenchmark-Manifest/data/DKBenchmark.m +73 -0
- data/spec/support/resources/cache/base/DKBenchmark-Manifest/vendor.json +1 -0
- data/spec/support/resources/cache/base/DKBenchmark-Vendorspec/DKBenchmark.h +18 -0
- data/spec/support/resources/cache/base/DKBenchmark-Vendorspec/DKBenchmark.m +73 -0
- data/spec/support/resources/cache/base/DKBenchmark-Vendorspec/DKBenchmark.vendorspec +11 -0
- data/spec/support/resources/projects/TabBarWithUnitTests/TabBarWithUnitTests.xcodeproj/project.pbxproj +10 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication.xcodeproj/project.pbxproj +288 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UAAppDelegate.h +15 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UAAppDelegate.m +60 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UAFlipsideViewController.h +23 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UAFlipsideViewController.m +69 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UAMainViewController.h +13 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UAMainViewController.m +75 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UtilityApplication-Info.plist +42 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UtilityApplication-Prefix.pch +14 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/en.lproj/InfoPlist.strings +2 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/en.lproj/MainStoryboard.storyboard +90 -0
- data/spec/support/resources/projects/UtilityApplication/UtilityApplication/main.m +18 -0
- data/spec/support/resources/{files → source}/SecondViewController.h +0 -0
- data/spec/support/resources/{files → source}/SecondViewController.m +0 -0
- data/vendor.gemspec +0 -1
- metadata +254 -74
- data/LICENCE +0 -19
- data/lib/vendor/xcode/objects/pbx_build_file.rb +0 -9
- data/lib/vendor/xcode/objects/pbx_container_item_proxy.rb +0 -8
- data/lib/vendor/xcode/objects/pbx_file_reference.rb +0 -21
- data/lib/vendor/xcode/objects/pbx_frameworks_build_phase.rb +0 -9
- data/lib/vendor/xcode/objects/pbx_group.rb +0 -13
- data/lib/vendor/xcode/objects/pbx_resources_build_phase.rb +0 -7
- data/lib/vendor/xcode/objects/pbx_shell_script_build_phase.rb +0 -7
- data/lib/vendor/xcode/objects/pbx_sources_build_phase.rb +0 -9
- data/lib/vendor/xcode/objects/pbx_target_dependency.rb +0 -7
- data/lib/vendor/xcode/objects/pbx_variant_group.rb +0 -7
- data/lib/vendor/xcode/objects/xc_build_configuration.rb +0 -7
- data/lib/vendor/xcode/objects/xc_configuration_list.rb +0 -9
- data/spec/vendor/xcode/project_spec.rb +0 -211
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// UAAppDelegate.h
|
3
|
+
// UtilityApplication
|
4
|
+
//
|
5
|
+
// Created by Keith Pitt on 1/11/11.
|
6
|
+
// Copyright (c) 2011 n/a. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
@interface UAAppDelegate : UIResponder <UIApplicationDelegate>
|
12
|
+
|
13
|
+
@property (strong, nonatomic) UIWindow *window;
|
14
|
+
|
15
|
+
@end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
//
|
2
|
+
// UAAppDelegate.m
|
3
|
+
// UtilityApplication
|
4
|
+
//
|
5
|
+
// Created by Keith Pitt on 1/11/11.
|
6
|
+
// Copyright (c) 2011 n/a. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "UAAppDelegate.h"
|
10
|
+
|
11
|
+
@implementation UAAppDelegate
|
12
|
+
|
13
|
+
@synthesize window = _window;
|
14
|
+
|
15
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
16
|
+
{
|
17
|
+
// Override point for customization after application launch.
|
18
|
+
return YES;
|
19
|
+
}
|
20
|
+
|
21
|
+
- (void)applicationWillResignActive:(UIApplication *)application
|
22
|
+
{
|
23
|
+
/*
|
24
|
+
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
25
|
+
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
|
26
|
+
*/
|
27
|
+
}
|
28
|
+
|
29
|
+
- (void)applicationDidEnterBackground:(UIApplication *)application
|
30
|
+
{
|
31
|
+
/*
|
32
|
+
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
33
|
+
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
34
|
+
*/
|
35
|
+
}
|
36
|
+
|
37
|
+
- (void)applicationWillEnterForeground:(UIApplication *)application
|
38
|
+
{
|
39
|
+
/*
|
40
|
+
Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
|
41
|
+
*/
|
42
|
+
}
|
43
|
+
|
44
|
+
- (void)applicationDidBecomeActive:(UIApplication *)application
|
45
|
+
{
|
46
|
+
/*
|
47
|
+
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
48
|
+
*/
|
49
|
+
}
|
50
|
+
|
51
|
+
- (void)applicationWillTerminate:(UIApplication *)application
|
52
|
+
{
|
53
|
+
/*
|
54
|
+
Called when the application is about to terminate.
|
55
|
+
Save data if appropriate.
|
56
|
+
See also applicationDidEnterBackground:.
|
57
|
+
*/
|
58
|
+
}
|
59
|
+
|
60
|
+
@end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//
|
2
|
+
// UAFlipsideViewController.h
|
3
|
+
// UtilityApplication
|
4
|
+
//
|
5
|
+
// Created by Keith Pitt on 1/11/11.
|
6
|
+
// Copyright (c) 2011 n/a. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
@class UAFlipsideViewController;
|
12
|
+
|
13
|
+
@protocol UAFlipsideViewControllerDelegate
|
14
|
+
- (void)flipsideViewControllerDidFinish:(UAFlipsideViewController *)controller;
|
15
|
+
@end
|
16
|
+
|
17
|
+
@interface UAFlipsideViewController : UIViewController
|
18
|
+
|
19
|
+
@property (weak, nonatomic) IBOutlet id <UAFlipsideViewControllerDelegate> delegate;
|
20
|
+
|
21
|
+
- (IBAction)done:(id)sender;
|
22
|
+
|
23
|
+
@end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
//
|
2
|
+
// UAFlipsideViewController.m
|
3
|
+
// UtilityApplication
|
4
|
+
//
|
5
|
+
// Created by Keith Pitt on 1/11/11.
|
6
|
+
// Copyright (c) 2011 n/a. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "UAFlipsideViewController.h"
|
10
|
+
|
11
|
+
@implementation UAFlipsideViewController
|
12
|
+
|
13
|
+
@synthesize delegate = _delegate;
|
14
|
+
|
15
|
+
- (void)didReceiveMemoryWarning
|
16
|
+
{
|
17
|
+
[super didReceiveMemoryWarning];
|
18
|
+
// Release any cached data, images, etc that aren't in use.
|
19
|
+
}
|
20
|
+
|
21
|
+
#pragma mark - View lifecycle
|
22
|
+
|
23
|
+
- (void)viewDidLoad
|
24
|
+
{
|
25
|
+
[super viewDidLoad];
|
26
|
+
// Do any additional setup after loading the view, typically from a nib.
|
27
|
+
}
|
28
|
+
|
29
|
+
- (void)viewDidUnload
|
30
|
+
{
|
31
|
+
[super viewDidUnload];
|
32
|
+
// Release any retained subviews of the main view.
|
33
|
+
// e.g. self.myOutlet = nil;
|
34
|
+
}
|
35
|
+
|
36
|
+
- (void)viewWillAppear:(BOOL)animated
|
37
|
+
{
|
38
|
+
[super viewWillAppear:animated];
|
39
|
+
}
|
40
|
+
|
41
|
+
- (void)viewDidAppear:(BOOL)animated
|
42
|
+
{
|
43
|
+
[super viewDidAppear:animated];
|
44
|
+
}
|
45
|
+
|
46
|
+
- (void)viewWillDisappear:(BOOL)animated
|
47
|
+
{
|
48
|
+
[super viewWillDisappear:animated];
|
49
|
+
}
|
50
|
+
|
51
|
+
- (void)viewDidDisappear:(BOOL)animated
|
52
|
+
{
|
53
|
+
[super viewDidDisappear:animated];
|
54
|
+
}
|
55
|
+
|
56
|
+
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
57
|
+
{
|
58
|
+
// Return YES for supported orientations
|
59
|
+
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
|
60
|
+
}
|
61
|
+
|
62
|
+
#pragma mark - Actions
|
63
|
+
|
64
|
+
- (IBAction)done:(id)sender
|
65
|
+
{
|
66
|
+
[self.delegate flipsideViewControllerDidFinish:self];
|
67
|
+
}
|
68
|
+
|
69
|
+
@end
|
data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UAMainViewController.h
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
//
|
2
|
+
// UAMainViewController.h
|
3
|
+
// UtilityApplication
|
4
|
+
//
|
5
|
+
// Created by Keith Pitt on 1/11/11.
|
6
|
+
// Copyright (c) 2011 n/a. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "UAFlipsideViewController.h"
|
10
|
+
|
11
|
+
@interface UAMainViewController : UIViewController <UAFlipsideViewControllerDelegate>
|
12
|
+
|
13
|
+
@end
|
data/spec/support/resources/projects/UtilityApplication/UtilityApplication/UAMainViewController.m
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
//
|
2
|
+
// UAMainViewController.m
|
3
|
+
// UtilityApplication
|
4
|
+
//
|
5
|
+
// Created by Keith Pitt on 1/11/11.
|
6
|
+
// Copyright (c) 2011 n/a. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "UAMainViewController.h"
|
10
|
+
|
11
|
+
@implementation UAMainViewController
|
12
|
+
|
13
|
+
|
14
|
+
- (void)didReceiveMemoryWarning
|
15
|
+
{
|
16
|
+
[super didReceiveMemoryWarning];
|
17
|
+
// Release any cached data, images, etc that aren't in use.
|
18
|
+
}
|
19
|
+
|
20
|
+
#pragma mark - View lifecycle
|
21
|
+
|
22
|
+
- (void)viewDidLoad
|
23
|
+
{
|
24
|
+
[super viewDidLoad];
|
25
|
+
// Do any additional setup after loading the view, typically from a nib.
|
26
|
+
}
|
27
|
+
|
28
|
+
- (void)viewDidUnload
|
29
|
+
{
|
30
|
+
[super viewDidUnload];
|
31
|
+
// Release any retained subviews of the main view.
|
32
|
+
// e.g. self.myOutlet = nil;
|
33
|
+
}
|
34
|
+
|
35
|
+
- (void)viewWillAppear:(BOOL)animated
|
36
|
+
{
|
37
|
+
[super viewWillAppear:animated];
|
38
|
+
}
|
39
|
+
|
40
|
+
- (void)viewDidAppear:(BOOL)animated
|
41
|
+
{
|
42
|
+
[super viewDidAppear:animated];
|
43
|
+
}
|
44
|
+
|
45
|
+
- (void)viewWillDisappear:(BOOL)animated
|
46
|
+
{
|
47
|
+
[super viewWillDisappear:animated];
|
48
|
+
}
|
49
|
+
|
50
|
+
- (void)viewDidDisappear:(BOOL)animated
|
51
|
+
{
|
52
|
+
[super viewDidDisappear:animated];
|
53
|
+
}
|
54
|
+
|
55
|
+
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
56
|
+
{
|
57
|
+
// Return YES for supported orientations
|
58
|
+
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
|
59
|
+
}
|
60
|
+
|
61
|
+
#pragma mark - Flipside View
|
62
|
+
|
63
|
+
- (void)flipsideViewControllerDidFinish:(UAFlipsideViewController *)controller
|
64
|
+
{
|
65
|
+
[self dismissModalViewControllerAnimated:YES];
|
66
|
+
}
|
67
|
+
|
68
|
+
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
|
69
|
+
{
|
70
|
+
if ([[segue identifier] isEqualToString:@"showAlternate"]) {
|
71
|
+
[[segue destinationViewController] setDelegate:self];
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
@end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>en</string>
|
7
|
+
<key>CFBundleDisplayName</key>
|
8
|
+
<string>${PRODUCT_NAME}</string>
|
9
|
+
<key>CFBundleExecutable</key>
|
10
|
+
<string>${EXECUTABLE_NAME}</string>
|
11
|
+
<key>CFBundleIconFiles</key>
|
12
|
+
<array/>
|
13
|
+
<key>CFBundleIdentifier</key>
|
14
|
+
<string>com.keithpitt.${PRODUCT_NAME:rfc1034identifier}</string>
|
15
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
16
|
+
<string>6.0</string>
|
17
|
+
<key>CFBundleName</key>
|
18
|
+
<string>${PRODUCT_NAME}</string>
|
19
|
+
<key>CFBundlePackageType</key>
|
20
|
+
<string>APPL</string>
|
21
|
+
<key>CFBundleShortVersionString</key>
|
22
|
+
<string>1.0</string>
|
23
|
+
<key>CFBundleSignature</key>
|
24
|
+
<string>????</string>
|
25
|
+
<key>CFBundleVersion</key>
|
26
|
+
<string>1.0</string>
|
27
|
+
<key>LSRequiresIPhoneOS</key>
|
28
|
+
<true/>
|
29
|
+
<key>UIMainStoryboardFile</key>
|
30
|
+
<string>MainStoryboard</string>
|
31
|
+
<key>UIRequiredDeviceCapabilities</key>
|
32
|
+
<array>
|
33
|
+
<string>armv7</string>
|
34
|
+
</array>
|
35
|
+
<key>UISupportedInterfaceOrientations</key>
|
36
|
+
<array>
|
37
|
+
<string>UIInterfaceOrientationPortrait</string>
|
38
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
39
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
40
|
+
</array>
|
41
|
+
</dict>
|
42
|
+
</plist>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
//
|
2
|
+
// Prefix header for all source files of the 'UtilityApplication' target in the 'UtilityApplication' project
|
3
|
+
//
|
4
|
+
|
5
|
+
#import <Availability.h>
|
6
|
+
|
7
|
+
#ifndef __IPHONE_5_0
|
8
|
+
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
9
|
+
#endif
|
10
|
+
|
11
|
+
#ifdef __OBJC__
|
12
|
+
#import <UIKit/UIKit.h>
|
13
|
+
#import <Foundation/Foundation.h>
|
14
|
+
#endif
|
@@ -0,0 +1,90 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.0" toolsVersion="1906" systemVersion="11A511" targetRuntime="iOS.CocoaTouch" nextObjectID="17" propertyAccessControl="none" initialViewController="2">
|
3
|
+
<dependencies>
|
4
|
+
<development defaultVersion="4200" identifier="xcode"/>
|
5
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="902"/>
|
6
|
+
</dependencies>
|
7
|
+
<scenes>
|
8
|
+
<scene sceneID="5">
|
9
|
+
<objects>
|
10
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
|
11
|
+
<viewController id="2" customClass="UAMainViewController" sceneMemberID="viewController">
|
12
|
+
<view key="view" contentMode="scaleToFill" id="3">
|
13
|
+
<rect key="frame" x="0.0" y="20" width="320" height="460"/>
|
14
|
+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
15
|
+
<subviews>
|
16
|
+
<button opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="infoLight" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" id="10">
|
17
|
+
<rect key="frame" x="282" y="421" width="18" height="19"/>
|
18
|
+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
|
19
|
+
<fontDescription key="fontDescription" name="Helvetica-Bold" family="Helvetica" pointSize="15"/>
|
20
|
+
<state key="normal">
|
21
|
+
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
|
22
|
+
<color key="titleShadowColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
|
23
|
+
</state>
|
24
|
+
<state key="highlighted">
|
25
|
+
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
26
|
+
</state>
|
27
|
+
<connections>
|
28
|
+
<segue destination="6" kind="modal" identifier="showAlternate" modalTransitionStyle="flipHorizontal" id="11"/>
|
29
|
+
</connections>
|
30
|
+
</button>
|
31
|
+
</subviews>
|
32
|
+
<color key="backgroundColor" white="0.25" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
33
|
+
</view>
|
34
|
+
</viewController>
|
35
|
+
</objects>
|
36
|
+
<point key="canvasLocation" x="-51" y="182"/>
|
37
|
+
</scene>
|
38
|
+
<scene sceneID="9">
|
39
|
+
<objects>
|
40
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="8" sceneMemberID="firstResponder"/>
|
41
|
+
<viewController id="6" customClass="UAFlipsideViewController" sceneMemberID="viewController">
|
42
|
+
<view key="view" contentMode="scaleToFill" id="7">
|
43
|
+
<rect key="frame" x="0.0" y="20" width="320" height="460"/>
|
44
|
+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
45
|
+
<subviews>
|
46
|
+
<navigationBar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" barStyle="blackOpaque" id="12">
|
47
|
+
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
|
48
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
49
|
+
<items>
|
50
|
+
<navigationItem title="Title" id="13">
|
51
|
+
<barButtonItem key="leftBarButtonItem" systemItem="done" id="14">
|
52
|
+
<connections>
|
53
|
+
<action selector="done:" destination="6" id="16"/>
|
54
|
+
</connections>
|
55
|
+
</barButtonItem>
|
56
|
+
</navigationItem>
|
57
|
+
</items>
|
58
|
+
</navigationBar>
|
59
|
+
</subviews>
|
60
|
+
<color key="backgroundColor" white="0.25" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
61
|
+
</view>
|
62
|
+
<connections>
|
63
|
+
<outlet property="delegate" destination="2" id="15"/>
|
64
|
+
</connections>
|
65
|
+
</viewController>
|
66
|
+
</objects>
|
67
|
+
<point key="canvasLocation" x="368" y="182"/>
|
68
|
+
</scene>
|
69
|
+
</scenes>
|
70
|
+
<classes>
|
71
|
+
<class className="UAFlipsideViewController" superclassName="UIViewController">
|
72
|
+
<source key="sourceIdentifier" type="project" relativePath="./Classes/UAFlipsideViewController.h"/>
|
73
|
+
<relationships>
|
74
|
+
<relationship kind="action" name="done:"/>
|
75
|
+
<relationship kind="outlet" name="delegate"/>
|
76
|
+
</relationships>
|
77
|
+
</class>
|
78
|
+
<class className="UAMainViewController" superclassName="UIViewController">
|
79
|
+
<source key="sourceIdentifier" type="project" relativePath="./Classes/UAMainViewController.h"/>
|
80
|
+
<relationships>
|
81
|
+
<relationship kind="action" name="showInfo:"/>
|
82
|
+
</relationships>
|
83
|
+
</class>
|
84
|
+
</classes>
|
85
|
+
<simulatedMetricsContainer key="defaultSimulatedMetrics">
|
86
|
+
<simulatedStatusBarMetrics key="statusBar"/>
|
87
|
+
<simulatedOrientationMetrics key="orientation"/>
|
88
|
+
<simulatedScreenMetrics key="destination"/>
|
89
|
+
</simulatedMetricsContainer>
|
90
|
+
</document>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
//
|
2
|
+
// main.m
|
3
|
+
// UtilityApplication
|
4
|
+
//
|
5
|
+
// Created by Keith Pitt on 1/11/11.
|
6
|
+
// Copyright (c) 2011 n/a. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
#import "UAAppDelegate.h"
|
12
|
+
|
13
|
+
int main(int argc, char *argv[])
|
14
|
+
{
|
15
|
+
@autoreleasepool {
|
16
|
+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([UAAppDelegate class]));
|
17
|
+
}
|
18
|
+
}
|
File without changes
|
File without changes
|