diff --git a/Client-Bridging-Header.h b/Client-Bridging-Header.h index 485e3abdca05..e371c6cbd15f 100644 --- a/Client-Bridging-Header.h +++ b/Client-Bridging-Header.h @@ -7,7 +7,7 @@ #import "FSReadingList.h" #import "Try.h" -#import "ThirdParty/UIImageViewAligned/UIImageViewAligned/UIImageViewAligned.h" +#import "ThirdParty/UIImageViewAligned/UIImageViewAligned.h" #import "ThirdParty/Apple/UIImage+ImageEffects.h" #import diff --git a/Client.xcodeproj/project.pbxproj b/Client.xcodeproj/project.pbxproj index eb22c5e2db35..09107a20bfc1 100644 --- a/Client.xcodeproj/project.pbxproj +++ b/Client.xcodeproj/project.pbxproj @@ -8,7 +8,6 @@ /* Begin PBXBuildFile section */ 03CCC9181AF05E7300DBF30D /* RelativeDatesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03CCC9171AF05E7300DBF30D /* RelativeDatesTests.swift */; }; - 0B1C05D71A798B1F004C78B0 /* UIImageViewAligned.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B1C05D61A798B1F004C78B0 /* UIImageViewAligned.m */; }; 0B21E8061E26CCB7000C8779 /* EarlGrey.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0B21E8051E26CCB7000C8779 /* EarlGrey.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; 0B305E1B1E3A98A900BE0767 /* BookmarkingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B305E1A1E3A98A900BE0767 /* BookmarkingTests.swift */; }; 0B3D670E1E09B90B00C1EFC7 /* AuthenticationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B3D670D1E09B90B00C1EFC7 /* AuthenticationTest.swift */; }; @@ -487,6 +486,7 @@ D8BA178F206D477C0023AC00 /* DeferredTestUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8BA1783206D3FB70023AC00 /* DeferredTestUtils.swift */; }; D8BA1790206D47830023AC00 /* DeferredTestUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8BA1783206D3FB70023AC00 /* DeferredTestUtils.swift */; }; D8BA1791206D47A80023AC00 /* DeferredTestUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8BA1783206D3FB70023AC00 /* DeferredTestUtils.swift */; }; + D8C75DF3207584C400BB8AD0 /* UIImageViewAligned.m in Sources */ = {isa = PBXBuildFile; fileRef = D8C75DF2207584C300BB8AD0 /* UIImageViewAligned.m */; }; D8D33A7D1FBD080300A20A28 /* SnapKitExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8D33A7C1FBD080300A20A28 /* SnapKitExtensions.swift */; }; D8EFFA0C1FF5B1FA001D3A09 /* NavigationRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8EFFA0B1FF5B1FA001D3A09 /* NavigationRouter.swift */; }; D8EFFA261FF702A8001D3A09 /* NavigationRouterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8EFFA251FF702A8001D3A09 /* NavigationRouterTests.swift */; }; @@ -1254,8 +1254,6 @@ /* Begin PBXFileReference section */ 03CCC9171AF05E7300DBF30D /* RelativeDatesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RelativeDatesTests.swift; sourceTree = ""; }; - 0B1C05D51A798B1F004C78B0 /* UIImageViewAligned.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIImageViewAligned.h; sourceTree = ""; }; - 0B1C05D61A798B1F004C78B0 /* UIImageViewAligned.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIImageViewAligned.m; sourceTree = ""; }; 0B21E8051E26CCB7000C8779 /* EarlGrey.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = EarlGrey.framework; path = Carthage/Build/iOS/EarlGrey.framework; sourceTree = ""; }; 0B305E1A1E3A98A900BE0767 /* BookmarkingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BookmarkingTests.swift; sourceTree = ""; }; 0B3D670D1E09B90B00C1EFC7 /* AuthenticationTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AuthenticationTest.swift; sourceTree = ""; }; @@ -1704,6 +1702,8 @@ D88FDAAE1F4E2BA000FD9709 /* PhotonActionSheetAnimator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhotonActionSheetAnimator.swift; sourceTree = ""; }; D8BA1783206D3FB70023AC00 /* DeferredTestUtils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DeferredTestUtils.swift; path = SharedTests/DeferredTestUtils.swift; sourceTree = ""; }; D8BA1788206D405D0023AC00 /* Mocking.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Mocking.swift; path = SyncTests/Mocking.swift; sourceTree = ""; }; + D8C75DE9207584C300BB8AD0 /* UIImageViewAligned.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UIImageViewAligned.h; path = ThirdParty/UIImageViewAligned/UIImageViewAligned.h; sourceTree = SOURCE_ROOT; }; + D8C75DF2207584C300BB8AD0 /* UIImageViewAligned.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = UIImageViewAligned.m; path = ThirdParty/UIImageViewAligned/UIImageViewAligned.m; sourceTree = SOURCE_ROOT; }; D8D33A7C1FBD080300A20A28 /* SnapKitExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SnapKitExtensions.swift; path = Extensions/SnapKitExtensions.swift; sourceTree = ""; }; D8EFFA0B1FF5B1FA001D3A09 /* NavigationRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationRouter.swift; sourceTree = ""; }; D8EFFA251FF702A8001D3A09 /* NavigationRouterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationRouterTests.swift; sourceTree = ""; }; @@ -2195,11 +2195,11 @@ 0B1C05D41A798B1F004C78B0 /* UIImageViewAligned */ = { isa = PBXGroup; children = ( - 0B1C05D51A798B1F004C78B0 /* UIImageViewAligned.h */, - 0B1C05D61A798B1F004C78B0 /* UIImageViewAligned.m */, + D8C75DE9207584C300BB8AD0 /* UIImageViewAligned.h */, + D8C75DF2207584C300BB8AD0 /* UIImageViewAligned.m */, ); name = UIImageViewAligned; - path = ThirdParty/UIImageViewAligned/UIImageViewAligned; + path = ThirdParty/UIImageViewAligned; sourceTree = ""; }; 0B742CC71B32491400EE9264 /* Products */ = { @@ -5290,7 +5290,6 @@ E69E06BA1C76173D00D0F926 /* RequirePasscodeIntervalViewController.swift in Sources */, D3BA7E0E1B0E934F00153782 /* ContextMenuHelper.swift in Sources */, E660BE061BB0666D009AC090 /* InnerStrokedView.swift in Sources */, - 0B1C05D71A798B1F004C78B0 /* UIImageViewAligned.m in Sources */, 0BB5B30B1AC0AD1F0052877D /* LoginsHelper.swift in Sources */, E69E06C91C76198000D0F926 /* AuthenticationManagerConstants.swift in Sources */, 392ED7E61D0AEFEF009D9B62 /* HomePageAccessors.swift in Sources */, @@ -5317,6 +5316,7 @@ E6927EC01C7B6FB800D03F75 /* ErrorToast.swift in Sources */, D30B101E1AA7F9C600C01CA3 /* HomePanels.swift in Sources */, F84B22041A0910F600AAB793 /* AppDelegate.swift in Sources */, + D8C75DF3207584C400BB8AD0 /* UIImageViewAligned.m in Sources */, E653422D1C5944F90039DD9E /* BrowserPrompts.swift in Sources */, 2FDE87FE1ABB3817005317B1 /* RemoteTabsPanel.swift in Sources */, 39DD030D1CD53E1900BC09B3 /* HomePageHelper.swift in Sources */, diff --git a/ThirdParty/Box/LICENSE b/ThirdParty/Box/LICENSE deleted file mode 100644 index 3026ee19023e..000000000000 --- a/ThirdParty/Box/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Rob Rix - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/ThirdParty/Box/README.md b/ThirdParty/Box/README.md deleted file mode 100644 index b9948a020c99..000000000000 --- a/ThirdParty/Box/README.md +++ /dev/null @@ -1,58 +0,0 @@ -# Box - -This is a Swift microframework which implements `Box` & `MutableBox`, with implementations of `==`/`!=` where `T`: `Equatable`. - -`Box` is typically used to work around limitations of value types: - -- recursive `struct`s/`enum`s -- type-parameterized `enum`s where more than one `case` has a value - -## Use - -Wrapping & unwrapping a `Box`: - -```swift -// Wrap: -let box = Box(1) - -// Unwrap: -let value = box.value -``` - -Changing the value of a `MutableBox`: - -```swift -// Mutation: -let mutableBox = MutableBox(1) -mutableBox.value = 2 -``` - -Building a recursive value type: - -```swift -struct BinaryTree { - let value: Int - let left: Box? - let right: Box? -} -``` - -Building a parameterized `enum`: - -```swift -enum Result { - case Success(Box) - case Failure(NSError) -} -``` - -See the sources for more details. - -## Integration - -1. Add this repo as a submodule in e.g. `External/Box`: - - git submodule add https://github.com/robrix/Box.git External/Box -2. Drag `Box.xcodeproj` into your `.xcworkspace`/`.xcodeproj`. -3. Add `Box.framework` to your target’s `Link Binary With Libraries` build phase. -4. You may also want to add a `Copy Files` phase which copies `Box.framework` (and any other framework dependencies you need) into your bundle’s `Frameworks` directory. If your target is a framework, you may instead want the client app to include `Box.framework`. diff --git a/ThirdParty/SWTableViewCell/AppDelegate.h b/ThirdParty/SWTableViewCell/AppDelegate.h deleted file mode 100644 index c3982020c41e..000000000000 --- a/ThirdParty/SWTableViewCell/AppDelegate.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// AppDelegate.h -// SWTableViewCell -// -// Created by Chris Wendel on 9/10/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - -@end diff --git a/ThirdParty/SWTableViewCell/AppDelegate.m b/ThirdParty/SWTableViewCell/AppDelegate.m deleted file mode 100644 index 0eb32561109b..000000000000 --- a/ThirdParty/SWTableViewCell/AppDelegate.m +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.m -// SWTableViewCell -// -// Created by Chris Wendel on 9/10/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import "AppDelegate.h" - -@implementation AppDelegate - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application -{ - // 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. - // 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. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application -{ - // 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. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application -{ - // 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. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application -{ - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application -{ - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git a/ThirdParty/SWTableViewCell/Default-568h@2x.png b/ThirdParty/SWTableViewCell/Default-568h@2x.png deleted file mode 100644 index 0891b7aabfcf..000000000000 Binary files a/ThirdParty/SWTableViewCell/Default-568h@2x.png and /dev/null differ diff --git a/ThirdParty/SWTableViewCell/Default.png b/ThirdParty/SWTableViewCell/Default.png deleted file mode 100644 index 4c8ca6f693f9..000000000000 Binary files a/ThirdParty/SWTableViewCell/Default.png and /dev/null differ diff --git a/ThirdParty/SWTableViewCell/Default@2x.png b/ThirdParty/SWTableViewCell/Default@2x.png deleted file mode 100644 index 35b84cffeb4d..000000000000 Binary files a/ThirdParty/SWTableViewCell/Default@2x.png and /dev/null differ diff --git a/ThirdParty/SWTableViewCell/MI.png b/ThirdParty/SWTableViewCell/MI.png deleted file mode 100644 index d1a1c077e5c6..000000000000 Binary files a/ThirdParty/SWTableViewCell/MI.png and /dev/null differ diff --git a/ThirdParty/SWTableViewCell/PodFiles/NSMutableArray+SWUtilityButtons.h b/ThirdParty/SWTableViewCell/PodFiles/NSMutableArray+SWUtilityButtons.h deleted file mode 100644 index 87edf77c3128..000000000000 --- a/ThirdParty/SWTableViewCell/PodFiles/NSMutableArray+SWUtilityButtons.h +++ /dev/null @@ -1,25 +0,0 @@ -// -// NSMutableArray+SWUtilityButtons.h -// SWTableViewCell -// -// Created by Matt Bowman on 11/27/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import - -@interface NSMutableArray (SWUtilityButtons) - -- (void)sw_addUtilityButtonWithColor:(UIColor *)color title:(NSString *)title; -- (void)sw_addUtilityButtonWithColor:(UIColor *)color attributedTitle:(NSAttributedString *)title; -- (void)sw_addUtilityButtonWithColor:(UIColor *)color icon:(UIImage *)icon; -- (void)sw_addUtilityButtonWithColor:(UIColor *)color normalIcon:(UIImage *)normalIcon selectedIcon:(UIImage *)selectedIcon; - -@end - - -@interface NSArray (SWUtilityButtons) - -- (BOOL)sw_isEqualToButtons:(NSArray *)buttons; - -@end diff --git a/ThirdParty/SWTableViewCell/PodFiles/NSMutableArray+SWUtilityButtons.m b/ThirdParty/SWTableViewCell/PodFiles/NSMutableArray+SWUtilityButtons.m deleted file mode 100644 index 2d32b7529803..000000000000 --- a/ThirdParty/SWTableViewCell/PodFiles/NSMutableArray+SWUtilityButtons.m +++ /dev/null @@ -1,92 +0,0 @@ -// -// NSMutableArray+SWUtilityButtons.m -// SWTableViewCell -// -// Created by Matt Bowman on 11/27/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import "NSMutableArray+SWUtilityButtons.h" - -@implementation NSMutableArray (SWUtilityButtons) - -- (void)sw_addUtilityButtonWithColor:(UIColor *)color title:(NSString *)title -{ - UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; - button.backgroundColor = color; - [button setTitle:title forState:UIControlStateNormal]; - [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; - [button.titleLabel setAdjustsFontSizeToFitWidth:YES]; - [self addObject:button]; -} - -- (void)sw_addUtilityButtonWithColor:(UIColor *)color attributedTitle:(NSAttributedString *)title -{ - UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; - button.backgroundColor = color; - [button setAttributedTitle:title forState:UIControlStateNormal]; - [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; - [self addObject:button]; -} - -- (void)sw_addUtilityButtonWithColor:(UIColor *)color icon:(UIImage *)icon -{ - UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; - button.backgroundColor = color; - [button setImage:icon forState:UIControlStateNormal]; - [self addObject:button]; -} - -- (void)sw_addUtilityButtonWithColor:(UIColor *)color normalIcon:(UIImage *)normalIcon selectedIcon:(UIImage *)selectedIcon { - UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; - button.backgroundColor = color; - [button setImage:normalIcon forState:UIControlStateNormal]; - [button setImage:selectedIcon forState:UIControlStateHighlighted]; - [button setImage:selectedIcon forState:UIControlStateSelected]; - [self addObject:button]; -} - -@end - - -@implementation NSArray (SWUtilityButtons) - -- (BOOL)sw_isEqualToButtons:(NSArray *)buttons -{ - buttons = [buttons copy]; - if (!buttons || self.count != buttons.count) return NO; - - for (NSUInteger idx = 0; idx < self.count; idx++) { - id buttonA = self[idx]; - id buttonB = buttons[idx]; - if (![buttonA isKindOfClass:[UIButton class]] || ![buttonB isKindOfClass:[UIButton class]]) return NO; - if (![[self class] sw_button:buttonA isEqualToButton:buttonB]) return NO; - } - - return YES; -} - -+ (BOOL)sw_button:(UIButton *)buttonA isEqualToButton:(UIButton *)buttonB -{ - if (!buttonA || !buttonB) return NO; - - UIColor *backgroundColorA = buttonA.backgroundColor; - UIColor *backgroundColorB = buttonB.backgroundColor; - BOOL haveEqualBackgroundColors = (!backgroundColorA && !backgroundColorB) || [backgroundColorA isEqual:backgroundColorB]; - - NSString *titleA = [buttonA titleForState:UIControlStateNormal]; - NSString *titleB = [buttonB titleForState:UIControlStateNormal]; - BOOL haveEqualTitles = (!titleA && !titleB) || [titleA isEqualToString:titleB]; - - UIImage *normalIconA = [buttonA imageForState:UIControlStateNormal]; - UIImage *normalIconB = [buttonB imageForState:UIControlStateNormal]; - BOOL haveEqualNormalIcons = (!normalIconA && !normalIconB) || [normalIconA isEqual:normalIconB]; - - UIImage *selectedIconA = [buttonA imageForState:UIControlStateSelected]; - UIImage *selectedIconB = [buttonB imageForState:UIControlStateSelected]; - BOOL haveEqualSelectedIcons = (!selectedIconA && !selectedIconB) || [selectedIconA isEqual:selectedIconB]; - - return haveEqualBackgroundColors && haveEqualTitles && haveEqualNormalIcons && haveEqualSelectedIcons; -} - -@end diff --git a/ThirdParty/SWTableViewCell/SWTableViewCell-Info.plist b/ThirdParty/SWTableViewCell/SWTableViewCell-Info.plist deleted file mode 100644 index 2f1980ef53da..000000000000 --- a/ThirdParty/SWTableViewCell/SWTableViewCell-Info.plist +++ /dev/null @@ -1,43 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - com.ChrisWendel.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - UILaunchStoryboardName - MainStoryboard - UIMainStoryboardFile - MainStoryboard - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - UIInterfaceOrientationPortraitUpsideDown - - - diff --git a/ThirdParty/SWTableViewCell/SWTableViewCell-Prefix.pch b/ThirdParty/SWTableViewCell/SWTableViewCell-Prefix.pch deleted file mode 100644 index 4fad5d9f4f23..000000000000 --- a/ThirdParty/SWTableViewCell/SWTableViewCell-Prefix.pch +++ /dev/null @@ -1,14 +0,0 @@ -// -// Prefix header for all source files of the 'SWTableViewCell' target in the 'SWTableViewCell' project -// - -#import - -#ifndef __IPHONE_5_0 -#warning "This project uses features only available in iOS SDK 5.0 and later." -#endif - -#ifdef __OBJC__ - #import - #import -#endif diff --git a/ThirdParty/SWTableViewCell/UMTableViewCell.h b/ThirdParty/SWTableViewCell/UMTableViewCell.h deleted file mode 100644 index 470258884aba..000000000000 --- a/ThirdParty/SWTableViewCell/UMTableViewCell.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// UMTableViewCell.h -// SWTableViewCell -// -// Created by Matt Bowman on 12/2/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import -#import "SWTableViewCell.h" - -/* - * Example of a custom cell built in Storyboard - */ -@interface UMTableViewCell : SWTableViewCell - -@property (weak, nonatomic) IBOutlet UIImageView *image; -@property (weak, nonatomic) IBOutlet UILabel *label; - -@end diff --git a/ThirdParty/SWTableViewCell/UMTableViewCell.m b/ThirdParty/SWTableViewCell/UMTableViewCell.m deleted file mode 100644 index 23b5591d98a5..000000000000 --- a/ThirdParty/SWTableViewCell/UMTableViewCell.m +++ /dev/null @@ -1,13 +0,0 @@ -// -// UMTableViewCell.m -// SWTableViewCell -// -// Created by Matt Bowman on 12/2/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import "UMTableViewCell.h" - -@implementation UMTableViewCell - -@end diff --git a/ThirdParty/SWTableViewCell/ViewController.h b/ThirdParty/SWTableViewCell/ViewController.h deleted file mode 100644 index 474c0c292478..000000000000 --- a/ThirdParty/SWTableViewCell/ViewController.h +++ /dev/null @@ -1,14 +0,0 @@ -// -// ViewController.h -// SWTableViewCell -// -// Created by Chris Wendel on 9/10/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import -#import "SWTableViewCell.h" - -@interface ViewController : UITableViewController - -@end diff --git a/ThirdParty/SWTableViewCell/ViewController.m b/ThirdParty/SWTableViewCell/ViewController.m deleted file mode 100644 index 3efe130e3fff..000000000000 --- a/ThirdParty/SWTableViewCell/ViewController.m +++ /dev/null @@ -1,292 +0,0 @@ -// -// ViewController.m -// SWTableViewCell -// -// Created by Chris Wendel on 9/10/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import "ViewController.h" -#import "SWTableViewCell.h" -#import "UMTableViewCell.h" - -@interface ViewController () { - NSArray *_sections; - NSMutableArray *_testArray; -} - -@property (nonatomic, weak) IBOutlet UITableView *tableView; -@property (nonatomic) BOOL useCustomCells; -@property (nonatomic, weak) UIRefreshControl *refreshControl; - -@end - -@implementation ViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - - self.navigationItem.leftBarButtonItem = self.editButtonItem; - self.tableView.rowHeight = 90; - - self.navigationItem.title = @"Pull to Toggle Cell Type"; - - // Setup refresh control for example app - UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; - [refreshControl addTarget:self action:@selector(toggleCells:) forControlEvents:UIControlEventValueChanged]; - refreshControl.tintColor = [UIColor blueColor]; - - self.refreshControl = refreshControl; - - // If you set the seperator inset on iOS 6 you get a NSInvalidArgumentException...weird - if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { - self.tableView.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0); // Makes the horizontal row seperator stretch the entire length of the table view - } - - _sections = [[UILocalizedIndexedCollation currentCollation] sectionIndexTitles]; - - _testArray = [[NSMutableArray alloc] init]; - - self.useCustomCells = NO; - - for (int i = 0; i < _sections.count; ++i) { - [_testArray addObject:[NSMutableArray array]]; - } - - for (int i = 0; i < 100; ++i) { - NSString *string = [NSString stringWithFormat:@"%d", i]; - [_testArray[i % _sections.count] addObject:string]; - } -} - -#pragma mark UITableViewDataSource - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - return _testArray.count; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - return [_testArray[section] count]; -} - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - NSLog(@"cell selected at index path %ld:%ld", (long)indexPath.section, (long)indexPath.row); - NSLog(@"selected cell index path is %@", [self.tableView indexPathForSelectedRow]); - - if (!tableView.isEditing) { - [tableView deselectRowAtIndexPath:indexPath animated:YES]; - } -} - -- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { - return _sections[section]; -} - -// Show index titles - -//- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { -// return [[UILocalizedIndexedCollation currentCollation] sectionIndexTitles]; -//} -// -//- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index { -// return [[UILocalizedIndexedCollation currentCollation] sectionForSectionIndexTitleAtIndex:index]; -//} - -#pragma mark - UIRefreshControl Selector - -- (void)toggleCells:(UIRefreshControl*)refreshControl -{ - [refreshControl beginRefreshing]; - self.useCustomCells = !self.useCustomCells; - if (self.useCustomCells) - { - self.refreshControl.tintColor = [UIColor yellowColor]; - } - else - { - self.refreshControl.tintColor = [UIColor blueColor]; - } - [self.tableView reloadData]; - [refreshControl endRefreshing]; -} - -#pragma mark - UIScrollViewDelegate - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - - if (self.useCustomCells) - { - UMTableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:@"UMCell" forIndexPath:indexPath]; - - // optionally specify a width that each set of utility buttons will share - [cell setLeftUtilityButtons:[self leftButtons] WithButtonWidth:32.0f]; - [cell setRightUtilityButtons:[self rightButtons] WithButtonWidth:58.0f]; - cell.delegate = self; - - cell.label.text = [NSString stringWithFormat:@"Section: %ld, Seat: %ld", (long)indexPath.section, (long)indexPath.row]; - - return cell; - } - else - { - static NSString *cellIdentifier = @"Cell"; - - SWTableViewCell *cell = (SWTableViewCell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier]; - - if (cell == nil) { - - cell = [[SWTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellIdentifier]; - - cell.leftUtilityButtons = [self leftButtons]; - cell.rightUtilityButtons = [self rightButtons]; - cell.delegate = self; - } - - NSDate *dateObject = _testArray[indexPath.section][indexPath.row]; - cell.textLabel.text = [dateObject description]; - cell.textLabel.backgroundColor = [UIColor whiteColor]; - cell.detailTextLabel.backgroundColor = [UIColor whiteColor]; - cell.detailTextLabel.text = @"Some detail text"; - - return cell; - } - -} - -- (NSArray *)rightButtons -{ - NSMutableArray *rightUtilityButtons = [NSMutableArray new]; - [rightUtilityButtons sw_addUtilityButtonWithColor: - [UIColor colorWithRed:0.78f green:0.78f blue:0.8f alpha:1.0] - title:@"More"]; - [rightUtilityButtons sw_addUtilityButtonWithColor: - [UIColor colorWithRed:1.0f green:0.231f blue:0.188 alpha:1.0f] - title:@"Delete"]; - - return rightUtilityButtons; -} - -- (NSArray *)leftButtons -{ - NSMutableArray *leftUtilityButtons = [NSMutableArray new]; - - [leftUtilityButtons sw_addUtilityButtonWithColor: - [UIColor colorWithRed:0.07 green:0.75f blue:0.16f alpha:1.0] - icon:[UIImage imageNamed:@"check.png"]]; - [leftUtilityButtons sw_addUtilityButtonWithColor: - [UIColor colorWithRed:1.0f green:1.0f blue:0.35f alpha:1.0] - icon:[UIImage imageNamed:@"clock.png"]]; - [leftUtilityButtons sw_addUtilityButtonWithColor: - [UIColor colorWithRed:1.0f green:0.231f blue:0.188f alpha:1.0] - icon:[UIImage imageNamed:@"cross.png"]]; - [leftUtilityButtons sw_addUtilityButtonWithColor: - [UIColor colorWithRed:0.55f green:0.27f blue:0.07f alpha:1.0] - icon:[UIImage imageNamed:@"list.png"]]; - - return leftUtilityButtons; -} - -// Set row height on an individual basis - -//- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ -// return [self rowHeightForIndexPath:indexPath]; -//} -// -//- (CGFloat)rowHeightForIndexPath:(NSIndexPath *)indexPath { -// return ([indexPath row] * 10) + 60; -//} - -- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { - // Set background color of cell here if you don't want default white -} - -#pragma mark - SWTableViewDelegate - -- (void)swipeableTableViewCell:(SWTableViewCell *)cell scrollingToState:(SWCellState)state -{ - switch (state) { - case 0: - NSLog(@"utility buttons closed"); - break; - case 1: - NSLog(@"left utility buttons open"); - break; - case 2: - NSLog(@"right utility buttons open"); - break; - default: - break; - } -} - -- (void)swipeableTableViewCell:(SWTableViewCell *)cell didTriggerLeftUtilityButtonWithIndex:(NSInteger)index -{ - switch (index) { - case 0: - NSLog(@"left button 0 was pressed"); - break; - case 1: - NSLog(@"left button 1 was pressed"); - break; - case 2: - NSLog(@"left button 2 was pressed"); - break; - case 3: - NSLog(@"left btton 3 was pressed"); - default: - break; - } -} - -- (void)swipeableTableViewCell:(SWTableViewCell *)cell didTriggerRightUtilityButtonWithIndex:(NSInteger)index -{ - switch (index) { - case 0: - { - NSLog(@"More button was pressed"); - UIAlertView *alertTest = [[UIAlertView alloc] initWithTitle:@"Hello" message:@"More more more" delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles: nil]; - [alertTest show]; - - [cell hideUtilityButtonsAnimated:YES]; - break; - } - case 1: - { - // Delete button was pressed - NSIndexPath *cellIndexPath = [self.tableView indexPathForCell:cell]; - - [_testArray[cellIndexPath.section] removeObjectAtIndex:cellIndexPath.row]; - [self.tableView deleteRowsAtIndexPaths:@[cellIndexPath] withRowAnimation:UITableViewRowAnimationLeft]; - break; - } - default: - break; - } -} - -- (BOOL)swipeableTableViewCellShouldHideUtilityButtonsOnSwipe:(SWTableViewCell *)cell -{ - // allow just one cell's utility button to be open at once - return YES; -} - -- (BOOL)swipeableTableViewCell:(SWTableViewCell *)cell canSwipeToState:(SWCellState)state -{ - switch (state) { - case 1: - // set to NO to disable all left utility buttons appearing - return YES; - break; - case 2: - // set to NO to disable all right utility buttons appearing - return YES; - break; - default: - break; - } - - return YES; -} - - -@end \ No newline at end of file diff --git a/ThirdParty/SWTableViewCell/check@2x.png b/ThirdParty/SWTableViewCell/check@2x.png deleted file mode 100644 index d3a3a6e23e4c..000000000000 Binary files a/ThirdParty/SWTableViewCell/check@2x.png and /dev/null differ diff --git a/ThirdParty/SWTableViewCell/clock@2x.png b/ThirdParty/SWTableViewCell/clock@2x.png deleted file mode 100644 index 184ad4c41d10..000000000000 Binary files a/ThirdParty/SWTableViewCell/clock@2x.png and /dev/null differ diff --git a/ThirdParty/SWTableViewCell/cross@2x.png b/ThirdParty/SWTableViewCell/cross@2x.png deleted file mode 100644 index 053ee0d8e4ed..000000000000 Binary files a/ThirdParty/SWTableViewCell/cross@2x.png and /dev/null differ diff --git a/ThirdParty/SWTableViewCell/en.lproj/InfoPlist.strings b/ThirdParty/SWTableViewCell/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28ff8f86..000000000000 --- a/ThirdParty/SWTableViewCell/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ - diff --git a/ThirdParty/SWTableViewCell/en.lproj/MainStoryboard.storyboard b/ThirdParty/SWTableViewCell/en.lproj/MainStoryboard.storyboard deleted file mode 100644 index ce553c16198a..000000000000 --- a/ThirdParty/SWTableViewCell/en.lproj/MainStoryboard.storyboard +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ThirdParty/SWTableViewCell/list@2x.png b/ThirdParty/SWTableViewCell/list@2x.png deleted file mode 100644 index b8ad135f0425..000000000000 Binary files a/ThirdParty/SWTableViewCell/list@2x.png and /dev/null differ diff --git a/ThirdParty/SWTableViewCell/main.m b/ThirdParty/SWTableViewCell/main.m deleted file mode 100644 index 03d31e30ddb3..000000000000 --- a/ThirdParty/SWTableViewCell/main.m +++ /dev/null @@ -1,18 +0,0 @@ -// -// main.m -// SWTableViewCell -// -// Created by Chris Wendel on 9/10/13. -// Copyright (c) 2013 Chris Wendel. All rights reserved. -// - -#import - -#import "AppDelegate.h" - -int main(int argc, char *argv[]) -{ - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/ThirdParty/SWTableViewCell/um.png b/ThirdParty/SWTableViewCell/um.png deleted file mode 100644 index cd3b85e43c55..000000000000 Binary files a/ThirdParty/SWTableViewCell/um.png and /dev/null differ diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment.xcodeproj/project.pbxproj b/ThirdParty/UIImageViewAligned/Example/ImageAlignment.xcodeproj/project.pbxproj deleted file mode 100644 index a39ca39ba305..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment.xcodeproj/project.pbxproj +++ /dev/null @@ -1,496 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - C027041017A6FAEC0039CEC1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C027040F17A6FAEC0039CEC1 /* Foundation.framework */; }; - C027041217A6FAEC0039CEC1 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C027041117A6FAEC0039CEC1 /* CoreGraphics.framework */; }; - C027041417A6FAEC0039CEC1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C027041317A6FAEC0039CEC1 /* UIKit.framework */; }; - C027041A17A6FAEC0039CEC1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C027041817A6FAEC0039CEC1 /* InfoPlist.strings */; }; - C027041C17A6FAEC0039CEC1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C027041B17A6FAEC0039CEC1 /* main.m */; }; - C027042017A6FAEC0039CEC1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C027041F17A6FAEC0039CEC1 /* AppDelegate.m */; }; - C027042317A6FAEC0039CEC1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C027042117A6FAEC0039CEC1 /* Main.storyboard */; }; - C027042617A6FAEC0039CEC1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C027042517A6FAEC0039CEC1 /* ViewController.m */; }; - C027042817A6FAEC0039CEC1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C027042717A6FAEC0039CEC1 /* Images.xcassets */; }; - C027042F17A6FAEC0039CEC1 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C027042E17A6FAEC0039CEC1 /* XCTest.framework */; }; - C027043017A6FAEC0039CEC1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C027040F17A6FAEC0039CEC1 /* Foundation.framework */; }; - C027043117A6FAEC0039CEC1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C027041317A6FAEC0039CEC1 /* UIKit.framework */; }; - C027043917A6FAEC0039CEC1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C027043717A6FAEC0039CEC1 /* InfoPlist.strings */; }; - C027043B17A6FAEC0039CEC1 /* ImageAlignmentTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C027043A17A6FAEC0039CEC1 /* ImageAlignmentTests.m */; }; - C027044717A6FB170039CEC1 /* UIImageViewAligned.m in Sources */ = {isa = PBXBuildFile; fileRef = C027044617A6FB170039CEC1 /* UIImageViewAligned.m */; }; - C027044917A6FE200039CEC1 /* melinda_landscape.jpg in Resources */ = {isa = PBXBuildFile; fileRef = C027044817A6FE200039CEC1 /* melinda_landscape.jpg */; }; - C027044B17A6FE780039CEC1 /* melinda_portrait.jpg in Resources */ = {isa = PBXBuildFile; fileRef = C027044A17A6FE780039CEC1 /* melinda_portrait.jpg */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - C027043217A6FAEC0039CEC1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = C027040417A6FAEC0039CEC1 /* Project object */; - proxyType = 1; - remoteGlobalIDString = C027040B17A6FAEC0039CEC1; - remoteInfo = ImageAlignment; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - C027040C17A6FAEC0039CEC1 /* ImageAlignment.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ImageAlignment.app; sourceTree = BUILT_PRODUCTS_DIR; }; - C027040F17A6FAEC0039CEC1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - C027041117A6FAEC0039CEC1 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - C027041317A6FAEC0039CEC1 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - C027041717A6FAEC0039CEC1 /* ImageAlignment-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ImageAlignment-Info.plist"; sourceTree = ""; }; - C027041917A6FAEC0039CEC1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - C027041B17A6FAEC0039CEC1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - C027041D17A6FAEC0039CEC1 /* ImageAlignment-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ImageAlignment-Prefix.pch"; sourceTree = ""; }; - C027041E17A6FAEC0039CEC1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - C027041F17A6FAEC0039CEC1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - C027042217A6FAEC0039CEC1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - C027042417A6FAEC0039CEC1 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - C027042517A6FAEC0039CEC1 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - C027042717A6FAEC0039CEC1 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - C027042D17A6FAEC0039CEC1 /* ImageAlignmentTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ImageAlignmentTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - C027042E17A6FAEC0039CEC1 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - C027043617A6FAEC0039CEC1 /* ImageAlignmentTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ImageAlignmentTests-Info.plist"; sourceTree = ""; }; - C027043817A6FAEC0039CEC1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - C027043A17A6FAEC0039CEC1 /* ImageAlignmentTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ImageAlignmentTests.m; sourceTree = ""; }; - C027044517A6FB170039CEC1 /* UIImageViewAligned.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIImageViewAligned.h; sourceTree = ""; }; - C027044617A6FB170039CEC1 /* UIImageViewAligned.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIImageViewAligned.m; sourceTree = ""; }; - C027044817A6FE200039CEC1 /* melinda_landscape.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = melinda_landscape.jpg; sourceTree = ""; }; - C027044A17A6FE780039CEC1 /* melinda_portrait.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = melinda_portrait.jpg; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - C027040917A6FAEC0039CEC1 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - C027041217A6FAEC0039CEC1 /* CoreGraphics.framework in Frameworks */, - C027041417A6FAEC0039CEC1 /* UIKit.framework in Frameworks */, - C027041017A6FAEC0039CEC1 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C027042A17A6FAEC0039CEC1 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - C027042F17A6FAEC0039CEC1 /* XCTest.framework in Frameworks */, - C027043117A6FAEC0039CEC1 /* UIKit.framework in Frameworks */, - C027043017A6FAEC0039CEC1 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - C027040317A6FAEC0039CEC1 = { - isa = PBXGroup; - children = ( - C027041517A6FAEC0039CEC1 /* ImageAlignment */, - C027043417A6FAEC0039CEC1 /* ImageAlignmentTests */, - C027040E17A6FAEC0039CEC1 /* Frameworks */, - C027040D17A6FAEC0039CEC1 /* Products */, - ); - sourceTree = ""; - }; - C027040D17A6FAEC0039CEC1 /* Products */ = { - isa = PBXGroup; - children = ( - C027040C17A6FAEC0039CEC1 /* ImageAlignment.app */, - C027042D17A6FAEC0039CEC1 /* ImageAlignmentTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - C027040E17A6FAEC0039CEC1 /* Frameworks */ = { - isa = PBXGroup; - children = ( - C027040F17A6FAEC0039CEC1 /* Foundation.framework */, - C027041117A6FAEC0039CEC1 /* CoreGraphics.framework */, - C027041317A6FAEC0039CEC1 /* UIKit.framework */, - C027042E17A6FAEC0039CEC1 /* XCTest.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - C027041517A6FAEC0039CEC1 /* ImageAlignment */ = { - isa = PBXGroup; - children = ( - C027044417A6FAFD0039CEC1 /* UIImageViewAligned */, - C027041E17A6FAEC0039CEC1 /* AppDelegate.h */, - C027041F17A6FAEC0039CEC1 /* AppDelegate.m */, - C027042117A6FAEC0039CEC1 /* Main.storyboard */, - C027042417A6FAEC0039CEC1 /* ViewController.h */, - C027042517A6FAEC0039CEC1 /* ViewController.m */, - C027042717A6FAEC0039CEC1 /* Images.xcassets */, - C027044817A6FE200039CEC1 /* melinda_landscape.jpg */, - C027044A17A6FE780039CEC1 /* melinda_portrait.jpg */, - C027041617A6FAEC0039CEC1 /* Supporting Files */, - ); - path = ImageAlignment; - sourceTree = ""; - }; - C027041617A6FAEC0039CEC1 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - C027041717A6FAEC0039CEC1 /* ImageAlignment-Info.plist */, - C027041817A6FAEC0039CEC1 /* InfoPlist.strings */, - C027041B17A6FAEC0039CEC1 /* main.m */, - C027041D17A6FAEC0039CEC1 /* ImageAlignment-Prefix.pch */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - C027043417A6FAEC0039CEC1 /* ImageAlignmentTests */ = { - isa = PBXGroup; - children = ( - C027043A17A6FAEC0039CEC1 /* ImageAlignmentTests.m */, - C027043517A6FAEC0039CEC1 /* Supporting Files */, - ); - path = ImageAlignmentTests; - sourceTree = ""; - }; - C027043517A6FAEC0039CEC1 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - C027043617A6FAEC0039CEC1 /* ImageAlignmentTests-Info.plist */, - C027043717A6FAEC0039CEC1 /* InfoPlist.strings */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - C027044417A6FAFD0039CEC1 /* UIImageViewAligned */ = { - isa = PBXGroup; - children = ( - C027044517A6FB170039CEC1 /* UIImageViewAligned.h */, - C027044617A6FB170039CEC1 /* UIImageViewAligned.m */, - ); - name = UIImageViewAligned; - path = ../../UIImageViewAligned; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - C027040B17A6FAEC0039CEC1 /* ImageAlignment */ = { - isa = PBXNativeTarget; - buildConfigurationList = C027043E17A6FAEC0039CEC1 /* Build configuration list for PBXNativeTarget "ImageAlignment" */; - buildPhases = ( - C027040817A6FAEC0039CEC1 /* Sources */, - C027040917A6FAEC0039CEC1 /* Frameworks */, - C027040A17A6FAEC0039CEC1 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = ImageAlignment; - productName = ImageAlignment; - productReference = C027040C17A6FAEC0039CEC1 /* ImageAlignment.app */; - productType = "com.apple.product-type.application"; - }; - C027042C17A6FAEC0039CEC1 /* ImageAlignmentTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = C027044117A6FAEC0039CEC1 /* Build configuration list for PBXNativeTarget "ImageAlignmentTests" */; - buildPhases = ( - C027042917A6FAEC0039CEC1 /* Sources */, - C027042A17A6FAEC0039CEC1 /* Frameworks */, - C027042B17A6FAEC0039CEC1 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - C027043317A6FAEC0039CEC1 /* PBXTargetDependency */, - ); - name = ImageAlignmentTests; - productName = ImageAlignmentTests; - productReference = C027042D17A6FAEC0039CEC1 /* ImageAlignmentTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - C027040417A6FAEC0039CEC1 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0500; - ORGANIZATIONNAME = "Andrei Stanescu"; - TargetAttributes = { - C027042C17A6FAEC0039CEC1 = { - TestTargetID = C027040B17A6FAEC0039CEC1; - }; - }; - }; - buildConfigurationList = C027040717A6FAEC0039CEC1 /* Build configuration list for PBXProject "ImageAlignment" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = C027040317A6FAEC0039CEC1; - productRefGroup = C027040D17A6FAEC0039CEC1 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - C027040B17A6FAEC0039CEC1 /* ImageAlignment */, - C027042C17A6FAEC0039CEC1 /* ImageAlignmentTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - C027040A17A6FAEC0039CEC1 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C027044917A6FE200039CEC1 /* melinda_landscape.jpg in Resources */, - C027044B17A6FE780039CEC1 /* melinda_portrait.jpg in Resources */, - C027042817A6FAEC0039CEC1 /* Images.xcassets in Resources */, - C027041A17A6FAEC0039CEC1 /* InfoPlist.strings in Resources */, - C027042317A6FAEC0039CEC1 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C027042B17A6FAEC0039CEC1 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C027043917A6FAEC0039CEC1 /* InfoPlist.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - C027040817A6FAEC0039CEC1 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C027042617A6FAEC0039CEC1 /* ViewController.m in Sources */, - C027042017A6FAEC0039CEC1 /* AppDelegate.m in Sources */, - C027041C17A6FAEC0039CEC1 /* main.m in Sources */, - C027044717A6FB170039CEC1 /* UIImageViewAligned.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C027042917A6FAEC0039CEC1 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C027043B17A6FAEC0039CEC1 /* ImageAlignmentTests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - C027043317A6FAEC0039CEC1 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = C027040B17A6FAEC0039CEC1 /* ImageAlignment */; - targetProxy = C027043217A6FAEC0039CEC1 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - C027041817A6FAEC0039CEC1 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - C027041917A6FAEC0039CEC1 /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; - C027042117A6FAEC0039CEC1 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - C027042217A6FAEC0039CEC1 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - C027043717A6FAEC0039CEC1 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - C027043817A6FAEC0039CEC1 /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - C027043C17A6FAEC0039CEC1 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer: AG AG (4AJVDG7NFQ)"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: AG AG (4AJVDG7NFQ)"; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - C027043D17A6FAEC0039CEC1 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer: AG AG (4AJVDG7NFQ)"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: AG AG (4AJVDG7NFQ)"; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - C027043F17A6FAEC0039CEC1 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "ImageAlignment/ImageAlignment-Prefix.pch"; - INFOPLIST_FILE = "ImageAlignment/ImageAlignment-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Debug; - }; - C027044017A6FAEC0039CEC1 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "ImageAlignment/ImageAlignment-Prefix.pch"; - INFOPLIST_FILE = "ImageAlignment/ImageAlignment-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = app; - }; - name = Release; - }; - C027044217A6FAEC0039CEC1 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ImageAlignment.app/ImageAlignment"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - "$(SYSTEM_APPS_DIR)/Xcode5-DP3.app/Contents/Developer/Library/Frameworks", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "ImageAlignment/ImageAlignment-Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "ImageAlignmentTests/ImageAlignmentTests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = xctest; - }; - name = Debug; - }; - C027044317A6FAEC0039CEC1 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ImageAlignment.app/ImageAlignment"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - "$(SYSTEM_APPS_DIR)/Xcode5-DP3.app/Contents/Developer/Library/Frameworks", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "ImageAlignment/ImageAlignment-Prefix.pch"; - INFOPLIST_FILE = "ImageAlignmentTests/ImageAlignmentTests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = xctest; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - C027040717A6FAEC0039CEC1 /* Build configuration list for PBXProject "ImageAlignment" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C027043C17A6FAEC0039CEC1 /* Debug */, - C027043D17A6FAEC0039CEC1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - C027043E17A6FAEC0039CEC1 /* Build configuration list for PBXNativeTarget "ImageAlignment" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C027043F17A6FAEC0039CEC1 /* Debug */, - C027044017A6FAEC0039CEC1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - C027044117A6FAEC0039CEC1 /* Build configuration list for PBXNativeTarget "ImageAlignmentTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C027044217A6FAEC0039CEC1 /* Debug */, - C027044317A6FAEC0039CEC1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = C027040417A6FAEC0039CEC1 /* Project object */; -} diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/AppDelegate.h b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/AppDelegate.h deleted file mode 100644 index adac9a0ba811..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/AppDelegate.h +++ /dev/null @@ -1,14 +0,0 @@ -// -// AppDelegate.h -// ImageAlignment -// -// Created by Andrei Stanescu on 7/29/13. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - -@end diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/AppDelegate.m b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/AppDelegate.m deleted file mode 100644 index 27c9e72bfc4f..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/AppDelegate.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// ImageAlignment -// -// Created by Andrei Stanescu on 7/29/13. -// - -#import "AppDelegate.h" - -@implementation AppDelegate - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application -{ - // 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. - // 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. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application -{ - // 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. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application -{ - // 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. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application -{ - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application -{ - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Base.lproj/Main.storyboard b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Base.lproj/Main.storyboard deleted file mode 100644 index 1b1114e38857..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Base.lproj/Main.storyboard +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ImageAlignment-Info.plist b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ImageAlignment-Info.plist deleted file mode 100644 index 3367744dd29e..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ImageAlignment-Info.plist +++ /dev/null @@ -1,40 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - com.reydanro.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ImageAlignment-Prefix.pch b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ImageAlignment-Prefix.pch deleted file mode 100644 index 82a2bb45076d..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ImageAlignment-Prefix.pch +++ /dev/null @@ -1,16 +0,0 @@ -// -// Prefix header -// -// The contents of this file are implicitly included at the beginning of every source file. -// - -#import - -#ifndef __IPHONE_5_0 -#warning "This project uses features only available in iOS SDK 5.0 and later." -#endif - -#ifdef __OBJC__ - #import - #import -#endif diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Images.xcassets/AppIcon.appiconset/Contents.json b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 2f35679e07da..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Images.xcassets/LaunchImage.launchimage/Contents.json b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Images.xcassets/LaunchImage.launchimage/Contents.json deleted file mode 100644 index c79ebd3ada13..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/Images.xcassets/LaunchImage.launchimage/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "orientation" : "portrait", - "idiom" : "iphone", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "subtype" : "retina4", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ViewController.h b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ViewController.h deleted file mode 100644 index bee640027615..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ViewController.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// ViewController.h -// ImageAlignment -// -// Created by Andrei Stanescu on 7/29/13. -// - -#import -#import "UIImageViewAligned.h" - -@interface ViewController : UIViewController { - NSArray* _contentModeStrings; -} -@property (weak, nonatomic) IBOutlet UIImageViewAligned *alignedImageView; - -@property (weak, nonatomic) IBOutlet UISwitch *swLandscape; -@property (weak, nonatomic) IBOutlet UIButton *btnContentMode; -@property (weak, nonatomic) IBOutlet UISwitch *swAlignTop; -@property (weak, nonatomic) IBOutlet UISwitch *swAlignRight; -@property (weak, nonatomic) IBOutlet UISwitch *swAlignBottom; -@property (weak, nonatomic) IBOutlet UISwitch *swAlignLeft; - -- (IBAction)onSwitchLandscape:(id)sender; -- (IBAction)onButtonContentMode:(id)sender; -- (IBAction)onSwitchAlignTop:(id)sender; -- (IBAction)onSwitchAlignRight:(id)sender; -- (IBAction)onSwitchAlignBottom:(id)sender; -- (IBAction)onSwitchAlignLeft:(id)sender; - -@end diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ViewController.m b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ViewController.m deleted file mode 100644 index b536fd89fafa..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/ViewController.m +++ /dev/null @@ -1,79 +0,0 @@ -// -// ViewController.m -// ImageAlignment -// -// Created by Andrei Stanescu on 7/29/13. -// - -#import "ViewController.h" - -@interface ViewController () - -@end - -@implementation ViewController - -- (void)viewDidLoad -{ - [super viewDidLoad]; - - _contentModeStrings = [NSArray arrayWithObjects: - @"UIViewContentModeScaleToFill", - @"UIViewContentModeScaleAspectFit", // contents scaled to fit with fixed aspect. remainder is transparent - @"UIViewContentModeScaleAspectFill", // contents scaled to fill with fixed aspect. some portion of content may be clipped. - @"UIViewContentModeRedraw", // redraw on bounds change (calls -setNeedsDisplay) - @"UIViewContentModeCenter", // contents remain same size. positioned adjusted. - @"UIViewContentModeTop", - @"UIViewContentModeBottom", - @"UIViewContentModeLeft", - @"UIViewContentModeRight", - @"UIViewContentModeTopLeft", - @"UIViewContentModeTopRight", - @"UIViewContentModeBottomLeft", - @"UIViewContentModeBottomRight", nil]; - - _swLandscape.on = (_alignedImageView.image != nil) && _alignedImageView.image.size.width >= _alignedImageView.image.size.height; - - _swAlignLeft.on = _alignedImageView.alignLeft; - _swAlignRight.on = _alignedImageView.alignRight; - _swAlignTop.on = _alignedImageView.alignTop; - _swAlignBottom.on = _alignedImageView.alignBottom; - - [self refreshContentModeButtonTitle]; -} - -- (IBAction)onSwitchLandscape:(id)sender { - if (_swLandscape.on) - _alignedImageView.image = [UIImage imageNamed:@"melinda_landscape.jpg"]; - else - _alignedImageView.image = [UIImage imageNamed:@"melinda_portrait.jpg"]; -} - -- (IBAction)onButtonContentMode:(id)sender -{ - _alignedImageView.contentMode = (_alignedImageView.contentMode + 1) % (UIViewContentModeBottomRight+1); // bit of hardcoding..but only for the purposes of this example - [self refreshContentModeButtonTitle]; -} - -- (IBAction)onSwitchAlignTop:(id)sender { - _alignedImageView.alignTop - = _swAlignTop.on; -} - -- (IBAction)onSwitchAlignRight:(id)sender { - _alignedImageView.alignRight = _swAlignRight.on; -} - -- (IBAction)onSwitchAlignBottom:(id)sender { - _alignedImageView.alignBottom = _swAlignBottom.on; -} - -- (IBAction)onSwitchAlignLeft:(id)sender { - _alignedImageView.alignLeft = _swAlignLeft.on; -} - -- (void)refreshContentModeButtonTitle -{ - [_btnContentMode setTitle:_contentModeStrings[_alignedImageView.contentMode] forState:UIControlStateNormal]; -} -@end diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/en.lproj/InfoPlist.strings b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28ff8f86..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ - diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/main.m b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/main.m deleted file mode 100644 index a6392dbe6ca3..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/main.m +++ /dev/null @@ -1,17 +0,0 @@ -// -// main.m -// ImageAlignment -// -// Created by Andrei Stanescu on 7/29/13. -// - -#import - -#import "AppDelegate.h" - -int main(int argc, char * argv[]) -{ - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/melinda_landscape.jpg b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/melinda_landscape.jpg deleted file mode 100644 index 959506b7f4a9..000000000000 Binary files a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/melinda_landscape.jpg and /dev/null differ diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/melinda_portrait.jpg b/ThirdParty/UIImageViewAligned/Example/ImageAlignment/melinda_portrait.jpg deleted file mode 100644 index d59367fe3106..000000000000 Binary files a/ThirdParty/UIImageViewAligned/Example/ImageAlignment/melinda_portrait.jpg and /dev/null differ diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/ImageAlignmentTests-Info.plist b/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/ImageAlignmentTests-Info.plist deleted file mode 100644 index cd573a4509a8..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/ImageAlignmentTests-Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - com.reydanro.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/ImageAlignmentTests.m b/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/ImageAlignmentTests.m deleted file mode 100644 index 811adf2f77eb..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/ImageAlignmentTests.m +++ /dev/null @@ -1,35 +0,0 @@ -// -// ImageAlignmentTests.m -// ImageAlignmentTests -// -// Created by Andrei Stanescu on 7/29/13. -// - -#import - -@interface ImageAlignmentTests : XCTestCase - -@end - -@implementation ImageAlignmentTests - -- (void)setUp -{ - [super setUp]; - - // Set-up code here. -} - -- (void)tearDown -{ - // Tear-down code here. - - [super tearDown]; -} - -- (void)testExample -{ - XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); -} - -@end diff --git a/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/en.lproj/InfoPlist.strings b/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28ff8f86..000000000000 --- a/ThirdParty/UIImageViewAligned/Example/ImageAlignmentTests/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ - diff --git a/ThirdParty/UIImageViewAligned/README.md b/ThirdParty/UIImageViewAligned/README.md deleted file mode 100644 index 6c541170962f..000000000000 --- a/ThirdParty/UIImageViewAligned/README.md +++ /dev/null @@ -1,41 +0,0 @@ -What is it? -=========== - -It is a subclass of `UIImageView` that allows you to customize the alignment of the displayed image inside the view's frame. -This works even if the `contentMode` is set to `AspectFit`, `AspectFill` or `ScaleToFill`. - - -Why a subclass of UIImageView, and not a standard UIView? -========================================================= -Because there are many cool categories built on top of UIImageView. Subclassing a standard UIView would mean losing them. - -For example, AFNetworking's async `UIImageView` category works perfectly using this container class, and you don't have to worry about a thing. - - -How does it work? -================= -When initialized, `UIImageViewAligned` will create a inner `UIImageView` which will actually hold the image displayed. -The main class then just repositions this inner `UIImageView` to achieve your desired alignment. - -At runtime, you can change the image, contentMode or alignment and the image will reposition itself correctly. - -The `image` property of UIImageViewAligned is overwritten to forward the calls to the inner `UIImageView`, so you can just drag-n-drop into your app. - -Compatibility -============= -From what I tested, it works on iOS 6.0+. -Also, it supports autorotation and will reposition the image correctly. - -Using Interface Builder -======================= -You can setup the alignment from Interface Builder using the `Identity Inspector` tab for the UIImageViewAligned. -There, you can add custom boolean properties that will be set when the view is instantiated. -The possible boolean names are: -`alignLeft` -`alignRight` -`alignTop` -`alignBottom` - -Below is a screenshot of an example. You will not get an immediate feedback in IB regarding your alignment, but it will work at runtime. - -![alt tag](https://raw.github.com/reydanro/UIImageViewAligned/master/docs/IBsetup.png) diff --git a/ThirdParty/UIImageViewAligned/UIImageViewAligned/UIImageViewAligned.h b/ThirdParty/UIImageViewAligned/UIImageViewAligned.h similarity index 100% rename from ThirdParty/UIImageViewAligned/UIImageViewAligned/UIImageViewAligned.h rename to ThirdParty/UIImageViewAligned/UIImageViewAligned.h diff --git a/ThirdParty/UIImageViewAligned/UIImageViewAligned/UIImageViewAligned.m b/ThirdParty/UIImageViewAligned/UIImageViewAligned.m similarity index 100% rename from ThirdParty/UIImageViewAligned/UIImageViewAligned/UIImageViewAligned.m rename to ThirdParty/UIImageViewAligned/UIImageViewAligned.m diff --git a/ThirdParty/UIImageViewAligned/UIImageViewAligned.podspec b/ThirdParty/UIImageViewAligned/UIImageViewAligned.podspec deleted file mode 100644 index 27699948f763..000000000000 --- a/ThirdParty/UIImageViewAligned/UIImageViewAligned.podspec +++ /dev/null @@ -1,21 +0,0 @@ -Pod::Spec.new do |s| - - s.name = "UIImageViewAligned" - s.version = "0.0.1" - s.summary = "A UIImageView subclass which allows you to align the image left/right/top/bottom, even when contentMode is AspectFit." - - s.description = "It is a subclass of UIImageView that allows you to customize the alignment of the displayed image inside the view's frame. This works even if the contentMode is set to AspectFit, AspectFill or ScaleToFill." - - s.homepage = "https://github.com/reydanro/UIImageViewAligned" - s.license = { :type => "MIT", :file => "LICENSE" } - - s.author = "Andrei Stanescu" - s.social_media_url = "http://twitter.com/MTStudios_" - s.platform = :ios - - s.source = { :git => "https://github.com/reydanro/UIImageViewAligned.git", :tag => "[ADD THIS]" } - s.source_files = "UIImageViewAligned" - - s.framework = "UIKit" - -end diff --git a/ThirdParty/UIImageViewAligned/docs/IBsetup.png b/ThirdParty/UIImageViewAligned/docs/IBsetup.png deleted file mode 100644 index 9e076082bff9..000000000000 Binary files a/ThirdParty/UIImageViewAligned/docs/IBsetup.png and /dev/null differ