diff --git a/Crashlytics.framework/Versions/A/Crashlytics b/Crashlytics.framework/Versions/A/Crashlytics
index 42dd403..d16d220 100644
Binary files a/Crashlytics.framework/Versions/A/Crashlytics and b/Crashlytics.framework/Versions/A/Crashlytics differ
diff --git a/Crashlytics.framework/Versions/A/Resources/Info.plist b/Crashlytics.framework/Versions/A/Resources/Info.plist
index 29e5e3b..9127885 100644
--- a/Crashlytics.framework/Versions/A/Resources/Info.plist
+++ b/Crashlytics.framework/Versions/A/Resources/Info.plist
@@ -15,13 +15,13 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 2.1.1
+ 2.1.5
CFBundleSupportedPlatforms
iPhoneOS
CFBundleVersion
- 7
+ 16
DTPlatformName
iphoneos
MinimumOSVersion
diff --git a/Crashlytics.framework/run b/Crashlytics.framework/run
index 72089fa..62b4205 100755
Binary files a/Crashlytics.framework/run and b/Crashlytics.framework/run differ
diff --git a/Entitlements.entitlements b/Entitlements.entitlements
deleted file mode 100644
index ce373e1..0000000
--- a/Entitlements.entitlements
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- get-task-allow
-
-
-
diff --git a/Frameworks/ASIHTTPRequest b/Frameworks/ASIHTTPRequest
deleted file mode 160000
index 3ed0b3c..0000000
--- a/Frameworks/ASIHTTPRequest
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 3ed0b3c945937bb8e4b96c08bd3382d7839fb86e
diff --git a/Frameworks/Crashlytics.framework/Crashlytics b/Frameworks/Crashlytics.framework/Crashlytics
deleted file mode 120000
index 7074275..0000000
--- a/Frameworks/Crashlytics.framework/Crashlytics
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/Crashlytics
\ No newline at end of file
diff --git a/Frameworks/Crashlytics.framework/Headers b/Frameworks/Crashlytics.framework/Headers
deleted file mode 120000
index a177d2a..0000000
--- a/Frameworks/Crashlytics.framework/Headers
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/Headers
\ No newline at end of file
diff --git a/Frameworks/Crashlytics.framework/Resources b/Frameworks/Crashlytics.framework/Resources
deleted file mode 120000
index 953ee36..0000000
--- a/Frameworks/Crashlytics.framework/Resources
+++ /dev/null
@@ -1 +0,0 @@
-Versions/Current/Resources
\ No newline at end of file
diff --git a/Frameworks/Crashlytics.framework/Versions/A/Crashlytics b/Frameworks/Crashlytics.framework/Versions/A/Crashlytics
deleted file mode 100644
index b59b18d..0000000
Binary files a/Frameworks/Crashlytics.framework/Versions/A/Crashlytics and /dev/null differ
diff --git a/Frameworks/Crashlytics.framework/Versions/A/Headers/Crashlytics.h b/Frameworks/Crashlytics.framework/Versions/A/Headers/Crashlytics.h
deleted file mode 100644
index 59addef..0000000
--- a/Frameworks/Crashlytics.framework/Versions/A/Headers/Crashlytics.h
+++ /dev/null
@@ -1,217 +0,0 @@
-//
-// Crashlytics.h
-// Crashlytics
-//
-// Copyright 2013 Crashlytics, Inc. All rights reserved.
-//
-
-#import
-
-/**
- *
- * The CLS_LOG macro provides as easy way to gather more information in your log messages that are
- * sent with your crash data. CLS_LOG prepends your custom log message with the function name and
- * line number where the macro was used. If your app was built with the DEBUG preprocessor macro
- * defined CLS_LOG uses the CLSNSLog function which forwards your log message to NSLog and CLSLog.
- * If the DEBUG preprocessor macro is not defined CLS_LOG uses CLSLog only.
- *
- * Example output:
- * -[AppDelegate login:] line 134 $ login start
- *
- * If you would like to change this macro, create a new header file, unset our define and then define
- * your own version. Make sure this new header file is imported after the Crashlytics header file.
- *
- * #undef CLS_LOG
- * #define CLS_LOG(__FORMAT__, ...) CLSNSLog...
- *
- **/
-#ifdef DEBUG
-#define CLS_LOG(__FORMAT__, ...) CLSNSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
-#else
-#define CLS_LOG(__FORMAT__, ...) CLSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
-#endif
-
-/**
- *
- * Add logging that will be sent with your crash data. This logging will not show up in the system.log
- * and will only be visible in your Crashlytics dashboard.
- *
- **/
-OBJC_EXTERN void CLSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
-
-/**
- *
- * Add logging that will be sent with your crash data. This logging will show up in the system.log
- * and your Crashlytics dashboard. It is not recommended for Release builds.
- *
- **/
-OBJC_EXTERN void CLSNSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
-
-@protocol CrashlyticsDelegate;
-
-@interface Crashlytics : NSObject
-
-@property (nonatomic, readonly, copy) NSString *apiKey;
-@property (nonatomic, readonly, copy) NSString *version;
-@property (nonatomic, assign) BOOL debugMode;
-
-@property (nonatomic, assign) NSObject *delegate;
-
-/**
- *
- * The recommended way to install Crashlytics into your application is to place a call
- * to +startWithAPIKey: in your -application:didFinishLaunchingWithOptions: method.
- *
- * This delay defaults to 1 second in order to generally give the application time to
- * fully finish launching.
- *
- **/
-+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey;
-+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey afterDelay:(NSTimeInterval)delay;
-
-/**
- *
- * If you need the functionality provided by the CrashlyticsDelegate protocol, you can use
- * these convenience methods to activate the framework and set the delegate in one call.
- *
- **/
-+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(NSObject *)delegate;
-+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(NSObject *)delegate afterDelay:(NSTimeInterval)delay;
-
-/**
- *
- * Access the singleton Crashlytics instance.
- *
- **/
-+ (Crashlytics *)sharedInstance;
-
-/**
- *
- * The easiest way to cause a crash - great for testing!
- *
- **/
-- (void)crash;
-
-/**
- *
- * Many of our customers have requested the ability to tie crashes to specific end-users of their
- * application in order to facilitate responses to support requests or permit the ability to reach
- * out for more information. We allow you to specify up to three separate values for display within
- * the Crashlytics UI - but please be mindful of your end-user's privacy.
- *
- * We recommend specifying a user identifier - an arbitrary string that ties an end-user to a record
- * in your system. This could be a database id, hash, or other value that is meaningless to a
- * third-party observer but can be indexed and queried by you.
- *
- * Optionally, you may also specify the end-user's name or username, as well as email address if you
- * do not have a system that works well with obscured identifiers.
- *
- * Pursuant to our EULA, this data is transferred securely throughout our system and we will not
- * disseminate end-user data unless required to by law. That said, if you choose to provide end-user
- * contact information, we strongly recommend that you disclose this in your application's privacy
- * policy. Data privacy is of our utmost concern.
- *
- **/
-- (void)setUserIdentifier:(NSString *)identifier;
-- (void)setUserName:(NSString *)name;
-- (void)setUserEmail:(NSString *)email;
-
-+ (void)setUserIdentifier:(NSString *)identifier;
-+ (void)setUserName:(NSString *)name;
-+ (void)setUserEmail:(NSString *)email;
-
-/**
- *
- * Set a value for a key to be associated with your crash data.
- *
- **/
-- (void)setObjectValue:(id)value forKey:(NSString *)key;
-- (void)setIntValue:(int)value forKey:(NSString *)key;
-- (void)setBoolValue:(BOOL)value forKey:(NSString *)key;
-- (void)setFloatValue:(float)value forKey:(NSString *)key;
-
-+ (void)setObjectValue:(id)value forKey:(NSString *)key;
-+ (void)setIntValue:(int)value forKey:(NSString *)key;
-+ (void)setBoolValue:(BOOL)value forKey:(NSString *)key;
-+ (void)setFloatValue:(float)value forKey:(NSString *)key;
-
-@end
-
-/**
- * The CLSCrashReport protocol exposes methods that you can call on crash report objects passed
- * to delegate methods. If you want these values or the entire object to stay in memory retain
- * them or copy them.
- **/
-@protocol CLSCrashReport
-@required
-
-/**
- * Returns the session identifier for the crash report.
- **/
-@property (nonatomic, readonly) NSString *identifier;
-
-/**
- * Returns the custom key value data for the crash report.
- **/
-@property (nonatomic, readonly) NSDictionary *customKeys;
-
-/**
- * Returns the CFBundleVersion of the application that crashed.
- **/
-@property (nonatomic, readonly) NSString *bundleVersion;
-
-/**
- * Returns the CFBundleShortVersionString of the application that crashed.
- **/
-@property (nonatomic, readonly) NSString *bundleShortVersionString;
-
-/**
- * Returns the date that the application crashed at.
- **/
-@property (nonatomic, readonly) NSDate *crashedOnDate;
-
-/**
- * Returns the os version that the application crashed on.
- **/
-@property (nonatomic, readonly) NSString *OSVersion;
-
-/**
- * Returns the os build version that the application crashed on.
- **/
-@property (nonatomic, readonly) NSString *OSBuildVersion;
-
-@end
-
-/**
- *
- * The CrashlyticsDelegate protocol provides a mechanism for your application to take
- * action on events that occur in the Crashlytics crash reporting system. You can make
- * use of these calls by assigning an object to the Crashlytics' delegate property directly,
- * or through the convenience startWithAPIKey:delegate:... methods.
- *
- **/
-@protocol CrashlyticsDelegate
-@optional
-
-/**
- *
- * Called once a Crashlytics instance has determined that the last execution of the
- * application ended in a crash. This is called some time after the crash reporting
- * process has begun. If you have specified a delay in one of the
- * startWithAPIKey:... calls, this will take at least that long to be invoked.
- *
- **/
-- (void)crashlyticsDidDetectCrashDuringPreviousExecution:(Crashlytics *)crashlytics;
-
-/**
- *
- * Just like crashlyticsDidDetectCrashDuringPreviousExecution this delegate method is
- * called once a Crashlytics instance has determined that the last execution of the
- * application ended in a crash. A CLSCrashReport is passed back that contains data about
- * the last crash report that was generated. See the CLSCrashReport protocol for method details.
- * This method is called after crashlyticsDidDetectCrashDuringPreviousExecution.
- *
- **/
-- (void)crashlytics:(Crashlytics *)crashlytics didDetectCrashDuringPreviousExecution:(id )crash;
-
-@end
diff --git a/Frameworks/Crashlytics.framework/Versions/A/Resources/Info.plist b/Frameworks/Crashlytics.framework/Versions/A/Resources/Info.plist
deleted file mode 100644
index 4f309f1..0000000
--- a/Frameworks/Crashlytics.framework/Versions/A/Resources/Info.plist
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- English
- CFBundleExecutable
- Crashlytics
- CFBundleIdentifier
- com.crashlytics.ios
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- Crashlytics
- CFBundlePackageType
- FMWK
- CFBundleShortVersionString
- 2.1.3
- CFBundleSupportedPlatforms
-
- iPhoneOS
-
- CFBundleVersion
- 13
- DTPlatformName
- iphoneos
- MinimumOSVersion
- 4.0
-
-
diff --git a/Frameworks/Crashlytics.framework/Versions/Current b/Frameworks/Crashlytics.framework/Versions/Current
deleted file mode 120000
index 8c7e5a6..0000000
--- a/Frameworks/Crashlytics.framework/Versions/Current
+++ /dev/null
@@ -1 +0,0 @@
-A
\ No newline at end of file
diff --git a/Frameworks/Crashlytics.framework/run b/Frameworks/Crashlytics.framework/run
deleted file mode 100755
index bf7d3a2..0000000
Binary files a/Frameworks/Crashlytics.framework/run and /dev/null differ
diff --git a/Frameworks/DLCImagePickerController b/Frameworks/DLCImagePickerController
deleted file mode 160000
index 525240f..0000000
--- a/Frameworks/DLCImagePickerController
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 525240f6ed44b79e1d7ae8cd473ac6523aca9630
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Changelog.txt b/Frameworks/Google Analytics SDK/GoogleAnalytics/Changelog.txt
deleted file mode 100644
index bb5924f..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Changelog.txt
+++ /dev/null
@@ -1,94 +0,0 @@
-Google Analytics SDK for iOS Changelog
-
---------------------------------------------
-Version: 3.01 (September 2013)
--------------------------------------------
-* Fixed link error when targeting iOS 7.0.
-
---------------------------------------------
-Version: 3.00 (August 2013)
--------------------------------------------
-* SDK API change to align with analytics.js. The track and
- send methods have been removed. Use send and the
- GAIDictionaryBuilder construct methods instead.
-* Most properties on the GAITracker protocol have been removed. Use
- set on the various fields instead.
-* All parameters set using the set method will be persisted. Previously,
- several parameters would only be set for the next send/track call.
-* GAILogger protocol is available for those wanting to implement their
- own custom logging for the SDK.
-* Minimium system requirements have changed. See Readme.txt for details.
-* All SDK activity (database and network access) is now done on a separate
- thread.
-* Clientid can now be read. Call [tracker get:kGAIClientId]. Note that
- this call will block until the client id can be read from the database.
-* SDK no longer uses POST unless the hit is larger than 2000 bytes. It
- will use GET instead.
-* SDK will no longer retry sending hits based off the HTTP response code.
-
---------------------------------------------
-Version: 2.0beta4 Update (Jan 2013)
---------------------------------------------
-* Change default appVersion to the value in CFBundleShortVersionString
- instead of CFBundleVersionKey.
-* Use HTTPS as the default protocol instead of HTTP.
-* Track methods changed to Send (e.g. trackView now called sendView).
-* Some minor bug fixes.
-
---------------------------------------------
-Version: 2.0beta3 iOS6 Update (Sep 2012)
---------------------------------------------
-* Add armv7s architecture to libGoogleAnalytics.a.
-* Remove armv6 architecture from libGoogleAnalytics.a.
-
---------------------------------------------
-Version: 2.0beta3 (Aug 2012)
---------------------------------------------
-* Third beta release.
-* Added social tracking method to GAITracker:
- trackSocial:withAction:withTarget:
-* Timing method signature changed to:
- trackTiming:withValue:withName:withLabel:
-* Manual construction and dispatch methods added to GAITracker:
- set:value:
- get:
- send:params:
-* Custom dimension setter methods added to GAITracker:
- setCustom:dimension:
- setCustom:metric:
-* Architecture of data store refactored to prevent reported CoreData issues.
-
---------------------------------------------
-Version: 2.0beta2 (Jun 2012)
---------------------------------------------
-* Second beta release.
-* Updated to latest wire format.
-* sampleRate changed to double-precision float.
-* Excessive tracking is throttled.
-* Undispatched tracking information is deleted when opt-out is enabled.
-* Undispatched tracking information older than 30 days will be deleted.
-* Enhancements to hit dispatcher.
-* Rather than periodically retry, the dispatcher will use the Reachability API
- when connectivity is lost to get notified when connectivity is reestablished.
-* Updated example app.
-* Other bugfixes and enhancements.
-
---------------------------------------------
-Version: 2.0beta1 (May 2012)
---------------------------------------------
-* Initial internal beta release.
-* Added uncaught exception handling facility.
-* Removed 'dispatchEnabled' property from GAI.
-* Added 'defaultTracker' property to GAI.
-* Added 'close' method to GAITracker.
-* Added timing tracking method to GAITracker.
-* Added trackView method to GAITracker which takes no argument.
-* Transaction item field names updated.
-* Updated to latest wire format.
-* Event value is interpreted as a 64-bit integer.
-* ARMV6 code generation switched from THUMB to ARM.
-
---------------------------------------------
-Version: 2.0alpha1 (April 2012)
---------------------------------------------
-* Initial internal alpha release.
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/AppDelegate.h b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/AppDelegate.h
deleted file mode 100644
index 88d3cda..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/AppDelegate.h
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// AppDelegate.h
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import
-
-#import "GAI.h"
-
-@class RootViewController;
-@class NavController;
-
-@interface AppDelegate : UIResponder
-
-@property(nonatomic, strong) UIWindow *window;
-@property(nonatomic, strong) NavController *navController;
-@property(nonatomic, strong) RootViewController *viewController;
-@property(nonatomic, strong) id tracker;
-@property(nonatomic, strong) NSDictionary *images;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/AppDelegate.m b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/AppDelegate.m
deleted file mode 100644
index 43741de..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/AppDelegate.m
+++ /dev/null
@@ -1,95 +0,0 @@
-//
-// AppDelegate.m
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import "AppDelegate.h"
-#import "NavController.h"
-#import "RootViewController.h"
-
-/******* Set your tracking ID here *******/
-static NSString *const kTrackingId = @"UA-TRACKING-ID";
-static NSString *const kAllowTracking = @"allowTracking";
-
-@interface AppDelegate ()
-
-- (NSDictionary *)loadImages;
-
-@end
-
-@implementation AppDelegate
-- (void)applicationDidBecomeActive:(UIApplication *)application {
- [GAI sharedInstance].optOut =
- ![[NSUserDefaults standardUserDefaults] boolForKey:kAllowTracking];
-}
-- (BOOL)application:(UIApplication *)application
- didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- self.images = [self loadImages];
- NSDictionary *appDefaults = @{kAllowTracking: @(YES)};
- [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
- // User must be able to opt out of tracking
- [GAI sharedInstance].optOut =
- ![[NSUserDefaults standardUserDefaults] boolForKey:kAllowTracking];
- // Initialize Google Analytics with a 120-second dispatch interval. There is a
- // tradeoff between battery usage and timely dispatch.
- [GAI sharedInstance].dispatchInterval = 120;
- [GAI sharedInstance].trackUncaughtExceptions = YES;
- self.tracker = [[GAI sharedInstance] trackerWithName:@"CuteAnimals"
- trackingId:kTrackingId];
-
- self.window =
- [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- // Override point for customization after application launch.
- self.viewController =
- [[RootViewController alloc] initWithNibName:@"RootViewController"
- bundle:nil];
-
- self.navController =
- [[NavController alloc] initWithRootViewController:self.viewController];
- self.navController.delegate = self.navController;
-
- self.window.rootViewController = self.navController;
- [self.window makeKeyAndVisible];
-
- return YES;
-}
-
-
-- (NSDictionary *)loadImages {
- NSArray *contents = [[NSBundle mainBundle] pathsForResourcesOfType:@"jpg"
- inDirectory:nil];
- if (!contents) {
- NSLog(@"Failed to load directory contents");
- return nil;
- }
- NSMutableDictionary *images = [NSMutableDictionary dictionary];
- for (NSString *file in contents) {
- NSArray *components = [[file lastPathComponent]
- componentsSeparatedByString:@"-"];
- if (components.count == 0) {
- NSLog(@"Filename doesn't contain dash: %@", file);
- continue;
- }
- UIImage *image = [UIImage imageWithContentsOfFile:file];
- if (!image) {
- NSLog(@"Failed to load file: %@", file);
- continue;
- }
- NSString *prefix = components[0];
- NSMutableArray *categoryImages = images[prefix];
- if (!categoryImages) {
- categoryImages = [NSMutableArray array];
- images[prefix] = categoryImages;
- }
- [categoryImages addObject:image];
- }
- for (NSString *cat in [images allKeys]) {
- NSArray *array = images[cat];
- NSLog(@"Category %@: %u image(s).", cat, array.count);
- }
- return images;
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController.h b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController.h
deleted file mode 100644
index 7e76b63..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController.h
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// ViewController.h
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import
-
-#import "NavController.h"
-
-@interface CategoryViewController :
- GAITrackedViewController
-
-@property(nonatomic, strong) NSString *category;
-@property(nonatomic, strong) IBOutlet UITableView *tableView;
-
-- (id)initWithNibName:(NSString *)nibName
- bundle:(NSBundle *)nibBundle
- category:(NSString *)category;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController.m b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController.m
deleted file mode 100644
index 608cd97..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController.m
+++ /dev/null
@@ -1,105 +0,0 @@
-//
-// ViewController.m
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import "AppDelegate.h"
-#import "CategoryViewController.h"
-#import "ImageViewController.h"
-
-#import "GAI.h"
-
-@interface CategoryViewController ()
-
-@property(nonatomic, strong) NSMutableArray *items;
-@property(nonatomic, weak) AppDelegate *delegate;
-
-@end
-
-@implementation CategoryViewController
-
-- (id)initWithNibName:(NSString *)nibName
- bundle:(NSBundle *)nibBundle
- category:(NSString *)category {
- self = [super initWithNibName:nibName
- bundle:nibBundle];
- if (self) {
- _category = category;
- _delegate = [UIApplication sharedApplication].delegate;
- self.title = [NSString stringWithFormat:@"Cute %@s", category];
- self.screenName = category;
- }
- return self;
-}
-
-
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.items = (self.delegate.images)[self.category];
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:
- (UIInterfaceOrientation)interfaceOrientation {
- if ([[UIDevice currentDevice] userInterfaceIdiom] ==
- UIUserInterfaceIdiomPhone) {
- return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
- } else {
- return YES;
- }
-}
-
-#pragma mark UITableViewDelegate methods
-
-- (void)tableView:(UITableView *)tableView
- didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- [tableView deselectRowAtIndexPath:indexPath animated:NO];
- if (indexPath.row < 0 || indexPath.row >= self.items.count) {
- NSLog(@"IndexPath %d out of bounds!", indexPath.row);
- return;
- }
- NSString *title =
- [NSString stringWithFormat:@"%@ %d", self.category, indexPath.row];
- UIImage *image = (self.items)[indexPath.row];
- ImageViewController *imageViewController =
- [[ImageViewController alloc] initWithNibName:nil
- bundle:nil
- title:title
- image:image];
- [self.delegate.navController pushViewController:imageViewController
- animated:YES];
-}
-
-#pragma mark UITableViewDataSource methods
-
-- (NSInteger)tableView:(UITableView *)tableView
- numberOfRowsInSection:(NSInteger)section {
- return self.items.count;
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView
- cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- if (indexPath.row < 0 || indexPath.row >= self.items.count) {
- NSLog(@"IndexPath %d out of bounds!", indexPath.row);
- return nil;
- }
-
- static NSString *CellId = @"Cell";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellId];
- if (!cell) {
- cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
- reuseIdentifier:CellId];
- cell.textLabel.font = [UIFont systemFontOfSize:14];
- cell.detailTextLabel.font = [UIFont systemFontOfSize:12];
- }
-
- cell.textLabel.text = [NSString stringWithFormat:@"%@ %d",
- self.category, indexPath.row];
- UIImage *image = (self.items)[indexPath.row];
- cell.detailTextLabel.text = [NSString stringWithFormat:@"%d x %d",
- (int)image.size.width, (int)image.size.height];
- return cell;
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController_iPad.xib b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController_iPad.xib
deleted file mode 100644
index f5f5876..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController_iPad.xib
+++ /dev/null
@@ -1,167 +0,0 @@
-
-
-
- 1296
- 11D50b
- 2182
- 1138.32
- 568.00
-
-
- IBProxyObject
- IBUIView
- IBUITableView
-
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
-
-
-
-
-
-
- view
-
-
-
- 3
-
-
-
- tableView
-
-
-
- 8
-
-
-
- dataSource
-
-
-
- 9
-
-
-
- delegate
-
-
-
- 10
-
-
-
-
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 2
-
-
-
-
-
-
-
- 4
-
-
-
-
-
-
- CategoryViewController
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
- 10
-
-
- 0
- IBIPadFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
- YES
- 3
- 1181
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController_iPhone.xib b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController_iPhone.xib
deleted file mode 100644
index 7ac2420..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CategoryViewController_iPhone.xib
+++ /dev/null
@@ -1,168 +0,0 @@
-
-
-
- 1296
- 11D50b
- 2182
- 1138.32
- 568.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 1181
-
-
- IBProxyObject
- IBUIView
- IBUITableView
-
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- PluginDependencyRecalculationVersion
-
-
-
-
- IBFilesOwner
- IBCocoaTouchFramework
-
-
- IBFirstResponder
- IBCocoaTouchFramework
-
-
-
- 274
-
-
-
- 274
- {320, 460}
-
- _NS:9
-
- 3
- MQA
-
- YES
- IBCocoaTouchFramework
- YES
- 1
- 0
- YES
- 44
- 22
- 22
-
-
- {{0, 20}, {320, 460}}
-
-
-
- 3
- MC43NQA
-
- 2
-
-
- NO
-
- IBCocoaTouchFramework
-
-
-
-
-
-
- view
-
-
-
- 7
-
-
-
- tableView
-
-
-
- 11
-
-
-
- dataSource
-
-
-
- 12
-
-
-
- delegate
-
-
-
- 13
-
-
-
-
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 6
-
-
-
-
-
-
-
- 8
-
-
-
-
-
-
- CategoryViewController
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
- 29
-
-
- 0
- IBCocoaTouchFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
- YES
- 3
- 1181
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals-Info.plist b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals-Info.plist
deleted file mode 100644
index 75c0d14..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals-Info.plist
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleDisplayName
- ${PRODUCT_NAME}
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIdentifier
- com.google.analytics.example.${PRODUCT_NAME:rfc1034identifier}
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- LSRequiresIPhoneOS
-
- UIRequiredDeviceCapabilities
-
- armv7
-
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals-Prefix.pch b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals-Prefix.pch
deleted file mode 100644
index 1c20531..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals-Prefix.pch
+++ /dev/null
@@ -1,10 +0,0 @@
-#import
-
-#ifndef __IPHONE_4_0
-#warning "This project uses features only available in iOS SDK 4.0 and later."
-#endif
-
-#ifdef __OBJC__
- #import
- #import
-#endif
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals.xcodeproj/project.pbxproj b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals.xcodeproj/project.pbxproj
deleted file mode 100644
index 1973d24..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/CuteAnimals.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,420 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 113B6EE8153E1F0B003CAC38 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113B6EE7153E1F0B003CAC38 /* UIKit.framework */; };
- 113B6EEA153E1F0B003CAC38 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113B6EE9153E1F0B003CAC38 /* Foundation.framework */; };
- 113B6F10153E1F99003CAC38 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 113B6F03153E1F99003CAC38 /* AppDelegate.m */; };
- 113B6F11153E1F99003CAC38 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 113B6F04153E1F99003CAC38 /* main.m */; };
- 113B6F12153E1F99003CAC38 /* NavController.m in Sources */ = {isa = PBXBuildFile; fileRef = 113B6F06153E1F99003CAC38 /* NavController.m */; };
- 113B6F13153E1F99003CAC38 /* RootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 113B6F08153E1F99003CAC38 /* RootViewController.m */; };
- 113B6F14153E1F99003CAC38 /* RootViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 113B6F09153E1F99003CAC38 /* RootViewController.xib */; };
- 113B6F15153E1F99003CAC38 /* CategoryViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 113B6F0A153E1F99003CAC38 /* CategoryViewController_iPad.xib */; };
- 113B6F16153E1F99003CAC38 /* CategoryViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 113B6F0B153E1F99003CAC38 /* CategoryViewController_iPhone.xib */; };
- 113B6F2B153E208D003CAC38 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113B6F2A153E208D003CAC38 /* CoreData.framework */; };
- 115686561593CE6A00A5D031 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 115686551593CE6A00A5D031 /* SystemConfiguration.framework */; };
- 11FCCC1F1561834700949704 /* CategoryViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 11FCCC1C1561834700949704 /* CategoryViewController.m */; };
- 11FCCC201561834700949704 /* ImageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 11FCCC1E1561834700949704 /* ImageViewController.m */; };
- 11FCCC34156189A600949704 /* Bunny-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC22156189A600949704 /* Bunny-1.jpg */; };
- 11FCCC35156189A600949704 /* Bunny-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC23156189A600949704 /* Bunny-2.jpg */; };
- 11FCCC36156189A600949704 /* Bunny-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC24156189A600949704 /* Bunny-3.jpg */; };
- 11FCCC37156189A600949704 /* Cat-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC25156189A600949704 /* Cat-1.jpg */; };
- 11FCCC38156189A600949704 /* Cat-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC26156189A600949704 /* Cat-2.jpg */; };
- 11FCCC39156189A600949704 /* Cat-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC27156189A600949704 /* Cat-3.jpg */; };
- 11FCCC3A156189A600949704 /* Cat-4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC28156189A600949704 /* Cat-4.jpg */; };
- 11FCCC3B156189A600949704 /* Lion-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC29156189A600949704 /* Lion-1.jpg */; };
- 11FCCC3C156189A600949704 /* Lion-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2A156189A600949704 /* Lion-2.jpg */; };
- 11FCCC3D156189A600949704 /* Lion-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2B156189A600949704 /* Lion-3.jpg */; };
- 11FCCC3E156189A600949704 /* Lion-4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2C156189A600949704 /* Lion-4.jpg */; };
- 11FCCC3F156189A600949704 /* Monkey-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2D156189A600949704 /* Monkey-1.jpg */; };
- 11FCCC40156189A600949704 /* Monkey-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2E156189A600949704 /* Monkey-2.jpg */; };
- 11FCCC41156189A600949704 /* Monkey-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2F156189A600949704 /* Monkey-3.jpg */; };
- 11FCCC42156189A600949704 /* Monkey-4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC30156189A600949704 /* Monkey-4.jpg */; };
- 11FCCC43156189A600949704 /* Monkey-5.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC31156189A600949704 /* Monkey-5.jpg */; };
- 11FCCC44156189A600949704 /* Tiger-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC32156189A600949704 /* Tiger-1.jpg */; };
- 11FCCC45156189A600949704 /* Tiger-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC33156189A600949704 /* Tiger-2.jpg */; };
- 88679A8E17A184FA00F476D5 /* libGoogleAnalyticsServices.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 88679A8D17A184FA00F476D5 /* libGoogleAnalyticsServices.a */; };
- F7C47F21178B5B56003A7D0F /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = F7C47F20178B5B55003A7D0F /* Settings.bundle */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 113B6EE3153E1F0B003CAC38 /* CuteAnimals.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CuteAnimals.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 113B6EE7153E1F0B003CAC38 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 113B6EE9153E1F0B003CAC38 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 113B6EEF153E1F0B003CAC38 /* CuteAnimals-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CuteAnimals-Info.plist"; sourceTree = ""; };
- 113B6EF5153E1F0B003CAC38 /* CuteAnimals-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CuteAnimals-Prefix.pch"; sourceTree = ""; };
- 113B6F02153E1F99003CAC38 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = SOURCE_ROOT; };
- 113B6F03153E1F99003CAC38 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = SOURCE_ROOT; };
- 113B6F04153E1F99003CAC38 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = SOURCE_ROOT; };
- 113B6F05153E1F99003CAC38 /* NavController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NavController.h; sourceTree = SOURCE_ROOT; };
- 113B6F06153E1F99003CAC38 /* NavController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NavController.m; sourceTree = SOURCE_ROOT; };
- 113B6F07153E1F99003CAC38 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = SOURCE_ROOT; };
- 113B6F08153E1F99003CAC38 /* RootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RootViewController.m; sourceTree = SOURCE_ROOT; };
- 113B6F09153E1F99003CAC38 /* RootViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = RootViewController.xib; sourceTree = SOURCE_ROOT; };
- 113B6F0A153E1F99003CAC38 /* CategoryViewController_iPad.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CategoryViewController_iPad.xib; sourceTree = SOURCE_ROOT; };
- 113B6F0B153E1F99003CAC38 /* CategoryViewController_iPhone.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CategoryViewController_iPhone.xib; sourceTree = SOURCE_ROOT; };
- 113B6F2A153E208D003CAC38 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
- 115686551593CE6A00A5D031 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 11BC54021577E24400E7D657 /* GAI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GAI.h; path = ../../Library/GAI.h; sourceTree = ""; };
- 11BC54031577E24500E7D657 /* GAITrackedViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GAITrackedViewController.h; path = ../../Library/GAITrackedViewController.h; sourceTree = ""; };
- 11BC54041577E24500E7D657 /* GAITracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GAITracker.h; path = ../../Library/GAITracker.h; sourceTree = ""; };
- 11FCCC1B1561834700949704 /* CategoryViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CategoryViewController.h; sourceTree = SOURCE_ROOT; };
- 11FCCC1C1561834700949704 /* CategoryViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CategoryViewController.m; sourceTree = SOURCE_ROOT; };
- 11FCCC1D1561834700949704 /* ImageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImageViewController.h; sourceTree = SOURCE_ROOT; };
- 11FCCC1E1561834700949704 /* ImageViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ImageViewController.m; sourceTree = SOURCE_ROOT; };
- 11FCCC22156189A600949704 /* Bunny-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Bunny-1.jpg"; path = "Images/Bunny-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC23156189A600949704 /* Bunny-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Bunny-2.jpg"; path = "Images/Bunny-2.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC24156189A600949704 /* Bunny-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Bunny-3.jpg"; path = "Images/Bunny-3.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC25156189A600949704 /* Cat-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Cat-1.jpg"; path = "Images/Cat-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC26156189A600949704 /* Cat-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Cat-2.jpg"; path = "Images/Cat-2.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC27156189A600949704 /* Cat-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Cat-3.jpg"; path = "Images/Cat-3.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC28156189A600949704 /* Cat-4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Cat-4.jpg"; path = "Images/Cat-4.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC29156189A600949704 /* Lion-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Lion-1.jpg"; path = "Images/Lion-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2A156189A600949704 /* Lion-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Lion-2.jpg"; path = "Images/Lion-2.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2B156189A600949704 /* Lion-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Lion-3.jpg"; path = "Images/Lion-3.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2C156189A600949704 /* Lion-4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Lion-4.jpg"; path = "Images/Lion-4.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2D156189A600949704 /* Monkey-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-1.jpg"; path = "Images/Monkey-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2E156189A600949704 /* Monkey-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-2.jpg"; path = "Images/Monkey-2.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2F156189A600949704 /* Monkey-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-3.jpg"; path = "Images/Monkey-3.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC30156189A600949704 /* Monkey-4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-4.jpg"; path = "Images/Monkey-4.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC31156189A600949704 /* Monkey-5.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-5.jpg"; path = "Images/Monkey-5.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC32156189A600949704 /* Tiger-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Tiger-1.jpg"; path = "Images/Tiger-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC33156189A600949704 /* Tiger-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Tiger-2.jpg"; path = "Images/Tiger-2.jpg"; sourceTree = SOURCE_ROOT; };
- 88679A8D17A184FA00F476D5 /* libGoogleAnalyticsServices.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libGoogleAnalyticsServices.a; path = ../../../../libGoogleAnalyticsServices.a; sourceTree = ""; };
- F707E732174D7550008123BF /* GAIDictionaryBuilder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = GAIDictionaryBuilder.h; path = ../../Library/GAIDictionaryBuilder.h; sourceTree = ""; };
- F707E733174D7550008123BF /* GAIFields.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = GAIFields.h; path = ../../Library/GAIFields.h; sourceTree = ""; };
- F707E734174D7550008123BF /* GAILogger.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = GAILogger.h; path = ../../Library/GAILogger.h; sourceTree = ""; };
- F7C47F20178B5B55003A7D0F /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 113B6EE0153E1F0B003CAC38 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 115686561593CE6A00A5D031 /* SystemConfiguration.framework in Frameworks */,
- 113B6F2B153E208D003CAC38 /* CoreData.framework in Frameworks */,
- 113B6EE8153E1F0B003CAC38 /* UIKit.framework in Frameworks */,
- 113B6EEA153E1F0B003CAC38 /* Foundation.framework in Frameworks */,
- 88679A8E17A184FA00F476D5 /* libGoogleAnalyticsServices.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 113B6ED8153E1F0B003CAC38 = {
- isa = PBXGroup;
- children = (
- 113B6EED153E1F0B003CAC38 /* CuteAnimals */,
- 113B6EE6153E1F0B003CAC38 /* Frameworks */,
- 113B6EE4153E1F0B003CAC38 /* Products */,
- );
- sourceTree = "";
- };
- 113B6EE4153E1F0B003CAC38 /* Products */ = {
- isa = PBXGroup;
- children = (
- 113B6EE3153E1F0B003CAC38 /* CuteAnimals.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 113B6EE6153E1F0B003CAC38 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 115686551593CE6A00A5D031 /* SystemConfiguration.framework */,
- 113B6F2A153E208D003CAC38 /* CoreData.framework */,
- 113B6EE7153E1F0B003CAC38 /* UIKit.framework */,
- 113B6EE9153E1F0B003CAC38 /* Foundation.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
- 113B6EED153E1F0B003CAC38 /* CuteAnimals */ = {
- isa = PBXGroup;
- children = (
- 113B6F1E153E1FAD003CAC38 /* Google Analytics Library */,
- 113B6F02153E1F99003CAC38 /* AppDelegate.h */,
- 113B6F03153E1F99003CAC38 /* AppDelegate.m */,
- 11FCCC1B1561834700949704 /* CategoryViewController.h */,
- 11FCCC1C1561834700949704 /* CategoryViewController.m */,
- 11FCCC1D1561834700949704 /* ImageViewController.h */,
- 11FCCC1E1561834700949704 /* ImageViewController.m */,
- 113B6F04153E1F99003CAC38 /* main.m */,
- 113B6F05153E1F99003CAC38 /* NavController.h */,
- 113B6F06153E1F99003CAC38 /* NavController.m */,
- 113B6F07153E1F99003CAC38 /* RootViewController.h */,
- 113B6F08153E1F99003CAC38 /* RootViewController.m */,
- 113B6F0A153E1F99003CAC38 /* CategoryViewController_iPad.xib */,
- 113B6F0B153E1F99003CAC38 /* CategoryViewController_iPhone.xib */,
- 113B6F09153E1F99003CAC38 /* RootViewController.xib */,
- 113B6EEE153E1F0B003CAC38 /* Supporting Files */,
- );
- name = CuteAnimals;
- path = .;
- sourceTree = "";
- };
- 113B6EEE153E1F0B003CAC38 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- F7C47F20178B5B55003A7D0F /* Settings.bundle */,
- 11FCCC211561899800949704 /* Images */,
- 113B6EEF153E1F0B003CAC38 /* CuteAnimals-Info.plist */,
- 113B6EF5153E1F0B003CAC38 /* CuteAnimals-Prefix.pch */,
- );
- name = "Supporting Files";
- sourceTree = "";
- };
- 113B6F1E153E1FAD003CAC38 /* Google Analytics Library */ = {
- isa = PBXGroup;
- children = (
- 88679A8D17A184FA00F476D5 /* libGoogleAnalyticsServices.a */,
- F707E732174D7550008123BF /* GAIDictionaryBuilder.h */,
- F707E733174D7550008123BF /* GAIFields.h */,
- F707E734174D7550008123BF /* GAILogger.h */,
- 11BC54021577E24400E7D657 /* GAI.h */,
- 11BC54031577E24500E7D657 /* GAITrackedViewController.h */,
- 11BC54041577E24500E7D657 /* GAITracker.h */,
- );
- name = "Google Analytics Library";
- sourceTree = "";
- };
- 11FCCC211561899800949704 /* Images */ = {
- isa = PBXGroup;
- children = (
- 11FCCC22156189A600949704 /* Bunny-1.jpg */,
- 11FCCC23156189A600949704 /* Bunny-2.jpg */,
- 11FCCC24156189A600949704 /* Bunny-3.jpg */,
- 11FCCC25156189A600949704 /* Cat-1.jpg */,
- 11FCCC26156189A600949704 /* Cat-2.jpg */,
- 11FCCC27156189A600949704 /* Cat-3.jpg */,
- 11FCCC28156189A600949704 /* Cat-4.jpg */,
- 11FCCC29156189A600949704 /* Lion-1.jpg */,
- 11FCCC2A156189A600949704 /* Lion-2.jpg */,
- 11FCCC2B156189A600949704 /* Lion-3.jpg */,
- 11FCCC2C156189A600949704 /* Lion-4.jpg */,
- 11FCCC2D156189A600949704 /* Monkey-1.jpg */,
- 11FCCC2E156189A600949704 /* Monkey-2.jpg */,
- 11FCCC2F156189A600949704 /* Monkey-3.jpg */,
- 11FCCC30156189A600949704 /* Monkey-4.jpg */,
- 11FCCC31156189A600949704 /* Monkey-5.jpg */,
- 11FCCC32156189A600949704 /* Tiger-1.jpg */,
- 11FCCC33156189A600949704 /* Tiger-2.jpg */,
- );
- name = Images;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 113B6EE2153E1F0B003CAC38 /* CuteAnimals */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 113B6EFB153E1F0B003CAC38 /* Build configuration list for PBXNativeTarget "CuteAnimals" */;
- buildPhases = (
- 113B6EDF153E1F0B003CAC38 /* Sources */,
- 113B6EE0153E1F0B003CAC38 /* Frameworks */,
- 113B6EE1153E1F0B003CAC38 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = CuteAnimals;
- productName = CuteAnimals;
- productReference = 113B6EE3153E1F0B003CAC38 /* CuteAnimals.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 113B6EDA153E1F0B003CAC38 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0460;
- };
- buildConfigurationList = 113B6EDD153E1F0B003CAC38 /* Build configuration list for PBXProject "CuteAnimals" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- );
- mainGroup = 113B6ED8153E1F0B003CAC38;
- productRefGroup = 113B6EE4153E1F0B003CAC38 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 113B6EE2153E1F0B003CAC38 /* CuteAnimals */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 113B6EE1153E1F0B003CAC38 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 113B6F14153E1F99003CAC38 /* RootViewController.xib in Resources */,
- 113B6F15153E1F99003CAC38 /* CategoryViewController_iPad.xib in Resources */,
- 113B6F16153E1F99003CAC38 /* CategoryViewController_iPhone.xib in Resources */,
- 11FCCC34156189A600949704 /* Bunny-1.jpg in Resources */,
- 11FCCC35156189A600949704 /* Bunny-2.jpg in Resources */,
- 11FCCC36156189A600949704 /* Bunny-3.jpg in Resources */,
- 11FCCC37156189A600949704 /* Cat-1.jpg in Resources */,
- 11FCCC38156189A600949704 /* Cat-2.jpg in Resources */,
- 11FCCC39156189A600949704 /* Cat-3.jpg in Resources */,
- 11FCCC3A156189A600949704 /* Cat-4.jpg in Resources */,
- 11FCCC3B156189A600949704 /* Lion-1.jpg in Resources */,
- 11FCCC3C156189A600949704 /* Lion-2.jpg in Resources */,
- 11FCCC3D156189A600949704 /* Lion-3.jpg in Resources */,
- 11FCCC3E156189A600949704 /* Lion-4.jpg in Resources */,
- 11FCCC3F156189A600949704 /* Monkey-1.jpg in Resources */,
- 11FCCC40156189A600949704 /* Monkey-2.jpg in Resources */,
- 11FCCC41156189A600949704 /* Monkey-3.jpg in Resources */,
- 11FCCC42156189A600949704 /* Monkey-4.jpg in Resources */,
- 11FCCC43156189A600949704 /* Monkey-5.jpg in Resources */,
- 11FCCC44156189A600949704 /* Tiger-1.jpg in Resources */,
- 11FCCC45156189A600949704 /* Tiger-2.jpg in Resources */,
- F7C47F21178B5B56003A7D0F /* Settings.bundle in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 113B6EDF153E1F0B003CAC38 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 113B6F10153E1F99003CAC38 /* AppDelegate.m in Sources */,
- 113B6F11153E1F99003CAC38 /* main.m in Sources */,
- 113B6F12153E1F99003CAC38 /* NavController.m in Sources */,
- 113B6F13153E1F99003CAC38 /* RootViewController.m in Sources */,
- 11FCCC1F1561834700949704 /* CategoryViewController.m in Sources */,
- 11FCCC201561834700949704 /* ImageViewController.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 113B6EF9153E1F0B003CAC38 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- 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_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 5.1;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 113B6EFA153E1F0B003CAC38 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 5.1;
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 113B6EFC153E1F0B003CAC38 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CLANG_ENABLE_OBJC_ARC = YES;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "CuteAnimals-Prefix.pch";
- INFOPLIST_FILE = "CuteAnimals-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 5.0;
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/../../Library\"",
- "\"$(SRCROOT)/../../..\"",
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- WRAPPER_EXTENSION = app;
- };
- name = Debug;
- };
- 113B6EFD153E1F0B003CAC38 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CLANG_ENABLE_OBJC_ARC = YES;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "CuteAnimals-Prefix.pch";
- INFOPLIST_FILE = "CuteAnimals-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 5.0;
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/../../Library\"",
- "\"$(SRCROOT)/../../..\"",
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- WRAPPER_EXTENSION = app;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 113B6EDD153E1F0B003CAC38 /* Build configuration list for PBXProject "CuteAnimals" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 113B6EF9153E1F0B003CAC38 /* Debug */,
- 113B6EFA153E1F0B003CAC38 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 113B6EFB153E1F0B003CAC38 /* Build configuration list for PBXNativeTarget "CuteAnimals" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 113B6EFC153E1F0B003CAC38 /* Debug */,
- 113B6EFD153E1F0B003CAC38 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 113B6EDA153E1F0B003CAC38 /* Project object */;
-}
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/ImageViewController.h b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/ImageViewController.h
deleted file mode 100644
index fe7d6f8..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/ImageViewController.h
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-// ImageViewController.h
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import
-
-#import "GAI.h"
-#import "NavController.h"
-
-@interface ImageViewController : GAITrackedViewController
-
-- (id)initWithNibName:(NSString *)nibNameOrNil
- bundle:(NSBundle *)nibBundleOrNil
- title:(NSString *)title
- image:(UIImage *)image;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/ImageViewController.m b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/ImageViewController.m
deleted file mode 100644
index b6d8e9a..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/ImageViewController.m
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// ImageViewController.m
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import "ImageViewController.h"
-
-#import "AppDelegate.h"
-
-@interface ImageViewController ()
-
-@property(nonatomic, strong) UIImage *image;
-
-@end
-
-@implementation ImageViewController
-
-- (id)initWithNibName:(NSString *)nibNameOrNil
- bundle:(NSBundle *)nibBundleOrNil
- title:(NSString *)title
- image:(UIImage *)image {
- self = [super initWithNibName:nibNameOrNil
- bundle:nibBundleOrNil];
- if (self) {
- _image = image;
- self.title = self.screenName = title;
- }
- return self;
-}
-
-- (void)viewDidLoad {
- [super viewDidLoad];
- UIImageView *imageView = [[UIImageView alloc] initWithImage:self.image];
- imageView.userInteractionEnabled = YES;
- imageView.contentMode = UIViewContentModeScaleAspectFit;
- [self.view addSubview:imageView];
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:
- (UIInterfaceOrientation)interfaceOrientation {
- return YES;
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-1.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-1.jpg
deleted file mode 100644
index bc737ba..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-2.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-2.jpg
deleted file mode 100644
index 1f51132..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-3.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-3.jpg
deleted file mode 100644
index 0bc89dd..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Bunny-3.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-1.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-1.jpg
deleted file mode 100644
index a30d8ba..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-2.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-2.jpg
deleted file mode 100644
index 8bbe219..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-3.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-3.jpg
deleted file mode 100644
index eb6ffa6..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-3.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-4.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-4.jpg
deleted file mode 100644
index 8bc2496..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Cat-4.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-1.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-1.jpg
deleted file mode 100644
index be042e4..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-2.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-2.jpg
deleted file mode 100644
index 4f75994..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-3.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-3.jpg
deleted file mode 100644
index 01d68c2..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-3.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-4.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-4.jpg
deleted file mode 100644
index 4ccc3c0..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Lion-4.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-1.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-1.jpg
deleted file mode 100644
index bdb40ee..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-2.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-2.jpg
deleted file mode 100644
index 169c000..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-3.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-3.jpg
deleted file mode 100644
index 6435ba0..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-3.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-4.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-4.jpg
deleted file mode 100644
index 8fb9ad6..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-4.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-5.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-5.jpg
deleted file mode 100644
index 44e3ae0..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Monkey-5.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Tiger-1.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Tiger-1.jpg
deleted file mode 100644
index 9d5e12e..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Tiger-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Tiger-2.jpg b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Tiger-2.jpg
deleted file mode 100644
index 8469e10..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Images/Tiger-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/NavController.h b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/NavController.h
deleted file mode 100644
index 7011044..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/NavController.h
+++ /dev/null
@@ -1,13 +0,0 @@
-//
-// NavController.h
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import
-
-@interface NavController :
- UINavigationController
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/NavController.m b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/NavController.m
deleted file mode 100644
index 43c8d3a..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/NavController.m
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// NavController.m
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import "NavController.h"
-
-@implementation NavController
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:
- (UIInterfaceOrientation)interfaceOrientation {
- return YES;
-}
-
-#pragma mark UINavigationControllerDelegate methods
-
-- (void)navigationController:(UINavigationController *)navigationController
- willShowViewController:(UIViewController *)viewController
- animated:(BOOL)animated {
- // NSLog(@"navigationController:willShowViewController:animated:");
-}
-
-- (void)navigationController:(UINavigationController *)navigationController
- didShowViewController:(UIViewController *)viewController
- animated:(BOOL)animated {
- // NSLog(@"navigationController:didShowViewController:animated:");
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Readme.txt b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Readme.txt
deleted file mode 100644
index c558408..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Readme.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-IMPORTANT: For this app to work, edit AppDelegate.m and supply your tracking ID.
-
-This example app illustrates how to easily add Google Analytics tracking to a
-simple iOS application. The app delegate initializes the Google Analytics SDK,
-sets the dispatch interval, enables uncaught exception tracking and the logging
-of debug messages, and instantiates a tracker using the tracking ID given. Each
-view controller that needs to be tracked inherits from GAITrackedViewController
-and sets the 'trackedViewName' property to enable automatic view tracking with
-the view name given. The app also tracks the toggling of dispatching using HTTP
-and HTTPS as events by directly calling the GAITracker event tracking method.
-
-All images are from the public domain. They were downloaded from
-http://public-domain-image.com
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.h b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.h
deleted file mode 100644
index 5b772a0..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.h
+++ /dev/null
@@ -1,15 +0,0 @@
-//
-// RootViewController.h
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import
-
-@interface RootViewController :
- GAITrackedViewController
-
-@property(nonatomic, strong) IBOutlet UITableView *tableView;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.m b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.m
deleted file mode 100644
index 255da5d..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.m
+++ /dev/null
@@ -1,130 +0,0 @@
-//
-// RootViewController.m
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#import "AppDelegate.h"
-#import "RootViewController.h"
-#import "CategoryViewController.h"
-#import "ImageViewController.h"
-
-#import "GAI.h"
-#import "GAIDictionaryBuilder.h"
-
-@interface RootViewController ()
-
-@property(nonatomic, strong) NSArray *items;
-@property(nonatomic, weak) AppDelegate *delegate;
-
-@end
-
-@implementation RootViewController
-
-- (id)initWithNibName:(NSString *)nibName
- bundle:(NSBundle *)nibBundle {
- self = [super initWithNibName:nibName
- bundle:nibBundle];
- if (self) {
- _delegate = [UIApplication sharedApplication].delegate;
- self.title = @"Cute Animals";
- self.screenName = @"root";
- }
- return self;
-}
-
-
-- (void)dispatch {
- NSMutableDictionary *event =
- [[GAIDictionaryBuilder createEventWithCategory:@"UI"
- action:@"buttonPress"
- label:@"dispatch"
- value:nil] build];
- [[GAI sharedInstance].defaultTracker send:event];
- [[GAI sharedInstance] dispatch];
-}
-
-- (void)crash {
- [NSException raise:@"There is no spoon."
- format:@"Abort, retry, fail?"];
-}
-
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.navigationItem.leftBarButtonItem =
- [[UIBarButtonItem alloc] initWithTitle:@"Dispatch"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(dispatch)];
- self.navigationItem.rightBarButtonItem =
- [[UIBarButtonItem alloc] initWithTitle:@"Crash"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(crash)];
- self.items =
- [[self.delegate.images allKeys]
- sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
- [self.tableView reloadData];
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:
- (UIInterfaceOrientation)interfaceOrientation {
- return NO;
-}
-
-#pragma mark UITableViewDelegate methods
-
-- (void)tableView:(UITableView *)tableView
- didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- [tableView deselectRowAtIndexPath:indexPath animated:NO];
- if (indexPath.row < 0 || indexPath.row >= self.items.count) {
- NSLog(@"IndexPath %d out of bounds!", indexPath.row);
- return;
- }
-
- NSString *category = (self.items)[indexPath.row];
- NSString *nib = ([[UIDevice currentDevice] userInterfaceIdiom] ==
- UIUserInterfaceIdiomPhone) ? @"CategoryViewController_iPhone" :
- @"CategoryViewController_iPad";
- CategoryViewController *categoryController =
- [[CategoryViewController alloc] initWithNibName:nib
- bundle:nil
- category:category];
- [self.delegate.navController pushViewController:categoryController
- animated:YES];
-}
-
-#pragma mark UITableViewDataSource methods
-
-- (NSInteger)tableView:(UITableView *)tableView
- numberOfRowsInSection:(NSInteger)section {
- return self.items.count;
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView
- cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- if (indexPath.row < 0 || indexPath.row >= self.items.count) {
- NSLog(@"IndexPath %d out of bounds!", indexPath.row);
- return nil;
- }
- NSString *category = (self.items)[indexPath.row];
-
- static NSString *CellId = @"Cell";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellId];
- if (!cell) {
- cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
- reuseIdentifier:CellId];
- cell.textLabel.font = [UIFont systemFontOfSize:14];
- cell.detailTextLabel.font = [UIFont systemFontOfSize:12];
- }
-
- NSString *label = [NSString stringWithFormat:@"Cute %@ Pictures!", category];
- cell.textLabel.text = label;
- NSUInteger imageCount = [(self.delegate.images)[category] count];
- cell.detailTextLabel.text = [NSString stringWithFormat:@"%u image(s).",
- imageCount];
- return cell;
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.xib b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.xib
deleted file mode 100644
index e9debf9..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/RootViewController.xib
+++ /dev/null
@@ -1,193 +0,0 @@
-
-
-
- 1296
- 11D50b
- 2182
- 1138.32
- 568.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 1181
-
-
- IBProxyObject
- IBUIView
- IBUITableView
-
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- PluginDependencyRecalculationVersion
-
-
-
-
- IBFilesOwner
- IBIPadFramework
-
-
- IBFirstResponder
- IBIPadFramework
-
-
-
- 292
-
-
-
- 274
- {768, 1004}
-
-
- _NS:9
-
- 3
- MQA
-
- YES
- IBIPadFramework
- YES
- 1
- 0
- YES
- 44
- 22
- 22
-
-
- {{0, 20}, {768, 1004}}
-
-
-
- 3
- MQA
-
- 2
-
-
- NO
-
- 2
-
- IBIPadFramework
-
-
-
-
-
-
- view
-
-
-
- 3
-
-
-
- tableView
-
-
-
- 7
-
-
-
- dataSource
-
-
-
- 5
-
-
-
- delegate
-
-
-
- 6
-
-
-
-
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 2
-
-
-
-
-
-
-
- 4
-
-
-
-
-
-
- RootViewController
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
- 7
-
-
-
-
- RootViewController
- UIViewController
-
- tableView
- UITableView
-
-
- tableView
-
- tableView
- UITableView
-
-
-
- IBProjectSource
- ./Classes/RootViewController.h
-
-
-
-
- 0
- IBIPadFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
- YES
- 3
- 1181
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Settings.bundle/Root.plist b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Settings.bundle/Root.plist
deleted file mode 100644
index d845463..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Settings.bundle/Root.plist
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
- PreferenceSpecifiers
-
-
- DefaultValue
-
- Key
- allowTracking
- Title
- Allow analytics
- Type
- PSToggleSwitchSpecifier
-
-
- StringsTable
- Root
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Settings.bundle/en.lproj/Root.strings b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Settings.bundle/en.lproj/Root.strings
deleted file mode 100644
index 8cd87b9..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/Settings.bundle/en.lproj/Root.strings and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/main.m b/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/main.m
deleted file mode 100644
index 400eab8..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Examples/CuteAnimals/main.m
+++ /dev/null
@@ -1,17 +0,0 @@
-//
-// main.m
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. 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/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/libGoogleAnalytics_debug.a b/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/libGoogleAnalytics_debug.a
deleted file mode 100644
index 36773f2..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/libGoogleAnalytics_debug.a and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Readme.txt b/Frameworks/Google Analytics SDK/GoogleAnalytics/Readme.txt
deleted file mode 100644
index bf1a825..0000000
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Readme.txt
+++ /dev/null
@@ -1,75 +0,0 @@
-Google Analytics iOS SDK version 3.01
-Copyright 2009 - 2013 Google, Inc. All rights reserved.
-
-================================================================================
-DESCRIPTION:
-
-This SDK provides developers with the capability to use Google Analytics
-to track iOS application usage.
-
-The SDK is packaged as a set of header files and a static library. Get started
-by adding the header files from the Library subdirectory (GAI.h,
-GAIDictionaryBuilder.h, GAIFields.h, GAILogger.h, GAITrackedViewController.h
-and GAITracker.h) and libGoogleAnalyticsV3(?).a to your XCode project. You must
-also include the CoreData framework in your project.
-
-To use a version of the library with debug symbols intact, link against
-libGoogleAnalytics_debug.a instead of libGoogleAnalyticsServices.a. This may be
-useful if you experience exceptions or crashes originating in the SDK.
-
-See the Examples/CuteAnimals application for an illustration of how to use
-automatic screen tracking, event tracking, and uncaught exception tracking.
-
-You will need a Google Analytics tracking ID to track application usage with the
-SDK. It is recommended to create an account for each set of applications that
-are to be tracked together, and to use that account's tracking ID in each
-application. To create a new tracking ID, go to your admin panel in Google
-Analytics and select "New Account". Under "What would you like to track?",
-choose "App" and complete the remainder of the form. When you are finished,
-click "Get Tracking ID". The tracking ID will be of the form "UA-" followed by a
-sequence of numbers and dashes.
-
-You must indicate to your users, either in the app itself or in your terms of
-service, that you reserve the right to anonymously track and report a user's
-activity inside of your app.
-
-Implementation Details:
-
-Tracking information is stored in an SQLite database and dispatched to the
-Google Analytics servers in a manner set by the developer: periodically at an
-interval determined by the developer, immediately when tracking calls are made,
-or manually. A battery efficient strategy may be to initiate a dispatch when the
-application needs to access the network. Tracking information is dispatched
-using HTTP or HTTPS requests to a Google Analytics server.
-
-================================================================================
-BUILD REQUIREMENTS:
-
-Mac OS X 10.6 or later.
-XCode with iOS SDK 5.0 or later.
-
-================================================================================
-RUNTIME REQUIREMENTS:
-
-iOS 5.0 or later.
-
-Your app must link the following frameworks:
- CoreData.framework
- SystemConfiguration.framework
-
-================================================================================
-PACKAGING LIST:
-
-Library/ (contains header and library files to compile and link with)
- GAI.h
- GAIDictionaryBuilder.h
- GAIFields.h
- GAILogger.h
- GAITrackedViewController.h
- GAITracker.h
- libGoogleAnalytics.a
- libGoogleAnalytics_debug.a
-Examples/ (contains an example tracked application)
-Documentation/ (contains documentation)
-
-================================================================================
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Changelog.txt b/Frameworks/Google Analytics SDK/GoogleTagManager/Changelog.txt
deleted file mode 100644
index e4b4529..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Changelog.txt
+++ /dev/null
@@ -1,90 +0,0 @@
-Google Tag Manager SDK for iOS Change Log
-
---------------------------------------------
-Version: 3.01 (September, 2013)
---------------------------------------------
-* Fixed link error when targeting iOS 7.0
-
---------------------------------------------
-Version: 3.0 (August 16, 2013)
---------------------------------------------
-* Added support for AdWords Conversion Tracking Tag, AdWords Remarketing Tag,
- and Custom Image Tag.
-
-* Added Advertising Enabled Macro, Application ID Macro, and ID for
- Advertising Macro.
-
-* Pushing a link to the data layer as "gtm.url" will now cache the
- Click Referrer for AdWords Tags.
-
-* Updated cuteAnimals sample app to demonstrate how to use Function Call Macro
- and Function Call Tag.
-
---------------------------------------------
-Version: 3.0b1 (July 26, 2013)
---------------------------------------------
-* libGoogleAnalyticsServices.a replaces libTagManager.a in the
- downloaded SDK. libGoogleAnalyticsServices.a includes all functions
- in libTagManager.a plus version 3 of the Google Analytics SDK.
- Note that an application can't include both libGoogleAnalyticsServices.a
- and the old libGoogleAnalytics.a or libTagManager.a file.
- An application that wants to use GTM and also do analytics tracking should
- either update their GA calls to use version 3 of the SDK, or replace GA
- calls with data layer push calls and add appropriate rules to their
- container to fire Universal Analytics hits.
-
-* Added Tag support in SDK. There are 2 types of tags currently supported:
- Universal Analytics (beta) tag and Custom Function Tag.
-
-* Added DataLayer support to hold generic information about the application.
- An app can obtain the DataLayer object by calling TagManager::dataLayer.
-
-* Added 2 new macros: data layer variable macro and custom event macro.
-
-* Added LogLevel support into Logger. This allows adjusting the threshold of
- what gets logged without having to write a new logger.
-
-* Added preview exit link support to allow exiting preview mode of a container
- without killing the app.
-
-* Fixed a bug that prevented developers from using both GTM and open-sourced
- proto buffer library.
-
-* Modified the cuteAnimals example to show how to instrument an application
- by pushing events to the data layer. A sample container is provided that
- uses the pushed events to fire Google Universal Analytics tag.
-
---------------------------------------------
-Version: 1.0b3 (June 26, 2013)
---------------------------------------------
-* TagManager::openContainer no longer allows opening multiple containers with
- the same container ID.
-
-* ContainerOpener no longer has the two methods
- openNonDefaultContainerWithId:tagManager:timeout:notifier and
- openFreshContainerWithId:tagManager:timeout:notifier:.
- Instead, there are now two openContainer methods:
- openContainerWithId:tagManager:openType:timeout: and
- openContainerWithId:tagManager:openType:timeout:notifier.
- The first returns a TAGContainerFuture, while the other takes a notifier.
- Both of these methods take a parameter specifying how the container should
- be opened (kTAGPreferNonDefault or kTAGPreferFresh). This should reduce
- confusion as to how TAGContainerFutures and notifiers interact.
-
- These two new methods can be called more than once with the same
- container ID; if the container is already open, it'll be returned (via the
- future or notifier).
-
-* In container preview mode, containers that are already open will be
- auto-updated (was just updating the container on the next open).
-
---------------------------------------------
-Version: 1.0b2 (June 3, 2013)
---------------------------------------------
-* Initial beta release.
-
---------------------------------------------
-Version: 1.0b1
---------------------------------------------
-* Unreleased internal version.
-
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/AppDelegate.h b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/AppDelegate.h
deleted file mode 100644
index 909e219..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/AppDelegate.h
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// AppDelegate.h
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#import
-
-@class RootViewController;
-@class NavController;
-@class TAGManager;
-@class TAGContainer;
-
-@interface AppDelegate : UIResponder
-
-@property(nonatomic, retain) UIWindow *window;
-@property(nonatomic, retain) NavController *navController;
-@property(nonatomic, retain) RootViewController *viewController;
-@property(nonatomic, retain) NSDictionary *images;
-@property(nonatomic, retain) TAGManager *tagManager;
-@property(nonatomic, retain) TAGContainer *container;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/AppDelegate.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/AppDelegate.m
deleted file mode 100644
index 1efcbeb..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/AppDelegate.m
+++ /dev/null
@@ -1,135 +0,0 @@
-//
-// AppDelegate.m
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "AppDelegate.h"
-#import "CustomMacroHandler.h"
-#import "CustomTagHandler.h"
-#import "NavController.h"
-#import "RootViewController.h"
-#import "TAGContainer.h"
-#import "TAGContainerOpener.h"
-#import "TAGLogger.h"
-#import "TAGManager.h"
-
-@interface AppDelegate ()
-
-- (NSDictionary *)loadImages;
-
-@end
-
-@implementation AppDelegate
-
-@synthesize window = _window;
-@synthesize navController = _navController;
-@synthesize viewController = _viewController;
-@synthesize images = _images;
-@synthesize tagManager = _tagManager;
-@synthesize container = _container;
-
-- (BOOL)application:(UIApplication *)application
- didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- self.tagManager = [TAGManager instance];
-
- // Modify the log level of the logger to print out not only
- // warning and error messages, but also verbose, debug, info messages.
- [self.tagManager.logger setLogLevel:kTAGLoggerLogLevelVerbose];
-
- // Following provides ability to support preview from Tag Manager.
- // You need to make these calls before opening a container to make
- // preview works.
- NSURL *url = [launchOptions valueForKey:UIApplicationLaunchOptionsURLKey];
- if (url != nil) {
- [self.tagManager previewWithUrl:url];
- }
-
- // Open a container.
- id future =
- [TAGContainerOpener openContainerWithId:@"GTM-XXXX"
- tagManager:self.tagManager
- openType:kTAGOpenTypePreferNonDefault
- timeout:nil];
-
- self.images = [self loadImages];
-
- self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
-
- self.container = [future get];
- // Register two custom function call macros to the container.
- [self.container registerFunctionCallMacroHandler:[[CustomMacroHandler alloc] init]
- forMacro:@"increment"];
- [self.container registerFunctionCallMacroHandler:[[CustomMacroHandler alloc] init]
- forMacro:@"mod"];
- // Register a custom function call tag to the container.
- [self.container registerFunctionCallTagHandler:[[CustomTagHandler alloc] init]
- forTag:@"custom_tag"];
-
- self.viewController = [[RootViewController alloc] initWithNibName:@"RootViewController"
- bundle:nil];
-
- self.navController = [[NavController alloc] initWithRootViewController:self.viewController];
- self.navController.delegate = self.navController;
-
- self.viewController.navController = self.navController;
- self.window.rootViewController = self.navController;
- [self.window makeKeyAndVisible];
-
- return YES;
-}
-
-- (BOOL)application:(UIApplication *)application
- openURL:(NSURL *)url
- sourceApplication:(NSString *)sourceApplication
- annotation:(id)annotation {
- if ([self.tagManager previewWithUrl:url]) {
- return YES;
- }
-
- // Code to handle other urls.
-
- return NO;
-}
-
-- (NSDictionary *)loadImages {
- NSArray *contents = [[NSBundle mainBundle] pathsForResourcesOfType:@"jpg"
- inDirectory:nil];
- if (!contents) {
- NSLog(@"Failed to load directory contents");
- return nil;
- }
- NSMutableDictionary *images = [NSMutableDictionary dictionaryWithCapacity:0];
- for (NSString *file in contents) {
- NSArray *components = [[file lastPathComponent] componentsSeparatedByString:@"-"];
- if (components.count == 0) {
- NSLog(@"Filename doesn't contain dash: %@", file);
- continue;
- }
- UIImage *image = [UIImage imageWithContentsOfFile:file];
- if (!image) {
- NSLog(@"Failed to load file: %@", file);
- continue;
- }
- NSString *prefix = [components objectAtIndex:0];
- NSMutableArray *categoryImages = [images objectForKey:prefix];
- if (!categoryImages) {
- categoryImages = [NSMutableArray arrayWithCapacity:0];
- [images setObject:categoryImages
- forKey:prefix];
- }
- [categoryImages addObject:image];
- }
- for (NSString *cat in [images allKeys]) {
- NSArray *array = [images objectForKey:cat];
- NSLog(@"Category %@: %u image(s).", cat, array.count);
- }
- return images;
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController.h b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController.h
deleted file mode 100644
index 1b90fcc..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController.h
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// CategoryViewController.h
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#import
-
-#import "NavController.h"
-
-@interface CategoryViewController : UIViewController
-
-@property(nonatomic, retain) NSString *category;
-@property(nonatomic, retain) NavController *navController;
-@property(nonatomic, retain) IBOutlet UITableView *tableView;
-
-- (id)initWithNibName:(NSString *)nibName
- bundle:(NSBundle *)nibBundle
- category:(NSString *)category;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController.m
deleted file mode 100644
index 3c1b839..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController.m
+++ /dev/null
@@ -1,130 +0,0 @@
-//
-// CategoryViewController.m
-// CuteAnimals
-//
-// Copyright 2012 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "AppDelegate.h"
-#import "CategoryViewController.h"
-#import "ImageViewController.h"
-#import "TAGContainer.h"
-#import "TAGDataLayer.h"
-#import "TAGManager.h"
-#import "Utils.h"
-
-@interface CategoryViewController ()
-
-@property(nonatomic, retain) NSMutableArray *items;
-@property(nonatomic, assign) AppDelegate *delegate;
-
-@end
-
-@implementation CategoryViewController
-
-@synthesize category = _category;
-@synthesize navController = _navController;
-@synthesize tableView = _tableView;
-@synthesize items = _items;
-@synthesize delegate = _delegate;
-
-- (id)initWithNibName:(NSString *)nibName
- bundle:(NSBundle *)nibBundle
- category:(NSString *)category {
- self = [super initWithNibName:nibName
- bundle:nibBundle];
- if (self) {
- self.category = category;
- self.delegate = [UIApplication sharedApplication].delegate;
- NSString *adjective = [self.delegate.container stringForKey:@"Adjective"];
- self.title = [NSString stringWithFormat:@"%@ %@s", adjective, category];
- }
- return self;
-}
-
-// Override
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.items = [self.delegate.images objectForKey:self.category];
- // Put the category_name into the data layer for future use.
- [self.delegate.tagManager.dataLayer pushValue:self.category
- forKey:@"category_name"];
-}
-
-// Override
-- (void)viewWillAppear:(BOOL)animated {
- [super viewWillAppear:animated];
- [Utils pushOpenScreenEventWithScreenName:@"CategoryViewScreen"];
-}
-
-// Override
-- (void)viewWillDisappear:(BOOL)animated {
- [super viewDidDisappear:animated];
- [Utils pushCloseScreenEventWithScreenName:@"CategoryViewScreen"];
-}
-
-// Override
-- (BOOL)shouldAutorotateToInterfaceOrientation:
- (UIInterfaceOrientation)interfaceOrientation {
- if ([[UIDevice currentDevice] userInterfaceIdiom] ==
- UIUserInterfaceIdiomPhone) {
- return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
- } else {
- return YES;
- }
-}
-
-#pragma mark UITableViewDelegate methods
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- [tableView deselectRowAtIndexPath:indexPath animated:NO];
- if (indexPath.row < 0 || indexPath.row >= self.items.count) {
- NSLog(@"IndexPath %d out of bounds!", indexPath.row);
- return;
- }
- NSString *title = [NSString stringWithFormat:@"%@ %d", self.category, indexPath.row];
- UIImage *image = [self.items objectAtIndex:indexPath.row];
- ImageViewController *imageViewController =
- [[ImageViewController alloc] initWithNibName:nil
- bundle:nil
- title:title
- image:image];
- [imageViewController.view addSubview:imageViewController.imageView];
- [self.navController pushViewController:imageViewController animated:YES];
-}
-
-#pragma mark UITableViewDataSource methods
-
-- (NSInteger)tableView:(UITableView *)tableView
- numberOfRowsInSection:(NSInteger)section {
- return self.items.count;
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView
- cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- if (indexPath.row < 0 || indexPath.row >= self.items.count) {
- NSLog(@"IndexPath %d out of bounds!", indexPath.row);
- return nil;
- }
-
- static NSString *CellId = @"Cell";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellId];
- if (!cell) {
- cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
- reuseIdentifier:CellId];
- }
-
- cell.textLabel.text = [NSString stringWithFormat:@"%@ %d", self.category, indexPath.row];
- cell.textLabel.font = [UIFont systemFontOfSize:14];
- UIImage *image = [self.items objectAtIndex:indexPath.row];
- cell.detailTextLabel.text = [NSString stringWithFormat:@"%d x %d",
- (int)image.size.width, (int)image.size.height];
- cell.detailTextLabel.font = [UIFont systemFontOfSize:12];
- return cell;
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController_iPad.xib b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController_iPad.xib
deleted file mode 100644
index f5f5876..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController_iPad.xib
+++ /dev/null
@@ -1,167 +0,0 @@
-
-
-
- 1296
- 11D50b
- 2182
- 1138.32
- 568.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 1181
-
-
- IBProxyObject
- IBUIView
- IBUITableView
-
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- PluginDependencyRecalculationVersion
-
-
-
-
- IBFilesOwner
- IBIPadFramework
-
-
- IBFirstResponder
- IBIPadFramework
-
-
-
- 274
-
-
-
- 274
- {768, 1004}
-
- _NS:9
-
- 3
- MQA
-
- YES
- IBIPadFramework
- YES
- 1
- 0
- YES
- 44
- 22
- 22
-
-
- {{0, 20}, {768, 1004}}
-
- 3
- MQA
-
- 2
-
-
-
- 2
-
- IBIPadFramework
-
-
-
-
-
-
- view
-
-
-
- 3
-
-
-
- tableView
-
-
-
- 8
-
-
-
- dataSource
-
-
-
- 9
-
-
-
- delegate
-
-
-
- 10
-
-
-
-
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 2
-
-
-
-
-
-
-
- 4
-
-
-
-
-
-
- CategoryViewController
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
- 10
-
-
- 0
- IBIPadFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
- YES
- 3
- 1181
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController_iPhone.xib b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController_iPhone.xib
deleted file mode 100644
index d9c51c6..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CategoryViewController_iPhone.xib
+++ /dev/null
@@ -1,193 +0,0 @@
-
-
-
- 1536
- 12C2034
- 2844
- 1187.34
- 625.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 1930
-
-
- IBProxyObject
- IBUITableView
- IBUIView
-
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- PluginDependencyRecalculationVersion
-
-
-
-
- IBFilesOwner
- IBCocoaTouchFramework
-
-
- IBFirstResponder
- IBCocoaTouchFramework
-
-
-
- 274
-
-
-
- 274
- {320, 460}
-
-
-
- _NS:9
-
- 3
- MQA
-
- YES
- IBCocoaTouchFramework
- YES
- 1
- 0
- YES
- 44
- 22
- 22
-
-
- {{0, 20}, {320, 460}}
-
-
-
-
- 3
- MC43NQA
-
- 2
-
-
- NO
-
- IBCocoaTouchFramework
-
-
-
-
-
-
- view
-
-
-
- 7
-
-
-
- tableView
-
-
-
- 11
-
-
-
- dataSource
-
-
-
- 12
-
-
-
- delegate
-
-
-
- 13
-
-
-
-
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 6
-
-
-
-
-
-
-
- 8
-
-
-
-
-
-
- CategoryViewController
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
- 29
-
-
-
-
- CategoryViewController
- UIViewController
-
- tableView
- UITableView
-
-
- tableView
-
- tableView
- UITableView
-
-
-
- IBProjectSource
- ./Classes/CategoryViewController.h
-
-
-
-
- 0
- IBCocoaTouchFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
- YES
- 3
- 1930
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomMacroHandler.h b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomMacroHandler.h
deleted file mode 100644
index 7f45f8c..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomMacroHandler.h
+++ /dev/null
@@ -1,14 +0,0 @@
-//
-// CustomMacroHandler.h
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#import "TAGContainer.h"
-
-@interface CustomMacroHandler : NSObject
-
-@property(nonatomic) NSUInteger numOfCalls;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomMacroHandler.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomMacroHandler.m
deleted file mode 100644
index e967430..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomMacroHandler.m
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-// CustomMacroHandler.m
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "CustomMacroHandler.h"
-
-@implementation CustomMacroHandler
-
-- (id)valueForMacro:(NSString *)macroName
- parameters:(NSDictionary *)parameters {
- if ([macroName isEqual:@"increment"]) {
- self.numOfCalls++;
- return [NSString stringWithFormat:@"%d", self.numOfCalls];
- } else if ([macroName isEqual:@"mod"]) {
- NSString *value1 = parameters[@"key1"];
- NSString *value2 = parameters[@"key2"];
- return [NSNumber numberWithInt:([value1 intValue] % [value2 intValue])];
- } else {
- NSString *message =
- [NSString stringWithFormat:@"Custom macro name: %@ is not supported", macroName];
- @throw [NSException exceptionWithName:@"IllegalArgumentException"
- reason:message
- userInfo:nil];
- }
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomTagHandler.h b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomTagHandler.h
deleted file mode 100644
index 1ba3f67..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomTagHandler.h
+++ /dev/null
@@ -1,12 +0,0 @@
-//
-// CustomTagHandler.h
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#import "TAGContainer.h"
-
-@interface CustomTagHandler : NSObject
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomTagHandler.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomTagHandler.m
deleted file mode 100644
index 481ade2..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CustomTagHandler.m
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// CustomTagHandler.m
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "CustomTagHandler.h"
-
-@implementation CustomTagHandler
-
-- (void)execute:(NSString *)tagName parameters:(NSDictionary *)parameters {
- NSLog(@"Custom function call tag :%@ is fired", tagName);
- // Other code firing this custom tag.
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals-Info.plist b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals-Info.plist
deleted file mode 100644
index 0cae901..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals-Info.plist
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleDisplayName
- ${PRODUCT_NAME}
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIdentifier
- com.google.tagmanager.example.${PRODUCT_NAME:rfc1034identifier}
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleURLTypes
-
-
- CFBundleURLName
- com.companyname.appname
- CFBundleURLSchemes
-
- tagmanager.c.com.google.tagmanager.example.cuteAnimals
-
-
-
- CFBundleVersion
- 1.0
- LSRequiresIPhoneOS
-
- UIRequiredDeviceCapabilities
-
- armv7
-
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals-Prefix.pch b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals-Prefix.pch
deleted file mode 100644
index 1c20531..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals-Prefix.pch
+++ /dev/null
@@ -1,10 +0,0 @@
-#import
-
-#ifndef __IPHONE_4_0
-#warning "This project uses features only available in iOS SDK 4.0 and later."
-#endif
-
-#ifdef __OBJC__
- #import
- #import
-#endif
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals.xcodeproj/project.pbxproj b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals.xcodeproj/project.pbxproj
deleted file mode 100644
index f5745f6..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/CuteAnimals.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,449 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 113B6EE8153E1F0B003CAC38 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113B6EE7153E1F0B003CAC38 /* UIKit.framework */; };
- 113B6EEA153E1F0B003CAC38 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113B6EE9153E1F0B003CAC38 /* Foundation.framework */; };
- 113B6F10153E1F99003CAC38 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 113B6F03153E1F99003CAC38 /* AppDelegate.m */; };
- 113B6F11153E1F99003CAC38 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 113B6F04153E1F99003CAC38 /* main.m */; };
- 113B6F12153E1F99003CAC38 /* NavController.m in Sources */ = {isa = PBXBuildFile; fileRef = 113B6F06153E1F99003CAC38 /* NavController.m */; };
- 113B6F13153E1F99003CAC38 /* RootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 113B6F08153E1F99003CAC38 /* RootViewController.m */; };
- 113B6F14153E1F99003CAC38 /* RootViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 113B6F09153E1F99003CAC38 /* RootViewController.xib */; };
- 113B6F15153E1F99003CAC38 /* CategoryViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 113B6F0A153E1F99003CAC38 /* CategoryViewController_iPad.xib */; };
- 113B6F16153E1F99003CAC38 /* CategoryViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 113B6F0B153E1F99003CAC38 /* CategoryViewController_iPhone.xib */; };
- 113B6F2B153E208D003CAC38 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 113B6F2A153E208D003CAC38 /* CoreData.framework */; };
- 115686561593CE6A00A5D031 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 115686551593CE6A00A5D031 /* SystemConfiguration.framework */; };
- 11FCCC1F1561834700949704 /* CategoryViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 11FCCC1C1561834700949704 /* CategoryViewController.m */; };
- 11FCCC201561834700949704 /* ImageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 11FCCC1E1561834700949704 /* ImageViewController.m */; };
- 11FCCC34156189A600949704 /* Bunny-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC22156189A600949704 /* Bunny-1.jpg */; };
- 11FCCC35156189A600949704 /* Bunny-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC23156189A600949704 /* Bunny-2.jpg */; };
- 11FCCC36156189A600949704 /* Bunny-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC24156189A600949704 /* Bunny-3.jpg */; };
- 11FCCC37156189A600949704 /* Cat-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC25156189A600949704 /* Cat-1.jpg */; };
- 11FCCC38156189A600949704 /* Cat-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC26156189A600949704 /* Cat-2.jpg */; };
- 11FCCC39156189A600949704 /* Cat-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC27156189A600949704 /* Cat-3.jpg */; };
- 11FCCC3A156189A600949704 /* Cat-4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC28156189A600949704 /* Cat-4.jpg */; };
- 11FCCC3B156189A600949704 /* Lion-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC29156189A600949704 /* Lion-1.jpg */; };
- 11FCCC3C156189A600949704 /* Lion-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2A156189A600949704 /* Lion-2.jpg */; };
- 11FCCC3D156189A600949704 /* Lion-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2B156189A600949704 /* Lion-3.jpg */; };
- 11FCCC3E156189A600949704 /* Lion-4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2C156189A600949704 /* Lion-4.jpg */; };
- 11FCCC3F156189A600949704 /* Monkey-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2D156189A600949704 /* Monkey-1.jpg */; };
- 11FCCC40156189A600949704 /* Monkey-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2E156189A600949704 /* Monkey-2.jpg */; };
- 11FCCC41156189A600949704 /* Monkey-3.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC2F156189A600949704 /* Monkey-3.jpg */; };
- 11FCCC42156189A600949704 /* Monkey-4.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC30156189A600949704 /* Monkey-4.jpg */; };
- 11FCCC43156189A600949704 /* Monkey-5.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC31156189A600949704 /* Monkey-5.jpg */; };
- 11FCCC44156189A600949704 /* Tiger-1.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC32156189A600949704 /* Tiger-1.jpg */; };
- 11FCCC45156189A600949704 /* Tiger-2.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 11FCCC33156189A600949704 /* Tiger-2.jpg */; };
- 47CD7CE717BAA2B1008840A0 /* CustomTagHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 47CD7CE617BAA2B1008840A0 /* CustomTagHandler.m */; };
- 47CD7CED17BAA447008840A0 /* CustomMacroHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 47CD7CEC17BAA447008840A0 /* CustomMacroHandler.m */; };
- 47CD7CF117BACB30008840A0 /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 47CD7CF017BACB30008840A0 /* AdSupport.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
- 47EC965217A19FDD00D685C9 /* Utils.m in Sources */ = {isa = PBXBuildFile; fileRef = 47EC965117A19FDD00D685C9 /* Utils.m */; };
- 47EC965417A1C9EB00D685C9 /* GTM-XXXX in Resources */ = {isa = PBXBuildFile; fileRef = 47EC965317A1C9EB00D685C9 /* GTM-XXXX */; };
- 47EC965A17A1CCDE00D685C9 /* Container.png in Resources */ = {isa = PBXBuildFile; fileRef = 47EC965917A1CCDE00D685C9 /* Container.png */; };
- 88679A8C17A1841C00F476D5 /* libGoogleAnalyticsServices.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 88679A8B17A1841C00F476D5 /* libGoogleAnalyticsServices.a */; };
- F4FE3F5617555573000A691A /* GTM-XXXX.plist in Resources */ = {isa = PBXBuildFile; fileRef = F4FE3F5517555573000A691A /* GTM-XXXX.plist */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 113B6EE3153E1F0B003CAC38 /* CuteAnimals.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CuteAnimals.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 113B6EE7153E1F0B003CAC38 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 113B6EE9153E1F0B003CAC38 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 113B6EEF153E1F0B003CAC38 /* CuteAnimals-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CuteAnimals-Info.plist"; sourceTree = ""; };
- 113B6EF5153E1F0B003CAC38 /* CuteAnimals-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CuteAnimals-Prefix.pch"; sourceTree = ""; };
- 113B6F02153E1F99003CAC38 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = SOURCE_ROOT; };
- 113B6F03153E1F99003CAC38 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = SOURCE_ROOT; };
- 113B6F04153E1F99003CAC38 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = SOURCE_ROOT; };
- 113B6F05153E1F99003CAC38 /* NavController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NavController.h; sourceTree = SOURCE_ROOT; };
- 113B6F06153E1F99003CAC38 /* NavController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NavController.m; sourceTree = SOURCE_ROOT; };
- 113B6F07153E1F99003CAC38 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = SOURCE_ROOT; };
- 113B6F08153E1F99003CAC38 /* RootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RootViewController.m; sourceTree = SOURCE_ROOT; };
- 113B6F09153E1F99003CAC38 /* RootViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = RootViewController.xib; sourceTree = SOURCE_ROOT; };
- 113B6F0A153E1F99003CAC38 /* CategoryViewController_iPad.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CategoryViewController_iPad.xib; sourceTree = SOURCE_ROOT; };
- 113B6F0B153E1F99003CAC38 /* CategoryViewController_iPhone.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CategoryViewController_iPhone.xib; sourceTree = SOURCE_ROOT; };
- 113B6F2A153E208D003CAC38 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
- 115686551593CE6A00A5D031 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 11FCCC1B1561834700949704 /* CategoryViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CategoryViewController.h; sourceTree = SOURCE_ROOT; };
- 11FCCC1C1561834700949704 /* CategoryViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CategoryViewController.m; sourceTree = SOURCE_ROOT; };
- 11FCCC1D1561834700949704 /* ImageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImageViewController.h; sourceTree = SOURCE_ROOT; };
- 11FCCC1E1561834700949704 /* ImageViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ImageViewController.m; sourceTree = SOURCE_ROOT; };
- 11FCCC22156189A600949704 /* Bunny-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Bunny-1.jpg"; path = "Images/Bunny-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC23156189A600949704 /* Bunny-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Bunny-2.jpg"; path = "Images/Bunny-2.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC24156189A600949704 /* Bunny-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Bunny-3.jpg"; path = "Images/Bunny-3.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC25156189A600949704 /* Cat-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Cat-1.jpg"; path = "Images/Cat-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC26156189A600949704 /* Cat-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Cat-2.jpg"; path = "Images/Cat-2.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC27156189A600949704 /* Cat-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Cat-3.jpg"; path = "Images/Cat-3.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC28156189A600949704 /* Cat-4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Cat-4.jpg"; path = "Images/Cat-4.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC29156189A600949704 /* Lion-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Lion-1.jpg"; path = "Images/Lion-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2A156189A600949704 /* Lion-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Lion-2.jpg"; path = "Images/Lion-2.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2B156189A600949704 /* Lion-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Lion-3.jpg"; path = "Images/Lion-3.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2C156189A600949704 /* Lion-4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Lion-4.jpg"; path = "Images/Lion-4.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2D156189A600949704 /* Monkey-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-1.jpg"; path = "Images/Monkey-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2E156189A600949704 /* Monkey-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-2.jpg"; path = "Images/Monkey-2.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC2F156189A600949704 /* Monkey-3.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-3.jpg"; path = "Images/Monkey-3.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC30156189A600949704 /* Monkey-4.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-4.jpg"; path = "Images/Monkey-4.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC31156189A600949704 /* Monkey-5.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Monkey-5.jpg"; path = "Images/Monkey-5.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC32156189A600949704 /* Tiger-1.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Tiger-1.jpg"; path = "Images/Tiger-1.jpg"; sourceTree = SOURCE_ROOT; };
- 11FCCC33156189A600949704 /* Tiger-2.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "Tiger-2.jpg"; path = "Images/Tiger-2.jpg"; sourceTree = SOURCE_ROOT; };
- 47CD7CE517BAA2B1008840A0 /* CustomTagHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomTagHandler.h; sourceTree = SOURCE_ROOT; };
- 47CD7CE617BAA2B1008840A0 /* CustomTagHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomTagHandler.m; sourceTree = SOURCE_ROOT; };
- 47CD7CEB17BAA447008840A0 /* CustomMacroHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomMacroHandler.h; sourceTree = SOURCE_ROOT; };
- 47CD7CEC17BAA447008840A0 /* CustomMacroHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomMacroHandler.m; sourceTree = SOURCE_ROOT; };
- 47CD7CF017BACB30008840A0 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; };
- 47EC964F17A19FC900D685C9 /* TAGDataLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TAGDataLayer.h; sourceTree = ""; };
- 47EC965017A19FDD00D685C9 /* Utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Utils.h; sourceTree = SOURCE_ROOT; };
- 47EC965117A19FDD00D685C9 /* Utils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Utils.m; sourceTree = SOURCE_ROOT; };
- 47EC965317A1C9EB00D685C9 /* GTM-XXXX */ = {isa = PBXFileReference; lastKnownFileType = file; path = "GTM-XXXX"; sourceTree = SOURCE_ROOT; };
- 47EC965917A1CCDE00D685C9 /* Container.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Container.png; path = Images/Container.png; sourceTree = SOURCE_ROOT; };
- 88679A8B17A1841C00F476D5 /* libGoogleAnalyticsServices.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libGoogleAnalyticsServices.a; path = ../../libGoogleAnalyticsServices.a; sourceTree = ""; };
- F41DE61E171DB8A500960CB7 /* TAGContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TAGContainer.h; sourceTree = ""; };
- F41DE620171DB8A500960CB7 /* TAGManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TAGManager.h; sourceTree = ""; };
- F431344E174E8F96003C1079 /* TAGContainerOpener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TAGContainerOpener.h; sourceTree = ""; };
- F431344F174E8F96003C1079 /* TAGLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TAGLogger.h; sourceTree = ""; };
- F4FE3F5517555573000A691A /* GTM-XXXX.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GTM-XXXX.plist"; sourceTree = SOURCE_ROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 113B6EE0153E1F0B003CAC38 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 47CD7CF117BACB30008840A0 /* AdSupport.framework in Frameworks */,
- 115686561593CE6A00A5D031 /* SystemConfiguration.framework in Frameworks */,
- 113B6F2B153E208D003CAC38 /* CoreData.framework in Frameworks */,
- 113B6EE8153E1F0B003CAC38 /* UIKit.framework in Frameworks */,
- 113B6EEA153E1F0B003CAC38 /* Foundation.framework in Frameworks */,
- 88679A8C17A1841C00F476D5 /* libGoogleAnalyticsServices.a in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 113B6ED8153E1F0B003CAC38 = {
- isa = PBXGroup;
- children = (
- 113B6EED153E1F0B003CAC38 /* CuteAnimals */,
- F41DE61B171DB8A500960CB7 /* TagManager SDK */,
- 113B6EE6153E1F0B003CAC38 /* Frameworks */,
- 113B6EE4153E1F0B003CAC38 /* Products */,
- );
- sourceTree = "";
- };
- 113B6EE4153E1F0B003CAC38 /* Products */ = {
- isa = PBXGroup;
- children = (
- 113B6EE3153E1F0B003CAC38 /* CuteAnimals.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 113B6EE6153E1F0B003CAC38 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 47CD7CF017BACB30008840A0 /* AdSupport.framework */,
- 115686551593CE6A00A5D031 /* SystemConfiguration.framework */,
- 113B6F2A153E208D003CAC38 /* CoreData.framework */,
- 113B6EE7153E1F0B003CAC38 /* UIKit.framework */,
- 113B6EE9153E1F0B003CAC38 /* Foundation.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
- 113B6EED153E1F0B003CAC38 /* CuteAnimals */ = {
- isa = PBXGroup;
- children = (
- 113B6F02153E1F99003CAC38 /* AppDelegate.h */,
- 113B6F03153E1F99003CAC38 /* AppDelegate.m */,
- 11FCCC1B1561834700949704 /* CategoryViewController.h */,
- 11FCCC1C1561834700949704 /* CategoryViewController.m */,
- 113B6F0A153E1F99003CAC38 /* CategoryViewController_iPad.xib */,
- 113B6F0B153E1F99003CAC38 /* CategoryViewController_iPhone.xib */,
- 47CD7CEB17BAA447008840A0 /* CustomMacroHandler.h */,
- 47CD7CEC17BAA447008840A0 /* CustomMacroHandler.m */,
- 47CD7CE517BAA2B1008840A0 /* CustomTagHandler.h */,
- 47CD7CE617BAA2B1008840A0 /* CustomTagHandler.m */,
- 11FCCC1D1561834700949704 /* ImageViewController.h */,
- 11FCCC1E1561834700949704 /* ImageViewController.m */,
- 113B6F04153E1F99003CAC38 /* main.m */,
- 113B6F05153E1F99003CAC38 /* NavController.h */,
- 113B6F06153E1F99003CAC38 /* NavController.m */,
- 113B6F07153E1F99003CAC38 /* RootViewController.h */,
- 113B6F08153E1F99003CAC38 /* RootViewController.m */,
- 113B6F09153E1F99003CAC38 /* RootViewController.xib */,
- 113B6EEE153E1F0B003CAC38 /* Supporting Files */,
- 47EC965017A19FDD00D685C9 /* Utils.h */,
- 47EC965117A19FDD00D685C9 /* Utils.m */,
- );
- name = CuteAnimals;
- path = .;
- sourceTree = "";
- };
- 113B6EEE153E1F0B003CAC38 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 11FCCC211561899800949704 /* Images */,
- 113B6EEF153E1F0B003CAC38 /* CuteAnimals-Info.plist */,
- 113B6EF5153E1F0B003CAC38 /* CuteAnimals-Prefix.pch */,
- 47EC965317A1C9EB00D685C9 /* GTM-XXXX */,
- F4FE3F5517555573000A691A /* GTM-XXXX.plist */,
- );
- name = "Supporting Files";
- sourceTree = "";
- };
- 11FCCC211561899800949704 /* Images */ = {
- isa = PBXGroup;
- children = (
- 47EC965917A1CCDE00D685C9 /* Container.png */,
- 11FCCC22156189A600949704 /* Bunny-1.jpg */,
- 11FCCC23156189A600949704 /* Bunny-2.jpg */,
- 11FCCC24156189A600949704 /* Bunny-3.jpg */,
- 11FCCC25156189A600949704 /* Cat-1.jpg */,
- 11FCCC26156189A600949704 /* Cat-2.jpg */,
- 11FCCC27156189A600949704 /* Cat-3.jpg */,
- 11FCCC28156189A600949704 /* Cat-4.jpg */,
- 11FCCC29156189A600949704 /* Lion-1.jpg */,
- 11FCCC2A156189A600949704 /* Lion-2.jpg */,
- 11FCCC2B156189A600949704 /* Lion-3.jpg */,
- 11FCCC2C156189A600949704 /* Lion-4.jpg */,
- 11FCCC2D156189A600949704 /* Monkey-1.jpg */,
- 11FCCC2E156189A600949704 /* Monkey-2.jpg */,
- 11FCCC2F156189A600949704 /* Monkey-3.jpg */,
- 11FCCC30156189A600949704 /* Monkey-4.jpg */,
- 11FCCC31156189A600949704 /* Monkey-5.jpg */,
- 11FCCC32156189A600949704 /* Tiger-1.jpg */,
- 11FCCC33156189A600949704 /* Tiger-2.jpg */,
- );
- name = Images;
- sourceTree = "";
- };
- F41DE61B171DB8A500960CB7 /* TagManager SDK */ = {
- isa = PBXGroup;
- children = (
- 88679A8B17A1841C00F476D5 /* libGoogleAnalyticsServices.a */,
- 47EC964F17A19FC900D685C9 /* TAGDataLayer.h */,
- F41DE61E171DB8A500960CB7 /* TAGContainer.h */,
- F431344E174E8F96003C1079 /* TAGContainerOpener.h */,
- F431344F174E8F96003C1079 /* TAGLogger.h */,
- F41DE620171DB8A500960CB7 /* TAGManager.h */,
- );
- name = "TagManager SDK";
- path = ../../Library;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 113B6EE2153E1F0B003CAC38 /* CuteAnimals */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 113B6EFB153E1F0B003CAC38 /* Build configuration list for PBXNativeTarget "CuteAnimals" */;
- buildPhases = (
- 113B6EDF153E1F0B003CAC38 /* Sources */,
- 113B6EE0153E1F0B003CAC38 /* Frameworks */,
- 113B6EE1153E1F0B003CAC38 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = CuteAnimals;
- productName = CuteAnimals;
- productReference = 113B6EE3153E1F0B003CAC38 /* CuteAnimals.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 113B6EDA153E1F0B003CAC38 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0460;
- };
- buildConfigurationList = 113B6EDD153E1F0B003CAC38 /* Build configuration list for PBXProject "CuteAnimals" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- );
- mainGroup = 113B6ED8153E1F0B003CAC38;
- productRefGroup = 113B6EE4153E1F0B003CAC38 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 113B6EE2153E1F0B003CAC38 /* CuteAnimals */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 113B6EE1153E1F0B003CAC38 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 113B6F14153E1F99003CAC38 /* RootViewController.xib in Resources */,
- 113B6F15153E1F99003CAC38 /* CategoryViewController_iPad.xib in Resources */,
- 113B6F16153E1F99003CAC38 /* CategoryViewController_iPhone.xib in Resources */,
- 11FCCC34156189A600949704 /* Bunny-1.jpg in Resources */,
- 11FCCC35156189A600949704 /* Bunny-2.jpg in Resources */,
- 11FCCC36156189A600949704 /* Bunny-3.jpg in Resources */,
- 11FCCC37156189A600949704 /* Cat-1.jpg in Resources */,
- 11FCCC38156189A600949704 /* Cat-2.jpg in Resources */,
- 11FCCC39156189A600949704 /* Cat-3.jpg in Resources */,
- 11FCCC3A156189A600949704 /* Cat-4.jpg in Resources */,
- 11FCCC3B156189A600949704 /* Lion-1.jpg in Resources */,
- 11FCCC3C156189A600949704 /* Lion-2.jpg in Resources */,
- 11FCCC3D156189A600949704 /* Lion-3.jpg in Resources */,
- 11FCCC3E156189A600949704 /* Lion-4.jpg in Resources */,
- 11FCCC3F156189A600949704 /* Monkey-1.jpg in Resources */,
- 11FCCC40156189A600949704 /* Monkey-2.jpg in Resources */,
- 11FCCC41156189A600949704 /* Monkey-3.jpg in Resources */,
- 11FCCC42156189A600949704 /* Monkey-4.jpg in Resources */,
- 11FCCC43156189A600949704 /* Monkey-5.jpg in Resources */,
- 11FCCC44156189A600949704 /* Tiger-1.jpg in Resources */,
- 11FCCC45156189A600949704 /* Tiger-2.jpg in Resources */,
- F4FE3F5617555573000A691A /* GTM-XXXX.plist in Resources */,
- 47EC965417A1C9EB00D685C9 /* GTM-XXXX in Resources */,
- 47EC965A17A1CCDE00D685C9 /* Container.png in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 113B6EDF153E1F0B003CAC38 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 113B6F10153E1F99003CAC38 /* AppDelegate.m in Sources */,
- 113B6F11153E1F99003CAC38 /* main.m in Sources */,
- 113B6F12153E1F99003CAC38 /* NavController.m in Sources */,
- 113B6F13153E1F99003CAC38 /* RootViewController.m in Sources */,
- 11FCCC1F1561834700949704 /* CategoryViewController.m in Sources */,
- 11FCCC201561834700949704 /* ImageViewController.m in Sources */,
- 47EC965217A19FDD00D685C9 /* Utils.m in Sources */,
- 47CD7CE717BAA2B1008840A0 /* CustomTagHandler.m in Sources */,
- 47CD7CED17BAA447008840A0 /* CustomMacroHandler.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 113B6EF9153E1F0B003CAC38 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- 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_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 5.1;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 113B6EFA153E1F0B003CAC38 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 5.1;
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 113B6EFC153E1F0B003CAC38 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "CuteAnimals-Prefix.pch";
- INFOPLIST_FILE = "CuteAnimals-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 5.0;
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/../../Library\"",
- "\"$(SRCROOT)/../../..\"",
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- WRAPPER_EXTENSION = app;
- };
- name = Debug;
- };
- 113B6EFD153E1F0B003CAC38 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "CuteAnimals-Prefix.pch";
- INFOPLIST_FILE = "CuteAnimals-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 5.0;
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/../../Library\"",
- "\"$(SRCROOT)/../../..\"",
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- WRAPPER_EXTENSION = app;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 113B6EDD153E1F0B003CAC38 /* Build configuration list for PBXProject "CuteAnimals" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 113B6EF9153E1F0B003CAC38 /* Debug */,
- 113B6EFA153E1F0B003CAC38 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 113B6EFB153E1F0B003CAC38 /* Build configuration list for PBXNativeTarget "CuteAnimals" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 113B6EFC153E1F0B003CAC38 /* Debug */,
- 113B6EFD153E1F0B003CAC38 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 113B6EDA153E1F0B003CAC38 /* Project object */;
-}
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/GTM-XXXX b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/GTM-XXXX
deleted file mode 100644
index f236b3a..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/GTM-XXXX and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/GTM-XXXX.plist b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/GTM-XXXX.plist
deleted file mode 100644
index b450d8c..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/GTM-XXXX.plist
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
- Adjective
- Cute
- Title
- Cute Animals
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/ImageViewController.h b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/ImageViewController.h
deleted file mode 100644
index cee7fe6..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/ImageViewController.h
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// ImageViewController.h
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#import
-
-#import "NavController.h"
-
-@interface ImageViewController : UIViewController
-
-@property(nonatomic, retain) NavController *navController;
-@property(nonatomic, retain) UIImageView *imageView;
-
-- (id)initWithNibName:(NSString *)nibNameOrNil
- bundle:(NSBundle *)nibBundleOrNil
- title:(NSString *)title
- image:(UIImage *)image;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/ImageViewController.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/ImageViewController.m
deleted file mode 100644
index e34af30..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/ImageViewController.m
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// ImageViewController.m
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "ImageViewController.h"
-
-#import "AppDelegate.h"
-#import "TAGDataLayer.h"
-#import "TAGManager.h"
-#import "Utils.h"
-
-@interface ImageViewController ()
-
-@property(nonatomic, assign) AppDelegate *delegate;
-
-@end
-
-@implementation ImageViewController
-
-@synthesize imageView = _imageView;
-@synthesize navController = _navController;
-
-- (id)initWithNibName:(NSString *)nibNameOrNil
- bundle:(NSBundle *)nibBundleOrNil
- title:(NSString *)title
- image:(UIImage *)image {
- self = [super initWithNibName:nibNameOrNil
- bundle:nibBundleOrNil];
- if (self) {
- self.title = title;
- self.imageView = [[UIImageView alloc] initWithImage:image];
- self.imageView.userInteractionEnabled = YES;
- self.imageView.contentMode = UIViewContentModeScaleAspectFit;
- }
- return self;
-}
-
-// Override
-- (void)viewDidLoad {
- [super viewDidLoad];
- // Put the image_name into the data layer for future use.
- [self.delegate.tagManager.dataLayer pushValue:self.title
- forKey:@"category_name"];
-}
-
-// Override
-- (void)viewWillAppear:(BOOL)animated {
- [super viewWillAppear:animated];
- [Utils pushOpenScreenEventWithScreenName:@"ImageViewScreen"];
-}
-
-// Override
-- (void)viewWillDisappear:(BOOL)animated {
- [super viewDidDisappear:animated];
- [Utils pushCloseScreenEventWithScreenName:@"ImageViewScreen"];
-}
-
-// Override
-- (BOOL)shouldAutorotateToInterfaceOrientation:
- (UIInterfaceOrientation)interfaceOrientation {
- return YES;
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-1.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-1.jpg
deleted file mode 100644
index bc737ba..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-2.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-2.jpg
deleted file mode 100644
index 1f51132..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-3.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-3.jpg
deleted file mode 100644
index 0bc89dd..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Bunny-3.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-1.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-1.jpg
deleted file mode 100644
index a30d8ba..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-2.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-2.jpg
deleted file mode 100644
index 8bbe219..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-3.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-3.jpg
deleted file mode 100644
index eb6ffa6..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-3.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-4.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-4.jpg
deleted file mode 100644
index 8bc2496..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Cat-4.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Container.png b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Container.png
deleted file mode 100644
index 77624f3..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Container.png and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/CustomTag.png b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/CustomTag.png
deleted file mode 100644
index ac42856..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/CustomTag.png and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-1.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-1.jpg
deleted file mode 100644
index be042e4..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-2.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-2.jpg
deleted file mode 100644
index 4f75994..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-3.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-3.jpg
deleted file mode 100644
index 01d68c2..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-3.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-4.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-4.jpg
deleted file mode 100644
index 4ccc3c0..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Lion-4.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-1.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-1.jpg
deleted file mode 100644
index bdb40ee..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-2.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-2.jpg
deleted file mode 100644
index 169c000..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-3.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-3.jpg
deleted file mode 100644
index 6435ba0..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-3.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-4.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-4.jpg
deleted file mode 100644
index 8fb9ad6..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-4.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-5.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-5.jpg
deleted file mode 100644
index 44e3ae0..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Monkey-5.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/NumRefreshesMod5.png b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/NumRefreshesMod5.png
deleted file mode 100644
index 0bf79e4..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/NumRefreshesMod5.png and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/RefreshEvent.png b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/RefreshEvent.png
deleted file mode 100644
index a2f43bf..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/RefreshEvent.png and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/RefreshEventTag.png b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/RefreshEventTag.png
deleted file mode 100644
index abd1519..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/RefreshEventTag.png and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/ScreenClosedTag.png b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/ScreenClosedTag.png
deleted file mode 100644
index 8fc2a34..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/ScreenClosedTag.png and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/ScreenOpenTag.png b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/ScreenOpenTag.png
deleted file mode 100644
index 1da15c0..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/ScreenOpenTag.png and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Tiger-1.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Tiger-1.jpg
deleted file mode 100644
index 9d5e12e..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Tiger-1.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Tiger-2.jpg b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Tiger-2.jpg
deleted file mode 100644
index 8469e10..0000000
Binary files a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Images/Tiger-2.jpg and /dev/null differ
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/NavController.h b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/NavController.h
deleted file mode 100644
index d3f1d06..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/NavController.h
+++ /dev/null
@@ -1,13 +0,0 @@
-//
-// NavController.h
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#import
-
-@interface NavController :
- UINavigationController
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/NavController.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/NavController.m
deleted file mode 100644
index 3e09d1e..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/NavController.m
+++ /dev/null
@@ -1,35 +0,0 @@
-//
-// NavController.m
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "NavController.h"
-
-@implementation NavController
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:
- (UIInterfaceOrientation)interfaceOrientation {
- return YES;
-}
-
-#pragma mark UINavigationControllerDelegate methods
-
-- (void)navigationController:(UINavigationController *)navigationController
- willShowViewController:(UIViewController *)viewController
- animated:(BOOL)animated {
- // NSLog(@"navigationController:willShowViewController:animated:");
-}
-
-- (void)navigationController:(UINavigationController *)navigationController
- didShowViewController:(UIViewController *)viewController
- animated:(BOOL)animated {
- // NSLog(@"navigationController:didShowViewController:animated:");
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/README b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/README
deleted file mode 100644
index 0e222ac..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/README
+++ /dev/null
@@ -1,72 +0,0 @@
-To build this example:
-
- 1. Open CuteAnimals.xcodeproj in XCode.
- 2. Select the desired platform from the scheme in the toolbar (or from the
- menu "Product->Destination").
- 3. Run the sample by clicking "Run" in the toolbar (or selecting "Product/Run"
- from the menu).
-
-This sample uses a container ID for a non-existent container: "GTM-XXXX".
-There are two corresponding files: "GTM-XXXX" and "GTM-XXXX.plist" which
-are used as default containers.
-
-GTM-XXXX.plist contains default key-value pairs. It is limited to representing
-the key-value pairs representable in value collection macros and is ignored if
-a GTM-XXXX container is present.
-
-GTM-XXXX is a full-featured default container. It contains the same default
-key-value pairs as GTM-XXXX.plist plus the configuration of how to trigger
-Universal Analytics tags and a custom function call tag. Here is a summary of
-the container (more details can be seen in the snapshot at Images/Container.png)
- 8 Macros:
- * "app name": the pre-populated application name macro.
- * "app version": the pre-populated app version macro.
- * "Cute Animals IOS": a value collection macro containing key/value pairs
- as GTM-XXXX.plist.
- * "event": an event macro.
- * "numRefreshes": a custom function call macro which records how many
- times the "Refresh" button is clicked.
- * "numRefreshesMod5": a custom function call macro whose value is equal
- to "numRefreshes" mod 5. See images/NumRefreshesMod5.png for more
- details.
- * "screen name": a data layer macro whose data layer variable name
- is "screenName".
- * "true": the pre-populated constant string macro whose value is equal to
- "true".
- 5 Rules:
- * "CustomTagFires": the value of the event macro is equal to 'custom_tag'.
- * "CloseScreenEvent": the value of the event macro is equal to
- 'closeScreen'.
- * "OpenScreenEvent": the value of the event macro is equal to
- 'openScreen'.
- * "RefreshEvent": the value of the event macro is equal to 'refresh' and
- the value of the numRefreshesMod5 macro is equal to 1. See
- images/RefreshEvent.png for more details.
- * "Always": the pre-populated rule which is always evaluated to true.
- 4 Tags:
- * "CustomTag": a custom function call tag with the firing rule:
- CustomTagFires is true. See images/CustomTag.png for more details.
- * "RefreshEvent": a Universal Analytics tag with the firing rule:
- RefreshEvent is true. See Images/RefreshEventTag.png for more details.
- * "ScreenClosed": a Universal Analytics tag with the firing rule:
- CloseScreenEvent is true. See Images/ScreenClosedTag.png for more
- details.
- * "ScreenOpen": a Universal Analytics tag with the firing rule:
- OpenScreenEvent is true. See Images/ScreenOpenTag.png for more
- details.
-
-Although the app will run and use the values specified in the GTM-XXXX (or
-GTM-XXXX.plist if you delete GTM-XXXX from your local machine), there's
-no way to dynamically update those values, since this is a non-existent
-container.
-
-To use real values, create a container in the Tag Manager UI and note the
-resulting container ID:
-
- 1. Download the container from the Tag Manager UI and rename it to
- GTM-1234 (where GTM-1234 is the container ID for the new container).
- Put GTM-1234 into the same directory with GTM-XXXX.plist file.
- 2. In AppDelegate.m, update the parameter for openContainerById with the
- new container ID.
- 3. Optional: delete GTM-XXXX and GTM-XXXX.plist files.
-
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.h b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.h
deleted file mode 100644
index 4453d49..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.h
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-// RootViewController.h
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import
-
-@interface RootViewController :
- UIViewController
-
-@property(nonatomic, retain) NavController *navController;
-@property(nonatomic, retain) IBOutlet UITableView *tableView;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.m
deleted file mode 100644
index f8ae396..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.m
+++ /dev/null
@@ -1,140 +0,0 @@
-//
-// RootViewController.m
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "AppDelegate.h"
-#import "RootViewController.h"
-#import "CategoryViewController.h"
-#import "ImageViewController.h"
-#import "TAGContainer.h"
-#import "TAGDataLayer.h"
-#import "TAGManager.h"
-#import "Utils.h"
-
-@interface RootViewController ()
-
-@property(nonatomic, retain) NSArray *items;
-@property(nonatomic, assign) AppDelegate *delegate;
-
-@end
-
-@implementation RootViewController
-
-@synthesize tableView = _tableView;
-@synthesize navController = _navController;
-@synthesize items = _items;
-@synthesize delegate = _delegate;
-
-- (id)initWithNibName:(NSString *)nibName
- bundle:(NSBundle *)nibBundle {
- self = [super initWithNibName:nibName
- bundle:nibBundle];
- if (self) {
- self.delegate = [UIApplication sharedApplication].delegate;
- self.title = [self.delegate.container stringForKey:@"Title"];
- }
- return self;
-}
-
-- (void)refresh {
- [self.delegate.container refresh];
- // Push a "refresh" event. Tags that match that event will fire.
- [self.delegate.tagManager.dataLayer pushValue:@"refresh" forKey:@"event"];
- // Push the "custom tag" event to trigger firing a custom function call tag.
- [self.delegate.tagManager.dataLayer pushValue:@"custom_tag" forKey:@"event"];
-}
-
-// Override
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.navigationItem.rightBarButtonItem =
- [[UIBarButtonItem alloc] initWithTitle:@"Refresh"
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(refresh)];
- self.items =
- [[self.delegate.images allKeys]
- sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
- [self.tableView reloadData];
-}
-
-// Override
-- (void)viewDidAppear:(BOOL)animated {
- [super viewDidAppear:animated];
- [Utils pushOpenScreenEventWithScreenName:@"MainScreen"];
-}
-
-// Override
-- (void)viewWillDisappear:(BOOL)animated {
- [super viewDidDisappear:animated];
- [Utils pushCloseScreenEventWithScreenName:@"MainScreen"];
-}
-
-// Override
-- (BOOL)shouldAutorotateToInterfaceOrientation:
- (UIInterfaceOrientation)interfaceOrientation {
- return NO;
-}
-
-#pragma mark UITableViewDelegate methods
-
-- (void)tableView:(UITableView *)tableView
- didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- [tableView deselectRowAtIndexPath:indexPath animated:NO];
- if (indexPath.row < 0 || indexPath.row >= self.items.count) {
- NSLog(@"IndexPath %d out of bounds!", indexPath.row);
- return;
- }
-
- NSString *category = [self.items objectAtIndex:indexPath.row];
- NSString *nib =
- ([[UIDevice currentDevice] userInterfaceIdiom] ==
- UIUserInterfaceIdiomPhone) ?
- @"CategoryViewController_iPhone" : @"CategoryViewController_iPad";
- CategoryViewController *categoryController =
- [[CategoryViewController alloc] initWithNibName:nib
- bundle:nil
- category:category];
- categoryController.navController = self.navController;
- [self.navController pushViewController:categoryController animated:YES];
-}
-
-#pragma mark UITableViewDataSource methods
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return self.items.count;
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView
- cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- if (indexPath.row < 0 || indexPath.row >= self.items.count) {
- NSLog(@"IndexPath %d out of bounds!", indexPath.row);
- return nil;
- }
- NSString *category = [self.items objectAtIndex:indexPath.row];
-
- static NSString *CellId = @"Cell";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellId];
- if (!cell) {
- cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
- reuseIdentifier:CellId];
- }
-
- NSString *adjective = [self.delegate.container stringForKey:@"Adjective"];
- NSString *label = [NSString stringWithFormat:@"%@ %@ Pictures!", adjective, category];
- cell.textLabel.text = label;
- cell.textLabel.font = [UIFont systemFontOfSize:14];
- NSUInteger imageCount = [(NSArray *)[self.delegate.images objectForKey:category] count];
- cell.detailTextLabel.text = [NSString stringWithFormat:@"%u image(s).", imageCount];
- cell.detailTextLabel.font = [UIFont systemFontOfSize:12];
- return cell;
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.xib b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.xib
deleted file mode 100644
index e9debf9..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/RootViewController.xib
+++ /dev/null
@@ -1,193 +0,0 @@
-
-
-
- 1296
- 11D50b
- 2182
- 1138.32
- 568.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 1181
-
-
- IBProxyObject
- IBUIView
- IBUITableView
-
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- PluginDependencyRecalculationVersion
-
-
-
-
- IBFilesOwner
- IBIPadFramework
-
-
- IBFirstResponder
- IBIPadFramework
-
-
-
- 292
-
-
-
- 274
- {768, 1004}
-
-
- _NS:9
-
- 3
- MQA
-
- YES
- IBIPadFramework
- YES
- 1
- 0
- YES
- 44
- 22
- 22
-
-
- {{0, 20}, {768, 1004}}
-
-
-
- 3
- MQA
-
- 2
-
-
- NO
-
- 2
-
- IBIPadFramework
-
-
-
-
-
-
- view
-
-
-
- 3
-
-
-
- tableView
-
-
-
- 7
-
-
-
- dataSource
-
-
-
- 5
-
-
-
- delegate
-
-
-
- 6
-
-
-
-
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 2
-
-
-
-
-
-
-
- 4
-
-
-
-
-
-
- RootViewController
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
- 7
-
-
-
-
- RootViewController
- UIViewController
-
- tableView
- UITableView
-
-
- tableView
-
- tableView
- UITableView
-
-
-
- IBProjectSource
- ./Classes/RootViewController.h
-
-
-
-
- 0
- IBIPadFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
- YES
- 3
- 1181
-
-
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Utils.h b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Utils.h
deleted file mode 100644
index d45e23a..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Utils.h
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// Utils.h
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#import
-
-@interface Utils : NSObject
-
-/**
- * Push an "openScreen" event with the given screen name. Tags that
- * match that event will fire.
- */
-+ (void)pushOpenScreenEventWithScreenName:(NSString *)screenName;
-
-/**
- * Push a "closeScreen" event with the given screen name. Tags that
- * match that event will fire.
- */
-+ (void)pushCloseScreenEventWithScreenName:(NSString *)screenName;
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Utils.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Utils.m
deleted file mode 100644
index f1b2306..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/Utils.m
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// Utils.m
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import "AppDelegate.h"
-#import "TAGDataLayer.h"
-#import "TAGManager.h"
-#import "Utils.h"
-
-@implementation Utils
-
-+ (void)pushOpenScreenEventWithScreenName:(NSString *)screenName {
- AppDelegate *delegate = [UIApplication sharedApplication].delegate;
- [delegate.tagManager.dataLayer push:@{@"event": @"openScreen",
- @"screenName": screenName}];
-}
-
-+ (void)pushCloseScreenEventWithScreenName:(NSString *)screenName {
- AppDelegate *delegate = [UIApplication sharedApplication].delegate;
- [delegate.tagManager.dataLayer push:@{@"event": @"closeScreen",
- @"screenName": screenName}];
-}
-
-@end
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/main.m b/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/main.m
deleted file mode 100644
index 6c23d78..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Examples/CuteAnimals/main.m
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// main.m
-// CuteAnimals
-//
-// Copyright 2013 Google, Inc. All rights reserved.
-//
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#import
-
-#import "AppDelegate.h"
-
-int main(int argc, char *argv[]) {
- @autoreleasepool {
- return UIApplicationMain(argc, argv, nil,
- NSStringFromClass([AppDelegate class]));
- }
-}
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Readme.txt b/Frameworks/Google Analytics SDK/GoogleTagManager/Readme.txt
deleted file mode 100644
index d756446..0000000
--- a/Frameworks/Google Analytics SDK/GoogleTagManager/Readme.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-Google Tag Manager iOS SDK
-
-Copyright 2013 Google, Inc. All rights reserved.
-
-================================================================================
-DESCRIPTION:
-
-This SDK provides developers with the capability to use Google Tag Manager
-to do server-side rule-based customization of configuration variables.
-
-The SDK is packaged as a zip file with a directory (Examples) containing
-examples, a directory (Library) containing the headers and the static library,
-the change history (CHANGELOG) and this file (README).
-
-Details on how to use this SDK are available at:
- http://developers.google.com/tag-manager/ios
-
-================================================================================
-BUILD REQUIREMENTS:
-
-Mac OS X 10.6 or later.
-XCode with iOS SDK 6.0 or later.
-
-================================================================================
-RUNTIME REQUIREMENTS:
-
-iOS 5.0 or later
-
-Your application must link to the following frameworks:
- AdSupport.framework
- CoreData.framework
- Foundation.framework
- SystemConfiguration.framework
- UIKit.framework
diff --git a/Frameworks/Google Analytics SDK/libGoogleAnalyticsServices.a b/Frameworks/Google Analytics SDK/libGoogleAnalyticsServices.a
deleted file mode 100644
index 7b25f1d..0000000
Binary files a/Frameworks/Google Analytics SDK/libGoogleAnalyticsServices.a and /dev/null differ
diff --git a/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsViewController.h b/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsViewController.h
deleted file mode 100644
index 303d442..0000000
--- a/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsViewController.h
+++ /dev/null
@@ -1,69 +0,0 @@
-//
-// IASKAppSettingsViewController.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-#import
-
-#import "IASKSettingsStore.h"
-
-@class IASKSettingsReader;
-@class IASKAppSettingsViewController;
-@class IASKSpecifier;
-
-@protocol IASKSettingsDelegate
-- (void)settingsViewControllerDidEnd:(IASKAppSettingsViewController*)sender;
-@optional
-- (CGFloat)tableView:(UITableView *)tableView heightForHeaderForKey:(NSString*)key;
-- (UIView *)tableView:(UITableView *)tableView viewForHeaderForKey:(NSString*)key;
-
-- (CGFloat)tableView:(UITableView*)tableView heightForSpecifier:(IASKSpecifier*)specifier;
-- (UITableViewCell*)tableView:(UITableView*)tableView cellForSpecifier:(IASKSpecifier*)specifier;
-
-- (NSString*)mailComposeBody;
-- (UIViewController*)viewControllerForMailComposeView;
-- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error;
-
-- (void)settingsViewController:(IASKAppSettingsViewController*)sender buttonTappedForKey:(NSString*)key;
-@end
-
-
-@interface IASKAppSettingsViewController : UITableViewController {
- id _delegate;
-
- NSMutableArray *_viewList;
- NSIndexPath *_currentIndexPath;
-
- IASKSettingsReader *_settingsReader;
- id _settingsStore;
- NSString *_file;
-
- id _currentFirstResponder;
-
- BOOL _showCreditsFooter;
- BOOL _showDoneButton;
-}
-
-@property (nonatomic, assign) IBOutlet id delegate;
-@property (nonatomic, retain) IASKSettingsReader *settingsReader;
-@property (nonatomic, retain) id settingsStore;
-@property (nonatomic, copy) NSString *file;
-@property (nonatomic, assign) BOOL showCreditsFooter;
-@property (nonatomic, assign) BOOL showDoneButton;
-
-- (void)synchronizeSettings;
-- (IBAction)dismiss:(id)sender;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsViewController.m b/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsViewController.m
deleted file mode 100644
index eac6038..0000000
--- a/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsViewController.m
+++ /dev/null
@@ -1,787 +0,0 @@
-//
-// IASKAppSettingsViewController.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009-2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-
-#import "IASKAppSettingsViewController.h"
-#import "IASKSettingsReader.h"
-#import "IASKSettingsStoreUserDefaults.h"
-#import "IASKPSToggleSwitchSpecifierViewCell.h"
-#import "IASKPSSliderSpecifierViewCell.h"
-#import "IASKPSTextFieldSpecifierViewCell.h"
-#import "IASKPSTitleValueSpecifierViewCell.h"
-#import "IASKSwitch.h"
-#import "IASKSlider.h"
-#import "IASKSpecifier.h"
-#import "IASKSpecifierValuesViewController.h"
-#import "IASKTextField.h"
-
-static const CGFloat KEYBOARD_ANIMATION_DURATION = 0.3;
-static const CGFloat MINIMUM_SCROLL_FRACTION = 0.2;
-static const CGFloat MAXIMUM_SCROLL_FRACTION = 0.8;
-
-static NSString *kIASKCredits = @"Powered by InAppSettingsKit"; // Leave this as-is!!!
-
-#define kIASKSpecifierValuesViewControllerIndex 0
-#define kIASKSpecifierChildViewControllerIndex 1
-
-#define kIASKCreditsViewWidth 285
-
-CGRect IASKCGRectSwap(CGRect rect);
-
-@interface IASKAppSettingsViewController ()
-@property (nonatomic, retain) NSMutableArray *viewList;
-@property (nonatomic, retain) NSIndexPath *currentIndexPath;
-@property (nonatomic, retain) id currentFirstResponder;
-
-- (void)_textChanged:(id)sender;
-- (void)synchronizeSettings;
-- (void)reload;
-@end
-
-@implementation IASKAppSettingsViewController
-
-@synthesize delegate = _delegate;
-@synthesize viewList = _viewList;
-@synthesize currentIndexPath = _currentIndexPath;
-@synthesize settingsReader = _settingsReader;
-@synthesize file = _file;
-@synthesize currentFirstResponder = _currentFirstResponder;
-@synthesize showCreditsFooter = _showCreditsFooter;
-@synthesize showDoneButton = _showDoneButton;
-@synthesize settingsStore = _settingsStore;
-
-#pragma mark accessors
-- (IASKSettingsReader*)settingsReader {
- if (!_settingsReader) {
- _settingsReader = [[IASKSettingsReader alloc] initWithFile:self.file];
- }
- return _settingsReader;
-}
-
-- (id)settingsStore {
- if (!_settingsStore) {
- _settingsStore = [[IASKSettingsStoreUserDefaults alloc] init];
- }
- return _settingsStore;
-}
-
-- (NSString*)file {
- if (!_file) {
- return @"Root";
- }
- return [[_file retain] autorelease];
-}
-
-- (void)setFile:(NSString *)file {
- if (file != _file) {
-
- [_file release];
- _file = [file copy];
- }
-
- self.tableView.contentOffset = CGPointMake(0, 0);
- self.settingsReader = nil; // automatically initializes itself
-}
-
-- (BOOL)isPad {
- BOOL isPad = NO;
-#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 30200)
- isPad = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad;
-#endif
- return isPad;
-}
-
-#pragma mark standard view controller methods
-- (id)init {
- return [self initWithNibName:@"IASKAppSettingsView" bundle:nil];
-}
-
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
- if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
- // If set to YES, will display credits for InAppSettingsKit creators
- _showCreditsFooter = YES;
-
- // If set to YES, will add a DONE button at the right of the navigation bar
- _showDoneButton = YES;
-
- if ([self isPad]) {
- self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLineEtched;
- }
- }
- return self;
-}
-
-- (void)awakeFromNib {
- // If set to YES, will display credits for InAppSettingsKit creators
- _showCreditsFooter = YES;
-
- // If set to YES, will add a DONE button at the right of the navigation bar
- // if loaded via NIB, it's likely we sit in a TabBar- or NavigationController
- // and thus don't need the Done button
- _showDoneButton = NO;
-
- if ([self isPad]) {
- self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLineEtched;
- }
-}
-
-- (NSMutableArray *)viewList {
- if (!_viewList) {
- _viewList = [[NSMutableArray alloc] init];
- [_viewList addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"IASKSpecifierValuesView", @"ViewName",nil]];
- [_viewList addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"IASKAppSettingsView", @"ViewName",nil]];
- }
- return _viewList;
-}
-
-- (void)viewDidUnload {
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
- self.view = nil;
- self.viewList = nil;
-}
-
-- (void)viewWillAppear:(BOOL)animated {
- [self.tableView reloadData];
-
- self.navigationItem.rightBarButtonItem = nil;
- self.navigationController.delegate = self;
- if (_showDoneButton) {
- UIBarButtonItem *buttonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
- target:self
- action:@selector(dismiss:)];
- self.navigationItem.rightBarButtonItem = buttonItem;
- [buttonItem release];
- }
- if (!self.title) {
- self.title = NSLocalizedString(@"Settings", @"");
- }
-
- if (self.currentIndexPath) {
- if (animated) {
- // animate deselection of previously selected row
- [self.tableView selectRowAtIndexPath:self.currentIndexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
- [self.tableView deselectRowAtIndexPath:self.currentIndexPath animated:YES];
- }
- self.currentIndexPath = nil;
- }
-
- [super viewWillAppear:animated];
-}
-
-- (CGSize)contentSizeForViewInPopover {
- return [[self view] sizeThatFits:CGSizeMake(320, 2000)];
-}
-
-- (void)viewDidAppear:(BOOL)animated {
- [super viewDidAppear:animated];
-
- NSNotificationCenter *dc = [NSNotificationCenter defaultCenter];
- IASK_IF_IOS4_OR_GREATER([dc addObserver:self selector:@selector(synchronizeSettings) name:UIApplicationDidEnterBackgroundNotification object:[UIApplication sharedApplication]];);
- IASK_IF_IOS4_OR_GREATER([dc addObserver:self selector:@selector(reload) name:UIApplicationWillEnterForegroundNotification object:[UIApplication sharedApplication]];);
- [dc addObserver:self selector:@selector(synchronizeSettings) name:UIApplicationWillTerminateNotification object:[UIApplication sharedApplication]];
-}
-
-- (void)viewWillDisappear:(BOOL)animated {
- [NSObject cancelPreviousPerformRequestsWithTarget:self];
- [super viewWillDisappear:animated];
-}
-
-- (void)viewDidDisappear:(BOOL)animated {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- if (!self.navigationController.delegate) {
- // hide the keyboard when we're popping from the navigation controller
- [self.currentFirstResponder resignFirstResponder];
- }
-
- [super viewDidDisappear:animated];
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- return YES;
-}
-
-- (void)didReceiveMemoryWarning {
- // Releases the view if it doesn't have a superview.
- [super didReceiveMemoryWarning];
-
- // Release any cached data, images, etc that aren't in use.
-}
-
-- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
- if (![viewController isKindOfClass:[IASKAppSettingsViewController class]] && ![viewController isKindOfClass:[IASKSpecifierValuesViewController class]]) {
- [self dismiss:nil];
- }
-}
-
-- (void)dealloc {
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [_viewList release], _viewList = nil;
- [_currentIndexPath release], _currentIndexPath = nil;
- [_file release], _file = nil;
- [_currentFirstResponder release], _currentFirstResponder = nil;
- [_settingsReader release], _settingsReader = nil;
- [_settingsStore release], _settingsStore = nil;
-
- _delegate = nil;
-
- [super dealloc];
-}
-
-
-#pragma mark -
-#pragma mark Actions
-
-- (IBAction)dismiss:(id)sender {
- [self.settingsStore synchronize];
- self.navigationController.delegate = nil;
-
- if (self.delegate && [self.delegate conformsToProtocol:@protocol(IASKSettingsDelegate)]) {
- [self.delegate settingsViewControllerDidEnd:self];
- }
-}
-
-- (void)toggledValue:(id)sender {
- IASKSwitch *toggle = (IASKSwitch*)sender;
- IASKSpecifier *spec = [_settingsReader specifierForKey:[toggle key]];
-
- if ([toggle isOn]) {
- if ([spec trueValue] != nil) {
- [self.settingsStore setObject:[spec trueValue] forKey:[toggle key]];
- }
- else {
- [self.settingsStore setBool:YES forKey:[toggle key]];
- }
- }
- else {
- if ([spec falseValue] != nil) {
- [self.settingsStore setObject:[spec falseValue] forKey:[toggle key]];
- }
- else {
- [self.settingsStore setBool:NO forKey:[toggle key]];
- }
- }
- [[NSNotificationCenter defaultCenter] postNotificationName:kIASKAppSettingChanged
- object:[toggle key]
- userInfo:[NSDictionary dictionaryWithObject:[self.settingsStore objectForKey:[toggle key]]
- forKey:[toggle key]]];
-}
-
-- (void)sliderChangedValue:(id)sender {
- IASKSlider *slider = (IASKSlider*)sender;
- [self.settingsStore setFloat:[slider value] forKey:[slider key]];
- [[NSNotificationCenter defaultCenter] postNotificationName:kIASKAppSettingChanged
- object:[slider key]
- userInfo:[NSDictionary dictionaryWithObject:[NSNumber numberWithFloat:[slider value]]
- forKey:[slider key]]];
-}
-
-
-#pragma mark -
-#pragma mark UITableView Functions
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return [self.settingsReader numberOfSections];
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return [self.settingsReader numberOfRowsForSection:section];
-}
-
-- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
- IASKSpecifier *specifier = [self.settingsReader specifierForIndexPath:indexPath];
- if ([[specifier type] isEqualToString:kIASKCustomViewSpecifier]) {
- if ([self.delegate respondsToSelector:@selector(tableView:heightForSpecifier:)]) {
- return [self.delegate tableView:tableView heightForSpecifier:specifier];
- } else {
- return 0;
- }
- }
- return tableView.rowHeight;
-}
-
-- (NSString *)tableView:(UITableView*)tableView titleForHeaderInSection:(NSInteger)section {
- NSString *header = [self.settingsReader titleForSection:section];
- if (0 == header.length) {
- return nil;
- }
- return header;
-}
-
-- (UIView *)tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)section {
- NSString *key = [self.settingsReader keyForSection:section];
- if ([self.delegate respondsToSelector:@selector(tableView:viewForHeaderForKey:)]) {
- return [self.delegate tableView:tableView viewForHeaderForKey:key];
- } else {
- return nil;
- }
-}
-
-- (CGFloat)tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section {
- NSString *key = [self.settingsReader keyForSection:section];
- if ([self tableView:tableView viewForHeaderInSection:section] && [self.delegate respondsToSelector:@selector(tableView:heightForHeaderForKey:)]) {
- CGFloat result;
- if ((result = [self.delegate tableView:tableView heightForHeaderForKey:key])) {
- return result;
- }
-
- }
- NSString *title;
- if ((title = [self tableView:tableView titleForHeaderInSection:section])) {
- CGSize size = [title sizeWithFont:[UIFont boldSystemFontOfSize:[UIFont labelFontSize]]
- constrainedToSize:CGSizeMake(tableView.frame.size.width - 2*kIASKHorizontalPaddingGroupTitles, INFINITY)
- lineBreakMode:UILineBreakModeWordWrap];
- return size.height+kIASKVerticalPaddingGroupTitles;
- }
- return 0;
-}
-
-- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
-{
- NSString *footerText = [self.settingsReader footerTextForSection:section];
- if (_showCreditsFooter && (section == [self.settingsReader numberOfSections]-1)) {
- // show credits since this is the last section
- if ((footerText == nil) || ([footerText length] == 0)) {
- // show the credits on their own
- return kIASKCredits;
- } else {
- // show the credits below the app's FooterText
- return [NSString stringWithFormat:@"%@\n\n%@", footerText, kIASKCredits];
- }
- } else {
- if ([footerText length] == 0) {
- return nil;
- }
- return [self.settingsReader footerTextForSection:section];
- }
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- IASKSpecifier *specifier = [self.settingsReader specifierForIndexPath:indexPath];
- NSString *key = [specifier key];
-
- if ([[specifier type] isEqualToString:kIASKCustomViewSpecifier] && [self.delegate respondsToSelector:@selector(tableView:cellForSpecifier:)]) {
- return [self.delegate tableView:tableView cellForSpecifier:specifier];
- }
-
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[specifier type]];
-
- if ([[specifier type] isEqualToString:kIASKPSToggleSwitchSpecifier]) {
- if (!cell) {
- cell = (IASKPSToggleSwitchSpecifierViewCell*) [[[NSBundle mainBundle] loadNibNamed:@"IASKPSToggleSwitchSpecifierViewCell"
- owner:self
- options:nil] objectAtIndex:0];
- }
- ((IASKPSToggleSwitchSpecifierViewCell*)cell).label.text = [specifier title];
-
- id currentValue = [self.settingsStore objectForKey:key];
- BOOL toggleState;
- if (currentValue) {
- if ([currentValue isEqual:[specifier trueValue]]) {
- toggleState = YES;
- } else if ([currentValue isEqual:[specifier falseValue]]) {
- toggleState = NO;
- } else {
- toggleState = [currentValue boolValue];
- }
- } else {
- toggleState = [specifier defaultBoolValue];
- }
- ((IASKPSToggleSwitchSpecifierViewCell*)cell).toggle.on = toggleState;
-
- [((IASKPSToggleSwitchSpecifierViewCell*)cell).toggle addTarget:self action:@selector(toggledValue:) forControlEvents:UIControlEventValueChanged];
- [((IASKPSToggleSwitchSpecifierViewCell*)cell).toggle setKey:key];
- return cell;
- }
- else if ([[specifier type] isEqualToString:kIASKPSMultiValueSpecifier]) {
- if (!cell) {
- cell = [[[IASKPSTitleValueSpecifierViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:[specifier type]] autorelease];
- cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
- cell.backgroundColor = [UIColor whiteColor];
- }
- [[cell textLabel] setText:[specifier title]];
- [[cell detailTextLabel] setText:[[specifier titleForCurrentValue:[self.settingsStore objectForKey:key] != nil ?
- [self.settingsStore objectForKey:key] : [specifier defaultValue]] description]];
- return cell;
- }
- else if ([[specifier type] isEqualToString:kIASKPSTitleValueSpecifier]) {
- if (!cell) {
- cell = [[[IASKPSTitleValueSpecifierViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:[specifier type]] autorelease];
- cell.accessoryType = UITableViewCellAccessoryNone;
- cell.backgroundColor = [UIColor whiteColor];
- }
-
- cell.textLabel.text = [specifier title];
- id value = [self.settingsStore objectForKey:key] ? : [specifier defaultValue];
-
- NSString *stringValue;
- if ([specifier multipleValues] || [specifier multipleTitles]) {
- stringValue = [specifier titleForCurrentValue:value];
- } else {
- stringValue = [value description];
- }
-
- cell.detailTextLabel.text = stringValue;
- [cell setUserInteractionEnabled:NO];
-
- return cell;
- }
- else if ([[specifier type] isEqualToString:kIASKPSTextFieldSpecifier]) {
- if (!cell) {
- cell = (IASKPSTextFieldSpecifierViewCell*) [[[NSBundle mainBundle] loadNibNamed:@"IASKPSTextFieldSpecifierViewCell"
- owner:self
- options:nil] objectAtIndex:0];
-
- ((IASKPSTextFieldSpecifierViewCell*)cell).textField.textAlignment = UITextAlignmentLeft;
- ((IASKPSTextFieldSpecifierViewCell*)cell).textField.returnKeyType = UIReturnKeyDone;
- cell.accessoryType = UITableViewCellAccessoryNone;
- }
-
- ((IASKPSTextFieldSpecifierViewCell*)cell).label.text = [specifier title];
-
- NSString *textValue = [self.settingsStore objectForKey:key] != nil ? [self.settingsStore objectForKey:key] : [specifier defaultStringValue];
- if (textValue && ![textValue isMemberOfClass:[NSString class]]) {
- textValue = [NSString stringWithFormat:@"%@", textValue];
- }
- IASKTextField *textField = ((IASKPSTextFieldSpecifierViewCell*)cell).textField;
- textField. text = textValue;
- textField.key = key;
- textField.delegate = self;
- textField.secureTextEntry = [specifier isSecure];
- textField.keyboardType = [specifier keyboardType];
- textField.autocapitalizationType = [specifier autocapitalizationType];
- [textField addTarget:self action:@selector(_textChanged:) forControlEvents:UIControlEventEditingChanged];
- if([specifier isSecure]){
- textField.autocorrectionType = UITextAutocorrectionTypeNo;
- } else {
- textField.autocorrectionType = [specifier autoCorrectionType];
- }
- [cell setNeedsLayout];
- return cell;
- }
- else if ([[specifier type] isEqualToString:kIASKPSSliderSpecifier]) {
- if (!cell) {
- cell = (IASKPSSliderSpecifierViewCell*) [[[NSBundle mainBundle] loadNibNamed:@"IASKPSSliderSpecifierViewCell"
- owner:self
- options:nil] objectAtIndex:0];
- }
-
- if ([[specifier minimumValueImage] length] > 0) {
- ((IASKPSSliderSpecifierViewCell*)cell).minImage.image = [UIImage imageWithContentsOfFile:[_settingsReader pathForImageNamed:[specifier minimumValueImage]]];
- }
-
- if ([[specifier maximumValueImage] length] > 0) {
- ((IASKPSSliderSpecifierViewCell*)cell).maxImage.image = [UIImage imageWithContentsOfFile:[_settingsReader pathForImageNamed:[specifier minimumValueImage]]];
- }
-
- IASKSlider *slider = ((IASKPSSliderSpecifierViewCell*)cell).slider;
- slider.minimumValue = [specifier minimumValue];
- slider.maximumValue = [specifier maximumValue];
- slider.value = [self.settingsStore objectForKey:key] != nil ? [[self.settingsStore objectForKey:key] floatValue] : [[specifier defaultValue] floatValue];
- [slider addTarget:self action:@selector(sliderChangedValue:) forControlEvents:UIControlEventValueChanged];
- slider.key = key;
- [cell setNeedsLayout];
- return cell;
- }
- else if ([[specifier type] isEqualToString:kIASKPSChildPaneSpecifier]) {
- if (!cell) {
- cell = [[[IASKPSTitleValueSpecifierViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:[specifier type]] autorelease];
- [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
- cell.backgroundColor = [UIColor whiteColor];
- }
-
- [[cell textLabel] setText:[specifier title]];
- return cell;
- } else if ([[specifier type] isEqualToString:kIASKOpenURLSpecifier]) {
- if (!cell) {
- cell = [[[IASKPSTitleValueSpecifierViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:[specifier type]] autorelease];
- [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
- cell.backgroundColor = [UIColor whiteColor];
- }
-
- cell.textLabel.text = [specifier title];
- cell.detailTextLabel.text = [[specifier defaultValue] description];
- return cell;
- } else if ([[specifier type] isEqualToString:kIASKButtonSpecifier]) {
- if (!cell) {
- cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[specifier type]] autorelease];
- cell.backgroundColor = [UIColor whiteColor];
- }
- cell.textLabel.text = [specifier title];
- cell.textLabel.textAlignment = UITextAlignmentCenter;
- return cell;
- } else if ([[specifier type] isEqualToString:kIASKMailComposeSpecifier]) {
- if (!cell) {
- cell = [[[IASKPSTitleValueSpecifierViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:[specifier type]] autorelease];
- [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
- cell.backgroundColor = [UIColor whiteColor];
- }
-
- cell.textLabel.text = [specifier title];
- cell.detailTextLabel.text = [[specifier defaultValue] description];
- return cell;
- } else {
- if (!cell) {
- cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[specifier type]] autorelease];
- cell.backgroundColor = [UIColor whiteColor];
- }
- [[cell textLabel] setText:[specifier title]];
- return cell;
- }
-}
-
-- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- IASKSpecifier *specifier = [self.settingsReader specifierForIndexPath:indexPath];
-
- if ([[specifier type] isEqualToString:kIASKPSToggleSwitchSpecifier]) {
- return nil;
- } else {
- return indexPath;
- }
-}
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- IASKSpecifier *specifier = [self.settingsReader specifierForIndexPath:indexPath];
-
- if ([[specifier type] isEqualToString:kIASKPSToggleSwitchSpecifier]) {
- [tableView deselectRowAtIndexPath:indexPath animated:NO];
- }
- else if ([[specifier type] isEqualToString:kIASKPSMultiValueSpecifier]) {
- IASKSpecifierValuesViewController *targetViewController = [[self.viewList objectAtIndex:kIASKSpecifierValuesViewControllerIndex] objectForKey:@"viewController"];
-
- if (targetViewController == nil) {
- // the view controller has not been created yet, create it and set it to our viewList array
- // create a new dictionary with the new view controller
- NSMutableDictionary *newItemDict = [NSMutableDictionary dictionaryWithCapacity:3];
- [newItemDict addEntriesFromDictionary: [self.viewList objectAtIndex:kIASKSpecifierValuesViewControllerIndex]]; // copy the title and explain strings
-
- targetViewController = [[IASKSpecifierValuesViewController alloc] initWithNibName:@"IASKSpecifierValuesView" bundle:nil];
- // add the new view controller to the dictionary and then to the 'viewList' array
- [newItemDict setObject:targetViewController forKey:@"viewController"];
- [self.viewList replaceObjectAtIndex:kIASKSpecifierValuesViewControllerIndex withObject:newItemDict];
- [targetViewController release];
-
- // load the view controll back in to push it
- targetViewController = [[self.viewList objectAtIndex:kIASKSpecifierValuesViewControllerIndex] objectForKey:@"viewController"];
- }
- self.currentIndexPath = indexPath;
- [targetViewController setCurrentSpecifier:specifier];
- targetViewController.settingsReader = self.settingsReader;
- targetViewController.settingsStore = self.settingsStore;
- [[self navigationController] pushViewController:targetViewController animated:YES];
- }
- else if ([[specifier type] isEqualToString:kIASKPSSliderSpecifier]) {
- [tableView deselectRowAtIndexPath:indexPath animated:NO];
- }
- else if ([[specifier type] isEqualToString:kIASKPSTextFieldSpecifier]) {
- IASKPSTextFieldSpecifierViewCell *textFieldCell = (id)[tableView cellForRowAtIndexPath:indexPath];
- [textFieldCell.textField becomeFirstResponder];
- }
- else if ([[specifier type] isEqualToString:kIASKPSChildPaneSpecifier]) {
-
-
- Class vcClass = [specifier viewControllerClass];
- if (vcClass) {
- SEL initSelector = [specifier viewControllerSelector];
- if (!initSelector) {
- initSelector = @selector(init);
- }
- UIViewController * vc = [vcClass performSelector:@selector(alloc)];
- [vc performSelector:initSelector withObject:[specifier file] withObject:[specifier key]];
- if ([vc respondsToSelector:@selector(setDelegate:)]) {
- [vc performSelector:@selector(setDelegate:) withObject:self.delegate];
- }
- if ([vc respondsToSelector:@selector(setSettingsStore:)]) {
- [vc performSelector:@selector(setSettingsStore:) withObject:self.settingsStore];
- }
- self.navigationController.delegate = nil;
- [self.navigationController pushViewController:vc animated:YES];
- [vc performSelector:@selector(release)];
- return;
- }
-
- if (nil == [specifier file]) {
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- return;
- }
-
- IASKAppSettingsViewController *targetViewController = [[self.viewList objectAtIndex:kIASKSpecifierChildViewControllerIndex] objectForKey:@"viewController"];
-
- if (targetViewController == nil) {
- // the view controller has not been created yet, create it and set it to our viewList array
- // create a new dictionary with the new view controller
- NSMutableDictionary *newItemDict = [NSMutableDictionary dictionaryWithCapacity:3];
- [newItemDict addEntriesFromDictionary: [self.viewList objectAtIndex:kIASKSpecifierChildViewControllerIndex]]; // copy the title and explain strings
-
- targetViewController = [[[self class] alloc] initWithNibName:@"IASKAppSettingsView" bundle:nil];
- targetViewController.showDoneButton = NO;
- targetViewController.settingsStore = self.settingsStore;
- targetViewController.delegate = self.delegate;
-
- // add the new view controller to the dictionary and then to the 'viewList' array
- [newItemDict setObject:targetViewController forKey:@"viewController"];
- [self.viewList replaceObjectAtIndex:kIASKSpecifierChildViewControllerIndex withObject:newItemDict];
- [targetViewController release];
-
- // load the view controll back in to push it
- targetViewController = [[self.viewList objectAtIndex:kIASKSpecifierChildViewControllerIndex] objectForKey:@"viewController"];
- }
- self.currentIndexPath = indexPath;
- targetViewController.file = specifier.file;
- targetViewController.title = specifier.title;
- targetViewController.showCreditsFooter = NO;
- [[self navigationController] pushViewController:targetViewController animated:YES];
- } else if ([[specifier type] isEqualToString:kIASKOpenURLSpecifier]) {
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:specifier.file]];
- } else if ([[specifier type] isEqualToString:kIASKButtonSpecifier]) {
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- if ([self.delegate respondsToSelector:@selector(settingsViewController:buttonTappedForKey:)]) {
- [self.delegate settingsViewController:self buttonTappedForKey:[specifier key]];
- } else {
- // legacy code, provided for backward compatibility
- // the delegate mechanism above is much cleaner and doesn't leak
- Class buttonClass = [specifier buttonClass];
- SEL buttonAction = [specifier buttonAction];
- if ([buttonClass respondsToSelector:buttonAction]) {
- [buttonClass performSelector:buttonAction withObject:self withObject:[specifier key]];
- NSLog(@"InAppSettingsKit Warning: Using IASKButtonSpecifier without implementing the delegate method is deprecated");
- }
- }
- } else if ([[specifier type] isEqualToString:kIASKMailComposeSpecifier]) {
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- if ([MFMailComposeViewController canSendMail]) {
- MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init];
- mailViewController.navigationBar.barStyle = self.navigationController.navigationBar.barStyle;
- mailViewController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
-
- if ([specifier localizedObjectForKey:kIASKMailComposeSubject]) {
- [mailViewController setSubject:[specifier localizedObjectForKey:kIASKMailComposeSubject]];
- }
- if ([[specifier specifierDict] objectForKey:kIASKMailComposeToRecipents]) {
- [mailViewController setToRecipients:[[specifier specifierDict] objectForKey:kIASKMailComposeToRecipents]];
- }
- if ([[specifier specifierDict] objectForKey:kIASKMailComposeCcRecipents]) {
- [mailViewController setCcRecipients:[[specifier specifierDict] objectForKey:kIASKMailComposeCcRecipents]];
- }
- if ([[specifier specifierDict] objectForKey:kIASKMailComposeBccRecipents]) {
- [mailViewController setBccRecipients:[[specifier specifierDict] objectForKey:kIASKMailComposeBccRecipents]];
- }
- if ([specifier localizedObjectForKey:kIASKMailComposeBody]) {
- BOOL isHTML = NO;
- if ([[specifier specifierDict] objectForKey:kIASKMailComposeBodyIsHTML]) {
- isHTML = [[[specifier specifierDict] objectForKey:kIASKMailComposeBodyIsHTML] boolValue];
- }
-
- if ([self.delegate respondsToSelector:@selector(mailComposeBody)]) {
- [mailViewController setMessageBody:[self.delegate mailComposeBody] isHTML:isHTML];
- }
- else {
- [mailViewController setMessageBody:[specifier localizedObjectForKey:kIASKMailComposeBody] isHTML:isHTML];
- }
- }
-
- UIViewController *vc = nil;
-
- if ([self.delegate respondsToSelector:@selector(viewControllerForMailComposeView)]) {
- vc = [self.delegate viewControllerForMailComposeView];
- }
-
- if (vc == nil) {
- vc = self;
- }
-
- mailViewController.mailComposeDelegate = vc;
- [vc presentModalViewController:mailViewController animated:YES];
- [mailViewController release];
- } else {
- UIAlertView *alert = [[UIAlertView alloc]
- initWithTitle:NSLocalizedString(@"Mail not configured", @"InAppSettingsKit")
- message:NSLocalizedString(@"This device is not configured for sending Email. Please configure the Mail settings in the Settings app.", @"InAppSettingsKit")
- delegate: nil
- cancelButtonTitle:NSLocalizedString(@"OK", @"InAppSettingsKit")
- otherButtonTitles:nil];
- [alert show];
- [alert release];
- }
-
- } else {
- [tableView deselectRowAtIndexPath:indexPath animated:NO];
- }
-}
-
-
-#pragma mark -
-#pragma mark MFMailComposeViewControllerDelegate Function
-
--(void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error {
-
- // Forward the mail compose delegate
- if ([self.delegate respondsToSelector:@selector(mailComposeController: didFinishWithResult: error:)]) {
- [self.delegate mailComposeController:controller didFinishWithResult:result error:error];
- }
-
- // NOTE: No error handling is done here
- [self dismissModalViewControllerAnimated:YES];
-}
-
-#pragma mark -
-#pragma mark UITextFieldDelegate Functions
-
-- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
- self.currentFirstResponder = textField;
- return YES;
-}
-
-- (void)_textChanged:(id)sender {
- IASKTextField *text = (IASKTextField*)sender;
- [_settingsStore setObject:[text text] forKey:[text key]];
- [[NSNotificationCenter defaultCenter] postNotificationName:kIASKAppSettingChanged
- object:[text key]
- userInfo:[NSDictionary dictionaryWithObject:[text text]
- forKey:[text key]]];
-}
-
-- (BOOL)textFieldShouldReturn:(UITextField *)textField{
- [textField resignFirstResponder];
- self.currentFirstResponder = nil;
- return YES;
-}
-
-
-#pragma mark Notifications
-
-- (void)synchronizeSettings {
- [_settingsStore synchronize];
-}
-
-- (void)reload {
- // wait 0.5 sec until UI is available after applicationWillEnterForeground
- [self.tableView performSelector:@selector(reloadData) withObject:nil afterDelay:0.5];
-}
-
-#pragma mark CGRect Utility function
-CGRect IASKCGRectSwap(CGRect rect) {
- CGRect newRect;
- newRect.origin.x = rect.origin.y;
- newRect.origin.y = rect.origin.x;
- newRect.size.width = rect.size.height;
- newRect.size.height = rect.size.width;
- return newRect;
-}
-@end
diff --git a/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.h b/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.h
deleted file mode 100644
index 08b6ceb..0000000
--- a/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.h
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// IASKAppSettingsWebViewController.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-#import
-
-@interface IASKAppSettingsWebViewController : UIViewController {
- UIWebView *webView;
- NSURL *url;
-}
-
-- (id)initWithFile:(NSString*)htmlFileName key:(NSString*)key;
-
-@property (nonatomic, retain) IBOutlet UIWebView *webView;
-@property (nonatomic, retain) NSURL *url;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.m b/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.m
deleted file mode 100644
index 46429b3..0000000
--- a/Frameworks/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.m
+++ /dev/null
@@ -1,148 +0,0 @@
-//
-// IASKAppSettingsWebViewController.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKAppSettingsWebViewController.h"
-
-@implementation IASKAppSettingsWebViewController
-
-@synthesize url;
-@synthesize webView;
-
-- (id)initWithFile:(NSString*)urlString key:(NSString*)key {
- if (!(self = [super initWithNibName:nil bundle:nil])) {
- return nil;
- }
-
- self.url = [NSURL URLWithString:urlString];
- if (!self.url || ![self.url scheme]) {
- NSString *path = [[NSBundle mainBundle] pathForResource:[urlString stringByDeletingPathExtension] ofType:[urlString pathExtension]];
- if(path)
- self.url = [NSURL fileURLWithPath:path];
- else
- self.url = nil;
- }
- return self;
-}
-
-
-- (void)dealloc {
- [webView release], webView = nil;
- [url release], url = nil;
-
- [super dealloc];
-}
-
-- (void)viewWillAppear:(BOOL)animated {
- [webView loadRequest:[NSURLRequest requestWithURL:self.url]];
-}
-
-- (void)viewDidUnload {
- [super viewDidUnload];
- self.webView = nil;
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- return YES;
-}
-
-- (void)webViewDidFinishLoad:(UIWebView *)webView {
- self.navigationItem.title = [self.webView stringByEvaluatingJavaScriptFromString:@"document.title"];
-}
-
-- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
- NSURL *newURL = [request URL];
-
- // intercept mailto URL and send it to an in-app Mail compose view instead
- if ([[newURL scheme] isEqualToString:@"mailto"]) {
-
- NSArray *rawURLparts = [[newURL resourceSpecifier] componentsSeparatedByString:@"?"];
- if (rawURLparts.count > 2) {
- return NO; // invalid URL
- }
-
- MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init];
- mailViewController.mailComposeDelegate = self;
-
- NSMutableArray *toRecipients = [NSMutableArray array];
- NSString *defaultRecipient = [rawURLparts objectAtIndex:0];
- if (defaultRecipient.length) {
- [toRecipients addObject:defaultRecipient];
- }
-
- if (rawURLparts.count == 2) {
- NSString *queryString = [rawURLparts objectAtIndex:1];
-
- NSArray *params = [queryString componentsSeparatedByString:@"&"];
- for (NSString *param in params) {
- NSArray *keyValue = [param componentsSeparatedByString:@"="];
- if (keyValue.count != 2) {
- continue;
- }
- NSString *key = [[keyValue objectAtIndex:0] lowercaseString];
- NSString *value = [keyValue objectAtIndex:1];
-
- value = (NSString *)CFURLCreateStringByReplacingPercentEscapesUsingEncoding(kCFAllocatorDefault,
- (CFStringRef)value,
- CFSTR(""),
- kCFStringEncodingUTF8);
- [value autorelease];
-
- if ([key isEqualToString:@"subject"]) {
- [mailViewController setSubject:value];
- }
-
- if ([key isEqualToString:@"body"]) {
- [mailViewController setMessageBody:value isHTML:NO];
- }
-
- if ([key isEqualToString:@"to"]) {
- [toRecipients addObjectsFromArray:[value componentsSeparatedByString:@","]];
- }
-
- if ([key isEqualToString:@"cc"]) {
- NSArray *recipients = [value componentsSeparatedByString:@","];
- [mailViewController setCcRecipients:recipients];
- }
-
- if ([key isEqualToString:@"bcc"]) {
- NSArray *recipients = [value componentsSeparatedByString:@","];
- [mailViewController setBccRecipients:recipients];
- }
- }
- }
-
- [mailViewController setToRecipients:toRecipients];
-
- [self presentModalViewController:mailViewController animated:YES];
- [mailViewController release];
- return NO;
- }
-
- // open inline if host is the same, otherwise, pass to the system
- if (![newURL host] || [[newURL host] isEqualToString:[self.url host]]) {
- return YES;
- }
- [[UIApplication sharedApplication] openURL:newURL];
- return NO;
-}
-
-- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error {
- [self dismissModalViewControllerAnimated:YES];
-}
-
-
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Controllers/IASKSpecifierValuesViewController.h b/Frameworks/InAppSettingsKit/Controllers/IASKSpecifierValuesViewController.h
deleted file mode 100644
index 2df1db6..0000000
--- a/Frameworks/InAppSettingsKit/Controllers/IASKSpecifierValuesViewController.h
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// IASKSpecifierValuesViewController.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-#import "IASKSettingsStore.h"
-
-@class IASKSpecifier;
-@class IASKSettingsReader;
-
-@interface IASKSpecifierValuesViewController : UIViewController {
- UITableView *_tableView;
-
- IASKSpecifier *_currentSpecifier;
- NSIndexPath *_checkedItem;
- IASKSettingsReader *_settingsReader;
- id _settingsStore;
-}
-
-@property (nonatomic, retain) IBOutlet UITableView *tableView;
-@property (nonatomic, retain) NSIndexPath *checkedItem;
-@property (nonatomic, retain) IASKSpecifier *currentSpecifier;
-@property (nonatomic, retain) IASKSettingsReader *settingsReader;
-@property (nonatomic, retain) id settingsStore;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Controllers/IASKSpecifierValuesViewController.m b/Frameworks/InAppSettingsKit/Controllers/IASKSpecifierValuesViewController.m
deleted file mode 100644
index c56e9ad..0000000
--- a/Frameworks/InAppSettingsKit/Controllers/IASKSpecifierValuesViewController.m
+++ /dev/null
@@ -1,196 +0,0 @@
-//
-// IASKSpecifierValuesViewController.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKSpecifierValuesViewController.h"
-#import "IASKSpecifier.h"
-#import "IASKSettingsReader.h"
-#import "IASKSettingsStoreUserDefaults.h"
-
-#define kCellValue @"kCellValue"
-
-@interface IASKSpecifierValuesViewController()
-- (void)userDefaultsDidChange;
-@end
-
-@implementation IASKSpecifierValuesViewController
-
-@synthesize tableView=_tableView;
-@synthesize currentSpecifier=_currentSpecifier;
-@synthesize checkedItem=_checkedItem;
-@synthesize settingsReader = _settingsReader;
-@synthesize settingsStore = _settingsStore;
-
-- (void) updateCheckedItem {
- NSInteger index;
-
- // Find the currently checked item
- if([self.settingsStore objectForKey:[_currentSpecifier key]]) {
- index = [[_currentSpecifier multipleValues] indexOfObject:[self.settingsStore objectForKey:[_currentSpecifier key]]];
- } else {
- index = [[_currentSpecifier multipleValues] indexOfObject:[_currentSpecifier defaultValue]];
- }
- [self setCheckedItem:[NSIndexPath indexPathForRow:index inSection:0]];
-}
-
-- (id)settingsStore {
- if(_settingsStore == nil) {
- _settingsStore = [[IASKSettingsStoreUserDefaults alloc] init];
- }
- return _settingsStore;
-}
-
-- (void)viewWillAppear:(BOOL)animated {
- if (_currentSpecifier) {
- [self setTitle:[_currentSpecifier title]];
- [self updateCheckedItem];
- }
-
- if (_tableView) {
- [_tableView reloadData];
-
- // Make sure the currently checked item is visible
- [_tableView scrollToRowAtIndexPath:[self checkedItem] atScrollPosition:UITableViewScrollPositionMiddle animated:NO];
- }
- [super viewWillAppear:animated];
-}
-
-- (void)viewDidAppear:(BOOL)animated {
- [_tableView flashScrollIndicators];
- [super viewDidAppear:animated];
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(userDefaultsDidChange)
- name:NSUserDefaultsDidChangeNotification
- object:[NSUserDefaults standardUserDefaults]];
-}
-
-- (void)viewDidDisappear:(BOOL)animated {
- [[NSNotificationCenter defaultCenter] removeObserver:self name:NSUserDefaultsDidChangeNotification object:nil];
- [super viewDidDisappear:animated];
-}
-
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- return YES;
-}
-
-- (void)didReceiveMemoryWarning {
- // Releases the view if it doesn't have a superview.
- [super didReceiveMemoryWarning];
-
- // Release any cached data, images, etc that aren't in use.
-}
-
-- (void)viewDidUnload {
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
- self.tableView = nil;
-}
-
-
-- (void)dealloc {
- [_currentSpecifier release], _currentSpecifier = nil;
- [_checkedItem release], _checkedItem = nil;
- [_settingsReader release], _settingsReader = nil;
- [_settingsStore release], _settingsStore = nil;
- [_tableView release], _tableView = nil;
- [super dealloc];
-}
-
-
-#pragma mark -
-#pragma mark UITableView delegates
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return 1;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return [_currentSpecifier multipleValuesCount];
-}
-
-- (void)selectCell:(UITableViewCell *)cell {
- [cell setAccessoryType:UITableViewCellAccessoryCheckmark];
- [[cell textLabel] setTextColor:kIASKgrayBlueColor];
-}
-
-- (void)deselectCell:(UITableViewCell *)cell {
- [cell setAccessoryType:UITableViewCellAccessoryNone];
- [[cell textLabel] setTextColor:[UIColor darkTextColor]];
-}
-
-- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {
- return [_currentSpecifier footerText];
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellValue];
- NSArray *titles = [_currentSpecifier multipleTitles];
-
- if (!cell) {
- cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:kCellValue] autorelease];
- cell.backgroundColor = [UIColor whiteColor];
- }
-
- if ([indexPath isEqual:[self checkedItem]]) {
- [self selectCell:cell];
- } else {
- [self deselectCell:cell];
- }
-
- @try {
- [[cell textLabel] setText:[self.settingsReader titleForStringId:[titles objectAtIndex:indexPath.row]]];
- }
- @catch (NSException * e) {}
- return cell;
-}
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
-
- if (indexPath == [self checkedItem]) {
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- return;
- }
-
- NSArray *values = [_currentSpecifier multipleValues];
-
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- [self deselectCell:[tableView cellForRowAtIndexPath:[self checkedItem]]];
- [self selectCell:[tableView cellForRowAtIndexPath:indexPath]];
- [self setCheckedItem:indexPath];
-
- [self.settingsStore setObject:[values objectAtIndex:indexPath.row] forKey:[_currentSpecifier key]];
- [self.settingsStore synchronize];
- [[NSNotificationCenter defaultCenter] postNotificationName:kIASKAppSettingChanged
- object:[_currentSpecifier key]
- userInfo:[NSDictionary dictionaryWithObject:[values objectAtIndex:indexPath.row]
- forKey:[_currentSpecifier key]]];
-}
-
-#pragma mark Notifications
-
-- (void)userDefaultsDidChange {
- NSIndexPath *oldCheckedItem = self.checkedItem;
- if(_currentSpecifier) {
- [self updateCheckedItem];
- }
-
- // only reload the table if it had changed; prevents animation cancellation
- if (self.checkedItem != oldCheckedItem) {
- [_tableView reloadData];
- }
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSettingsReader.h b/Frameworks/InAppSettingsKit/Models/IASKSettingsReader.h
deleted file mode 100644
index 29eea4f..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSettingsReader.h
+++ /dev/null
@@ -1,143 +0,0 @@
-//
-// IASKSettingsReader.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-#define kIASKPreferenceSpecifiers @"PreferenceSpecifiers"
-#define kIASKType @"Type"
-#define kIASKTitle @"Title"
-#define kIASKFooterText @"FooterText"
-#define kIASKKey @"Key"
-#define kIASKFile @"File"
-#define kIASKDefaultValue @"DefaultValue"
-#define kIASKMinimumValue @"MinimumValue"
-#define kIASKMaximumValue @"MaximumValue"
-#define kIASKTrueValue @"TrueValue"
-#define kIASKFalseValue @"FalseValue"
-#define kIASKIsSecure @"IsSecure"
-#define KIASKKeyboardType @"KeyboardType"
-#define kIASKAutocapitalizationType @"AutocapitalizationType"
-#define kIASKAutoCorrectionType @"AutocorrectionType"
-#define kIASKValues @"Values"
-#define kIASKTitles @"Titles"
-#define kIASKViewControllerClass @"IASKViewControllerClass"
-#define kIASKViewControllerSelector @"IASKViewControllerSelector"
-#define kIASKButtonClass @"IASKButtonClass"
-#define kIASKButtonAction @"IASKButtonAction"
-#define kIASKMailComposeToRecipents @"IASKMailComposeToRecipents"
-#define kIASKMailComposeCcRecipents @"IASKMailComposeCcRecipents"
-#define kIASKMailComposeBccRecipents @"IASKMailComposeBccRecipents"
-#define kIASKMailComposeSubject @"IASKMailComposeSubject"
-#define kIASKMailComposeBody @"IASKMailComposeBody"
-#define kIASKMailComposeBodyIsHTML @"IASKMailComposeBodyIsHTML"
-#define kIASKKeyboardAlphabet @"Alphabet"
-#define kIASKKeyboardNumbersAndPunctuation @"NumbersAndPunctuation"
-#define kIASKKeyboardNumberPad @"NumberPad"
-#define kIASKKeyboardDecimalPad @"DecimalPad"
-
-#define KIASKKeyboardURL @"URL"
-#define kIASKKeyboardEmailAddress @"EmailAddress"
-#define kIASKAutoCapNone @"None"
-#define kIASKAutoCapSentences @"Sentences"
-#define kIASKAutoCapWords @"Words"
-#define kIASKAutoCapAllCharacters @"AllCharacters"
-#define kIASKAutoCorrDefault @"Default"
-#define kIASKAutoCorrNo @"No"
-#define kIASKAutoCorrYes @"Yes"
-#define kIASKMinimumValueImage @"MinimumValueImage"
-#define kIASKMaximumValueImage @"MaximumValueImage"
-
-#define kIASKPSGroupSpecifier @"PSGroupSpecifier"
-#define kIASKPSToggleSwitchSpecifier @"PSToggleSwitchSpecifier"
-#define kIASKPSMultiValueSpecifier @"PSMultiValueSpecifier"
-#define kIASKPSSliderSpecifier @"PSSliderSpecifier"
-#define kIASKPSTitleValueSpecifier @"PSTitleValueSpecifier"
-#define kIASKPSTextFieldSpecifier @"PSTextFieldSpecifier"
-#define kIASKPSChildPaneSpecifier @"PSChildPaneSpecifier"
-#define kIASKOpenURLSpecifier @"IASKOpenURLSpecifier"
-#define kIASKButtonSpecifier @"IASKButtonSpecifier"
-#define kIASKMailComposeSpecifier @"IASKMailComposeSpecifier"
-#define kIASKCustomViewSpecifier @"IASKCustomViewSpecifier"
-
-#define kIASKBundleFolder @"Settings.bundle"
-#define kIASKBundleFolderAlt @"InAppSettings.bundle"
-#define kIASKBundleFilename @"Root.plist"
-#define KIASKBundleLocaleFolderExtension @".lproj"
-
-#define kIASKAppSettingChanged @"kAppSettingChanged"
-
-#define kIASKSectionHeaderIndex 0
-
-#define kIASKSliderNoImagesPadding 11
-#define kIASKSliderImagesPadding 43
-
-
-#define kIASKTableWidth 320
-#define kIASKSpacing 5
-#define kIASKMinLabelWidth 97
-#define kIASKMinValueWidth 35
-#define kIASKPaddingLeft 9
-#define kIASKPaddingRight 10
-#define kIASKHorizontalPaddingGroupTitles 19
-#define kIASKVerticalPaddingGroupTitles 15
-
-#define kIASKLabelFontSize 17
-#define kIASKgrayBlueColor [UIColor colorWithRed:0.318 green:0.4 blue:0.569 alpha:1.0]
-
-#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_0
-#define kCFCoreFoundationVersionNumber_iPhoneOS_4_0 550.32
-#endif
-
-#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_1
-#define kCFCoreFoundationVersionNumber_iPhoneOS_4_1 550.38
-#endif
-
-
-#define IASK_IF_IOS4_OR_GREATER(...) \
-if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iPhoneOS_4_0) \
-{ \
-__VA_ARGS__ \
-}
-
-@class IASKSpecifier;
-
-@interface IASKSettingsReader : NSObject {
- NSString *_path;
- NSString *_localizationTable;
- NSString *_bundlePath;
- NSDictionary *_settingsBundle;
- NSArray *_dataSource;
- NSBundle *_bundle;
-}
-
-- (id)initWithFile:(NSString*)file;
-- (NSInteger)numberOfSections;
-- (NSInteger)numberOfRowsForSection:(NSInteger)section;
-- (IASKSpecifier*)specifierForIndexPath:(NSIndexPath*)indexPath;
-- (IASKSpecifier*)specifierForKey:(NSString*)key;
-- (NSString*)titleForSection:(NSInteger)section;
-- (NSString*)keyForSection:(NSInteger)section;
-- (NSString*)footerTextForSection:(NSInteger)section;
-- (NSString*)titleForStringId:(NSString*)stringId;
-- (NSString*)pathForImageNamed:(NSString*)image;
-
-@property (nonatomic, retain) NSString *path;
-@property (nonatomic, retain) NSString *localizationTable;
-@property (nonatomic, retain) NSString *bundlePath;
-@property (nonatomic, retain) NSDictionary *settingsBundle;
-@property (nonatomic, retain) NSArray *dataSource;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSettingsReader.m b/Frameworks/InAppSettingsKit/Models/IASKSettingsReader.m
deleted file mode 100644
index 3d1e5f9..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSettingsReader.m
+++ /dev/null
@@ -1,256 +0,0 @@
-//
-// IASKSettingsReader.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKSettingsReader.h"
-#import "IASKSpecifier.h"
-
-@interface IASKSettingsReader (private)
-- (void)_reinterpretBundle:(NSDictionary*)settingsBundle;
-- (BOOL)_sectionHasHeading:(NSInteger)section;
-- (NSString *)platformSuffix;
-- (NSString *)locateSettingsFile:(NSString *)file;
-
-@end
-
-@implementation IASKSettingsReader
-
-@synthesize path=_path,
-localizationTable=_localizationTable,
-bundlePath=_bundlePath,
-settingsBundle=_settingsBundle,
-dataSource=_dataSource;
-
-- (id)init {
- return [self initWithFile:@"Root"];
-}
-
-- (id)initWithFile:(NSString*)file {
- if ((self=[super init])) {
-
-
- self.path = [self locateSettingsFile: file];
- [self setSettingsBundle:[NSDictionary dictionaryWithContentsOfFile:self.path]];
- self.bundlePath = [self.path stringByDeletingLastPathComponent];
- _bundle = [[NSBundle bundleWithPath:[self bundlePath]] retain];
-
- // Look for localization file
- self.localizationTable = [self.settingsBundle objectForKey:@"StringsTable"];
- if (!self.localizationTable)
- {
- // Look for localization file using filename
- self.localizationTable = [[[[self.path stringByDeletingPathExtension] // removes '.plist'
- stringByDeletingPathExtension] // removes potential '.inApp'
- lastPathComponent] // strip absolute path
- stringByReplacingOccurrencesOfString:[self platformSuffix] withString:@""]; // removes potential '~device' (~ipad, ~iphone)
- if([_bundle pathForResource:self.localizationTable ofType:@"strings"] == nil){
- // Could not find the specified localization: use default
- self.localizationTable = @"Root";
- }
- }
-
- if (_settingsBundle) {
- [self _reinterpretBundle:_settingsBundle];
- }
- }
- return self;
-}
-
-- (void)dealloc {
- [_path release], _path = nil;
- [_localizationTable release], _localizationTable = nil;
- [_bundlePath release], _bundlePath = nil;
- [_settingsBundle release], _settingsBundle = nil;
- [_dataSource release], _dataSource = nil;
- [_bundle release], _bundle = nil;
-
- [super dealloc];
-}
-
-- (void)_reinterpretBundle:(NSDictionary*)settingsBundle {
- NSArray *preferenceSpecifiers = [settingsBundle objectForKey:kIASKPreferenceSpecifiers];
- NSInteger sectionCount = -1;
- NSMutableArray *dataSource = [[[NSMutableArray alloc] init] autorelease];
-
- for (NSDictionary *specifier in preferenceSpecifiers) {
- if ([(NSString*)[specifier objectForKey:kIASKType] isEqualToString:kIASKPSGroupSpecifier]) {
- NSMutableArray *newArray = [[NSMutableArray alloc] init];
-
- [newArray addObject:specifier];
- [dataSource addObject:newArray];
- [newArray release];
- sectionCount++;
- }
- else {
- if (sectionCount == -1) {
- NSMutableArray *newArray = [[NSMutableArray alloc] init];
- [dataSource addObject:newArray];
- [newArray release];
- sectionCount++;
- }
-
- IASKSpecifier *newSpecifier = [[IASKSpecifier alloc] initWithSpecifier:specifier];
- [(NSMutableArray*)[dataSource objectAtIndex:sectionCount] addObject:newSpecifier];
- [newSpecifier release];
- }
- }
- [self setDataSource:dataSource];
-}
-
-- (BOOL)_sectionHasHeading:(NSInteger)section {
- return [[[[self dataSource] objectAtIndex:section] objectAtIndex:0] isKindOfClass:[NSDictionary class]];
-}
-
-- (NSInteger)numberOfSections {
- return [[self dataSource] count];
-}
-
-- (NSInteger)numberOfRowsForSection:(NSInteger)section {
- int headingCorrection = [self _sectionHasHeading:section] ? 1 : 0;
- return [(NSArray*)[[self dataSource] objectAtIndex:section] count] - headingCorrection;
-}
-
-- (IASKSpecifier*)specifierForIndexPath:(NSIndexPath*)indexPath {
- int headingCorrection = [self _sectionHasHeading:indexPath.section] ? 1 : 0;
-
- IASKSpecifier *specifier = [[[self dataSource] objectAtIndex:indexPath.section] objectAtIndex:(indexPath.row+headingCorrection)];
- specifier.settingsReader = self;
- return specifier;
-}
-
-- (IASKSpecifier*)specifierForKey:(NSString*)key {
- for (NSArray *specifiers in _dataSource) {
- for (id sp in specifiers) {
- if ([sp isKindOfClass:[IASKSpecifier class]]) {
- if ([[sp key] isEqualToString:key]) {
- return sp;
- }
- }
- }
- }
- return nil;
-}
-
-- (NSString*)titleForSection:(NSInteger)section {
- if ([self _sectionHasHeading:section]) {
- NSDictionary *dict = [[[self dataSource] objectAtIndex:section] objectAtIndex:kIASKSectionHeaderIndex];
- return [_bundle localizedStringForKey:[dict objectForKey:kIASKTitle] value:[dict objectForKey:kIASKTitle] table:self.localizationTable];
- }
- return nil;
-}
-
-- (NSString*)keyForSection:(NSInteger)section {
- if ([self _sectionHasHeading:section]) {
- return [[[[self dataSource] objectAtIndex:section] objectAtIndex:kIASKSectionHeaderIndex] objectForKey:kIASKKey];
- }
- return nil;
-}
-
-- (NSString*)footerTextForSection:(NSInteger)section {
- if ([self _sectionHasHeading:section]) {
- NSDictionary *dict = [[[self dataSource] objectAtIndex:section] objectAtIndex:kIASKSectionHeaderIndex];
- return [_bundle localizedStringForKey:[dict objectForKey:kIASKFooterText] value:[dict objectForKey:kIASKFooterText] table:self.localizationTable];
- }
- return nil;
-}
-
-- (NSString*)titleForStringId:(NSString*)stringId {
- return [_bundle localizedStringForKey:stringId value:stringId table:self.localizationTable];
-}
-
-- (NSString*)pathForImageNamed:(NSString*)image {
- return [[self bundlePath] stringByAppendingPathComponent:image];
-}
-
-- (NSString *)platformSuffix {
- BOOL isPad = NO;
-#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 30200)
- isPad = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad;
-#endif
- return isPad ? @"~ipad" : @"~iphone";
-}
-
-- (NSString *)file:(NSString *)file
- withBundle:(NSString *)bundle
- suffix:(NSString *)suffix
- extension:(NSString *)extension {
-
- NSString *appBundle = [[NSBundle mainBundle] bundlePath];
- bundle = [appBundle stringByAppendingPathComponent:bundle];
- file = [file stringByAppendingFormat:@"%@%@", suffix, extension];
- return [bundle stringByAppendingPathComponent:file];
-
-}
-
-- (NSString *)locateSettingsFile: (NSString *)file {
-
- // The file is searched in the following order:
- //
- // InAppSettings.bundle/FILE~DEVICE.inApp.plist
- // InAppSettings.bundle/FILE.inApp.plist
- // InAppSettings.bundle/FILE~DEVICE.plist
- // InAppSettings.bundle/FILE.plist
- // Settings.bundle/FILE~DEVICE.inApp.plist
- // Settings.bundle/FILE.inApp.plist
- // Settings.bundle/FILE~DEVICE.plist
- // Settings.bundle/FILE.plist
- //
- // where DEVICE is either "iphone" or "ipad" depending on the current
- // interface idiom.
- //
- // Settings.app uses the ~DEVICE suffixes since iOS 4.0. There are some
- // differences from this implementation:
- // - For an iPhone-only app running on iPad, Settings.app will not use the
- // ~iphone suffix. There is no point in using these suffixes outside
- // of universal apps anyway.
- // - This implementation uses the device suffixes on iOS 3.x as well.
- // - also check current locale (short only)
-
- NSArray *bundles =
- [NSArray arrayWithObjects:kIASKBundleFolderAlt, kIASKBundleFolder, nil];
-
- NSArray *extensions =
- [NSArray arrayWithObjects:@".inApp.plist", @".plist", nil];
-
- NSArray *suffixes =
- [NSArray arrayWithObjects:[self platformSuffix], @"", nil];
-
- NSArray *languages =
- [NSArray arrayWithObjects:[[[NSLocale preferredLanguages] objectAtIndex:0] stringByAppendingString:KIASKBundleLocaleFolderExtension], @"", nil];
-
- NSString *path = nil;
- NSFileManager *fileManager = [NSFileManager defaultManager];
-
- for (NSString *bundle in bundles) {
- for (NSString *extension in extensions) {
- for (NSString *suffix in suffixes) {
- for (NSString *language in languages) {
- path = [self file:file
- withBundle:[bundle stringByAppendingPathComponent:language]
- suffix:suffix
- extension:extension];
- if ([fileManager fileExistsAtPath:path]) {
- goto exitFromNestedLoop;
- }
- }
- }
- }
- }
-
-exitFromNestedLoop:
- return path;
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSettingsStore.h b/Frameworks/InAppSettingsKit/Models/IASKSettingsStore.h
deleted file mode 100644
index c1b53ba..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSettingsStore.h
+++ /dev/null
@@ -1,39 +0,0 @@
-//
-// IASKSettingsStore.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-@protocol IASKSettingsStore
-@required
-- (void)setBool:(BOOL)value forKey:(NSString*)key;
-- (void)setFloat:(float)value forKey:(NSString*)key;
-- (void)setDouble:(double)value forKey:(NSString*)key;
-- (void)setInteger:(int)value forKey:(NSString*)key;
-- (void)setObject:(id)value forKey:(NSString*)key;
-- (BOOL)boolForKey:(NSString*)key;
-- (float)floatForKey:(NSString*)key;
-- (double)doubleForKey:(NSString*)key;
-- (int)integerForKey:(NSString*)key;
-- (id)objectForKey:(NSString*)key;
-- (BOOL)synchronize; // Write settings to a permanant storage. Returns YES on success, NO otherwise
-@end
-
-
-@interface IASKAbstractSettingsStore : NSObject {
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSettingsStore.m b/Frameworks/InAppSettingsKit/Models/IASKSettingsStore.m
deleted file mode 100644
index 8efbe7d..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSettingsStore.m
+++ /dev/null
@@ -1,68 +0,0 @@
-//
-// IASKSettingsStore.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKSettingsStore.h"
-
-@implementation IASKAbstractSettingsStore
-
-- (void)setObject:(id)value forKey:(NSString*)key {
- [NSException raise:@"Unimplemented"
- format:@"setObject:forKey: must be implemented in subclasses of IASKAbstractSettingsStore"];
-}
-
-- (id)objectForKey:(NSString*)key {
- [NSException raise:@"Unimplemented"
- format:@"objectForKey: must be implemented in subclasses of IASKAbstractSettingsStore"];
- return nil;
-}
-
-- (void)setBool:(BOOL)value forKey:(NSString*)key {
- [self setObject:[NSNumber numberWithBool:value] forKey:key];
-}
-
-- (void)setFloat:(float)value forKey:(NSString*)key {
- [self setObject:[NSNumber numberWithFloat:value] forKey:key];
-}
-
-- (void)setInteger:(int)value forKey:(NSString*)key {
- [self setObject:[NSNumber numberWithInt:value] forKey:key];
-}
-
-- (void)setDouble:(double)value forKey:(NSString*)key {
- [self setObject:[NSNumber numberWithDouble:value] forKey:key];
-}
-
-- (BOOL)boolForKey:(NSString*)key {
- return [[self objectForKey:key] boolValue];
-}
-
-- (float)floatForKey:(NSString*)key {
- return [[self objectForKey:key] floatValue];
-}
-- (int)integerForKey:(NSString*)key {
- return [[self objectForKey:key] intValue];
-}
-
-- (double)doubleForKey:(NSString*)key {
- return [[self objectForKey:key] doubleValue];
-}
-
-- (BOOL)synchronize {
- return NO;
-}
-
-@end
\ No newline at end of file
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreFile.h b/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreFile.h
deleted file mode 100644
index 6d4fe29..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreFile.h
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-// IASKSettingsStoreFile.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-#import "IASKSettingsStore.h"
-
-@interface IASKSettingsStoreFile : IASKAbstractSettingsStore {
- NSString * _filePath;
- NSMutableDictionary * _dict;
-}
-
-- (id)initWithPath:(NSString*)path;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreFile.m b/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreFile.m
deleted file mode 100644
index 104642d..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreFile.m
+++ /dev/null
@@ -1,54 +0,0 @@
-//
-// IASKSettingsStoreFile.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKSettingsStoreFile.h"
-
-
-@implementation IASKSettingsStoreFile
-
-- (id)initWithPath:(NSString*)path {
- if((self = [super init])) {
- _filePath = [path retain];
- _dict = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
- if(_dict == nil) {
- _dict = [[NSMutableDictionary alloc] init];
- }
- }
- return self;
-}
-
-- (void)dealloc {
- [_dict release], _dict = nil;
- [_filePath release], _filePath = nil;
-
- [super dealloc];
-}
-
-
-- (void)setObject:(id)value forKey:(NSString *)key {
- [_dict setObject:value forKey:key];
-}
-
-- (id)objectForKey:(NSString *)key {
- return [_dict objectForKey:key];
-}
-
-- (BOOL)synchronize {
- return [_dict writeToFile:_filePath atomically:YES];
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreUserDefaults.h b/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreUserDefaults.h
deleted file mode 100644
index 3731f5e..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreUserDefaults.h
+++ /dev/null
@@ -1,25 +0,0 @@
-//
-// IASKSettingsStoreUserDefaults.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-#import "IASKSettingsStore.h"
-
-@interface IASKSettingsStoreUserDefaults : IASKAbstractSettingsStore {
-
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreUserDefaults.m b/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreUserDefaults.m
deleted file mode 100644
index fd24bf0..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSettingsStoreUserDefaults.m
+++ /dev/null
@@ -1,67 +0,0 @@
-//
-// IASKSettingsStoreUserDefaults.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// Marc-Etienne M.Léveillé, Edovia Inc., http://www.edovia.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKSettingsStoreUserDefaults.h"
-
-
-@implementation IASKSettingsStoreUserDefaults
-
-- (void)setBool:(BOOL)value forKey:(NSString*)key {
- [[NSUserDefaults standardUserDefaults] setBool:value forKey:key];
-}
-
-- (void)setFloat:(float)value forKey:(NSString*)key {
- [[NSUserDefaults standardUserDefaults] setFloat:value forKey:key];
-}
-
-- (void)setDouble:(double)value forKey:(NSString*)key {
- [[NSUserDefaults standardUserDefaults] setDouble:value forKey:key];
-}
-
-- (void)setInteger:(int)value forKey:(NSString*)key {
- [[NSUserDefaults standardUserDefaults] setInteger:value forKey:key];
-}
-
-- (void)setObject:(id)value forKey:(NSString*)key {
- [[NSUserDefaults standardUserDefaults] setObject:value forKey:key];
-}
-
-- (BOOL)boolForKey:(NSString*)key {
- return [[NSUserDefaults standardUserDefaults] boolForKey:key];
-}
-
-- (float)floatForKey:(NSString*)key {
- return [[NSUserDefaults standardUserDefaults] floatForKey:key];
-}
-
-- (double)doubleForKey:(NSString*)key {
- return [[NSUserDefaults standardUserDefaults] doubleForKey:key];
-}
-
-- (int)integerForKey:(NSString*)key {
- return [[NSUserDefaults standardUserDefaults] integerForKey:key];
-}
-
-- (id)objectForKey:(NSString*)key {
- return [[NSUserDefaults standardUserDefaults] objectForKey:key];
-}
-
-- (BOOL)synchronize {
- return [[NSUserDefaults standardUserDefaults] synchronize];
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSpecifier.h b/Frameworks/InAppSettingsKit/Models/IASKSpecifier.h
deleted file mode 100644
index 1e47d1e..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSpecifier.h
+++ /dev/null
@@ -1,59 +0,0 @@
-//
-// IASKSpecifier.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-#import
-
-@class IASKSettingsReader;
-
-@interface IASKSpecifier : NSObject {
- NSDictionary *_specifierDict;
- NSDictionary *_multipleValuesDict;
- IASKSettingsReader *_settingsReader;
-}
-@property (nonatomic, retain) NSDictionary *specifierDict;
-@property (nonatomic, assign) IASKSettingsReader *settingsReader;
-
-- (id)initWithSpecifier:(NSDictionary*)specifier;
-- (NSString*)localizedObjectForKey:(NSString*)key;
-- (NSString*)title;
-- (NSString*)key;
-- (NSString*)type;
-- (NSString*)titleForCurrentValue:(id)currentValue;
-- (NSInteger)multipleValuesCount;
-- (NSArray*)multipleValues;
-- (NSArray*)multipleTitles;
-- (NSString*)file;
-- (id)defaultValue;
-- (id)defaultStringValue;
-- (BOOL)defaultBoolValue;
-- (id)trueValue;
-- (id)falseValue;
-- (float)minimumValue;
-- (float)maximumValue;
-- (NSString*)minimumValueImage;
-- (NSString*)maximumValueImage;
-- (BOOL)isSecure;
-- (UIKeyboardType)keyboardType;
-- (UITextAutocapitalizationType)autocapitalizationType;
-- (UITextAutocorrectionType)autoCorrectionType;
-- (NSString*)footerText;
-- (Class)viewControllerClass;
-- (SEL)viewControllerSelector;
--(Class)buttonClass;
--(SEL)buttonAction;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Models/IASKSpecifier.m b/Frameworks/InAppSettingsKit/Models/IASKSpecifier.m
deleted file mode 100644
index ebb38ac..0000000
--- a/Frameworks/InAppSettingsKit/Models/IASKSpecifier.m
+++ /dev/null
@@ -1,240 +0,0 @@
-//
-// IASKSpecifier.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKSpecifier.h"
-#import "IASKSettingsReader.h"
-
-@interface IASKSpecifier ()
-@property (nonatomic, retain) NSDictionary *multipleValuesDict;
-- (void)_reinterpretValues:(NSDictionary*)specifierDict;
-@end
-
-@implementation IASKSpecifier
-
-@synthesize specifierDict=_specifierDict;
-@synthesize multipleValuesDict=_multipleValuesDict;
-@synthesize settingsReader = _settingsReader;
-
-- (id)initWithSpecifier:(NSDictionary*)specifier {
- if ((self = [super init])) {
- [self setSpecifierDict:specifier];
-
- if ([[self type] isEqualToString:kIASKPSMultiValueSpecifier] ||
- [[self type] isEqualToString:kIASKPSTitleValueSpecifier]) {
- [self _reinterpretValues:[self specifierDict]];
- }
- }
- return self;
-}
-
-- (void)dealloc {
- [_specifierDict release], _specifierDict = nil;
- [_multipleValuesDict release], _multipleValuesDict = nil;
-
- _settingsReader = nil;
-
- [super dealloc];
-}
-
-- (void)_reinterpretValues:(NSDictionary*)specifierDict {
- NSArray *values = [_specifierDict objectForKey:kIASKValues];
- NSArray *titles = [_specifierDict objectForKey:kIASKTitles];
-
- NSMutableDictionary *multipleValuesDict = [[[NSMutableDictionary alloc] init] autorelease];
-
- if (values) {
- [multipleValuesDict setObject:values forKey:kIASKValues];
- }
-
- if (titles) {
- [multipleValuesDict setObject:titles forKey:kIASKTitles];
- }
-
- [self setMultipleValuesDict:multipleValuesDict];
-}
-- (NSString*)localizedObjectForKey:(NSString*)key {
- return [self.settingsReader titleForStringId:[_specifierDict objectForKey:key]];
-}
-
-- (NSString*)title {
- return [self localizedObjectForKey:kIASKTitle];
-}
-
-- (NSString*)footerText {
- return [self localizedObjectForKey:kIASKFooterText];
-}
-
--(Class) viewControllerClass {
- return NSClassFromString([_specifierDict objectForKey:kIASKViewControllerClass]);
-}
-
--(SEL) viewControllerSelector {
- return NSSelectorFromString([_specifierDict objectForKey:kIASKViewControllerSelector]);
-}
-
--(Class)buttonClass {
- return NSClassFromString([_specifierDict objectForKey:kIASKButtonClass]);
-}
-
--(SEL)buttonAction {
- return NSSelectorFromString([_specifierDict objectForKey:kIASKButtonAction]);
-}
-
-- (NSString*)key {
- return [_specifierDict objectForKey:kIASKKey];
-}
-
-- (NSString*)type {
- return [_specifierDict objectForKey:kIASKType];
-}
-
-- (NSString*)titleForCurrentValue:(id)currentValue {
- NSArray *values = [self multipleValues];
- NSArray *titles = [self multipleTitles];
- if (values.count != titles.count) {
- return nil;
- }
- NSInteger keyIndex = [values indexOfObject:currentValue];
- if (keyIndex == NSNotFound) {
- return nil;
- }
- @try {
- return [self.settingsReader titleForStringId:[titles objectAtIndex:keyIndex]];
- }
- @catch (NSException * e) {}
- return nil;
-}
-
-- (NSInteger)multipleValuesCount {
- return [[_multipleValuesDict objectForKey:kIASKValues] count];
-}
-
-- (NSArray*)multipleValues {
- return [_multipleValuesDict objectForKey:kIASKValues];
-}
-
-- (NSArray*)multipleTitles {
- return [_multipleValuesDict objectForKey:kIASKTitles];
-}
-
-- (NSString*)file {
- return [_specifierDict objectForKey:kIASKFile];
-}
-
-- (id)defaultValue {
- return [_specifierDict objectForKey:kIASKDefaultValue];
-}
-
-- (id)defaultStringValue {
- return [[_specifierDict objectForKey:kIASKDefaultValue] description];
-}
-
-- (BOOL)defaultBoolValue {
- id defaultValue = [self defaultValue];
- if ([defaultValue isEqual:[self trueValue]]) {
- return YES;
- }
- if ([defaultValue isEqual:[self falseValue]]) {
- return NO;
- }
- return [defaultValue boolValue];
-}
-
-- (id)trueValue {
- return [_specifierDict objectForKey:kIASKTrueValue];
-}
-
-- (id)falseValue {
- return [_specifierDict objectForKey:kIASKFalseValue];
-}
-
-- (float)minimumValue {
- return [[_specifierDict objectForKey:kIASKMinimumValue] floatValue];
-}
-
-- (float)maximumValue {
- return [[_specifierDict objectForKey:kIASKMaximumValue] floatValue];
-}
-
-- (NSString*)minimumValueImage {
- return [_specifierDict objectForKey:kIASKMinimumValueImage];
-}
-
-- (NSString*)maximumValueImage {
- return [_specifierDict objectForKey:kIASKMaximumValueImage];
-}
-
-- (BOOL)isSecure {
- return [[_specifierDict objectForKey:kIASKIsSecure] boolValue];
-}
-
-- (UIKeyboardType)keyboardType {
- if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:kIASKKeyboardAlphabet]) {
- return UIKeyboardTypeDefault;
- }
- else if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:kIASKKeyboardNumbersAndPunctuation]) {
- return UIKeyboardTypeNumbersAndPunctuation;
- }
- else if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:kIASKKeyboardNumberPad]) {
- return UIKeyboardTypeNumberPad;
- }
- else if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:kIASKKeyboardDecimalPad]) {
- if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iPhoneOS_4_1) {
- return UIKeyboardTypeDecimalPad;
- }
- else {
- return UIKeyboardTypeNumbersAndPunctuation;
- }
- }
- else if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:KIASKKeyboardURL]) {
- return UIKeyboardTypeURL;
- }
- else if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:kIASKKeyboardEmailAddress]) {
- return UIKeyboardTypeEmailAddress;
- }
- return UIKeyboardTypeDefault;
-}
-
-- (UITextAutocapitalizationType)autocapitalizationType {
- if ([[_specifierDict objectForKey:kIASKAutocapitalizationType] isEqualToString:kIASKAutoCapNone]) {
- return UITextAutocapitalizationTypeNone;
- }
- else if ([[_specifierDict objectForKey:kIASKAutocapitalizationType] isEqualToString:kIASKAutoCapSentences]) {
- return UITextAutocapitalizationTypeSentences;
- }
- else if ([[_specifierDict objectForKey:kIASKAutocapitalizationType] isEqualToString:kIASKAutoCapWords]) {
- return UITextAutocapitalizationTypeWords;
- }
- else if ([[_specifierDict objectForKey:kIASKAutocapitalizationType] isEqualToString:kIASKAutoCapAllCharacters]) {
- return UITextAutocapitalizationTypeAllCharacters;
- }
- return UITextAutocapitalizationTypeNone;
-}
-
-- (UITextAutocorrectionType)autoCorrectionType {
- if ([[_specifierDict objectForKey:kIASKAutoCorrectionType] isEqualToString:kIASKAutoCorrDefault]) {
- return UITextAutocorrectionTypeDefault;
- }
- else if ([[_specifierDict objectForKey:kIASKAutoCorrectionType] isEqualToString:kIASKAutoCorrNo]) {
- return UITextAutocorrectionTypeNo;
- }
- else if ([[_specifierDict objectForKey:kIASKAutoCorrectionType] isEqualToString:kIASKAutoCorrYes]) {
- return UITextAutocorrectionTypeYes;
- }
- return UITextAutocorrectionTypeDefault;
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.h b/Frameworks/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.h
deleted file mode 100644
index 7cc943b..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.h
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// IASKPSSliderSpecifierViewCell.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-@class IASKSlider;
-
-@interface IASKPSSliderSpecifierViewCell : UITableViewCell {
- IASKSlider *_slider;
- UIImageView *_minImage;
- UIImageView *_maxImage;
-}
-
-@property (nonatomic, assign) IBOutlet IASKSlider *slider;
-@property (nonatomic, assign) IBOutlet UIImageView *minImage;
-@property (nonatomic, assign) IBOutlet UIImageView *maxImage;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.m b/Frameworks/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.m
deleted file mode 100644
index cbdca02..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKPSSliderSpecifierViewCell.m
+++ /dev/null
@@ -1,72 +0,0 @@
-//
-// IASKPSSliderSpecifierViewCell.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009-2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKPSSliderSpecifierViewCell.h"
-#import "IASKSlider.h"
-#import "IASKSettingsReader.h"
-
-@implementation IASKPSSliderSpecifierViewCell
-
-@synthesize slider=_slider,
- minImage=_minImage,
- maxImage=_maxImage;
-
-- (void)layoutSubviews {
- [super layoutSubviews];
- CGRect sliderBounds = _slider.bounds;
- CGPoint sliderCenter = _slider.center;
- const double superViewWidth = _slider.superview.frame.size.width;
-
- sliderCenter.x = superViewWidth / 2;
- sliderBounds.size.width = superViewWidth - kIASKSliderNoImagesPadding * 2;
- _minImage.hidden = YES;
- _maxImage.hidden = YES;
-
- // Check if there are min and max images. If so, change the layout accordingly.
- if (_minImage.image && _maxImage.image) {
- // Both images
- _minImage.hidden = NO;
- _maxImage.hidden = NO;
- sliderBounds.size.width = superViewWidth - kIASKSliderImagesPadding * 2;
- }
- else if (_minImage.image) {
- // Min image
- _minImage.hidden = NO;
- sliderCenter.x += (kIASKSliderImagesPadding - kIASKSliderNoImagesPadding) / 2;
- sliderBounds.size.width = superViewWidth - kIASKSliderNoImagesPadding - kIASKSliderImagesPadding;
- }
- else if (_maxImage.image) {
- // Max image
- _maxImage.hidden = NO;
- sliderCenter.x -= (kIASKSliderImagesPadding - kIASKSliderNoImagesPadding) / 2;
- sliderBounds.size.width = superViewWidth - kIASKSliderNoImagesPadding - kIASKSliderImagesPadding;
- }
-
- _slider.bounds = sliderBounds;
- _slider.center = sliderCenter;
-}
-
-- (void)dealloc {
- _minImage.image = nil;
- _maxImage.image = nil;
- [super dealloc];
-}
-
-- (void)prepareForReuse {
- _minImage.image = nil;
- _maxImage.image = nil;
-}
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.h b/Frameworks/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.h
deleted file mode 100644
index b4d70c8..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.h
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// IASKPSTextFieldSpecifierViewCell.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-@class IASKTextField;
-
-@interface IASKPSTextFieldSpecifierViewCell : UITableViewCell {
- UILabel *_label;
- IASKTextField *_textField;
-}
-
-@property (nonatomic, assign) IBOutlet UILabel *label;
-@property (nonatomic, assign) IBOutlet IASKTextField *textField;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.m b/Frameworks/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.m
deleted file mode 100644
index cf7486e..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKPSTextFieldSpecifierViewCell.m
+++ /dev/null
@@ -1,52 +0,0 @@
-//
-// IASKPSTextFieldSpecifierViewCell.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009-2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKPSTextFieldSpecifierViewCell.h"
-#import "IASKTextField.h"
-#import "IASKSettingsReader.h"
-
-@implementation IASKPSTextFieldSpecifierViewCell
-
-@synthesize label=_label,
- textField=_textField;
-
-- (void)layoutSubviews {
- [super layoutSubviews];
- CGSize labelSize = [_label sizeThatFits:CGSizeZero];
- labelSize.width = MIN(labelSize.width, _label.bounds.size.width);
-
- CGRect textFieldFrame = _textField.frame;
- textFieldFrame.origin.x = _label.frame.origin.x + MAX(kIASKMinLabelWidth, labelSize.width) + kIASKSpacing;
- if (!_label.text.length)
- textFieldFrame.origin.x = _label.frame.origin.x;
- textFieldFrame.size.width = _textField.superview.frame.size.width - textFieldFrame.origin.x - _label.frame.origin.x;
- _textField.frame = textFieldFrame;
-}
-
-- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
-
- [super setSelected:selected animated:animated];
-
- // Configure the view for the selected state
-}
-
-
-- (void)dealloc {
- [super dealloc];
-}
-
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.h b/Frameworks/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.h
deleted file mode 100644
index b3185b4..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.h
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// IASKPSTitleValueSpecifierViewCell.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-
-@interface IASKPSTitleValueSpecifierViewCell : UITableViewCell
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.m b/Frameworks/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.m
deleted file mode 100644
index cd6ba97..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKPSTitleValueSpecifierViewCell.m
+++ /dev/null
@@ -1,54 +0,0 @@
-//
-// IASKPSTitleValueSpecifierViewCell.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2010:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKPSTitleValueSpecifierViewCell.h"
-#import "IASKSettingsReader.h"
-
-
-@implementation IASKPSTitleValueSpecifierViewCell
-
-- (void)layoutSubviews {
- // left align the value if the title is empty
- if (!self.textLabel.text.length) {
- self.textLabel.text = self.detailTextLabel.text;
- self.detailTextLabel.text = nil;
- if ([self.reuseIdentifier isEqualToString:kIASKPSMultiValueSpecifier]) {
- self.textLabel.font = [UIFont systemFontOfSize:[UIFont labelFontSize]];
- self.textLabel.textColor = self.detailTextLabel.textColor;
- }
- }
- [super layoutSubviews];
-
- CGSize viewSize = [self.textLabel superview].frame.size;
-
- // set the left title label frame
- CGFloat labelWidth = [self.textLabel sizeThatFits:CGSizeZero].width;
- CGFloat minValueWidth = (self.detailTextLabel.text.length) ? kIASKMinValueWidth + kIASKSpacing : 0;
- labelWidth = MIN(labelWidth, viewSize.width - minValueWidth - kIASKPaddingLeft -kIASKPaddingRight);
- CGRect labelFrame = CGRectMake(kIASKPaddingLeft, 0, labelWidth, viewSize.height -2);
- self.textLabel.frame = labelFrame;
-
- // set the right value label frame
- if (self.detailTextLabel.text.length) {
- CGRect valueFrame = CGRectMake(kIASKPaddingLeft + labelWidth + kIASKSpacing,
- 0,
- viewSize.width - (kIASKPaddingLeft + labelWidth + kIASKSpacing) - kIASKPaddingRight,
- viewSize.height -2);
- self.detailTextLabel.frame = valueFrame;
- }
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.h b/Frameworks/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.h
deleted file mode 100644
index a6d2864..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.h
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// IASKPSToggleSwitchSpecifierViewCell.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-@class IASKSwitch;
-
-@interface IASKPSToggleSwitchSpecifierViewCell : UITableViewCell {
- UILabel *_label;
- IASKSwitch *_toggle;
-}
-
-@property (nonatomic, assign) IBOutlet UILabel *label;
-@property (nonatomic, assign) IBOutlet IASKSwitch *toggle;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.m b/Frameworks/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.m
deleted file mode 100644
index a4a5c0d..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKPSToggleSwitchSpecifierViewCell.m
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// IASKPSToggleSwitchSpecifierViewCell.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKPSToggleSwitchSpecifierViewCell.h"
-#import "IASKSwitch.h"
-
-@implementation IASKPSToggleSwitchSpecifierViewCell
-
-@synthesize label=_label,
- toggle=_toggle;
-
-- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
- if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
- // Initialization code
- }
- return self;
-}
-
-
-- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
-
- [super setSelected:selected animated:animated];
-
- // Configure the view for the selected state
-}
-
-
-- (void)dealloc {
- [super dealloc];
-}
-
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKSlider.h b/Frameworks/InAppSettingsKit/Views/IASKSlider.h
deleted file mode 100644
index 34c5ecb..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKSlider.h
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// IASKSlider.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-
-@interface IASKSlider : UISlider {
- NSString *_key;
-}
-
-@property (nonatomic, retain) NSString *key;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKSlider.m b/Frameworks/InAppSettingsKit/Views/IASKSlider.m
deleted file mode 100644
index d591ff2..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKSlider.m
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// IASKSlider.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKSlider.h"
-
-
-@implementation IASKSlider
-
-@synthesize key=_key;
-
-- (void)dealloc {
- [_key release], _key = nil;
-
- [super dealloc];
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKSwitch.h b/Frameworks/InAppSettingsKit/Views/IASKSwitch.h
deleted file mode 100644
index b1439bd..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKSwitch.h
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// IASKSwitch.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-
-@interface IASKSwitch : UISwitch {
- NSString *_key;
-}
-
-@property (nonatomic, retain) NSString *key;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKSwitch.m b/Frameworks/InAppSettingsKit/Views/IASKSwitch.m
deleted file mode 100644
index f32aba4..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKSwitch.m
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// IASKSwitch.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKSwitch.h"
-
-
-@implementation IASKSwitch
-
-@synthesize key=_key;
-
-- (void)dealloc {
- [_key release], _key = nil;
-
- [super dealloc];
-}
-
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKTextField.h b/Frameworks/InAppSettingsKit/Views/IASKTextField.h
deleted file mode 100644
index 47c9be3..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKTextField.h
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// IASKTextField.h
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import
-
-
-@interface IASKTextField : UITextField {
- NSString *_key;
-}
-
-@property (nonatomic, retain) NSString *key;
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Views/IASKTextField.m b/Frameworks/InAppSettingsKit/Views/IASKTextField.m
deleted file mode 100644
index 9056896..0000000
--- a/Frameworks/InAppSettingsKit/Views/IASKTextField.m
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// IASKTextField.m
-// http://www.inappsettingskit.com
-//
-// Copyright (c) 2009:
-// Luc Vandal, Edovia Inc., http://www.edovia.com
-// Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
-// All rights reserved.
-//
-// It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
-// as the original authors of this code. You can give credit in a blog post, a tweet or on
-// a info page of your app. Also, the original authors appreciate letting them know if you use this code.
-//
-// This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
-//
-
-#import "IASKTextField.h"
-
-
-@implementation IASKTextField
-
-@synthesize key=_key;
-
-- (void)dealloc {
- [_key release], _key = nil;
-
- [super dealloc];
-}
-
-@end
diff --git a/Frameworks/InAppSettingsKit/Xibs/IASKAppSettingsView.xib b/Frameworks/InAppSettingsKit/Xibs/IASKAppSettingsView.xib
deleted file mode 100644
index 74720fa..0000000
--- a/Frameworks/InAppSettingsKit/Xibs/IASKAppSettingsView.xib
+++ /dev/null
@@ -1,222 +0,0 @@
-
-
-
- 1280
- 11B26
- 1934
- 1138
- 566.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 931
-
-
- YES
- IBProxyObject
- IBUITableView
-
-
- YES
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- PluginDependencyRecalculationVersion
-
-
-
- YES
-
- IBFilesOwner
- IBCocoaTouchFramework
-
-
- IBFirstResponder
- IBCocoaTouchFramework
-
-
-
- 274
- {320, 460}
-
-
-
- 10
-
- 549453824
- {512, 1}
-
- YES
-
- YES
-
-
-
- TU0AKgAACAjFzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/
-y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/
-xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/
-xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/
-xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/
-xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/
-xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/
-y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/
-y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/
-xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/
-xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/
-xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/
-xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/
-xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/
-y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/
-y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/
-xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/
-xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/
-xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/
-xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/
-xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/
-y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/
-y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/
-xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/
-xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/
-xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/
-xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/
-xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/
-y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/
-y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/
-xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/
-xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/
-xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/
-xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/
-xczS/8vS2P/L0tj/xczU/wANAQAAAwAAAAECAAAAAQEAAwAAAAEAAQAAAQIAAwAAAAQAAAiqAQMAAwAA
-AAEAAQAAAQYAAwAAAAEAAgAAAREABAAAAAEAAAAIARIAAwAAAAEAAQAAARUAAwAAAAEABAAAARYAAwAA
-AAEAAQAAARcABAAAAAEAAAgAARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAQAAAiyAAAAAAAI
-AAgACAAIAAEAAQABAAE
-
-
-
-
-
- 3
- MCAwAA
-
-
- groupTableViewBackgroundColor
-
- NO
- YES
- NO
- IBCocoaTouchFramework
- NO
- 1
- 1
- 0
- YES
- 44
- 10
- 10
-
-
-
-
- YES
-
-
- view
-
-
-
- 10
-
-
-
- dataSource
-
-
-
- 6
-
-
-
- delegate
-
-
-
- 7
-
-
-
-
- YES
-
- 0
-
- YES
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 4
-
-
-
-
-
-
- YES
-
- YES
- -1.CustomClassName
- -1.IBPluginDependency
- -2.CustomClassName
- -2.IBPluginDependency
- 4.IBPluginDependency
-
-
- YES
- IASKAppSettingsViewController
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
- YES
-
-
-
-
-
- YES
-
-
-
-
- 10
-
-
- 0
- IBCocoaTouchFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
-
-
- YES
- 3
- 931
-
-
diff --git a/Frameworks/InAppSettingsKit/Xibs/IASKAppSettingsWebView.xib b/Frameworks/InAppSettingsKit/Xibs/IASKAppSettingsWebView.xib
deleted file mode 100644
index b814f05..0000000
--- a/Frameworks/InAppSettingsKit/Xibs/IASKAppSettingsWebView.xib
+++ /dev/null
@@ -1,378 +0,0 @@
-
-
-
- 1024
- 10F569
- 804
- 1038.29
- 461.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 123
-
-
- YES
-
-
-
- YES
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- YES
-
- YES
-
-
- YES
-
-
-
- YES
-
- IBFilesOwner
- IBCocoaTouchFramework
-
-
- IBFirstResponder
- IBCocoaTouchFramework
-
-
-
- 274
-
- YES
-
-
- 274
- {320, 460}
-
-
- 3
- MQA
-
- IBCocoaTouchFramework
-
-
- {320, 460}
-
-
-
- IBCocoaTouchFramework
-
-
-
-
- YES
-
-
- view
-
-
-
- 3
-
-
-
- webView
-
-
-
- 5
-
-
-
- delegate
-
-
-
- 6
-
-
-
-
- YES
-
- 0
-
-
-
-
-
- 1
-
-
- YES
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 4
-
-
-
-
-
-
- YES
-
- YES
- -1.CustomClassName
- -2.CustomClassName
- 1.IBEditorWindowLastContentRect
- 1.IBPluginDependency
- 4.IBPluginDependency
-
-
- YES
- IASKAppSettingsWebViewController
- UIResponder
- {{354, 412}, {320, 480}}
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
- YES
-
-
- YES
-
-
-
-
- YES
-
-
- YES
-
-
-
- 6
-
-
-
- YES
-
- IASKAppSettingsWebViewController
- UIViewController
-
- webView
- UIWebView
-
-
- webView
-
- webView
- UIWebView
-
-
-
- IBProjectSource
- ../InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.h
-
-
-
-
- YES
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSError.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSFileManager.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSKeyValueCoding.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSKeyValueObserving.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSKeyedArchiver.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSObject.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSRunLoop.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSThread.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSURL.h
-
-
-
- NSObject
-
- IBFrameworkSource
- Foundation.framework/Headers/NSURLConnection.h
-
-
-
- NSObject
-
- IBFrameworkSource
- UIKit.framework/Headers/UIAccessibility.h
-
-
-
- NSObject
-
- IBFrameworkSource
- UIKit.framework/Headers/UINibLoading.h
-
-
-
- NSObject
-
- IBFrameworkSource
- UIKit.framework/Headers/UIResponder.h
-
-
-
- UIResponder
- NSObject
-
-
-
- UISearchBar
- UIView
-
- IBFrameworkSource
- UIKit.framework/Headers/UISearchBar.h
-
-
-
- UISearchDisplayController
- NSObject
-
- IBFrameworkSource
- UIKit.framework/Headers/UISearchDisplayController.h
-
-
-
- UIView
-
- IBFrameworkSource
- UIKit.framework/Headers/UITextField.h
-
-
-
- UIView
- UIResponder
-
- IBFrameworkSource
- UIKit.framework/Headers/UIView.h
-
-
-
- UIViewController
-
- IBFrameworkSource
- UIKit.framework/Headers/UINavigationController.h
-
-
-
- UIViewController
-
- IBFrameworkSource
- UIKit.framework/Headers/UIPopoverController.h
-
-
-
- UIViewController
-
- IBFrameworkSource
- UIKit.framework/Headers/UISplitViewController.h
-
-
-
- UIViewController
-
- IBFrameworkSource
- UIKit.framework/Headers/UITabBarController.h
-
-
-
- UIViewController
- UIResponder
-
- IBFrameworkSource
- UIKit.framework/Headers/UIViewController.h
-
-
-
- UIWebView
- UIView
-
- IBFrameworkSource
- UIKit.framework/Headers/UIWebView.h
-
-
-
-
- 0
- IBCocoaTouchFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
-
-
- YES
- ../InAppSettingsKitSampleApp.xcodeproj
- 3
- 123
-
-
diff --git a/Frameworks/InAppSettingsKit/Xibs/IASKPSSliderSpecifierViewCell.xib b/Frameworks/InAppSettingsKit/Xibs/IASKPSSliderSpecifierViewCell.xib
deleted file mode 100644
index f7df5a3..0000000
--- a/Frameworks/InAppSettingsKit/Xibs/IASKPSSliderSpecifierViewCell.xib
+++ /dev/null
@@ -1,313 +0,0 @@
-
-
-
- 1024
- 10J869
- 1306
- 1038.35
- 461.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 301
-
-
- YES
- IBUISlider
- IBUITableViewCell
- IBUIImageView
- IBProxyObject
-
-
- YES
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- YES
-
- YES
-
-
-
-
- YES
-
- IBFilesOwner
- IBCocoaTouchFramework
-
-
- IBFirstResponder
- IBCocoaTouchFramework
-
-
-
- 290
-
- YES
-
-
- 256
-
- YES
-
-
- 290
- {{52, 12}, {216, 23}}
-
-
-
- NO
- YES
- YES
- IBCocoaTouchFramework
- 0
- 0
- 0.5
-
-
-
- 289
- {{289, 13}, {21, 21}}
-
-
- NO
- NO
- 8
- NO
- IBCocoaTouchFramework
-
-
-
- 292
- {{10, 13}, {21, 21}}
-
-
-
- NO
- NO
- 7
- NO
- IBCocoaTouchFramework
-
-
- {320, 44}
-
-
-
-
- 3
- MCAwAA
-
- NO
- YES
- 4
- YES
- IBCocoaTouchFramework
-
-
- {320, 44}
-
-
-
-
- 1
- MSAxIDEAA
-
- YES
- NO
- IBCocoaTouchFramework
- 1
- 0
-
- PSSliderSpecifier
-
-
-
-
- YES
-
-
- slider
-
-
-
- 12
-
-
-
- maxImage
-
-
-
- 13
-
-
-
- minImage
-
-
-
- 14
-
-
-
-
- YES
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 2
-
-
- YES
-
-
-
-
-
-
-
- 3
-
-
-
-
- 6
-
-
-
-
- 9
-
-
-
-
-
-
- YES
-
- YES
- -2.CustomClassName
- 2.CustomClassName
- 2.IBEditorWindowLastContentRect
- 2.IBPluginDependency
- 3.CustomClassName
- 3.IBPluginDependency
- 6.IBPluginDependency
- 9.IBPluginDependency
-
-
- YES
- UIResponder
- IASKPSSliderSpecifierViewCell
- {{171, 925}, {320, 44}}
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- IASKSlider
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
- YES
-
-
-
-
-
- YES
-
-
-
-
- 14
-
-
-
- YES
-
- IASKPSSliderSpecifierViewCell
- UITableViewCell
-
- YES
-
- YES
- maxImage
- minImage
- slider
-
-
- YES
- UIImageView
- UIImageView
- IASKSlider
-
-
-
- YES
-
- YES
- maxImage
- minImage
- slider
-
-
- YES
-
- maxImage
- UIImageView
-
-
- minImage
- UIImageView
-
-
- slider
- IASKSlider
-
-
-
-
- IBProjectSource
- ./Classes/IASKPSSliderSpecifierViewCell.h
-
-
-
- IASKSlider
- UISlider
-
- IBProjectSource
- ./Classes/IASKSlider.h
-
-
-
-
- 0
- IBCocoaTouchFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
-
-
- YES
- 3
- 301
-
-
diff --git a/Frameworks/InAppSettingsKit/Xibs/IASKPSTextFieldSpecifierViewCell.xib b/Frameworks/InAppSettingsKit/Xibs/IASKPSTextFieldSpecifierViewCell.xib
deleted file mode 100644
index 0b143c7..0000000
--- a/Frameworks/InAppSettingsKit/Xibs/IASKPSTextFieldSpecifierViewCell.xib
+++ /dev/null
@@ -1,302 +0,0 @@
-
-
-
- 1024
- 10J869
- 1306
- 1038.35
- 461.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 301
-
-
- YES
- IBUITableViewCell
- IBUILabel
- IBUITextField
- IBProxyObject
-
-
- YES
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- YES
-
- YES
-
-
-
-
- YES
-
- IBFilesOwner
- IBCocoaTouchFramework
-
-
- IBFirstResponder
- IBCocoaTouchFramework
-
-
-
- 290
-
- YES
-
-
- 256
-
- YES
-
-
- 294
- {{9, 11}, {240, 21}}
-
-
- NO
- YES
- NO
- IBCocoaTouchFramework
- Label
-
- Helvetica-Bold
- 17
- 16
-
-
- 1
- MCAwIDAAA
-
-
- 1
- 10
-
-
-
- 291
- {{100, 11}, {201, 21}}
-
-
- NO
- NO
- IBCocoaTouchFramework
- hello
-
- 1
- MC4yNzQ1MDk4MiAwLjM3NjQ3MDYgMC41MjE1Njg2NgA
-
-
- Helvetica
- 17
- 16
-
- 2
- YES
- 10
-
- IBCocoaTouchFramework
-
-
-
- {320, 44}
-
-
-
- 3
- MCAwAA
-
- NO
- YES
- 4
- YES
- IBCocoaTouchFramework
-
-
- {320, 44}
-
-
-
- 1
- MSAxIDEAA
-
- YES
- NO
- IBCocoaTouchFramework
- 1
- 0
-
- PSTextFieldSpecifier
-
-
-
-
- YES
-
-
- label
-
-
-
- 8
-
-
-
- textField
-
-
-
- 9
-
-
-
-
- YES
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 2
-
-
- YES
-
-
-
-
-
-
- 3
-
-
-
-
- 4
-
-
-
-
-
-
- YES
-
- YES
- -2.CustomClassName
- 2.CustomClassName
- 2.IBEditorWindowLastContentRect
- 2.IBPluginDependency
- 3.IBPluginDependency
- 3.IBViewBoundsToFrameTransform
- 4.CustomClassName
- 4.IBPluginDependency
-
-
- YES
- UIResponder
- IASKPSTextFieldSpecifierViewCell
- {{107, 562}, {320, 44}}
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
- P4AAAL+AAABBmAAAwfAAAA
-
- IASKTextField
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
- YES
-
-
-
-
-
- YES
-
-
-
-
- 9
-
-
-
- YES
-
- IASKPSTextFieldSpecifierViewCell
- UITableViewCell
-
- YES
-
- YES
- label
- textField
-
-
- YES
- UILabel
- IASKTextField
-
-
-
- YES
-
- YES
- label
- textField
-
-
- YES
-
- label
- UILabel
-
-
- textField
- IASKTextField
-
-
-
-
- IBProjectSource
- ./Classes/IASKPSTextFieldSpecifierViewCell.h
-
-
-
- IASKTextField
- UITextField
-
- IBProjectSource
- ./Classes/IASKTextField.h
-
-
-
-
- 0
- IBCocoaTouchFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
-
-
- YES
- 3
- 301
-
-
diff --git a/Frameworks/InAppSettingsKit/Xibs/IASKPSToggleSwitchSpecifierViewCell.xib b/Frameworks/InAppSettingsKit/Xibs/IASKPSToggleSwitchSpecifierViewCell.xib
deleted file mode 100644
index 885c95a..0000000
--- a/Frameworks/InAppSettingsKit/Xibs/IASKPSToggleSwitchSpecifierViewCell.xib
+++ /dev/null
@@ -1,287 +0,0 @@
-
-
-
- 768
- 10J869
- 1306
- 1038.35
- 461.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 301
-
-
- YES
- IBUITableViewCell
- IBUISwitch
- IBUILabel
- IBProxyObject
-
-
- YES
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- YES
-
- YES
-
-
-
-
- YES
-
- IBFilesOwner
- IBCocoaTouchFramework
-
-
- IBFirstResponder
- IBCocoaTouchFramework
-
-
-
- 290
-
- YES
-
-
- 256
-
- YES
-
-
- 294
- {{9, 10}, {200, 21}}
-
-
- NO
- YES
- NO
- IBCocoaTouchFramework
- Label
-
- Helvetica-Bold
- 17
- 16
-
-
- 1
- MCAwIDAAA
-
-
- 1
- 10
-
-
-
- 289
- {{218, 8}, {94, 27}}
-
-
- NO
- YES
- YES
- IBCocoaTouchFramework
- 0
- 0
- YES
-
-
- {320, 44}
-
-
-
- 3
- MCAwAA
-
- NO
- YES
- 4
- YES
- IBCocoaTouchFramework
-
-
- {320, 44}
-
-
-
- 1
- MSAxIDEAA
-
- YES
- NO
- IBCocoaTouchFramework
- 1
- 0
-
- PSToggleSwitchSpecifier
-
-
-
-
- YES
-
-
- toggle
-
-
-
- 8
-
-
-
- label
-
-
-
- 9
-
-
-
-
- YES
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 2
-
-
- YES
-
-
-
-
- Toggle Switch Specifier View Cell - PSToggleSwitchSpecifier
-
-
- 3
-
-
-
-
- 4
-
-
-
-
-
-
- YES
-
- YES
- -2.CustomClassName
- 2.CustomClassName
- 2.IBEditorWindowLastContentRect
- 2.IBPluginDependency
- 3.IBPluginDependency
- 4.CustomClassName
- 4.IBPluginDependency
-
-
- YES
- UIResponder
- IASKPSToggleSwitchSpecifierViewCell
- {{1676, 1200}, {320, 44}}
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- IASKSwitch
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
- YES
-
-
-
-
-
- YES
-
-
-
-
- 9
-
-
-
- YES
-
- IASKPSToggleSwitchSpecifierViewCell
- UITableViewCell
-
- YES
-
- YES
- label
- toggle
-
-
- YES
- UILabel
- IASKSwitch
-
-
-
- YES
-
- YES
- label
- toggle
-
-
- YES
-
- label
- UILabel
-
-
- toggle
- IASKSwitch
-
-
-
-
- IBProjectSource
- ./Classes/IASKPSToggleSwitchSpecifierViewCell.h
-
-
-
- IASKSwitch
- UISwitch
-
- IBProjectSource
- ./Classes/IASKSwitch.h
-
-
-
-
- 0
- IBCocoaTouchFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
-
-
- YES
- 3
- 301
-
-
diff --git a/Frameworks/InAppSettingsKit/Xibs/IASKSpecifierValuesView.xib b/Frameworks/InAppSettingsKit/Xibs/IASKSpecifierValuesView.xib
deleted file mode 100644
index 9c7ff86..0000000
--- a/Frameworks/InAppSettingsKit/Xibs/IASKSpecifierValuesView.xib
+++ /dev/null
@@ -1,255 +0,0 @@
-
-
-
- 768
- 10J567
- 1294
- 1038.35
- 462.00
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- 294
-
-
- YES
- IBProxyObject
- IBUIView
- IBUITableView
-
-
- YES
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- YES
-
- YES
-
-
-
-
- YES
-
- IBFilesOwner
- IBCocoaTouchFramework
-
-
- IBFirstResponder
- IBCocoaTouchFramework
-
-
-
- 292
-
- YES
-
-
- 274
- {320, 460}
-
-
-
-
- 10
-
- 549453824
- {84, 1}
-
- YES
-
- YES
-
-
-
- TU0AKgAAAVjFzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/
-y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/
-xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/
-xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/
-xczU/8XM1P/FzNL/y9LY/8vS2P/FzNT/xczU/8XM1P/FzNT/xczS/8vS2P/L0tj/xczU/8XM1P/FzNT/
-xczU/8XM0v/L0tj/y9LY/8XM1P/FzNT/xczU/8XM1P/FzNL/y9LY/8vS2P8ADQEAAAMAAAABAFQAAAEB
-AAMAAAABAAEAAAECAAMAAAAEAAAB+gEDAAMAAAABAAEAAAEGAAMAAAABAAIAAAERAAQAAAABAAAACAES
-AAMAAAABAAEAAAEVAAMAAAABAAQAAAEWAAMAAAABAAEAAAEXAAQAAAABAAABUAEcAAMAAAABAAEAAAFS
-AAMAAAABAAEAAAFTAAMAAAAEAAACAgAAAAAACAAIAAgACAABAAEAAQABA
-
-
-
-
-
- 3
- MCAwAA
-
-
- groupTableViewBackgroundColor
-
- NO
- YES
- NO
- IBCocoaTouchFramework
- NO
- 1
- 1
- 0
- YES
- 44
- 10
- 10
-
-
- {320, 460}
-
-
-
-
- 3
- MQA
-
- 2
-
-
- IBCocoaTouchFramework
-
-
-
-
- YES
-
-
- view
-
-
-
- 3
-
-
-
- dataSource
-
-
-
- 5
-
-
-
- delegate
-
-
-
- 6
-
-
-
- _tableView
-
-
-
- 7
-
-
-
-
- YES
-
- 0
-
-
-
-
-
- 1
-
-
- YES
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 4
-
-
-
-
-
-
- YES
-
- YES
- -1.CustomClassName
- -2.CustomClassName
- 1.IBEditorWindowLastContentRect
- 1.IBPluginDependency
- 4.IBPluginDependency
-
-
- YES
- IASKSpecifierValuesViewController
- UIResponder
- {{556, 432}, {320, 460}}
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
- YES
-
-
-
-
-
- YES
-
-
-
-
- 7
-
-
-
- YES
-
- IASKSpecifierValuesViewController
- UIViewController
-
- _tableView
- UITableView
-
-
- _tableView
-
- _tableView
- UITableView
-
-
-
- IBProjectSource
- ./Classes/IASKSpecifierValuesViewController.h
-
-
-
-
- 0
- IBCocoaTouchFramework
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS
-
-
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
-
-
- YES
- 3
- 294
-
-
diff --git a/Frameworks/MBProgressHUD b/Frameworks/MBProgressHUD
deleted file mode 160000
index 09284ec..0000000
--- a/Frameworks/MBProgressHUD
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 09284ec788276d2127fb077d7385d04468d34bb3
diff --git a/Frameworks/Reachability/Airport.png b/Frameworks/Reachability/Airport.png
deleted file mode 100644
index 76e1256..0000000
Binary files a/Frameworks/Reachability/Airport.png and /dev/null differ
diff --git a/Frameworks/Reachability/Classes/ReachabilityAppDelegate.h b/Frameworks/Reachability/Classes/ReachabilityAppDelegate.h
deleted file mode 100644
index f0669d0..0000000
--- a/Frameworks/Reachability/Classes/ReachabilityAppDelegate.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
-
-File: ReachabilityAppDelegate.h
-Abstract: The application's controller.
-
-Version: 2.2
-
-Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
-("Apple") in consideration of your agreement to the following terms, and your
-use, installation, modification or redistribution of this Apple software
-constitutes acceptance of these terms. If you do not agree with these terms,
-please do not use, install, modify or redistribute this Apple software.
-
-In consideration of your agreement to abide by the following terms, and subject
-to these terms, Apple grants you a personal, non-exclusive license, under
-Apple's copyrights in this original Apple software (the "Apple Software"), to
-use, reproduce, modify and redistribute the Apple Software, with or without
-modifications, in source and/or binary forms; provided that if you redistribute
-the Apple Software in its entirety and without modifications, you must retain
-this notice and the following text and disclaimers in all such redistributions
-of the Apple Software.
-Neither the name, trademarks, service marks or logos of Apple Inc. may be used
-to endorse or promote products derived from the Apple Software without specific
-prior written permission from Apple. Except as expressly stated in this notice,
-no other rights or licenses, express or implied, are granted by Apple herein,
-including but not limited to any patent rights that may be infringed by your
-derivative works or by other works in which the Apple Software may be
-incorporated.
-
-The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
-WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
-WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
-COMBINATION WITH YOUR PRODUCTS.
-
-IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR
-DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF
-CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
-APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Copyright (C) 2010 Apple Inc. All Rights Reserved.
-
-*/
-
-#import
-
-@class Reachability;
-@interface ReachabilityAppDelegate: NSObject {
- IBOutlet UIWindow* window;
- IBOutlet UIView* contentView;
- IBOutlet UILabel* summaryLabel;
-
- IBOutlet UITextField* remoteHostLabel;
- IBOutlet UIImageView* remoteHostIcon;
- IBOutlet UITextField* remoteHostStatusField;
-
- IBOutlet UIImageView* internetConnectionIcon;
- IBOutlet UITextField* internetConnectionStatusField;
-
- IBOutlet UIImageView* localWiFiConnectionIcon;
- IBOutlet UITextField* localWiFiConnectionStatusField;
-
- Reachability* hostReach;
- Reachability* internetReach;
- Reachability* wifiReach;
-}
-@end
diff --git a/Frameworks/Reachability/Classes/ReachabilityAppDelegate.m b/Frameworks/Reachability/Classes/ReachabilityAppDelegate.m
deleted file mode 100644
index d6affc9..0000000
--- a/Frameworks/Reachability/Classes/ReachabilityAppDelegate.m
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
-
-File: ReachabilityAppDelegate.m
-Abstract: The application's controller.
-
-Version: 2.2
-
-Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
-("Apple") in consideration of your agreement to the following terms, and your
-use, installation, modification or redistribution of this Apple software
-constitutes acceptance of these terms. If you do not agree with these terms,
-please do not use, install, modify or redistribute this Apple software.
-
-In consideration of your agreement to abide by the following terms, and subject
-to these terms, Apple grants you a personal, non-exclusive license, under
-Apple's copyrights in this original Apple software (the "Apple Software"), to
-use, reproduce, modify and redistribute the Apple Software, with or without
-modifications, in source and/or binary forms; provided that if you redistribute
-the Apple Software in its entirety and without modifications, you must retain
-this notice and the following text and disclaimers in all such redistributions
-of the Apple Software.
-Neither the name, trademarks, service marks or logos of Apple Inc. may be used
-to endorse or promote products derived from the Apple Software without specific
-prior written permission from Apple. Except as expressly stated in this notice,
-no other rights or licenses, express or implied, are granted by Apple herein,
-including but not limited to any patent rights that may be infringed by your
-derivative works or by other works in which the Apple Software may be
-incorporated.
-
-The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
-WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
-WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
-COMBINATION WITH YOUR PRODUCTS.
-
-IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR
-DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF
-CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
-APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Copyright (C) 2010 Apple Inc. All Rights Reserved.
-
-*/
-
-#import "ReachabilityAppDelegate.h"
-#import "Reachability.h"
-
-@implementation ReachabilityAppDelegate
-
-- (void) configureTextField: (UITextField*) textField imageView: (UIImageView*) imageView reachability: (Reachability*) curReach
-{
- NetworkStatus netStatus = [curReach currentReachabilityStatus];
- BOOL connectionRequired= [curReach connectionRequired];
- NSString* statusString= @"";
- switch (netStatus)
- {
- case NotReachable:
- {
- statusString = @"Access Not Available";
- imageView.image = [UIImage imageNamed: @"stop-32.png"] ;
- //Minor interface detail- connectionRequired may return yes, even when the host is unreachable. We cover that up here...
- connectionRequired= NO;
- break;
- }
-
- case ReachableViaWWAN:
- {
- statusString = @"Reachable WWAN";
- imageView.image = [UIImage imageNamed: @"WWAN5.png"];
- break;
- }
- case ReachableViaWiFi:
- {
- statusString= @"Reachable WiFi";
- imageView.image = [UIImage imageNamed: @"Airport.png"];
- break;
- }
- }
- if(connectionRequired)
- {
- statusString= [NSString stringWithFormat: @"%@, Connection Required", statusString];
- }
- textField.text= statusString;
-}
-
-- (void) updateInterfaceWithReachability: (Reachability*) curReach
-{
- if(curReach == hostReach)
- {
- [self configureTextField: remoteHostStatusField imageView: remoteHostIcon reachability: curReach];
- NetworkStatus netStatus = [curReach currentReachabilityStatus];
- BOOL connectionRequired= [curReach connectionRequired];
-
- summaryLabel.hidden = (netStatus != ReachableViaWWAN);
- NSString* baseLabel= @"";
- if(connectionRequired)
- {
- baseLabel= @"Cellular data network is available.\n Internet traffic will be routed through it after a connection is established.";
- }
- else
- {
- baseLabel= @"Cellular data network is active.\n Internet traffic will be routed through it.";
- }
- summaryLabel.text= baseLabel;
- }
- if(curReach == internetReach)
- {
- [self configureTextField: internetConnectionStatusField imageView: internetConnectionIcon reachability: curReach];
- }
- if(curReach == wifiReach)
- {
- [self configureTextField: localWiFiConnectionStatusField imageView: localWiFiConnectionIcon reachability: curReach];
- }
-
-}
-
-//Called by Reachability whenever status changes.
-- (void) reachabilityChanged: (NSNotification* )note
-{
- Reachability* curReach = [note object];
- NSParameterAssert([curReach isKindOfClass: [Reachability class]]);
- [self updateInterfaceWithReachability: curReach];
-}
-
-
-- (void) applicationDidFinishLaunching: (UIApplication* )application
-{
- #pragma unused(application)
- contentView.backgroundColor = [UIColor groupTableViewBackgroundColor];
-
- summaryLabel.hidden = YES;
-
-
- // Observe the kNetworkReachabilityChangedNotification. When that notification is posted, the
- // method "reachabilityChanged" will be called.
- [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reachabilityChanged:) name: kReachabilityChangedNotification object: nil];
-
- //Change the host name here to change the server your monitoring
- remoteHostLabel.text = [NSString stringWithFormat: @"Remote Host: %@", @"www.apple.com"];
- hostReach = [[Reachability reachabilityWithHostName: @"www.apple.com"] retain];
- [hostReach startNotifier];
- [self updateInterfaceWithReachability: hostReach];
-
- internetReach = [[Reachability reachabilityForInternetConnection] retain];
- [internetReach startNotifier];
- [self updateInterfaceWithReachability: internetReach];
-
- wifiReach = [[Reachability reachabilityForLocalWiFi] retain];
- [wifiReach startNotifier];
- [self updateInterfaceWithReachability: wifiReach];
-
- [window makeKeyAndVisible];
-
-}
-@end
diff --git a/Frameworks/Reachability/Default.png b/Frameworks/Reachability/Default.png
deleted file mode 100644
index ab51ddb..0000000
Binary files a/Frameworks/Reachability/Default.png and /dev/null differ
diff --git a/Frameworks/Reachability/English.lproj/MainWindow.xib b/Frameworks/Reachability/English.lproj/MainWindow.xib
deleted file mode 100644
index af5f331..0000000
--- a/Frameworks/Reachability/English.lproj/MainWindow.xib
+++ /dev/null
@@ -1,568 +0,0 @@
-
-
-
- 512
- 9J61
- 677
- 949.46
- 353.00
-
- YES
-
-
-
- YES
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
- YES
-
- YES
-
-
- YES
-
-
-
- YES
-
- IBFilesOwner
-
-
- IBFirstResponder
-
-
-
-
- 1292
-
- YES
-
-
- 1298
-
- YES
-
-
- 1306
- {{8, 318}, {303, 99}}
-
- NO
- YES
- NO
- Q2VsbHVsYXIgZGF0YSBuZXR3b3JrIGlzIGF2YWlsYWJsZS4KSW50ZXJuZXQgdHJhZmZpYyB3aWxsIGJl
-IHJvdXRlZCB0aHJvdWdoIGl0Lg
-
- 1
- MSAwIDAAA
-
-
- 1
- NO
- 1.400000e+01
- 0
- 1
-
-
-
- 1316
- {{20, 61}, {32, 32}}
-
- NO
- NO
- 4
- NO
-
-
-
- 1316
- {{20, 155}, {32, 32}}
-
- NO
- NO
- 4
- NO
-
-
-
- 1316
- {{60, 62}, {240, 31}}
-
- NO
- NO
- 0
-
- 3
-
- 3
- MAA
-
- 2
-
-
- YES
- YES
- 1.200000e+01
-
-
-
-
- 1316
- {{20, 25}, {280, 29}}
-
- NO
- NO
- 0
- Remote Host:
-
- 3
- MAA
-
-
-
- Helvetica
- 1.900000e+01
- 16
-
- YES
- YES
- 2.900000e+01
-
-
-
-
- 1316
- {{60, 155}, {240, 31}}
-
- NO
- NO
- 0
-
- 3
-
- 3
- MAA
-
-
- YES
- YES
- 1.200000e+01
-
-
-
-
- 1316
- {{20, 117}, {280, 29}}
-
- NO
- NO
- 0
- TCP/IP Routing Available
-
- 3
- MAA
-
-
-
- YES
- YES
- 2.900000e+01
-
-
-
-
- 1316
- {{20, 253}, {32, 32}}
-
- NO
- NO
- 4
- NO
-
-
-
- 1316
- {{60, 254}, {240, 31}}
-
- NO
- NO
- 0
-
- 3
-
- 3
- MAA
-
-
- YES
- YES
- 1.200000e+01
-
-
-
-
- 1316
- {{20, 216}, {280, 29}}
-
- NO
- NO
- 0
- Local WiFi
-
- 3
- MAA
-
-
-
- YES
- YES
- 2.900000e+01
-
-
-
- {320, 480}
-
-
- 3
- MQA
-
-
- NO
- NO
-
-
-
- {320, 480}
-
-
- 1
- MSAxIDEAA
-
- NO
- NO
-
-
-
-
- YES
-
-
- delegate
-
-
-
- 5
-
-
-
- window
-
-
-
- 6
-
-
-
- contentView
-
-
-
- 8
-
-
-
- summaryLabel
-
-
-
- 10
-
-
-
- internetConnectionStatusField
-
-
-
- 21
-
-
-
- remoteHostIcon
-
-
-
- 24
-
-
-
- remoteHostLabel
-
-
-
- 27
-
-
-
- remoteHostStatusField
-
-
-
- 28
-
-
-
- internetConnectionIcon
-
-
-
- 30
-
-
-
- localWiFiConnectionIcon
-
-
-
- 35
-
-
-
- localWiFiConnectionStatusField
-
-
-
- 36
-
-
-
-
- YES
-
- 0
-
- YES
-
-
-
-
-
- 2
-
-
- YES
-
-
-
-
-
- -1
-
-
- RmlsZSdzIE93bmVyA
-
-
- 4
-
-
- ReachabilityAppDelegate
-
-
- 7
-
-
- YES
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 9
-
-
-
-
- -2
-
-
-
-
- 11
-
-
-
-
- 12
-
-
-
-
- 13
-
-
-
-
- 15
-
-
-
-
- 16
-
-
-
-
- 17
-
-
-
-
- 18
-
-
-
-
- 19
-
-
-
-
- 29
-
-
-
-
-
-
- YES
-
- YES
- -1.CustomClassName
- -2.CustomClassName
- 11.IBPluginDependency
- 12.IBPluginDependency
- 13.IBPluginDependency
- 15.IBPluginDependency
- 16.IBPluginDependency
- 17.IBPluginDependency
- 18.IBPluginDependency
- 19.IBPluginDependency
- 2.IBAttributePlaceholdersKey
- 2.IBEditorWindowLastContentRect
- 2.IBPluginDependency
- 2.UIWindow.visibleAtLaunch
- 29.IBPluginDependency
- 4.CustomClassName
- 4.IBPluginDependency
- 7.IBPluginDependency
- 9.IBPluginDependency
-
-
- YES
- UIApplication
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
- YES
-
- YES
-
-
- YES
-
-
- {{287, 643}, {320, 480}}
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- ReachabilityAppDelegate
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
- YES
-
- YES
-
-
- YES
-
-
-
-
- YES
-
- YES
-
-
- YES
-
-
-
- 36
-
-
-
- YES
-
- ReachabilityAppDelegate
- NSObject
-
- YES
-
- YES
- contentView
- internetConnectionIcon
- internetConnectionStatusField
- localWiFiConnectionIcon
- localWiFiConnectionStatusField
- remoteHostIcon
- remoteHostLabel
- remoteHostStatusField
- summaryLabel
- window
-
-
- YES
- UIView
- UIImageView
- UITextField
- UIImageView
- UITextField
- UIImageView
- UITextField
- UITextField
- UILabel
- UIWindow
-
-
-
- IBProjectSource
- Classes/ReachabilityAppDelegate.h
-
-
-
-
- 0
- Reachability.xcodeproj
- 3
- 3.0
-
-
diff --git a/Frameworks/Reachability/Images/Icon-72.png b/Frameworks/Reachability/Images/Icon-72.png
deleted file mode 100644
index b154505..0000000
Binary files a/Frameworks/Reachability/Images/Icon-72.png and /dev/null differ
diff --git a/Frameworks/Reachability/Images/Icon-Small-50.png b/Frameworks/Reachability/Images/Icon-Small-50.png
deleted file mode 100644
index e7dbbf4..0000000
Binary files a/Frameworks/Reachability/Images/Icon-Small-50.png and /dev/null differ
diff --git a/Frameworks/Reachability/Images/Icon-Small.png b/Frameworks/Reachability/Images/Icon-Small.png
deleted file mode 100644
index 675c18f..0000000
Binary files a/Frameworks/Reachability/Images/Icon-Small.png and /dev/null differ
diff --git a/Frameworks/Reachability/Images/Icon-Small@2x.png b/Frameworks/Reachability/Images/Icon-Small@2x.png
deleted file mode 100644
index e740019..0000000
Binary files a/Frameworks/Reachability/Images/Icon-Small@2x.png and /dev/null differ
diff --git a/Frameworks/Reachability/Images/Icon.png b/Frameworks/Reachability/Images/Icon.png
deleted file mode 100644
index dfc83b7..0000000
Binary files a/Frameworks/Reachability/Images/Icon.png and /dev/null differ
diff --git a/Frameworks/Reachability/Images/Icon@2x.png b/Frameworks/Reachability/Images/Icon@2x.png
deleted file mode 100644
index 21e17cc..0000000
Binary files a/Frameworks/Reachability/Images/Icon@2x.png and /dev/null differ
diff --git a/Frameworks/Reachability/Images/iTunesArtwork b/Frameworks/Reachability/Images/iTunesArtwork
deleted file mode 100644
index 6ad7a1f..0000000
Binary files a/Frameworks/Reachability/Images/iTunesArtwork and /dev/null differ
diff --git a/Frameworks/Reachability/Info.plist b/Frameworks/Reachability/Info.plist
deleted file mode 100644
index 334d2bf..0000000
--- a/Frameworks/Reachability/Info.plist
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
- CFBundleIconFiles
-
- Icon.png
- Icon@2x.png
- Icon-72.png
- Icon-Small.png
- Icon-Small-50.png
- Icon-Small@2x.png
-
- CFBundleDevelopmentRegion
- en
- CFBundleDisplayName
- Reachability
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIdentifier
- com.yourcompany.${PRODUCT_NAME:identifier}
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundlePackageType
- APPL
- CFBundleSignature
- ????
- CFBundleVersion
- 2.2
- NSMainNibFile
- MainWindow
- UIStatusBarHidden
-
- LSRequiresIPhoneOS
-
-
-
diff --git a/Frameworks/Reachability/Network.png b/Frameworks/Reachability/Network.png
deleted file mode 100644
index f5679c3..0000000
Binary files a/Frameworks/Reachability/Network.png and /dev/null differ
diff --git a/Frameworks/Reachability/Reachability.xcodeproj/project.pbxproj b/Frameworks/Reachability/Reachability.xcodeproj/project.pbxproj
deleted file mode 100644
index 608235c..0000000
--- a/Frameworks/Reachability/Reachability.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,376 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 45;
- objects = {
-
-/* Begin PBXBuildFile section */
- 02084CDB11E53A7500199A4D /* iTunesArtwork in Resources */ = {isa = PBXBuildFile; fileRef = 02084CDA11E53A7500199A4D /* iTunesArtwork */; };
- 025B4FF211CAE2EB004E3314 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 025B4FEB11CAE2EB004E3314 /* Icon-72.png */; };
- 025B4FF311CAE2EB004E3314 /* Icon-Small-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 025B4FEC11CAE2EB004E3314 /* Icon-Small-50.png */; };
- 025B4FF411CAE2EB004E3314 /* Icon-Small.png in Resources */ = {isa = PBXBuildFile; fileRef = 025B4FED11CAE2EB004E3314 /* Icon-Small.png */; };
- 025B4FF511CAE2EB004E3314 /* Icon-Small@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 025B4FEE11CAE2EB004E3314 /* Icon-Small@2x.png */; };
- 025B4FF611CAE2EB004E3314 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 025B4FEF11CAE2EB004E3314 /* Icon.png */; };
- 025B4FF711CAE2EB004E3314 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 025B4FF011CAE2EB004E3314 /* Icon@2x.png */; };
- 025B501511CAE3CD004E3314 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 025B501411CAE3CD004E3314 /* MainWindow.xib */; };
- 02C021BA0FA263C7006AFB5F /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 02C021B90FA263C7006AFB5F /* Reachability.m */; };
- 1D3623260D0F684500981E51 /* ReachabilityAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* ReachabilityAppDelegate.m */; };
- 1D4F2F9A0D10AC310045FB13 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 1D4F2F990D10AC310045FB13 /* Default.png */; };
- 1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
- 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
- 414AF4950D5FDBA400072C1E /* WWAN5.png in Resources */ = {isa = PBXBuildFile; fileRef = 414AF4930D5FDBA400072C1E /* WWAN5.png */; };
- 414AF4960D5FDBA400072C1E /* Airport.png in Resources */ = {isa = PBXBuildFile; fileRef = 414AF4940D5FDBA400072C1E /* Airport.png */; };
- 418B52B50D64ED9A00D0F015 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 418561090D5E57F70036FBAB /* SystemConfiguration.framework */; };
- 418B52B70D64EDA900D0F015 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
- 41A855100D62A5670049A9B9 /* stop-32.png in Resources */ = {isa = PBXBuildFile; fileRef = 41A8550F0D62A5670049A9B9 /* stop-32.png */; };
- 844866C10DB922FC009556CD /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 844866C00DB922FC009556CD /* icon.png */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 02084CDA11E53A7500199A4D /* iTunesArtwork */ = {isa = PBXFileReference; lastKnownFileType = file; path = iTunesArtwork; sourceTree = ""; };
- 025B4FEB11CAE2EB004E3314 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = ""; };
- 025B4FEC11CAE2EB004E3314 /* Icon-Small-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small-50.png"; sourceTree = ""; };
- 025B4FED11CAE2EB004E3314 /* Icon-Small.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small.png"; sourceTree = ""; };
- 025B4FEE11CAE2EB004E3314 /* Icon-Small@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small@2x.png"; sourceTree = ""; };
- 025B4FEF11CAE2EB004E3314 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; };
- 025B4FF011CAE2EB004E3314 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon@2x.png"; sourceTree = ""; };
- 02C021B80FA263C7006AFB5F /* Reachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Reachability.h; sourceTree = ""; };
- 02C021B90FA263C7006AFB5F /* Reachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Reachability.m; sourceTree = ""; };
- 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 1D3623240D0F684500981E51 /* ReachabilityAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = ReachabilityAppDelegate.h; sourceTree = ""; tabWidth = 4; usesTabs = 0; };
- 1D3623250D0F684500981E51 /* ReachabilityAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = ReachabilityAppDelegate.m; sourceTree = ""; tabWidth = 4; usesTabs = 0; };
- 1D4F2F990D10AC310045FB13 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; };
- 1D6058910D05DD3D006BFB54 /* Reachability.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Reachability.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 28CE467A0DA6896A003A8F85 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainWindow.xib; sourceTree = ""; };
- 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
- 32CA4F630368D1EE00C91783 /* Reachability_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Reachability_Prefix.pch; sourceTree = ""; };
- 414AF4930D5FDBA400072C1E /* WWAN5.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = WWAN5.png; sourceTree = ""; };
- 414AF4940D5FDBA400072C1E /* Airport.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Airport.png; sourceTree = ""; };
- 418561090D5E57F70036FBAB /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 41A8550F0D62A5670049A9B9 /* stop-32.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "stop-32.png"; sourceTree = ""; };
- 41AD131B0D60E5BE00475B51 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- 844866C00DB922FC009556CD /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = ""; };
- 844866CF0DB9233D009556CD /* ReadMe.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ReadMe.txt; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
- 418B52B50D64ED9A00D0F015 /* SystemConfiguration.framework in Frameworks */,
- 418B52B70D64EDA900D0F015 /* Foundation.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 025B4FEA11CAE2EB004E3314 /* Images */ = {
- isa = PBXGroup;
- children = (
- 02084CDA11E53A7500199A4D /* iTunesArtwork */,
- 025B4FEB11CAE2EB004E3314 /* Icon-72.png */,
- 025B4FEC11CAE2EB004E3314 /* Icon-Small-50.png */,
- 025B4FED11CAE2EB004E3314 /* Icon-Small.png */,
- 025B4FEE11CAE2EB004E3314 /* Icon-Small@2x.png */,
- 025B4FEF11CAE2EB004E3314 /* Icon.png */,
- 025B4FF011CAE2EB004E3314 /* Icon@2x.png */,
- );
- path = Images;
- sourceTree = "";
- };
- 080E96DDFE201D6D7F000001 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 1D3623240D0F684500981E51 /* ReachabilityAppDelegate.h */,
- 1D3623250D0F684500981E51 /* ReachabilityAppDelegate.m */,
- 02C021B80FA263C7006AFB5F /* Reachability.h */,
- 02C021B90FA263C7006AFB5F /* Reachability.m */,
- );
- path = Classes;
- sourceTree = "";
- };
- 19C28FACFE9D520D11CA2CBB /* Products */ = {
- isa = PBXGroup;
- children = (
- 1D6058910D05DD3D006BFB54 /* Reachability.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
- isa = PBXGroup;
- children = (
- 844866CF0DB9233D009556CD /* ReadMe.txt */,
- 080E96DDFE201D6D7F000001 /* Classes */,
- 29B97315FDCFA39411CA2CEA /* Other Sources */,
- 29B97317FDCFA39411CA2CEA /* Resources */,
- 29B97323FDCFA39411CA2CEA /* Frameworks */,
- 19C28FACFE9D520D11CA2CBB /* Products */,
- );
- name = CustomTemplate;
- sourceTree = "";
- };
- 29B97315FDCFA39411CA2CEA /* Other Sources */ = {
- isa = PBXGroup;
- children = (
- 32CA4F630368D1EE00C91783 /* Reachability_Prefix.pch */,
- 29B97316FDCFA39411CA2CEA /* main.m */,
- );
- name = "Other Sources";
- sourceTree = "";
- };
- 29B97317FDCFA39411CA2CEA /* Resources */ = {
- isa = PBXGroup;
- children = (
- 025B4FEA11CAE2EB004E3314 /* Images */,
- 844866C00DB922FC009556CD /* icon.png */,
- 025B501411CAE3CD004E3314 /* MainWindow.xib */,
- 41A8550F0D62A5670049A9B9 /* stop-32.png */,
- 414AF4930D5FDBA400072C1E /* WWAN5.png */,
- 414AF4940D5FDBA400072C1E /* Airport.png */,
- 1D4F2F990D10AC310045FB13 /* Default.png */,
- 41AD131B0D60E5BE00475B51 /* Info.plist */,
- );
- name = Resources;
- sourceTree = "";
- };
- 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 418561090D5E57F70036FBAB /* SystemConfiguration.framework */,
- 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
- 1D30AB110D05D00D00671497 /* Foundation.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1D6058900D05DD3D006BFB54 /* Reachability */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Reachability" */;
- buildPhases = (
- 1D60588D0D05DD3D006BFB54 /* Resources */,
- 1D60588E0D05DD3D006BFB54 /* Sources */,
- 1D60588F0D05DD3D006BFB54 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Reachability;
- productName = foo;
- productReference = 1D6058910D05DD3D006BFB54 /* Reachability.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 29B97313FDCFA39411CA2CEA /* Project object */ = {
- isa = PBXProject;
- buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Reachability" */;
- compatibilityVersion = "Xcode 3.1";
- hasScannedForEncodings = 1;
- mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 1D6058900D05DD3D006BFB54 /* Reachability */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 1D60588D0D05DD3D006BFB54 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1D4F2F9A0D10AC310045FB13 /* Default.png in Resources */,
- 414AF4950D5FDBA400072C1E /* WWAN5.png in Resources */,
- 414AF4960D5FDBA400072C1E /* Airport.png in Resources */,
- 41A855100D62A5670049A9B9 /* stop-32.png in Resources */,
- 025B501511CAE3CD004E3314 /* MainWindow.xib in Resources */,
- 844866C10DB922FC009556CD /* icon.png in Resources */,
- 025B4FF211CAE2EB004E3314 /* Icon-72.png in Resources */,
- 025B4FF311CAE2EB004E3314 /* Icon-Small-50.png in Resources */,
- 025B4FF411CAE2EB004E3314 /* Icon-Small.png in Resources */,
- 025B4FF511CAE2EB004E3314 /* Icon-Small@2x.png in Resources */,
- 025B4FF611CAE2EB004E3314 /* Icon.png in Resources */,
- 025B4FF711CAE2EB004E3314 /* Icon@2x.png in Resources */,
- 02084CDB11E53A7500199A4D /* iTunesArtwork in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 1D60588E0D05DD3D006BFB54 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 1D60589B0D05DD56006BFB54 /* main.m in Sources */,
- 1D3623260D0F684500981E51 /* ReachabilityAppDelegate.m in Sources */,
- 02C021BA0FA263C7006AFB5F /* Reachability.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 025B501411CAE3CD004E3314 /* MainWindow.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 28CE467A0DA6896A003A8F85 /* English */,
- );
- name = MainWindow.xib;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 1D6058940D05DD3E006BFB54 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- };
- name = Debug;
- };
- 1D6058950D05DD3E006BFB54 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- };
- name = Release;
- };
- C01FCF4F08A954540054247B /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- GCC_DYNAMIC_NO_PIC = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = Reachability_Prefix.pch;
- GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
- GCC_TREAT_NONCONFORMANT_CODE_ERRORS_AS_WARNINGS = YES;
- GCC_TREAT_WARNINGS_AS_ERRORS = NO;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
- GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_CHECK_SWITCH_STATEMENTS = YES;
- GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES;
- GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES;
- GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO;
- GCC_WARN_INHIBIT_ALL_WARNINGS = NO;
- GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
- GCC_WARN_MISSING_PARENTHESES = YES;
- GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO;
- GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES;
- GCC_WARN_PEDANTIC = NO;
- GCC_WARN_PROTOTYPE_CONVERSION = NO;
- GCC_WARN_SHADOW = YES;
- GCC_WARN_SIGN_COMPARE = YES;
- GCC_WARN_STRICT_SELECTOR_MATCH = YES;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = NO;
- GCC_WARN_UNKNOWN_PRAGMAS = YES;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_LABEL = YES;
- GCC_WARN_UNUSED_PARAMETER = YES;
- GCC_WARN_UNUSED_VALUE = YES;
- INFOPLIST_FILE = Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 3.2;
- ONLY_ACTIVE_ARCH = YES;
- PREBINDING = NO;
- PRODUCT_NAME = Reachability;
- "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
- SDKROOT = iphoneos4.0;
- WRAPPER_EXTENSION = app;
- };
- name = Debug;
- };
- C01FCF5008A954540054247B /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CODE_SIGN_IDENTITY = "";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- CODE_SIGN_RESOURCE_RULES_PATH = "";
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_OPTIMIZATION_LEVEL = s;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = Reachability_Prefix.pch;
- GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
- GCC_TREAT_NONCONFORMANT_CODE_ERRORS_AS_WARNINGS = YES;
- GCC_TREAT_WARNINGS_AS_ERRORS = NO;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES;
- GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES;
- GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
- GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_CHECK_SWITCH_STATEMENTS = YES;
- GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES;
- GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES;
- GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO;
- GCC_WARN_INHIBIT_ALL_WARNINGS = NO;
- GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
- GCC_WARN_MISSING_PARENTHESES = YES;
- GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO;
- GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES;
- GCC_WARN_PEDANTIC = NO;
- GCC_WARN_PROTOTYPE_CONVERSION = NO;
- GCC_WARN_SHADOW = YES;
- GCC_WARN_SIGN_COMPARE = YES;
- GCC_WARN_STRICT_SELECTOR_MATCH = YES;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = NO;
- GCC_WARN_UNKNOWN_PRAGMAS = YES;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_LABEL = YES;
- GCC_WARN_UNUSED_PARAMETER = YES;
- GCC_WARN_UNUSED_VALUE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- INFOPLIST_FILE = Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 3.2;
- OTHER_CODE_SIGN_FLAGS = "";
- PREBINDING = NO;
- PRODUCT_NAME = Reachability;
- SDKROOT = iphoneos4.0;
- WRAPPER_EXTENSION = app;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Reachability" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1D6058940D05DD3E006BFB54 /* Debug */,
- 1D6058950D05DD3E006BFB54 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Reachability" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- C01FCF4F08A954540054247B /* Debug */,
- C01FCF5008A954540054247B /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
-}
diff --git a/Frameworks/Reachability/Reachability_Prefix.pch b/Frameworks/Reachability/Reachability_Prefix.pch
deleted file mode 100644
index 05b388a..0000000
--- a/Frameworks/Reachability/Reachability_Prefix.pch
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
-
-File: Reachability_Prefix.pch
-Abstract: This file is included for support purposes and isn't necessary for
-understanding this sample.
-
-Version: 2.2
-
-Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
-("Apple") in consideration of your agreement to the following terms, and your
-use, installation, modification or redistribution of this Apple software
-constitutes acceptance of these terms. If you do not agree with these terms,
-please do not use, install, modify or redistribute this Apple software.
-
-In consideration of your agreement to abide by the following terms, and subject
-to these terms, Apple grants you a personal, non-exclusive license, under
-Apple's copyrights in this original Apple software (the "Apple Software"), to
-use, reproduce, modify and redistribute the Apple Software, with or without
-modifications, in source and/or binary forms; provided that if you redistribute
-the Apple Software in its entirety and without modifications, you must retain
-this notice and the following text and disclaimers in all such redistributions
-of the Apple Software.
-Neither the name, trademarks, service marks or logos of Apple Inc. may be used
-to endorse or promote products derived from the Apple Software without specific
-prior written permission from Apple. Except as expressly stated in this notice,
-no other rights or licenses, express or implied, are granted by Apple herein,
-including but not limited to any patent rights that may be infringed by your
-derivative works or by other works in which the Apple Software may be
-incorporated.
-
-The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
-WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
-WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
-COMBINATION WITH YOUR PRODUCTS.
-
-IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR
-DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF
-CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
-APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- Copyright (C) 2010 Apple Inc. All Rights Reserved.
-
-*/
-
-#ifdef __OBJC__
- #import
- #import
-#endif
diff --git a/Frameworks/Reachability/ReadMe.txt b/Frameworks/Reachability/ReadMe.txt
deleted file mode 100644
index 55459dc..0000000
--- a/Frameworks/Reachability/ReadMe.txt
+++ /dev/null
@@ -1,96 +0,0 @@
-Reachability
-
-========================================================================
-DESCRIPTION:
-
-The Reachability sample application demonstrates how to use the System
-Configuration framework to monitor the network state of an iPhone or
-iPod touch. In particular, it demonstrates how to know when IP can be
-routed and when traffic will be routed through a Wireless Wide Area
-Network (WWAN) interface such as EDGE or 3G.
-
-Note: Reachability cannot tell your application if you can connect to a
-particular host, only that an interface is available that might allow a
-connection, and whether that interface is the WWAN.
-
-========================================================================
-USING THE SAMPLE
-
-Build and run the sample using Xcode. When running the iPhone Simulator,
-you can exercise the application by disconnecting the Ethernet cable,
-turning off AirPort, or by joining an ad-hoc local Wi-Fi network.
-
-By default, the application uses www.apple.com for its remote host. You
-can change the host it uses in ReachabilityAppDelegate.m by modifying
-the call to [Reachability reachabilityWithHostName] in
--applicationDidFinishLaunching.
-
-IMPORTANT: Reachability must use DNS to resolve the host name before it
-can determine the Reachability of that host, and this may take time on
-certain network connections. Because of this, the API will return
-NotReachable until name resolution has completed. This delay may be
-visible in the interface on some networks.
-
-The Reachability sample demonstrates the asynchronous use of the
-SCNetworkReachability API. You can use the API synchronously, but do not
-issue a synchronous check by hostName on the main thread. If the device
-cannot reach a DNS server or is on a slow network, a synchronous call to
-the SCNetworkReachabilityGetFlags function can block for up to 30
-seconds trying to resolve the hostName. If this happens on the main
-thread, the application watchdog will kill the application after 20
-seconds of inactivity.
-
-SCNetworkReachability API's do not currently provide a means to detect
-support for GameKit Peer To Peer networking over BlueTooth.
-
-========================================================================
-BUILD REQUIREMENTS
-
-iOS 4.0
-
-========================================================================
-RUNTIME REQUIREMENTS
-
-iOS 4.0
-
-========================================================================
-PACKAGING LIST
-
-Reachability.h Reachability.m
--Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
-
-ReachabilityAppDelegate.h ReachabilityAppDelegate.m
--The application's controller.
-
-========================================================================
-CHANGES FROM PREVIOUS VERSIONS
-Version 2.2
--Updated sample for iOS 4.0
-
-Version 2.1
--Removed [super init] from class method.
--Fixed spelling error in method names.
--Fixed several warnings.
-
-Version 2.0
--Greatly simplified UI code.
--Rewrote Reachability object to be fully asychronous and simplify.
-monitoring of multiple SCNetworkReachabilityRefs.
--Added code showing how to monitor wether a connection will be required.
-
-Version 1.5
-- Updated for and tested with iPhone OS 2.0. First public release.
-
-Version 1.4
-- Updated for Beta 7.
-
-Version 1.3
-- Updated for Beta 6. - Added LSRequiresIPhoneOS key to Info.plist.
-
-Version 1.2
-- Updated for Beta 4. Added code signing.
-
-Version 1.1
-- Updated for Beta 3 to use a nib file.
-
-Copyright (C) Apple Inc. All rights reserved.
\ No newline at end of file
diff --git a/Frameworks/Reachability/WWAN5.png b/Frameworks/Reachability/WWAN5.png
deleted file mode 100644
index b475a21..0000000
Binary files a/Frameworks/Reachability/WWAN5.png and /dev/null differ
diff --git a/Frameworks/Reachability/icon.png b/Frameworks/Reachability/icon.png
deleted file mode 100644
index 955e114..0000000
Binary files a/Frameworks/Reachability/icon.png and /dev/null differ
diff --git a/Frameworks/Reachability/main.m b/Frameworks/Reachability/main.m
deleted file mode 100644
index 2b91702..0000000
--- a/Frameworks/Reachability/main.m
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
-
-File: main.m
-Abstract: Main entry point.
-
-Version: 2.2
-
-Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
-("Apple") in consideration of your agreement to the following terms, and your
-use, installation, modification or redistribution of this Apple software
-constitutes acceptance of these terms. If you do not agree with these terms,
-please do not use, install, modify or redistribute this Apple software.
-
-In consideration of your agreement to abide by the following terms, and subject
-to these terms, Apple grants you a personal, non-exclusive license, under
-Apple's copyrights in this original Apple software (the "Apple Software"), to
-use, reproduce, modify and redistribute the Apple Software, with or without
-modifications, in source and/or binary forms; provided that if you redistribute
-the Apple Software in its entirety and without modifications, you must retain
-this notice and the following text and disclaimers in all such redistributions
-of the Apple Software.
-Neither the name, trademarks, service marks or logos of Apple Inc. may be used
-to endorse or promote products derived from the Apple Software without specific
-prior written permission from Apple. Except as expressly stated in this notice,
-no other rights or licenses, express or implied, are granted by Apple herein,
-including but not limited to any patent rights that may be infringed by your
-derivative works or by other works in which the Apple Software may be
-incorporated.
-
-The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
-WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
-WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
-COMBINATION WITH YOUR PRODUCTS.
-
-IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR
-DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF
-CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
-APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- Copyright (C) 2010 Apple Inc. All Rights Reserved.
-
-*/
-
-
-#import
-
-int main(int argc, char* argv[])
-{
- NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
- int retVal = UIApplicationMain(argc, argv, nil, nil);
- [pool release];
- return retVal;
-}
diff --git a/Frameworks/Reachability/red.png b/Frameworks/Reachability/red.png
deleted file mode 100644
index 4d100b6..0000000
Binary files a/Frameworks/Reachability/red.png and /dev/null differ
diff --git a/Frameworks/Reachability/stop-32.png b/Frameworks/Reachability/stop-32.png
deleted file mode 100644
index b5639d3..0000000
Binary files a/Frameworks/Reachability/stop-32.png and /dev/null differ
diff --git a/Frameworks/SDWebImage b/Frameworks/SDWebImage
deleted file mode 160000
index 5df0eaf..0000000
--- a/Frameworks/SDWebImage
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 5df0eafc92cb13bead88d0906cfed6b3fc403f0a
diff --git a/Frameworks/ShareKit b/Frameworks/ShareKit
deleted file mode 160000
index b100bbe..0000000
--- a/Frameworks/ShareKit
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit b100bbec7b2847957f14c4a9b3d2378741225351
diff --git a/Frameworks/TMQuiltView b/Frameworks/TMQuiltView
deleted file mode 160000
index 99a0f20..0000000
--- a/Frameworks/TMQuiltView
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 99a0f20259b12695c5c233e3921f88061d450b75
diff --git a/Frameworks/TSAlertView b/Frameworks/TSAlertView
deleted file mode 160000
index 37c4c4d..0000000
--- a/Frameworks/TSAlertView
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 37c4c4d3bba757d82201f7609577b32020561ef9
diff --git a/Frameworks/ViewDeck/IIViewDeckController.h b/Frameworks/ViewDeck/IIViewDeckController.h
deleted file mode 100644
index 6e6e549..0000000
--- a/Frameworks/ViewDeck/IIViewDeckController.h
+++ /dev/null
@@ -1,173 +0,0 @@
-//
-// IIViewDeckController.h
-// IIViewDeck
-//
-// Copyright (C) 2011, Tom Adriaenssen
-//
-// 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.
-//
-
-#import
-
-@protocol IIViewDeckControllerDelegate;
-
-typedef enum {
- IIViewDeckNoPanning, // no panning allowed
- IIViewDeckFullViewPanning, // the default: touch anywhere in the center view to drag the center view around
- IIViewDeckNavigationBarPanning, // panning only occurs when you start touching in the navigation bar (when the center controller is a UINavigationController with a visible navigation bar). Otherwise it will behave as IIViewDeckNoPanning.
- IIViewDeckPanningViewPanning // panning only occurs when you start touching in a UIView set in panningView property
-} IIViewDeckPanningMode;
-
-
-typedef enum {
- IIViewDeckCenterHiddenUserInteractive, // the center view stays interactive
- IIViewDeckCenterHiddenNotUserInteractive, // the center view will become nonresponsive to useractions
- IIViewDeckCenterHiddenNotUserInteractiveWithTapToClose, // the center view will become nonresponsive to useractions, but will allow the user to tap it so that it closes
- IIViewDeckCenterHiddenNotUserInteractiveWithTapToCloseBouncing, // same as IIViewDeckCenterHiddenNotUserInteractiveWithTapToClose, but closes the center view bouncing
-} IIViewDeckCenterHiddenInteractivity;
-
-
-typedef enum {
- IIViewDeckNavigationControllerContained, // the center navigation controller will act as any other viewcontroller. Pushing and popping view controllers will be contained in the centerview.
- IIViewDeckNavigationControllerIntegrated // the center navigation controller will integrate with the viewdeck.
-} IIViewDeckNavigationControllerBehavior;
-
-
-typedef enum {
- IIViewDeckRotationKeepsLedgeSizes, // when rotating, the ledge sizes are kept (side views are more/less visible)
- IIViewDeckRotationKeepsViewSizes // when rotating, the size view sizes are kept (ledges change)
-} IIViewDeckRotationBehavior;
-
-
-#define IIViewDeckCenterHiddenCanTapToClose(interactivity) ((interactivity) == IIViewDeckCenterHiddenNotUserInteractiveWithTapToClose || (interactivity) == IIViewDeckCenterHiddenNotUserInteractiveWithTapToCloseBouncing)
-#define IIViewDeckCenterHiddenIsInteractive(interactivity) ((interactivity) == IIViewDeckCenterHiddenUserInteractive)
-
-
-@interface IIViewDeckController : UIViewController {
-@private
- CGFloat _panOrigin;
- BOOL _viewAppeared;
- CGFloat _preRotationWidth, _leftWidth, _rightWidth, _preRotationCenterWidth, _maxLedge, _offset;
-}
-
-typedef void (^IIViewDeckControllerBlock) (IIViewDeckController *controller);
-
-@property (nonatomic, assign) id delegate;
-@property (nonatomic, retain) UIViewController* centerController;
-@property (nonatomic, retain) UIViewController* leftController;
-@property (nonatomic, retain) UIViewController* rightController;
-@property (nonatomic, readonly, assign) UIViewController* slidingController;
-@property (nonatomic, retain) UIView* panningView;
-@property (nonatomic, assign) id panningGestureDelegate;
-@property (nonatomic, readonly, retain) NSArray* controllers;
-@property (nonatomic, getter=isEnabled) BOOL enabled;
-@property (nonatomic) BOOL elastic;
-
-@property (nonatomic) CGFloat leftLedge;
-@property (nonatomic) CGFloat rightLedge;
-@property (nonatomic) CGFloat maxLedge;
-@property (nonatomic) BOOL resizesCenterView;
-@property (nonatomic) IIViewDeckPanningMode panningMode;
-@property (nonatomic) IIViewDeckCenterHiddenInteractivity centerhiddenInteractivity;
-@property (nonatomic) IIViewDeckNavigationControllerBehavior navigationControllerBehavior;
-@property (nonatomic) IIViewDeckRotationBehavior rotationBehavior;
-@property (nonatomic) BOOL automaticallyUpdateTabBarItems;
-
-- (id)initWithCenterViewController:(UIViewController*)centerController;
-- (id)initWithCenterViewController:(UIViewController*)centerController leftViewController:(UIViewController*)leftController;
-- (id)initWithCenterViewController:(UIViewController*)centerController rightViewController:(UIViewController*)rightController;
-- (id)initWithCenterViewController:(UIViewController*)centerController leftViewController:(UIViewController*)leftController rightViewController:(UIViewController*)rightController;
-
-- (void)showCenterView;
-- (void)showCenterView:(BOOL)animated;
-- (void)showCenterView:(BOOL)animated completion:(IIViewDeckControllerBlock)completed;
-
-
-- (void)setLeftLedge:(CGFloat)rightLedge completion:(void(^)(BOOL finished))completion;
-- (void)setRightLedge:(CGFloat)rightLedge completion:(void(^)(BOOL finished))completion;
-
-- (BOOL)toggleLeftView;
-- (BOOL)openLeftView;
-- (BOOL)closeLeftView;
-- (BOOL)toggleLeftViewAnimated:(BOOL)animated;
-- (BOOL)toggleLeftViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openLeftViewAnimated:(BOOL)animated;
-- (BOOL)openLeftViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced;
-- (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)closeLeftViewAnimated:(BOOL)animated;
-- (BOOL)closeLeftViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
-- (BOOL)closeLeftViewBouncing:(IIViewDeckControllerBlock)bounced;
-- (BOOL)closeLeftViewBouncing:(IIViewDeckControllerBlock)bounced completion:(IIViewDeckControllerBlock)completed;
-
-- (BOOL)toggleRightView;
-- (BOOL)openRightView;
-- (BOOL)closeRightView;
-- (BOOL)toggleRightViewAnimated:(BOOL)animated;
-- (BOOL)toggleRightViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openRightViewAnimated:(BOOL)animated;
-- (BOOL)openRightViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced;
-- (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)closeRightViewAnimated:(BOOL)animated;
-- (BOOL)closeRightViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)closeRightViewBouncing:(IIViewDeckControllerBlock)bounced;
-- (BOOL)closeRightViewBouncing:(IIViewDeckControllerBlock)bounced completion:(IIViewDeckControllerBlock)completed;
-- (void)rightViewPushViewControllerOverCenterController:(UIViewController*)controller;
-
-- (BOOL)leftControllerIsClosed;
-- (BOOL)leftControllerIsOpen;
-- (BOOL)rightControllerIsClosed;
-- (BOOL)rightControllerIsOpen;
-
-- (CGFloat)statusBarHeight;
-
-@end
-
-
-// Delegate protocol
-
-@protocol IIViewDeckControllerDelegate
-
-@optional
-- (void)viewDeckController:(IIViewDeckController*)viewDeckController applyShadow:(CALayer*)shadowLayer withBounds:(CGRect)rect;
-
-- (void)viewDeckController:(IIViewDeckController*)viewDeckController didPanToOffset:(CGFloat)offset;
-- (void)viewDeckController:(IIViewDeckController*)viewDeckController slideOffsetChanged:(CGFloat)offset;
-- (void)viewDeckController:(IIViewDeckController *)viewDeckController didBounceWithClosingController:(UIViewController*)openController;
-- (BOOL)viewDeckControllerWillOpenLeftView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-- (void)viewDeckControllerDidOpenLeftView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-- (BOOL)viewDeckControllerWillCloseLeftView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-- (void)viewDeckControllerDidCloseLeftView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-- (BOOL)viewDeckControllerWillOpenRightView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-- (void)viewDeckControllerDidOpenRightView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-- (BOOL)viewDeckControllerWillCloseRightView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-- (void)viewDeckControllerDidCloseRightView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-- (void)viewDeckControllerDidShowCenterView:(IIViewDeckController*)viewDeckController animated:(BOOL)animated;
-
-@end
-
-
-// category on UIViewController to provide access to the viewDeckController in the
-// contained viewcontrollers, a la UINavigationController.
-@interface UIViewController (UIViewDeckItem)
-
-@property(nonatomic,readonly,retain) IIViewDeckController *viewDeckController;
-
-@end
diff --git a/Frameworks/ViewDeck/IIViewDeckController.m b/Frameworks/ViewDeck/IIViewDeckController.m
deleted file mode 100644
index 2aa6609..0000000
--- a/Frameworks/ViewDeck/IIViewDeckController.m
+++ /dev/null
@@ -1,1996 +0,0 @@
-//
-// IIViewDeckController.m
-// IIViewDeck
-//
-// Copyright (C) 2011, Tom Adriaenssen
-//
-// 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.
-//
-
-// define some LLVM3 macros if the code is compiled with a different compiler (ie LLVMGCC42)
-#ifndef __has_feature
-#define __has_feature(x) 0
-#endif
-#ifndef __has_extension
-#define __has_extension __has_feature // Compatibility with pre-3.0 compilers.
-#endif
-
-#if __has_feature(objc_arc) && __clang_major__ >= 3
-#define II_ARC_ENABLED 1
-#endif // __has_feature(objc_arc)
-
-#if II_ARC_ENABLED
-#define II_RETAIN(xx) ((void)(0))
-#define II_RELEASE(xx) ((void)(0))
-#define II_AUTORELEASE(xx) (xx)
-#else
-#define II_RETAIN(xx) [xx retain]
-#define II_RELEASE(xx) [xx release]
-#define II_AUTORELEASE(xx) [xx autorelease]
-#endif
-
-#define II_FLOAT_EQUAL(x, y) (((x) - (y)) == 0.0f)
-#define II_STRING_EQUAL(a, b) ((a == nil && b == nil) || (a != nil && [a isEqualToString:b]))
-
-#define II_CGRectOffsetRightAndShrink(rect, offset) \
-({ \
-__typeof__(rect) __r = (rect); \
-__typeof__(offset) __o = (offset); \
-(CGRect) { { __r.origin.x, __r.origin.y }, \
-{ __r.size.width - __o, __r.size.height } \
-}; \
-})
-#define II_CGRectOffsetTopAndShrink(rect, offset) \
-({ \
-__typeof__(rect) __r = (rect); \
-__typeof__(offset) __o = (offset); \
-(CGRect) { { __r.origin.x, __r.origin.y + __o }, \
-{ __r.size.width, __r.size.height - __o } \
-}; \
-})
-#define II_CGRectOffsetBottomAndShrink(rect, offset) \
-({ \
-__typeof__(rect) __r = (rect); \
-__typeof__(offset) __o = (offset); \
-(CGRect) { { __r.origin.x, __r.origin.y }, \
-{ __r.size.width, __r.size.height - __o} \
-}; \
-})
-#define II_CGRectShrink(rect, w, h) \
-({ \
-__typeof__(rect) __r = (rect); \
-__typeof__(w) __w = (w); \
-__typeof__(h) __h = (h); \
-(CGRect) { __r.origin, \
-{ __r.size.width - __w, __r.size.height - __h} \
-}; \
-})
-
-#import "IIViewDeckController.h"
-#import
-#import
-#import
-#import "WrapController.h"
-
-#define DURATION_FAST 0.3
-#define DURATION_SLOW 0.3
-#define SLIDE_DURATION(animated,duration) ((animated) ? (duration) : 0)
-#define OPEN_SLIDE_DURATION(animated) SLIDE_DURATION(animated,DURATION_FAST)
-#define CLOSE_SLIDE_DURATION(animated) SLIDE_DURATION(animated,DURATION_SLOW)
-
-@interface IIViewDeckController ()
-
-
-@property (nonatomic, retain) UIView* referenceView;
-@property (nonatomic, readonly) CGRect referenceBounds;
-@property (nonatomic, readonly) CGRect centerViewBounds;
-@property (nonatomic, readonly) CGRect sideViewBounds;
-@property (nonatomic, retain) NSMutableArray* panners;
-@property (nonatomic, assign) CGFloat originalShadowRadius;
-@property (nonatomic, assign) CGFloat originalShadowOpacity;
-@property (nonatomic, retain) UIColor* originalShadowColor;
-@property (nonatomic, assign) CGSize originalShadowOffset;
-@property (nonatomic, retain) UIBezierPath* originalShadowPath;
-@property (nonatomic, retain) UIButton* centerTapper;
-@property (nonatomic, retain) UIView* centerView;
-@property (nonatomic, readonly) UIView* slidingControllerView;
-
-- (void)cleanup;
-
-- (BOOL)closeLeftViewAnimated:(BOOL)animated callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)closeLeftViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openLeftViewAnimated:(BOOL)animated callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openLeftViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)closeRightViewAnimated:(BOOL)animated callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)closeRightViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openRightViewAnimated:(BOOL)animated callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openRightViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-- (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed;
-
-- (CGRect)slidingRectForOffset:(CGFloat)offset;
-- (CGSize)slidingSizeForOffset:(CGFloat)offset;
-- (void)setSlidingFrameForOffset:(CGFloat)frame;
-- (void)hideAppropriateSideViews;
-
-- (void)reapplySideController:(__strong UIViewController **)controllerStore;
-- (BOOL)setSlidingAndReferenceViews;
-- (void)applyShadowToSlidingView;
-- (void)restoreShadowToSlidingView;
-- (void)arrangeViewsAfterRotation;
-- (CGFloat)relativeStatusBarHeight;
-
-- (void)centerViewVisible;
-- (void)centerViewHidden;
-- (void)centerTapped;
-
-- (void)addPanners;
-- (void)removePanners;
-
-- (BOOL)checkDelegate:(SEL)selector animated:(BOOL)animated;
-- (void)performDelegate:(SEL)selector animated:(BOOL)animated;
-- (void)performOffsetDelegate:(SEL)selector offset:(CGFloat)offset;
-
-- (void)relayAppearanceMethod:(void(^)(UIViewController* controller))relay;
-- (void)relayAppearanceMethod:(void(^)(UIViewController* controller))relay forced:(BOOL)forced;
-
-@end
-
-
-@interface UIViewController (UIViewDeckItem_Internal)
-
-// internal setter for the viewDeckController property on UIViewController
-- (void)setViewDeckController:(IIViewDeckController*)viewDeckController;
-
-@end
-
-@interface UIViewController (UIViewDeckController_ViewContainmentEmulation)
-
-- (void)addChildViewController:(UIViewController *)childController;
-- (void)removeFromParentViewController;
-- (void)willMoveToParentViewController:(UIViewController *)parent;
-- (void)didMoveToParentViewController:(UIViewController *)parent;
-
-- (BOOL)vdc_shouldRelay;
-- (void)vdc_viewWillAppear:(bool)animated;
-- (void)vdc_viewDidAppear:(bool)animated;
-- (void)vdc_viewWillDisappear:(bool)animated;
-- (void)vdc_viewDidDisappear:(bool)animated;
-
-@end
-
-
-@implementation IIViewDeckController
-
-@synthesize panningMode = _panningMode;
-@synthesize panners = _panners;
-@synthesize referenceView = _referenceView;
-@synthesize slidingController = _slidingController;
-@synthesize centerController = _centerController;
-@synthesize leftController = _leftController;
-@synthesize rightController = _rightController;
-@synthesize leftLedge = _leftLedge;
-@synthesize rightLedge = _rightLedge;
-@synthesize maxLedge = _maxLedge;
-@synthesize resizesCenterView = _resizesCenterView;
-@synthesize originalShadowOpacity = _originalShadowOpacity;
-@synthesize originalShadowPath = _originalShadowPath;
-@synthesize originalShadowRadius = _originalShadowRadius;
-@synthesize originalShadowColor = _originalShadowColor;
-@synthesize originalShadowOffset = _originalShadowOffset;
-@synthesize delegate = _delegate;
-@synthesize navigationControllerBehavior = _navigationControllerBehavior;
-@synthesize panningView = _panningView;
-@synthesize centerhiddenInteractivity = _centerhiddenInteractivity;
-@synthesize centerTapper = _centerTapper;
-@synthesize centerView = _centerView;
-@synthesize rotationBehavior = _rotationBehavior;
-@synthesize enabled = _enabled;
-@synthesize elastic = _elastic;
-@synthesize automaticallyUpdateTabBarItems = _automaticallyUpdateTabBarItems;
-@synthesize panningGestureDelegate = _panningGestureDelegate;
-
-#pragma mark - Initalisation and deallocation
-
-- (id)initWithCoder:(NSCoder *)aDecoder
-{
- return [self initWithCenterViewController:nil];
-}
-
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
-{
- return [self initWithCenterViewController:nil];
-}
-
-- (id)initWithCenterViewController:(UIViewController*)centerController {
- if ((self = [super initWithNibName:nil bundle:nil])) {
- _elastic = YES;
- _panningMode = IIViewDeckFullViewPanning;
- _navigationControllerBehavior = IIViewDeckNavigationControllerContained;
- _centerhiddenInteractivity = IIViewDeckCenterHiddenUserInteractive;
- _rotationBehavior = IIViewDeckRotationKeepsLedgeSizes;
- _viewAppeared = NO;
- _resizesCenterView = NO;
- _automaticallyUpdateTabBarItems = NO;
- self.panners = [NSMutableArray array];
- self.enabled = YES;
-
- self.originalShadowRadius = 0;
- self.originalShadowOffset = CGSizeZero;
- self.originalShadowColor = nil;
- self.originalShadowOpacity = 0;
- self.originalShadowPath = nil;
-
- _slidingController = nil;
- self.centerController = centerController;
- self.leftController = nil;
- self.rightController = nil;
- self.leftLedge = 44;
- self.rightLedge = 44;
- }
- return self;
-}
-
-- (id)initWithCenterViewController:(UIViewController*)centerController leftViewController:(UIViewController*)leftController {
- if ((self = [self initWithCenterViewController:centerController])) {
- self.leftController = leftController;
- }
- return self;
-}
-
-- (id)initWithCenterViewController:(UIViewController*)centerController rightViewController:(UIViewController*)rightController {
- if ((self = [self initWithCenterViewController:centerController])) {
- self.rightController = rightController;
- }
- return self;
-}
-
-- (id)initWithCenterViewController:(UIViewController*)centerController leftViewController:(UIViewController*)leftController rightViewController:(UIViewController*)rightController {
- if ((self = [self initWithCenterViewController:centerController])) {
- self.leftController = leftController;
- self.rightController = rightController;
- }
- return self;
-}
-
-- (void)cleanup {
- self.originalShadowRadius = 0;
- self.originalShadowOpacity = 0;
- self.originalShadowColor = nil;
- self.originalShadowOffset = CGSizeZero;
- self.originalShadowPath = nil;
-
- _slidingController = nil;
- self.referenceView = nil;
- self.centerView = nil;
- self.centerTapper = nil;
-}
-
-- (void)dealloc {
- [self cleanup];
-
- self.centerController.viewDeckController = nil;
- self.centerController = nil;
- self.leftController.viewDeckController = nil;
- self.leftController = nil;
- self.rightController.viewDeckController = nil;
- self.rightController = nil;
- self.panners = nil;
-
-#if !II_ARC_ENABLED
- [super dealloc];
-#endif
-}
-
-#pragma mark - Memory management
-
-- (void)didReceiveMemoryWarning
-{
- [super didReceiveMemoryWarning];
-
- [self.centerController didReceiveMemoryWarning];
- [self.leftController didReceiveMemoryWarning];
- [self.rightController didReceiveMemoryWarning];
-}
-
-#pragma mark - Bookkeeping
-
-- (NSArray*)controllers {
- NSMutableArray *result = [NSMutableArray array];
- if (self.centerController) [result addObject:self.centerController];
- if (self.leftController) [result addObject:self.leftController];
- if (self.rightController) [result addObject:self.rightController];
- return [NSArray arrayWithArray:result];
-}
-
-- (CGRect)referenceBounds {
- return self.referenceView.bounds;
-}
-
-- (CGFloat)relativeStatusBarHeight {
- if (![self.referenceView isKindOfClass:[UIWindow class]])
- return 0;
-
- return [self statusBarHeight];
-}
-
-- (CGFloat)statusBarHeight {
- return UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)
- ? [UIApplication sharedApplication].statusBarFrame.size.width
- : [UIApplication sharedApplication].statusBarFrame.size.height;
-}
-
-- (CGRect)centerViewBounds {
- if (self.navigationControllerBehavior == IIViewDeckNavigationControllerContained)
- return self.referenceBounds;
-
- return II_CGRectShrink(self.referenceBounds, 0, [self relativeStatusBarHeight] + (self.navigationController.navigationBarHidden ? 0 : self.navigationController.navigationBar.frame.size.height));
-}
-
-- (CGRect)sideViewBounds {
- if (self.navigationControllerBehavior == IIViewDeckNavigationControllerContained)
- return self.referenceBounds;
-
- return II_CGRectOffsetTopAndShrink(self.referenceBounds, [self relativeStatusBarHeight]);
-}
-
-- (CGFloat)limitOffset:(CGFloat)offset {
- if (_leftController && _rightController) return offset;
-
- if (_leftController && self.maxLedge > 0) {
- CGFloat left = self.referenceBounds.size.width - self.maxLedge;
- offset = MAX(offset, left);
- }
- else if (_rightController && self.maxLedge > 0) {
- CGFloat right = self.maxLedge - self.referenceBounds.size.width;
- offset = MIN(offset, right);
- }
-
- return offset;
-}
-
-- (CGRect)slidingRectForOffset:(CGFloat)offset {
- offset = [self limitOffset:offset];
- return (CGRect) { {self.resizesCenterView && offset < 0 ? 0 : offset, 0}, [self slidingSizeForOffset:offset] };
-}
-
-- (CGSize)slidingSizeForOffset:(CGFloat)offset {
- if (!self.resizesCenterView) return self.referenceBounds.size;
-
- offset = [self limitOffset:offset];
- if (offset < 0)
- return (CGSize) { self.centerViewBounds.size.width + offset, self.centerViewBounds.size.height };
-
- return (CGSize) { self.centerViewBounds.size.width - offset, self.centerViewBounds.size.height };
-}
-
--(void)setSlidingFrameForOffset:(CGFloat)offset {
- _offset = [self limitOffset:offset];
- self.slidingControllerView.frame = [self slidingRectForOffset:_offset];
- [self performOffsetDelegate:@selector(viewDeckController:slideOffsetChanged:) offset:_offset];
-}
-
-- (void)hideAppropriateSideViews {
- self.leftController.view.hidden = CGRectGetMinX(self.slidingControllerView.frame) <= 0;
- self.rightController.view.hidden = CGRectGetMaxX(self.slidingControllerView.frame) >= self.referenceBounds.size.width;
-}
-
-#pragma mark - ledges
-
-- (void)setLeftLedge:(CGFloat)leftLedge {
- // Compute the final ledge in two steps. This prevents a strange bug where
- // nesting MAX(X, MIN(Y, Z)) with miniscule referenceBounds returns a bogus near-zero value.
- CGFloat minLedge = MIN(self.referenceBounds.size.width, leftLedge);
- leftLedge = MAX(leftLedge, minLedge);
- if (_viewAppeared && II_FLOAT_EQUAL(self.slidingControllerView.frame.origin.x, self.referenceBounds.size.width - _leftLedge)) {
- if (leftLedge < _leftLedge) {
- [UIView animateWithDuration:CLOSE_SLIDE_DURATION(YES) animations:^{
- [self setSlidingFrameForOffset:self.referenceBounds.size.width - leftLedge];
- }];
- }
- else if (leftLedge > _leftLedge) {
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) animations:^{
- [self setSlidingFrameForOffset:self.referenceBounds.size.width - leftLedge];
- }];
- }
- }
- _leftLedge = leftLedge;
-}
-
-- (void)setLeftLedge:(CGFloat)leftLedge completion:(void(^)(BOOL finished))completion {
- // Compute the final ledge in two steps. This prevents a strange bug where
- // nesting MAX(X, MIN(Y, Z)) with miniscule referenceBounds returns a bogus near-zero value.
- CGFloat minLedge = MIN(self.referenceBounds.size.width, leftLedge);
- leftLedge = MAX(leftLedge, minLedge);
- if (_viewAppeared && II_FLOAT_EQUAL(self.slidingControllerView.frame.origin.x, self.referenceBounds.size.width - _leftLedge)) {
- if (leftLedge < _leftLedge) {
- [UIView animateWithDuration:CLOSE_SLIDE_DURATION(YES) animations:^{
- [self setSlidingFrameForOffset:self.referenceBounds.size.width - leftLedge];
- } completion:completion];
- }
- else if (leftLedge > _leftLedge) {
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) animations:^{
- [self setSlidingFrameForOffset:self.referenceBounds.size.width - leftLedge];
- } completion:completion];
- }
- }
- _leftLedge = leftLedge;
-}
-
-
-- (void)setRightLedge:(CGFloat)rightLedge {
- // Compute the final ledge in two steps. This prevents a strange bug where
- // nesting MAX(X, MIN(Y, Z)) with miniscule referenceBounds returns a bogus near-zero value.
- CGFloat minLedge = MIN(self.referenceBounds.size.width, rightLedge);
- rightLedge = MAX(rightLedge, minLedge);
- if (_viewAppeared && II_FLOAT_EQUAL(self.slidingControllerView.frame.origin.x, _rightLedge - self.referenceBounds.size.width)) {
- if (rightLedge < _rightLedge) {
- [UIView animateWithDuration:CLOSE_SLIDE_DURATION(YES) animations:^{
- [self setSlidingFrameForOffset:rightLedge - self.referenceBounds.size.width];
- }];
- }
- else if (rightLedge > _rightLedge) {
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) animations:^{
- [self setSlidingFrameForOffset:rightLedge - self.referenceBounds.size.width];
- }];
- }
- }
- _rightLedge = rightLedge;
-}
-
-- (void)setRightLedge:(CGFloat)rightLedge completion:(void(^)(BOOL finished))completion {
- // Compute the final ledge in two steps. This prevents a strange bug where
- // nesting MAX(X, MIN(Y, Z)) with miniscule referenceBounds returns a bogus near-zero value.
- CGFloat minLedge = MIN(self.referenceBounds.size.width, rightLedge);
- rightLedge = MAX(rightLedge, minLedge);
- if (_viewAppeared && II_FLOAT_EQUAL(self.slidingControllerView.frame.origin.x, _rightLedge - self.referenceBounds.size.width)) {
- if (rightLedge < _rightLedge) {
- [UIView animateWithDuration:CLOSE_SLIDE_DURATION(YES) animations:^{
- [self setSlidingFrameForOffset:rightLedge - self.referenceBounds.size.width];
- } completion:completion];
- }
- else if (rightLedge > _rightLedge) {
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) animations:^{
- [self setSlidingFrameForOffset:rightLedge - self.referenceBounds.size.width];
- } completion:completion];
- }
- }
- _rightLedge = rightLedge;
-}
-
-
-- (void)setMaxLedge:(CGFloat)maxLedge {
- _maxLedge = maxLedge;
- if (_leftController && _rightController) {
- NSLog(@"IIViewDeckController: warning: setting maxLedge with 2 side controllers. Value will be ignored.");
- return;
- }
-
- if (_leftController && _leftLedge > _maxLedge) {
- self.leftLedge = _maxLedge;
- }
- else if (_rightController && _rightLedge > _maxLedge) {
- self.rightLedge = _maxLedge;
- }
-
- [self setSlidingFrameForOffset:_offset];
-}
-
-#pragma mark - View lifecycle
-
-- (void)loadView
-{
- _offset = 0;
- _viewAppeared = NO;
- self.view = II_AUTORELEASE([[UIView alloc] init]);
- self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- self.view.autoresizesSubviews = YES;
- self.view.clipsToBounds = YES;
-}
-
-- (void)viewDidLoad {
- [super viewDidLoad];
-
- self.centerView = II_AUTORELEASE([[UIView alloc] init]);
- self.centerView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- self.centerView.autoresizesSubviews = YES;
- self.centerView.clipsToBounds = YES;
- [self.view addSubview:self.centerView];
-
- self.originalShadowRadius = 0;
- self.originalShadowOpacity = 0;
- self.originalShadowColor = nil;
- self.originalShadowOffset = CGSizeZero;
- self.originalShadowPath = nil;
-
- [self setNeedsStatusBarAppearanceUpdate];
-
-}
-
--(UIStatusBarStyle)preferredStatusBarStyle{
- return UIStatusBarStyleLightContent;
-}
-
-- (void)viewDidUnload
-{
- [self cleanup];
- [super viewDidUnload];
-}
-
-
-
-- (void)viewWillAppear:(BOOL)animated {
- [super viewWillAppear:animated];
-
- BOOL wasntAppeared = !_viewAppeared;
- [self.view addObserver:self forKeyPath:@"bounds" options:NSKeyValueChangeSetting context:nil];
-
- void(^applyViews)(void) = ^{
- [self.centerController.view removeFromSuperview];
- [self.centerView addSubview:self.centerController.view];
- [self.leftController.view removeFromSuperview];
- [self.referenceView insertSubview:self.leftController.view belowSubview:self.slidingControllerView];
- [self.rightController.view removeFromSuperview];
- [self.referenceView insertSubview:self.rightController.view belowSubview:self.slidingControllerView];
-
- [self reapplySideController:&_leftController];
- [self reapplySideController:&_rightController];
-
- [self setSlidingFrameForOffset:_offset];
- self.slidingControllerView.hidden = NO;
-
- self.centerView.frame = self.centerViewBounds;
- self.centerController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- self.centerController.view.frame = self.centerView.bounds;
- self.leftController.view.frame = self.sideViewBounds;
- self.leftController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- self.rightController.view.frame = self.sideViewBounds;
- self.rightController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
-
- [self applyShadowToSlidingView];
- };
-
- if ([self setSlidingAndReferenceViews])
- applyViews();
- _viewAppeared = YES;
-
- // after 0.01 sec, since in certain cases the sliding view is reset.
- dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.001 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void){
- if (!self.referenceView) {
- [self setSlidingAndReferenceViews];
- applyViews();
- }
- [self setSlidingFrameForOffset:_offset];
- [self hideAppropriateSideViews];
- });
-
- [self addPanners];
-
- if (self.slidingControllerView.frame.origin.x == 0.0f)
- [self centerViewVisible];
- else
- [self centerViewHidden];
-
- [self relayAppearanceMethod:^(UIViewController *controller) {
- [controller viewWillAppear:animated];
- } forced:wasntAppeared];
-}
-
-- (void)viewDidAppear:(BOOL)animated {
- [super viewDidAppear:animated];
-
- [self relayAppearanceMethod:^(UIViewController *controller) {
- [controller viewDidAppear:animated];
- }];
-}
-
-- (void)viewWillDisappear:(BOOL)animated {
- [super viewWillDisappear:animated];
-
- [self relayAppearanceMethod:^(UIViewController *controller) {
- [controller viewWillDisappear:animated];
- }];
-
- [self removePanners];
-}
-
-- (void)viewDidDisappear:(BOOL)animated {
- [super viewDidDisappear:animated];
-
- @try {
- [self.view removeObserver:self forKeyPath:@"bounds"];
- } @catch(id anException){
- //do nothing, obviously it wasn't attached because an exception was thrown
- }
-
- [self relayAppearanceMethod:^(UIViewController *controller) {
- [controller viewDidDisappear:animated];
- }];
-}
-
-#pragma mark - rotation
-
-/*
-
-
- We need a specific rotation for out APP, comment the default one
-
-
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- _preRotationWidth = self.referenceBounds.size.width;
- _preRotationCenterWidth = self.centerView.bounds.size.width;
-
- if (self.rotationBehavior == IIViewDeckRotationKeepsViewSizes) {
- _leftWidth = self.leftController.view.frame.size.width;
- _rightWidth = self.rightController.view.frame.size.width;
- }
-
- BOOL should = YES;
- if (self.centerController)
- should = [self.centerController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
-
- return should;
-}
-
-- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
- [super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
-
- [self relayAppearanceMethod:^(UIViewController *controller) {
- [controller willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
- }];
-
- [self arrangeViewsAfterRotation];
-}
-
-
-- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
- [super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
- [self restoreShadowToSlidingView];
-
- [self relayAppearanceMethod:^(UIViewController *controller) {
- [controller willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
- }];
-}
-
-- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
- [super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
- [self applyShadowToSlidingView];
-
- [self relayAppearanceMethod:^(UIViewController *controller) {
- [controller didRotateFromInterfaceOrientation:fromInterfaceOrientation];
- }];
-}
-*/
-
-- (BOOL) shouldAutorotate
-{
- return YES;
-}
-
-- (NSUInteger) supportedInterfaceOrientations
-{
- return UIInterfaceOrientationMaskPortrait;
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
-}
-
-
-- (void)arrangeViewsAfterRotation {
- if (_preRotationWidth <= 0) return;
-
- CGFloat offset = self.slidingControllerView.frame.origin.x;
- if (self.resizesCenterView && offset == 0) {
- offset = offset + (_preRotationCenterWidth - _preRotationWidth);
- }
-
- if (self.rotationBehavior == IIViewDeckRotationKeepsLedgeSizes) {
- if (offset > 0) {
- offset = self.referenceBounds.size.width - _preRotationWidth + offset;
- }
- else if (offset < 0) {
- offset = offset + _preRotationWidth - self.referenceBounds.size.width;
- }
- }
- else {
- self.leftLedge = self.leftLedge + self.referenceBounds.size.width - _preRotationWidth;
- self.rightLedge = self.rightLedge + self.referenceBounds.size.width - _preRotationWidth;
- self.maxLedge = self.maxLedge + self.referenceBounds.size.width - _preRotationWidth;
- }
- [self setSlidingFrameForOffset:offset];
-
- _preRotationWidth = 0;
-}
-
-#pragma mark - controller state
-
-- (BOOL)leftControllerIsClosed {
- return !self.leftController || CGRectGetMinX(self.slidingControllerView.frame) <= 0;
-}
-
-- (BOOL)rightControllerIsClosed {
- return !self.rightController || CGRectGetMaxX(self.slidingControllerView.frame) >= self.referenceBounds.size.width;
-}
-
-- (BOOL)leftControllerIsOpen {
- return self.leftController && CGRectGetMinX(self.slidingControllerView.frame) < self.referenceBounds.size.width && CGRectGetMinX(self.slidingControllerView.frame) >= self.rightLedge;
-}
-
-- (BOOL)rightControllerIsOpen {
- return self.rightController && CGRectGetMaxX(self.slidingControllerView.frame) < self.referenceBounds.size.width && CGRectGetMaxX(self.slidingControllerView.frame) >= self.leftLedge;
-}
-
-- (void)showCenterView {
- [self showCenterView:YES];
-}
-
-- (void)showCenterView:(BOOL)animated {
- [self showCenterView:animated completion:nil];
-}
-
-- (void)showCenterView:(BOOL)animated completion:(IIViewDeckControllerBlock)completed {
- BOOL mustRunCompletion = completed != nil;
- if (self.leftController && !self.leftController.view.hidden) {
- [self closeLeftViewAnimated:animated completion:completed];
- mustRunCompletion = NO;
- }
-
- if (self.rightController && !self.rightController.view.hidden) {
- [self closeRightViewAnimated:animated completion:completed];
- mustRunCompletion = NO;
- }
-
- if (mustRunCompletion)
- completed(self);
-}
-
-- (BOOL)toggleLeftView {
- return [self toggleLeftViewAnimated:YES];
-}
-
-- (BOOL)openLeftView {
- return [self openLeftViewAnimated:YES];
-}
-
-- (BOOL)closeLeftView {
- return [self closeLeftViewAnimated:YES];
-}
-
-- (BOOL)toggleLeftViewAnimated:(BOOL)animated {
- return [self toggleLeftViewAnimated:animated completion:nil];
-}
-
-- (BOOL)toggleLeftViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed {
- if ([self leftControllerIsClosed])
- return [self openLeftViewAnimated:animated completion:completed];
- else
- return [self closeLeftViewAnimated:animated completion:completed];
-}
-
-- (BOOL)openLeftViewAnimated:(BOOL)animated {
- return [self openLeftViewAnimated:animated completion:nil];
-}
-
-- (BOOL)openLeftViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed {
- return [self openLeftViewAnimated:animated options:UIViewAnimationOptionCurveEaseInOut callDelegate:YES completion:completed];
-}
-
-- (BOOL)openLeftViewAnimated:(BOOL)animated callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- return [self openLeftViewAnimated:animated options:UIViewAnimationOptionCurveEaseInOut callDelegate:callDelegate completion:completed];
-}
-
-- (BOOL)openLeftViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- if (!self.leftController || II_FLOAT_EQUAL(CGRectGetMinX(self.slidingControllerView.frame), self.leftLedge)) return YES;
-
- // check the delegate to allow opening
- if (callDelegate && ![self checkDelegate:@selector(viewDeckControllerWillOpenLeftView:animated:) animated:animated]) return NO;
- // also close the right view if it's open. Since the delegate can cancel the close, check the result.
- if (callDelegate && ![self closeRightViewAnimated:animated options:options callDelegate:callDelegate completion:completed]) return NO;
-
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(animated) delay:0 options:options | UIViewAnimationOptionLayoutSubviews | UIViewAnimationOptionBeginFromCurrentState animations:^{
- self.leftController.view.hidden = NO;
- [self setSlidingFrameForOffset:self.referenceBounds.size.width - self.leftLedge];
- [self centerViewHidden];
- } completion:^(BOOL finished) {
- if (completed) completed(self);
- if (callDelegate) [self performDelegate:@selector(viewDeckControllerDidOpenLeftView:animated:) animated:animated];
- }];
-
- return YES;
-}
-
-- (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced {
- return [self openLeftViewBouncing:bounced completion:nil];
-}
-
-- (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced completion:(IIViewDeckControllerBlock)completed {
- return [self openLeftViewBouncing:bounced callDelegate:YES completion:completed];
-}
-
-- (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- return [self openLeftViewBouncing:bounced options:UIViewAnimationOptionCurveEaseInOut callDelegate:YES completion:completed];
-}
-
-- (BOOL)openLeftViewBouncing:(IIViewDeckControllerBlock)bounced options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- if (!self.leftController || II_FLOAT_EQUAL(CGRectGetMinX(self.slidingControllerView.frame), self.leftLedge)) return YES;
-
- // check the delegate to allow opening
- if (callDelegate && ![self checkDelegate:@selector(viewDeckControllerWillOpenLeftView:animated:) animated:YES]) return NO;
- // also close the right view if it's open. Since the delegate can cancel the close, check the result.
- if (callDelegate && ![self closeRightViewAnimated:YES options:options callDelegate:callDelegate completion:completed]) return NO;
-
- // first open the view completely, run the block (to allow changes)
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) delay:0 options:UIViewAnimationOptionCurveEaseIn | UIViewAnimationOptionLayoutSubviews animations:^{
- self.leftController.view.hidden = NO;
- [self setSlidingFrameForOffset:self.referenceBounds.size.width];
- } completion:^(BOOL finished) {
- // run block if it's defined
- if (bounced) bounced(self);
- [self centerViewHidden];
-
- // now slide the view back to the ledge position
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) delay:0 options:options | UIViewAnimationOptionLayoutSubviews | UIViewAnimationOptionBeginFromCurrentState animations:^{
- [self setSlidingFrameForOffset:self.referenceBounds.size.width - self.leftLedge];
- } completion:^(BOOL finished) {
- if (completed) completed(self);
- if (callDelegate) [self performDelegate:@selector(viewDeckControllerDidOpenLeftView:animated:) animated:YES];
- }];
- }];
-
- return YES;
-}
-
-- (BOOL)closeLeftViewAnimated:(BOOL)animated {
- return [self closeLeftViewAnimated:animated completion:nil];
-}
-
-- (BOOL)closeLeftViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed {
- return [self closeLeftViewAnimated:animated callDelegate:YES completion:completed];
-}
-
-- (BOOL)closeLeftViewAnimated:(BOOL)animated callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- return [self closeLeftViewAnimated:animated options:UIViewAnimationOptionCurveEaseInOut callDelegate:callDelegate completion:completed];
-}
-
-- (BOOL)closeLeftViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- if (self.leftControllerIsClosed) return YES;
-
- // check the delegate to allow closing
- if (callDelegate && ![self checkDelegate:@selector(viewDeckControllerWillCloseLeftView:animated:) animated:animated]) return NO;
-
- [UIView animateWithDuration:CLOSE_SLIDE_DURATION(animated) delay:0 options:options | UIViewAnimationOptionLayoutSubviews animations:^{
- [self setSlidingFrameForOffset:0];
- [self centerViewVisible];
- } completion:^(BOOL finished) {
- [self hideAppropriateSideViews];
- if (completed) completed(self);
- if (callDelegate) {
- [self performDelegate:@selector(viewDeckControllerDidCloseLeftView:animated:) animated:animated];
- [self performDelegate:@selector(viewDeckControllerDidShowCenterView:animated:) animated:animated];
- }
- }];
-
- return YES;
-}
-
-- (BOOL)closeLeftViewBouncing:(IIViewDeckControllerBlock)bounced {
- return [self closeLeftViewBouncing:bounced completion:nil];
-}
-
-- (BOOL)closeLeftViewBouncing:(IIViewDeckControllerBlock)bounced completion:(IIViewDeckControllerBlock)completed {
- return [self closeLeftViewBouncing:bounced callDelegate:YES completion:completed];
-}
-
-- (BOOL)closeLeftViewBouncing:(IIViewDeckControllerBlock)bounced callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- if (self.leftControllerIsClosed) return YES;
-
- // check the delegate to allow closing
- if (callDelegate && ![self checkDelegate:@selector(viewDeckControllerWillCloseLeftView:animated:) animated:YES]) return NO;
-
- // first open the view completely, run the block (to allow changes) and close it again.
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) delay:0 options:UIViewAnimationOptionCurveEaseIn | UIViewAnimationOptionLayoutSubviews animations:^{
- [self setSlidingFrameForOffset:self.referenceBounds.size.width];
- } completion:^(BOOL finished) {
- // run block if it's defined
- if (bounced) bounced(self);
- if (callDelegate && self.delegate && [self.delegate respondsToSelector:@selector(viewDeckController:didBounceWithClosingController:)])
- [self.delegate viewDeckController:self didBounceWithClosingController:self.leftController];
-
- [UIView animateWithDuration:CLOSE_SLIDE_DURATION(YES) delay:0 options:UIViewAnimationOptionCurveEaseOut | UIViewAnimationOptionLayoutSubviews animations:^{
- [self setSlidingFrameForOffset:0];
- [self centerViewVisible];
- } completion:^(BOOL finished2) {
- [self hideAppropriateSideViews];
- if (completed) completed(self);
- if (callDelegate) {
- [self performDelegate:@selector(viewDeckControllerDidCloseLeftView:animated:) animated:YES];
- [self performDelegate:@selector(viewDeckControllerDidShowCenterView:animated:) animated:YES];
- }
- }];
- }];
-
- return YES;
-}
-
-
-- (BOOL)toggleRightView {
- return [self toggleRightViewAnimated:YES];
-}
-
-- (BOOL)openRightView {
- return [self openRightViewAnimated:YES];
-}
-
-- (BOOL)closeRightView {
- return [self closeRightViewAnimated:YES];
-}
-
-- (BOOL)toggleRightViewAnimated:(BOOL)animated {
- return [self toggleRightViewAnimated:animated completion:nil];
-}
-
-- (BOOL)toggleRightViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed {
- if ([self rightControllerIsClosed])
- return [self openRightViewAnimated:animated completion:completed];
- else
- return [self closeRightViewAnimated:animated completion:completed];
-}
-
-- (BOOL)openRightViewAnimated:(BOOL)animated {
- return [self openRightViewAnimated:animated completion:nil];
-}
-
-- (BOOL)openRightViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed {
- return [self openRightViewAnimated:animated options:UIViewAnimationOptionCurveEaseInOut callDelegate:YES completion:completed];
-}
-
-- (BOOL)openRightViewAnimated:(BOOL)animated callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- return [self openRightViewAnimated:animated options:UIViewAnimationOptionCurveEaseInOut callDelegate:callDelegate completion:completed];
-}
-
-- (BOOL)openRightViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- if (!self.rightController || II_FLOAT_EQUAL(CGRectGetMaxX(self.slidingControllerView.frame), self.rightLedge)) return YES;
-
- // check the delegate to allow opening
- if (callDelegate && ![self checkDelegate:@selector(viewDeckControllerWillOpenRightView:animated:) animated:animated]) return NO;
- // also close the left view if it's open. Since the delegate can cancel the close, check the result.
- if (callDelegate && ![self closeLeftViewAnimated:animated options:options callDelegate:callDelegate completion:completed]) return NO;
-
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(animated) delay:0 options:options | UIViewAnimationOptionLayoutSubviews animations:^{
- self.rightController.view.hidden = NO;
- [self setSlidingFrameForOffset:self.rightLedge - self.referenceBounds.size.width];
- [self centerViewHidden];
- } completion:^(BOOL finished) {
- if (completed) completed(self);
- if (callDelegate) [self performDelegate:@selector(viewDeckControllerDidOpenRightView:animated:) animated:animated];
- }];
-
- return YES;
-}
-
-- (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced {
- return [self openRightViewBouncing:bounced completion:nil];
-}
-
-- (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced completion:(IIViewDeckControllerBlock)completed {
- return [self openRightViewBouncing:bounced callDelegate:YES completion:completed];
-}
-
-- (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- return [self openRightViewBouncing:bounced options:UIViewAnimationOptionCurveEaseInOut callDelegate:YES completion:completed];
-}
-
-- (BOOL)openRightViewBouncing:(IIViewDeckControllerBlock)bounced options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- if (!self.rightController || II_FLOAT_EQUAL(CGRectGetMinX(self.slidingControllerView.frame), self.rightLedge)) return YES;
-
- // check the delegate to allow opening
- if (callDelegate && ![self checkDelegate:@selector(viewDeckControllerWillOpenRightView:animated:) animated:YES]) return NO;
- // also close the right view if it's open. Since the delegate can cancel the close, check the result.
- if (callDelegate && ![self closeLeftViewAnimated:YES options:options callDelegate:callDelegate completion:completed]) return NO;
-
- // first open the view completely, run the block (to allow changes)
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) delay:0 options:UIViewAnimationOptionCurveEaseIn | UIViewAnimationOptionLayoutSubviews animations:^{
- self.rightController.view.hidden = NO;
- [self setSlidingFrameForOffset:-self.referenceBounds.size.width];
- } completion:^(BOOL finished) {
- // run block if it's defined
- if (bounced) bounced(self);
- [self centerViewHidden];
-
- // now slide the view back to the ledge position
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) delay:0 options:options | UIViewAnimationOptionLayoutSubviews | UIViewAnimationOptionBeginFromCurrentState animations:^{
- [self setSlidingFrameForOffset:self.rightLedge - self.referenceBounds.size.width];
- } completion:^(BOOL finished) {
- if (completed) completed(self);
- if (callDelegate) [self performDelegate:@selector(viewDeckControllerDidOpenRightView:animated:) animated:YES];
- }];
- }];
-
- return YES;
-}
-
-- (BOOL)closeRightViewAnimated:(BOOL)animated {
- return [self closeRightViewAnimated:animated completion:nil];
-}
-
-- (BOOL)closeRightViewAnimated:(BOOL)animated completion:(IIViewDeckControllerBlock)completed {
- return [self closeRightViewAnimated:animated options:UIViewAnimationOptionCurveEaseInOut callDelegate:YES completion:completed];
-}
-
-- (BOOL)closeRightViewAnimated:(BOOL)animated callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- return [self openRightViewAnimated:animated options:UIViewAnimationOptionCurveEaseInOut callDelegate:callDelegate completion:completed];
-}
-
-- (BOOL)closeRightViewAnimated:(BOOL)animated options:(UIViewAnimationOptions)options callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- if (self.rightControllerIsClosed) return YES;
-
- // check the delegate to allow closing
- if (callDelegate && ![self checkDelegate:@selector(viewDeckControllerWillCloseRightView:animated:) animated:animated]) return NO;
-
- [UIView animateWithDuration:CLOSE_SLIDE_DURATION(animated) delay:0 options:options | UIViewAnimationOptionLayoutSubviews animations:^{
- [self setSlidingFrameForOffset:0];
- [self centerViewVisible];
- } completion:^(BOOL finished) {
- if (completed) completed(self);
- [self hideAppropriateSideViews];
- if (callDelegate) {
- [self performDelegate:@selector(viewDeckControllerDidCloseRightView:animated:) animated:animated];
- [self performDelegate:@selector(viewDeckControllerDidShowCenterView:animated:) animated:animated];
- }
- }];
-
- return YES;
-}
-
-- (BOOL)closeRightViewBouncing:(IIViewDeckControllerBlock)bounced {
- return [self closeRightViewBouncing:bounced completion:nil];
-}
-
-- (BOOL)closeRightViewBouncing:(IIViewDeckControllerBlock)bounced completion:(IIViewDeckControllerBlock)completed {
- return [self closeRightViewBouncing:bounced callDelegate:YES completion:completed];
-}
-
-- (BOOL)closeRightViewBouncing:(IIViewDeckControllerBlock)bounced callDelegate:(BOOL)callDelegate completion:(IIViewDeckControllerBlock)completed {
- if (self.rightControllerIsClosed) return YES;
-
- // check the delegate to allow closing
- if (callDelegate && ![self checkDelegate:@selector(viewDeckControllerWillCloseRightView:animated:) animated:YES]) return NO;
-
- [UIView animateWithDuration:OPEN_SLIDE_DURATION(YES) delay:0 options:UIViewAnimationOptionCurveEaseIn | UIViewAnimationOptionLayoutSubviews animations:^{
- [self setSlidingFrameForOffset:-self.referenceBounds.size.width];
- } completion:^(BOOL finished) {
- if (bounced) bounced(self);
- if (callDelegate && self.delegate && [self.delegate respondsToSelector:@selector(viewDeckController:didBounceWithClosingController:)])
- [self.delegate viewDeckController:self didBounceWithClosingController:self.rightController];
-
- [UIView animateWithDuration:CLOSE_SLIDE_DURATION(YES) delay:0 options:UIViewAnimationOptionCurveEaseOut | UIViewAnimationOptionLayoutSubviews animations:^{
- [self setSlidingFrameForOffset:0];
- [self centerViewVisible];
- } completion:^(BOOL finished2) {
- [self hideAppropriateSideViews];
- if (completed) completed(self);
- [self performDelegate:@selector(viewDeckControllerDidCloseRightView:animated:) animated:YES];
- [self performDelegate:@selector(viewDeckControllerDidShowCenterView:animated:) animated:YES];
- }];
- }];
-
- return YES;
-}
-
-- (void)rightViewPushViewControllerOverCenterController:(UIViewController*)controller {
- NSAssert([self.centerController isKindOfClass:[UINavigationController class]], @"cannot rightViewPushViewControllerOverCenterView when center controller is not a navigation controller");
-
- UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, YES, 0.0);
-
- CGContextRef context = UIGraphicsGetCurrentContext();
- [self.view.layer renderInContext:context];
- UIImage *deckshot = UIGraphicsGetImageFromCurrentImageContext();
- UIGraphicsEndImageContext();
-
- UIImageView* shotView = [[UIImageView alloc] initWithImage:deckshot];
- shotView.frame = self.view.frame;
- [self.view.superview addSubview:shotView];
- CGRect targetFrame = self.view.frame;
- self.view.frame = CGRectOffset(self.view.frame, self.view.frame.size.width, 0);
-
- [self closeRightViewAnimated:NO];
- UINavigationController* navController = (UINavigationController*)self.centerController;
- [navController pushViewController:controller animated:NO];
-
- [UIView animateWithDuration:0.3 delay:0 options:0 animations:^{
- shotView.frame = CGRectOffset(shotView.frame, -self.view.frame.size.width, 0);
- self.view.frame = targetFrame;
- } completion:^(BOOL finished) {
- [shotView removeFromSuperview];
- }];
-}
-
-
-
-#pragma mark - Pre iOS5 message relaying
-
-- (void)relayAppearanceMethod:(void(^)(UIViewController* controller))relay forced:(BOOL)forced {
- bool shouldRelay = ![self respondsToSelector:@selector(automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers)] || ![self performSelector:@selector(automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers)];
-
- // don't relay if the controller supports automatic relaying
- if (!shouldRelay && !forced)
- return;
-
- relay(self.centerController);
- relay(self.leftController);
- relay(self.rightController);
-}
-
-- (void)relayAppearanceMethod:(void(^)(UIViewController* controller))relay {
- [self relayAppearanceMethod:relay forced:NO];
-}
-
-#pragma mark - center view hidden stuff
-
-- (void)centerViewVisible {
- [self removePanners];
- if (self.centerTapper) {
- [self.centerTapper removeTarget:self action:@selector(centerTapped) forControlEvents:UIControlEventTouchUpInside];
- [self.centerTapper removeFromSuperview];
- }
- self.centerTapper = nil;
- [self addPanners];
-}
-
-- (void)centerViewHidden {
- if (IIViewDeckCenterHiddenIsInteractive(self.centerhiddenInteractivity))
- return;
-
- [self removePanners];
- if (!self.centerTapper) {
- self.centerTapper = [UIButton buttonWithType:UIButtonTypeCustom];
- self.centerTapper.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- self.centerTapper.frame = [self.centerView bounds];
- [self.centerView addSubview:self.centerTapper];
- [self.centerTapper addTarget:self action:@selector(centerTapped) forControlEvents:UIControlEventTouchUpInside];
- self.centerTapper.backgroundColor = [UIColor clearColor];
-
- }
- self.centerTapper.frame = [self.centerView bounds];
- [self addPanners];
-}
-
-- (void)centerTapped {
- if (IIViewDeckCenterHiddenCanTapToClose(self.centerhiddenInteractivity)) {
- if (self.leftController && CGRectGetMinX(self.slidingControllerView.frame) > 0) {
- if (self.centerhiddenInteractivity == IIViewDeckCenterHiddenNotUserInteractiveWithTapToClose)
- [self closeLeftView];
- else
- [self closeLeftViewBouncing:nil];
- }
- if (self.rightController && CGRectGetMinX(self.slidingControllerView.frame) < 0) {
- if (self.centerhiddenInteractivity == IIViewDeckCenterHiddenNotUserInteractiveWithTapToClose)
- [self closeRightView];
- else
- [self closeRightViewBouncing:nil];
- }
-
- }
-}
-
-#pragma mark - Panning
-
-- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
- if (self.panningGestureDelegate && [self.panningGestureDelegate respondsToSelector:@selector(gestureRecognizerShouldBegin:)]) {
- BOOL result = [self.panningGestureDelegate gestureRecognizerShouldBegin:gestureRecognizer];
- if (!result) return result;
- }
-
- CGFloat px = self.slidingControllerView.frame.origin.x;
- if (px != 0) return YES;
-
- CGFloat x = [self locationOfPanner:(UIPanGestureRecognizer*)gestureRecognizer];
- BOOL ok = YES;
-
- if (x > 0) {
- ok = [self checkDelegate:@selector(viewDeckControllerWillOpenLeftView:animated:) animated:NO];
- if (!ok)
- [self closeLeftViewAnimated:NO];
- }
- else if (x < 0) {
- ok = [self checkDelegate:@selector(viewDeckControllerWillOpenRightView:animated:) animated:NO];
- if (!ok)
- [self closeRightViewAnimated:NO];
- }
-
- return ok;
-}
-
-- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
- if (self.panningGestureDelegate && [self.panningGestureDelegate respondsToSelector:@selector(gestureRecognizer:shouldReceiveTouch:)]) {
- BOOL result = [self.panningGestureDelegate gestureRecognizer:gestureRecognizer
- shouldReceiveTouch:touch];
- if (!result) return result;
- }
-
- if ([[touch view] isKindOfClass:[UISlider class]])
- return NO;
-
- _panOrigin = self.slidingControllerView.frame.origin.x;
- return YES;
-}
-
--(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
- if (self.panningGestureDelegate && [self.panningGestureDelegate respondsToSelector:@selector(gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:)]) {
- return [self.panningGestureDelegate gestureRecognizer:gestureRecognizer
- shouldRecognizeSimultaneouslyWithGestureRecognizer:otherGestureRecognizer];
- }
-
- return NO;
-}
-
-- (CGFloat)locationOfPanner:(UIPanGestureRecognizer*)panner {
- CGPoint pan = [panner translationInView:self.referenceView];
- CGFloat x = pan.x + _panOrigin;
-
- if (!self.leftController) x = MIN(0, x);
- if (!self.rightController) x = MAX(0, x);
-
- CGFloat w = self.referenceBounds.size.width;
- CGFloat lx = fmaxf(fminf(x, w-self.leftLedge), -w+self.rightLedge);
-
- if (self.elastic) {
- CGFloat dx = ABS(x) - ABS(lx);
- if (dx > 0) {
- dx = dx / logf(dx + 1) * 2;
- x = lx + (x < 0 ? -dx : dx);
- }
- }
- else {
- x = lx;
- }
-
- return [self limitOffset:x];
-}
-
-- (void)panned:(UIPanGestureRecognizer*)panner {
- if (!_enabled) return;
-
- CGFloat px = self.slidingControllerView.frame.origin.x;
- CGFloat x = [self locationOfPanner:panner];
- CGFloat w = self.referenceBounds.size.width;
-
- SEL didCloseSelector = nil;
- SEL didOpenSelector = nil;
-
- // if we move over a boundary while dragging, ...
- if (px <= 0 && x >= 0 && px != x) {
- // ... then we need to check if the other side can open.
- if (px < 0) {
- BOOL canClose = [self checkDelegate:@selector(viewDeckControllerWillCloseRightView:animated:) animated:NO];
- if (!canClose)
- return;
- didCloseSelector = @selector(viewDeckControllerDidCloseRightView:animated:);
- }
-
- if (x > 0) {
- BOOL canOpen = [self checkDelegate:@selector(viewDeckControllerWillOpenLeftView:animated:) animated:NO];
- didOpenSelector = @selector(viewDeckControllerDidOpenLeftView:animated:);
- if (!canOpen) {
- [self closeRightViewAnimated:NO];
- return;
- }
- }
- }
- else if (px >= 0 && x <= 0 && px != x) {
- if (px > 0) {
- BOOL canClose = [self checkDelegate:@selector(viewDeckControllerWillCloseLeftView:animated:) animated:NO];
- if (!canClose) {
- return;
- }
- didCloseSelector = @selector(viewDeckControllerDidCloseLeftView:animated:);
- }
-
- if (x < 0) {
- BOOL canOpen = [self checkDelegate:@selector(viewDeckControllerWillOpenRightView:animated:) animated:NO];
- didOpenSelector = @selector(viewDeckControllerDidOpenRightView:animated:);
- if (!canOpen) {
- [self closeLeftViewAnimated:NO];
- return;
- }
- }
- }
-
- [self setSlidingFrameForOffset:x];
-
- [self performOffsetDelegate:@selector(viewDeckController:didPanToOffset:) offset:x];
-
- if (panner.state == UIGestureRecognizerStateEnded ||
- panner.state == UIGestureRecognizerStateCancelled ||
- panner.state == UIGestureRecognizerStateFailed) {
- if (self.slidingControllerView.frame.origin.x == 0.0f)
- [self centerViewVisible];
- else
- [self centerViewHidden];
-
- CGFloat lw3 = (w-self.leftLedge) / 3.0;
- CGFloat rw3 = (w-self.rightLedge) / 3.0;
- CGFloat velocity = [panner velocityInView:self.referenceView].x;
- if (ABS(velocity) < 500) {
- // small velocity, no movement
- if (x >= w - self.leftLedge - lw3) {
- [self openLeftViewAnimated:YES options:UIViewAnimationOptionCurveEaseOut callDelegate:NO completion:nil];
- }
- else if (x <= self.rightLedge + rw3 - w) {
- [self openRightViewAnimated:YES options:UIViewAnimationOptionCurveEaseOut callDelegate:NO completion:nil];
- }
- else
- [self showCenterView:YES];
- }
- else if (velocity < 0) {
- // swipe to the left
- if (x < 0) {
- [self openRightViewAnimated:YES options:UIViewAnimationOptionCurveEaseOut callDelegate:YES completion:nil];
- }
- else
- [self showCenterView:YES];
- }
- else if (velocity > 0) {
- // swipe to the right
- if (x > 0) {
- [self openLeftViewAnimated:YES options:UIViewAnimationOptionCurveEaseOut callDelegate:YES completion:nil];
- }
- else
- [self showCenterView:YES];
- }
- }
- else
- [self hideAppropriateSideViews];
-
- if (didCloseSelector)
- [self performDelegate:didCloseSelector animated:NO];
- if (didOpenSelector)
- [self performDelegate:didOpenSelector animated:NO];
-}
-
-
-- (void)addPanner:(UIView*)view {
- if (!view) return;
-
- UIPanGestureRecognizer* panner = II_AUTORELEASE([[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panned:)]);
- panner.cancelsTouchesInView = YES;
- panner.delegate = self;
- [view addGestureRecognizer:panner];
- [self.panners addObject:panner];
-}
-
-
-- (void)addPanners {
- [self removePanners];
-
- switch (_panningMode) {
- case IIViewDeckNoPanning:
- break;
-
- case IIViewDeckFullViewPanning:
- [self addPanner:self.slidingControllerView];
- // also add to disabled center
- if (self.centerTapper)
- [self addPanner:self.centerTapper];
- // also add to navigationbar if present
- if (self.navigationController && !self.navigationController.navigationBarHidden)
- [self addPanner:self.navigationController.navigationBar];
- break;
-
- case IIViewDeckNavigationBarPanning:
- if (self.navigationController && !self.navigationController.navigationBarHidden) {
- [self addPanner:self.navigationController.navigationBar];
- }
-
- if (self.centerController.navigationController && !self.centerController.navigationController.navigationBarHidden) {
- [self addPanner:self.centerController.navigationController.navigationBar];
- }
-
- if ([self.centerController isKindOfClass:[UINavigationController class]] && !((UINavigationController*)self.centerController).navigationBarHidden) {
- [self addPanner:((UINavigationController*)self.centerController).navigationBar];
- }
- break;
- case IIViewDeckPanningViewPanning:
- if (_panningView) {
- [self addPanner:self.panningView];
- }
- break;
- }
-}
-
-
-- (void)removePanners {
- for (UIGestureRecognizer* panner in self.panners) {
- [panner.view removeGestureRecognizer:panner];
- }
- [self.panners removeAllObjects];
-}
-
-#pragma mark - Delegate convenience methods
-
-- (BOOL)checkDelegate:(SEL)selector animated:(BOOL)animated {
- BOOL ok = YES;
- // used typed message send to properly pass values
- BOOL (*objc_msgSendTyped)(id self, SEL _cmd, IIViewDeckController* foo, BOOL animated) = (void*)objc_msgSend;
-
- if (self.delegate && [self.delegate respondsToSelector:selector])
- ok = ok & objc_msgSendTyped(self.delegate, selector, self, animated);
-
- for (UIViewController* controller in self.controllers) {
- // check controller first
- if ([controller respondsToSelector:selector] && (id)controller != (id)self.delegate)
- ok = ok & objc_msgSendTyped(controller, selector, self, animated);
- // if that fails, check if it's a navigation controller and use the top controller
- else if ([controller isKindOfClass:[UINavigationController class]]) {
- UIViewController* topController = ((UINavigationController*)controller).topViewController;
- if ([topController respondsToSelector:selector] && (id)topController != (id)self.delegate)
- ok = ok & objc_msgSendTyped(topController, selector, self, animated);
- }
- }
-
- return ok;
-}
-
-- (void)performDelegate:(SEL)selector animated:(BOOL)animated {
- // used typed message send to properly pass values
- void (*objc_msgSendTyped)(id self, SEL _cmd, IIViewDeckController* foo, BOOL animated) = (void*)objc_msgSend;
-
- if (self.delegate && [self.delegate respondsToSelector:selector])
- objc_msgSendTyped(self.delegate, selector, self, animated);
-
- for (UIViewController* controller in self.controllers) {
- // check controller first
- if ([controller respondsToSelector:selector] && (id)controller != (id)self.delegate)
- objc_msgSendTyped(controller, selector, self, animated);
- // if that fails, check if it's a navigation controller and use the top controller
- else if ([controller isKindOfClass:[UINavigationController class]]) {
- UIViewController* topController = ((UINavigationController*)controller).topViewController;
- if ([topController respondsToSelector:selector] && (id)topController != (id)self.delegate)
- objc_msgSendTyped(topController, selector, self, animated);
- }
- }
-}
-
-- (void)performOffsetDelegate:(SEL)selector offset:(CGFloat)offset {
- void (*objc_msgSendTyped)(id self, SEL _cmd, IIViewDeckController* foo, CGFloat offset) = (void*)objc_msgSend;
- if (self.delegate && [self.delegate respondsToSelector:selector])
- objc_msgSendTyped(self.delegate, selector, self, offset);
-
- for (UIViewController* controller in self.controllers) {
- // check controller first
- if ([controller respondsToSelector:selector] && (id)controller != (id)self.delegate)
- objc_msgSendTyped(controller, selector, self, offset);
-
- // if that fails, check if it's a navigation controller and use the top controller
- else if ([controller isKindOfClass:[UINavigationController class]]) {
- UIViewController* topController = ((UINavigationController*)controller).topViewController;
- if ([topController respondsToSelector:selector] && (id)topController != (id)self.delegate)
- objc_msgSendTyped(topController, selector, self, offset);
- }
- }
-}
-
-
-#pragma mark - Properties
-
-- (void)setTitle:(NSString *)title {
- if (!II_STRING_EQUAL(title, self.title)) [super setTitle:title];
- if (!II_STRING_EQUAL(title, self.centerController.title)) self.centerController.title = title;
-}
-
-- (NSString*)title {
- return self.centerController.title;
-}
-
-- (void)setPanningMode:(IIViewDeckPanningMode)panningMode {
- if (_viewAppeared) {
- [self removePanners];
- _panningMode = panningMode;
- [self addPanners];
- }
- else
- _panningMode = panningMode;
-}
-
-- (void)setPanningView:(UIView *)panningView {
- if (_panningView != panningView) {
- II_RELEASE(_panningView);
- _panningView = panningView;
- II_RETAIN(_panningView);
-
- if (_viewAppeared && _panningMode == IIViewDeckPanningViewPanning)
- [self addPanners];
- }
-}
-
-- (void)setNavigationControllerBehavior:(IIViewDeckNavigationControllerBehavior)navigationControllerBehavior {
- if (!_viewAppeared) {
- _navigationControllerBehavior = navigationControllerBehavior;
- }
- else {
- @throw [NSException exceptionWithName:NSInternalInconsistencyException reason:@"Cannot set navigationcontroller behavior when the view deck is already showing." userInfo:nil];
- }
-}
-
-- (void)applySideController:(__strong UIViewController **)controllerStore to:(UIViewController *)newController otherSideController:(UIViewController *)otherController clearOtherController:(void(^)())clearOtherController {
- void(^beforeBlock)(UIViewController* controller) = ^(UIViewController* controller){};
- void(^afterBlock)(UIViewController* controller, BOOL left) = ^(UIViewController* controller, BOOL left){};
-
- if (_viewAppeared) {
- beforeBlock = ^(UIViewController* controller) {
- [controller vdc_viewWillDisappear:NO];
- [controller.view removeFromSuperview];
- [controller vdc_viewDidDisappear:NO];
- };
- afterBlock = ^(UIViewController* controller, BOOL left) {
- [controller vdc_viewWillAppear:NO];
- controller.view.hidden = left ? self.slidingControllerView.frame.origin.x <= 0 : self.slidingControllerView.frame.origin.x >= 0;
- controller.view.frame = self.referenceBounds;
- controller.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- if (self.slidingController)
- [self.referenceView insertSubview:controller.view belowSubview:self.slidingControllerView];
- else
- [self.referenceView addSubview:controller.view];
- [controller vdc_viewDidAppear:NO];
- };
- }
-
- // start the transition
- if (*controllerStore) {
- [*controllerStore willMoveToParentViewController:nil];
- if (newController == self.centerController) self.centerController = nil;
- if (newController == otherController && clearOtherController) clearOtherController();
- beforeBlock(*controllerStore);
- [*controllerStore setViewDeckController:nil];
- [*controllerStore removeFromParentViewController];
- [*controllerStore didMoveToParentViewController:nil];
- }
-
- // make the switch
- if (*controllerStore != newController) {
- II_RELEASE(*controllerStore);
- *controllerStore = newController;
- II_RETAIN(*controllerStore);
- }
-
- if (*controllerStore) {
- [newController willMoveToParentViewController:nil];
- [newController removeFromParentViewController];
- [newController didMoveToParentViewController:nil];
-
- // and finish the transition
- UIViewController* parentController = (self.referenceView == self.view) ? self : [[self parentViewController] parentViewController];
- [parentController addChildViewController:*controllerStore];
- [*controllerStore setViewDeckController:self];
- afterBlock(*controllerStore, *controllerStore == _leftController);
- [*controllerStore didMoveToParentViewController:parentController];
- }
-}
-
-- (void)reapplySideController:(__strong UIViewController **)controllerStore {
- [self applySideController:controllerStore to:*controllerStore otherSideController:nil clearOtherController:nil];
-}
-
-- (void)setLeftController:(UIViewController *)leftController {
- if (_leftController == leftController) return;
- [self applySideController:&_leftController to:leftController otherSideController:_rightController clearOtherController:^() { self.rightController = nil; }];
-}
-
-- (void)setRightController:(UIViewController *)rightController {
- if (_rightController == rightController) return;
- [self applySideController:&_rightController to:rightController otherSideController:_leftController clearOtherController:^() { self.leftController = nil; }];
-}
-
-
-- (void)setCenterController:(UIViewController *)centerController {
- if (_centerController == centerController) return;
-
- void(^beforeBlock)(UIViewController* controller) = ^(UIViewController* controller){};
- void(^afterBlock)(UIViewController* controller) = ^(UIViewController* controller){};
-
- __block CGRect currentFrame = self.referenceBounds;
- if (_viewAppeared) {
- beforeBlock = ^(UIViewController* controller) {
- [controller vdc_viewWillDisappear:NO];
- [self restoreShadowToSlidingView];
- [self removePanners];
- [controller.view removeFromSuperview];
- [controller vdc_viewDidDisappear:NO];
- [self.centerView removeFromSuperview];
- };
- afterBlock = ^(UIViewController* controller) {
- [self.view addSubview:self.centerView];
- [controller vdc_viewWillAppear:NO];
- UINavigationController* navController = [centerController isKindOfClass:[UINavigationController class]]
- ? (UINavigationController*)centerController
- : nil;
- BOOL barHidden = NO;
- if (navController != nil && !navController.navigationBarHidden) {
- barHidden = YES;
- navController.navigationBarHidden = YES;
- }
-
- [self setSlidingAndReferenceViews];
- controller.view.frame = currentFrame;
- controller.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- controller.view.hidden = NO;
- [self.centerView addSubview:controller.view];
-
- if (barHidden)
- navController.navigationBarHidden = NO;
-
- [self addPanners];
- [self applyShadowToSlidingView];
- [controller vdc_viewDidAppear:NO];
- };
- }
-
- // start the transition
- if (_centerController) {
- currentFrame = _centerController.view.frame;
- [_centerController willMoveToParentViewController:nil];
- if (centerController == self.leftController) self.leftController = nil;
- if (centerController == self.rightController) self.rightController = nil;
- beforeBlock(_centerController);
- @try {
- [_centerController removeObserver:self forKeyPath:@"title"];
- if (self.automaticallyUpdateTabBarItems) {
- [_centerController removeObserver:self forKeyPath:@"tabBarItem.title"];
- [_centerController removeObserver:self forKeyPath:@"tabBarItem.image"];
- [_centerController removeObserver:self forKeyPath:@"hidesBottomBarWhenPushed"];
- }
- }
- @catch (NSException *exception) {}
- [_centerController setViewDeckController:nil];
- [_centerController removeFromParentViewController];
-
-
- [_centerController didMoveToParentViewController:nil];
- II_RELEASE(_centerController);
- }
-
- // make the switch
- _centerController = centerController;
-
- if (_centerController) {
- // and finish the transition
- II_RETAIN(_centerController);
- [self addChildViewController:_centerController];
- [_centerController setViewDeckController:self];
- [_centerController addObserver:self forKeyPath:@"title" options:0 context:nil];
- self.title = _centerController.title;
- if (self.automaticallyUpdateTabBarItems) {
- [_centerController addObserver:self forKeyPath:@"tabBarItem.title" options:0 context:nil];
- [_centerController addObserver:self forKeyPath:@"tabBarItem.image" options:0 context:nil];
- [_centerController addObserver:self forKeyPath:@"hidesBottomBarWhenPushed" options:0 context:nil];
- self.tabBarItem.title = _centerController.tabBarItem.title;
- self.tabBarItem.image = _centerController.tabBarItem.image;
- self.hidesBottomBarWhenPushed = _centerController.hidesBottomBarWhenPushed;
- }
-
- afterBlock(_centerController);
- [_centerController didMoveToParentViewController:self];
- }
-}
-
-- (void)setAutomaticallyUpdateTabBarItems:(BOOL)automaticallyUpdateTabBarItems {
- if (_automaticallyUpdateTabBarItems) {
- @try {
- [_centerController removeObserver:self forKeyPath:@"tabBarItem.title"];
- [_centerController removeObserver:self forKeyPath:@"tabBarItem.image"];
- [_centerController removeObserver:self forKeyPath:@"hidesBottomBarWhenPushed"];
- }
- @catch (NSException *exception) {}
- }
-
- _automaticallyUpdateTabBarItems = automaticallyUpdateTabBarItems;
-
- if (_automaticallyUpdateTabBarItems) {
- [_centerController addObserver:self forKeyPath:@"tabBarItem.title" options:0 context:nil];
- [_centerController addObserver:self forKeyPath:@"tabBarItem.image" options:0 context:nil];
- [_centerController addObserver:self forKeyPath:@"hidesBottomBarWhenPushed" options:0 context:nil];
- self.tabBarItem.title = _centerController.tabBarItem.title;
- self.tabBarItem.image = _centerController.tabBarItem.image;
- }
-}
-
-
-- (BOOL)setSlidingAndReferenceViews {
- if (self.navigationController && self.navigationControllerBehavior == IIViewDeckNavigationControllerIntegrated) {
- if ([self.navigationController.view superview]) {
- _slidingController = self.navigationController;
- self.referenceView = [self.navigationController.view superview];
- return YES;
- }
- }
- else {
- _slidingController = self.centerController;
- self.referenceView = self.view;
- return YES;
- }
-
- return NO;
-}
-
-- (UIView*)slidingControllerView {
- if (self.navigationController && self.navigationControllerBehavior == IIViewDeckNavigationControllerIntegrated) {
- return self.slidingController.view;
- }
- else {
- return self.centerView;
- }
-}
-
-#pragma mark - observation
-
-- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
- if (object == _centerController) {
- if ([@"tabBarItem.title" isEqualToString:keyPath]) {
- self.tabBarItem.title = _centerController.tabBarItem.title;
- return;
- }
-
- if ([@"tabBarItem.image" isEqualToString:keyPath]) {
- self.tabBarItem.image = _centerController.tabBarItem.image;
- return;
- }
-
- if ([@"hidesBottomBarWhenPushed" isEqualToString:keyPath]) {
- self.hidesBottomBarWhenPushed = _centerController.hidesBottomBarWhenPushed;
- self.tabBarController.hidesBottomBarWhenPushed = _centerController.hidesBottomBarWhenPushed;
- return;
- }
- }
-
- if ([@"title" isEqualToString:keyPath]) {
- if (!II_STRING_EQUAL([super title], self.centerController.title)) {
- self.title = self.centerController.title;
- }
- return;
- }
-
- if ([keyPath isEqualToString:@"bounds"]) {
- CGFloat offset = self.slidingControllerView.frame.origin.x;
- [self setSlidingFrameForOffset:offset];
- self.slidingControllerView.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.referenceBounds].CGPath;
- UINavigationController* navController = [self.centerController isKindOfClass:[UINavigationController class]]
- ? (UINavigationController*)self.centerController
- : nil;
- if (navController != nil && !navController.navigationBarHidden) {
- navController.navigationBarHidden = YES;
- navController.navigationBarHidden = NO;
- }
- return;
- }
-}
-
-#pragma mark - Shadow
-
-- (void)restoreShadowToSlidingView {
- UIView* shadowedView = self.slidingControllerView;
- if (!shadowedView) return;
-
- shadowedView.layer.shadowRadius = self.originalShadowRadius;
- shadowedView.layer.shadowOpacity = self.originalShadowOpacity;
- shadowedView.layer.shadowColor = [self.originalShadowColor CGColor];
- shadowedView.layer.shadowOffset = self.originalShadowOffset;
- shadowedView.layer.shadowPath = [self.originalShadowPath CGPath];
-}
-
-- (void)applyShadowToSlidingView {
- UIView* shadowedView = self.slidingControllerView;
- if (!shadowedView) return;
-
- self.originalShadowRadius = shadowedView.layer.shadowRadius;
- self.originalShadowOpacity = shadowedView.layer.shadowOpacity;
- self.originalShadowColor = shadowedView.layer.shadowColor ? [UIColor colorWithCGColor:self.slidingControllerView.layer.shadowColor] : nil;
- self.originalShadowOffset = shadowedView.layer.shadowOffset;
- self.originalShadowPath = shadowedView.layer.shadowPath ? [UIBezierPath bezierPathWithCGPath:self.slidingControllerView.layer.shadowPath] : nil;
-
- if ([self.delegate respondsToSelector:@selector(viewDeckController:applyShadow:withBounds:)]) {
- [self.delegate viewDeckController:self applyShadow:shadowedView.layer withBounds:self.referenceBounds];
- }
- else {
- shadowedView.layer.masksToBounds = NO;
- shadowedView.layer.shadowRadius = 10;
- shadowedView.layer.shadowOpacity = 0.5;
- shadowedView.layer.shadowColor = [[UIColor blackColor] CGColor];
- shadowedView.layer.shadowOffset = CGSizeZero;
- shadowedView.layer.shadowPath = [[UIBezierPath bezierPathWithRect:shadowedView.bounds] CGPath];
- }
-}
-
-
-@end
-
-#pragma mark -
-
-@implementation UIViewController (UIViewDeckItem)
-
-@dynamic viewDeckController;
-
-static const char* viewDeckControllerKey = "ViewDeckController";
-
-- (IIViewDeckController*)viewDeckController_core {
- return objc_getAssociatedObject(self, viewDeckControllerKey);
-}
-
-- (IIViewDeckController*)viewDeckController {
- id result = [self viewDeckController_core];
- if (!result && self.navigationController)
- result = [self.navigationController viewDeckController];
- if (!result && [self respondsToSelector:@selector(wrapController)] && self.wrapController)
- result = [self.wrapController viewDeckController];
-
- return result;
-}
-
-- (void)setViewDeckController:(IIViewDeckController*)viewDeckController {
- objc_setAssociatedObject(self, viewDeckControllerKey, viewDeckController, OBJC_ASSOCIATION_ASSIGN);
-}
-
-- (void)vdc_presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated {
- UIViewController* controller = self.viewDeckController && (self.viewDeckController.navigationControllerBehavior == IIViewDeckNavigationControllerIntegrated || ![self.viewDeckController.centerController isKindOfClass:[UINavigationController class]]) ? self.viewDeckController : self;
- [controller vdc_presentModalViewController:modalViewController animated:animated]; // when we get here, the vdc_ method is actually the old, real method
-}
-
-- (void)vdc_dismissModalViewControllerAnimated:(BOOL)animated {
- UIViewController* controller = self.viewDeckController ? self.viewDeckController : self;
- [controller vdc_dismissModalViewControllerAnimated:animated]; // when we get here, the vdc_ method is actually the old, real method
-}
-
-#ifdef __IPHONE_5_0
-
-- (void)vdc_presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)animated completion:(void (^)(void))completion {
- UIViewController* controller = self.viewDeckController && (self.viewDeckController.navigationControllerBehavior == IIViewDeckNavigationControllerIntegrated || ![self.viewDeckController.centerController isKindOfClass:[UINavigationController class]]) ? self.viewDeckController : self;
- [controller vdc_presentViewController:viewControllerToPresent animated:animated completion:completion]; // when we get here, the vdc_ method is actually the old, real method
-}
-
-- (void)vdc_dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion {
- UIViewController* controller = self.viewDeckController ? self.viewDeckController : self;
- [controller vdc_dismissViewControllerAnimated:flag completion:completion]; // when we get here, the vdc_ method is actually the old, real method
-}
-
-#endif
-
-- (UINavigationController*)vdc_navigationController {
- UIViewController* controller = self.viewDeckController_core ? self.viewDeckController_core : self;
- return [controller vdc_navigationController]; // when we get here, the vdc_ method is actually the old, real method
-}
-
-- (UINavigationItem*)vdc_navigationItem {
- UIViewController* controller = self.viewDeckController_core ? self.viewDeckController_core : self;
- return [controller vdc_navigationItem]; // when we get here, the vdc_ method is actually the old, real method
-}
-
-+ (void)vdc_swizzle {
- SEL presentModal = @selector(presentModalViewController:animated:);
- SEL vdcPresentModal = @selector(vdc_presentModalViewController:animated:);
- method_exchangeImplementations(class_getInstanceMethod(self, presentModal), class_getInstanceMethod(self, vdcPresentModal));
-
- SEL presentVC = @selector(presentViewController:animated:completion:);
- SEL vdcPresentVC = @selector(vdc_presentViewController:animated:completion:);
- method_exchangeImplementations(class_getInstanceMethod(self, presentVC), class_getInstanceMethod(self, vdcPresentVC));
-
- SEL nc = @selector(navigationController);
- SEL vdcnc = @selector(vdc_navigationController);
- method_exchangeImplementations(class_getInstanceMethod(self, nc), class_getInstanceMethod(self, vdcnc));
-
- SEL ni = @selector(navigationItem);
- SEL vdcni = @selector(vdc_navigationItem);
- method_exchangeImplementations(class_getInstanceMethod(self, ni), class_getInstanceMethod(self, vdcni));
-
- // view containment drop ins for
-
-@interface WrapController : UIViewController
-
-@property (nonatomic, readonly, retain) UIViewController* wrappedController;
-@property (nonatomic, copy) void(^onViewDidLoad)(WrapController* controller);
-@property (nonatomic, copy) void(^onViewWillAppear)(WrapController* controller, BOOL animated);
-@property (nonatomic, copy) void(^onViewDidAppear)(WrapController* controller, BOOL animated);
-@property (nonatomic, copy) void(^onViewWillDisappear)(WrapController* controller, BOOL animated);
-@property (nonatomic, copy) void(^onViewDidDisappear)(WrapController* controller, BOOL animated);
-
-- (id)initWithViewController:(UIViewController*)controller;
-
-@end
-
-// category on WrappedController to provide access to the viewDeckController in the
-// contained viewcontrollers, a la UINavigationController.
-@interface UIViewController (WrapControllerItem)
-
-@property(nonatomic,readonly,assign) WrapController *wrapController;
-
-@end
\ No newline at end of file
diff --git a/Frameworks/ViewDeck/WrapController.m b/Frameworks/ViewDeck/WrapController.m
deleted file mode 100644
index 94b5df0..0000000
--- a/Frameworks/ViewDeck/WrapController.m
+++ /dev/null
@@ -1,292 +0,0 @@
-//
-// WrappedController.m
-// IIViewDeck
-//
-// Copyright (C) 2011, Tom Adriaenssen
-//
-// 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.
-//
-
-#if __has_feature(objc_arc) && __clang_major__ >= 3
-#define II_ARC_ENABLED 1
-#endif // __has_feature(objc_arc)
-
-#if II_ARC_ENABLED
-#define II_RETAIN(xx) ((void)(0))
-#define II_RELEASE(xx) ((void)(0))
-#define II_AUTORELEASE(xx) (xx)
-#else
-#define II_RETAIN(xx) [xx retain]
-#define II_RELEASE(xx) [xx release]
-#define II_AUTORELEASE(xx) [xx autorelease]
-#endif
-
-#define II_CGRectOffsetRightAndShrink(rect, offset) ({__typeof__(rect) __r = (rect); __typeof__(offset) __o = (offset); (CGRect) { __r.origin.x, __r.origin.y, __r.size.width-__o, __r.size.height }; })
-#define II_CGRectOffsetTopAndShrink(rect, offset) ({__typeof__(rect) __r = (rect); __typeof__(offset) __o = (offset); (CGRect) {{ __r.origin.x, __r.origin.y + __o}, {__r.size.width, __r.size.height-__o }}; })
-#define II_CGRectOffsetBottomAndShrink(rect, offset) ({__typeof__(rect) __r = (rect); __typeof__(offset) __o = (offset); (CGRect) { __r.origin.x, __r.origin.y, __r.size.width, __r.size.height-__o }; })
-#define II_CGRectShrink(rect, w, h) ({__typeof__(rect) __r = (rect); __typeof__(w) __w = (w); __typeof__(h) __h = (h); (CGRect) { __r.origin, __r.size.width - __w, __r.size.height - __h }; })
-
-#import "WrapController.h"
-#import
-#import
-
-@interface UIViewController (WrappedItem_Internal)
-
-// internal setter for the wrapController property on UIViewController
-- (void)setWrapController:(WrapController *)wrapController;
-
-@end
-
-@implementation WrapController
-
-@synthesize wrappedController = _wrappedController;
-@synthesize onViewDidLoad = _onViewDidLoad;
-@synthesize onViewWillAppear = _onViewWillAppear;
-@synthesize onViewDidAppear = _onViewDidAppear;
-@synthesize onViewWillDisappear = _onViewWillDisappear;
-@synthesize onViewDidDisappear = _onViewDidDisappear;
-
-#pragma mark - View lifecycle
-
-- (id)initWithViewController:(UIViewController *)controller {
- if ((self = [super init])) {
- II_RETAIN(controller);
- _wrappedController = controller;
- [controller setWrapController:self];
- }
-
- return self;
-}
-
-- (CGFloat)statusBarHeight {
-// if (![[self.referenceView superview] isKindOfClass:[UIWindow class]])
-// return 0;
-//
- return UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)
- ? [UIApplication sharedApplication].statusBarFrame.size.width
- : [UIApplication sharedApplication].statusBarFrame.size.height;
-}
-
-// Implement loadView to create a view hierarchy programmatically, without using a nib.
-- (void)loadView
-{
-#if __IPHONE_5_0
- if ([self respondsToSelector:@selector(addChildViewController:)])
- [self addChildViewController:self.wrappedController];
-#endif
-
- self.view = II_AUTORELEASE([[UIView alloc] initWithFrame:II_CGRectOffsetTopAndShrink(self.wrappedController.view.frame, [self statusBarHeight])]);
- self.view.autoresizingMask = self.wrappedController.view.autoresizingMask;
- self.wrappedController.view.frame = self.view.bounds;
- self.wrappedController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
- [self.view addSubview:self.wrappedController.view];
-}
-
-- (void)viewDidLoad {
- [super viewDidLoad];
-
- if (self.onViewDidLoad)
- self.onViewDidLoad(self);
-}
-
-- (void)viewDidUnload
-{
- [super viewDidUnload];
- [self.wrappedController.view removeFromSuperview];
-}
-
-- (void)dealloc {
-#if __IPHONE_5_0
- if ([_wrappedController respondsToSelector:@selector(removeFromParentViewController)]) {
- [_wrappedController removeFromParentViewController];
- }
-#endif
- [_wrappedController setWrapController:nil];
- II_RELEASE(_wrappedController);
- _wrappedController = nil;
-#if !II_ARC_ENABLED
- [super dealloc];
-#endif
-}
-
-- (BOOL)automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers {
- return NO;
-}
-
-- (UITabBarItem *)tabBarItem {
- return _wrappedController.tabBarItem;
-}
-
--(void)setTabBarItem:(UITabBarItem *)tabBarItem {
- [_wrappedController setTabBarItem:tabBarItem];
-}
-
-- (BOOL)hidesBottomBarWhenPushed {
- return _wrappedController.hidesBottomBarWhenPushed;
-}
-
-- (void)setHidesBottomBarWhenPushed:(BOOL)hidesBottomBarWhenPushed {
- [_wrappedController setHidesBottomBarWhenPushed:hidesBottomBarWhenPushed];
-}
-
-- (void)viewWillAppear:(BOOL)animated
-{
- [super viewWillAppear:animated];
- if (self.onViewWillAppear)
- self.onViewWillAppear(self, animated);
-
- [self.wrappedController viewWillAppear:animated];
-}
-
-- (void)viewDidAppear:(BOOL)animated
-{
- [super viewDidAppear:animated];
- if (self.onViewDidAppear)
- self.onViewDidAppear(self, animated);
-
- [self.wrappedController viewDidAppear:animated];
-}
-
-- (void)viewWillDisappear:(BOOL)animated
-{
- [super viewWillDisappear:animated];
- if (self.onViewWillDisappear)
- self.onViewWillDisappear(self, animated);
-
- [self.wrappedController viewWillDisappear:animated];
-}
-
-- (void)viewDidDisappear:(BOOL)animated
-{
- [super viewDidDisappear:animated];
- if (self.onViewDidDisappear)
- self.onViewDidDisappear(self, animated);
-
- [self.wrappedController viewDidDisappear:animated];
-}
-
-- (BOOL) shouldAutorotate
-{
- return YES;
-}
-
-- (NSUInteger) supportedInterfaceOrientations
-{
- return UIInterfaceOrientationMaskPortrait;
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- return (interfaceOrientation == UIInterfaceOrientationPortrait);
-}
-
-/*
-
-
-
- We need a specific rotation for out APP, comment the default one
-
-
-
-
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- return [self.wrappedController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
-}
-
-- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
- [super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
- [self.wrappedController willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
-}
-
-- (void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
- [super willAnimateFirstHalfOfRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
- [self.wrappedController willAnimateFirstHalfOfRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
-}
-
-- (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration {
- [super willAnimateSecondHalfOfRotationFromInterfaceOrientation:fromInterfaceOrientation duration:duration];
- [self.wrappedController willAnimateSecondHalfOfRotationFromInterfaceOrientation:fromInterfaceOrientation duration:duration];
-}
-
-- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
- [super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
- [self.wrappedController willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
-}
-
-- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
- [super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
- [self.wrappedController didRotateFromInterfaceOrientation:fromInterfaceOrientation];
-}
-*/
-- (void)didReceiveMemoryWarning {
- [self.wrappedController didReceiveMemoryWarning];
-}
-
-@end
-
-@implementation UIViewController (WrapControllerItem)
-
-@dynamic wrapController;
-
-static const char* wrapControllerKey = "WrapController";
-
-- (WrapController*)wrapController_core {
- return objc_getAssociatedObject(self, wrapControllerKey);
-}
-
-- (WrapController*)wrapController {
- id result = [self wrapController_core];
- if (!result && self.navigationController)
- return [self.navigationController wrapController];
-
- return result;
-}
-
-- (void)setWrapController:(WrapController *)wrapController {
- objc_setAssociatedObject(self, wrapControllerKey, wrapController, OBJC_ASSOCIATION_ASSIGN);
-}
-
-- (UINavigationController*)wc_navigationController {
- UIViewController* controller = self.wrapController_core ? self.wrapController_core : self;
- return [controller wc_navigationController]; // when we get here, the wc_ method is actually the old, real method
-}
-
-- (UINavigationItem*)wc_navigationItem {
- UIViewController* controller = self.wrapController_core ? self.wrapController_core : self;
- return [controller wc_navigationItem]; // when we get here, the wc_ method is actually the old, real method
-}
-
-+ (void)wc_swizzle {
- SEL nc = @selector(navigationController);
- SEL wcnc = @selector(wc_navigationController);
- method_exchangeImplementations(class_getInstanceMethod(self, nc), class_getInstanceMethod(self, wcnc));
-
- SEL ni = @selector(navigationItem);
- SEL wcni = @selector(wc_navigationItem);
- method_exchangeImplementations(class_getInstanceMethod(self, ni), class_getInstanceMethod(self, wcni));
-}
-
-+ (void)load {
- [super load];
- [self wc_swizzle];
-}
-
-@end
\ No newline at end of file
diff --git a/Frameworks/iRate b/Frameworks/iRate
deleted file mode 160000
index d20486c..0000000
--- a/Frameworks/iRate
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit d20486c9a2f7bdb0e3f7c75056f9dda236b557e6
diff --git a/Frameworks/json-framework b/Frameworks/json-framework
deleted file mode 160000
index ad4bad3..0000000
--- a/Frameworks/json-framework
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit ad4bad36abb899b53a8eb9c0896f388ea484fbeb
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index e3b6a3f..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
-
-APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
-Copyright 2012 CloudPot
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
diff --git a/Photo/Photo.xcdatamodeld/.xccurrentversion b/Photo/Photo.xcdatamodeld/.xccurrentversion
deleted file mode 100644
index 7445ea4..0000000
--- a/Photo/Photo.xcdatamodeld/.xccurrentversion
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- _XCCurrentVersionName
- Photo.xcdatamodel
-
-
diff --git a/Photo/Trovebox-Info.plist b/Photo/Trovebox-Info.plist
deleted file mode 100644
index 39a1c2c..0000000
--- a/Photo/Trovebox-Info.plist
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
- CFBuildDate
- 2013-10-25T21:50:22Z
- CFBundleDevelopmentRegion
- en
- CFBundleDisplayName
- Trovebox
- CFBundleExecutable
- ${EXECUTABLE_NAME}
- CFBundleIcons
-
- CFBundlePrimaryIcon
-
- CFBundleIconFiles
-
- trovebox_58
- trovebox_120
-
-
-
- CFBundleIcons~ipad
-
- CFBundlePrimaryIcon
-
- CFBundleIconFiles
-
- trovebox_58
- trovebox_29
- trovebox_152
- trovebox_76
-
-
-
- CFBundleIdentifier
- me.OpenPhoto.ios
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- ${PRODUCT_NAME}
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- 13.1
- CFBundleSignature
- ????
- CFBundleURLTypes
-
-
- CFBundleURLName
- me.openphoto
- CFBundleURLSchemes
-
- openphoto
- fb283425805036236
-
-
-
- CFBundleVersion
- 163
- LSRequiresIPhoneOS
-
- UIPrerenderedIcon
-
- UIRequiredDeviceCapabilities
-
- armv7
-
- UIStatusBarHidden
-
- UIStatusBarStyle
- UIStatusBarStyleDefault
- UIStatusBarTintParameters
-
- UINavigationBar
-
- Style
- UIBarStyleDefault
- TintColor
-
- Blue
- 0.066371366381645203
- Green
- 0.1054482683539391
- Red
- 0.17748937010765081
-
- Translucent
-
-
-
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIViewControllerBasedStatusBarAppearance
-
-
-
diff --git a/Photo/Trovebox-Prefix.pch b/Photo/Trovebox-Prefix.pch
deleted file mode 100644
index e920217..0000000
--- a/Photo/Trovebox-Prefix.pch
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// Prefix header for all source files of the 'Photo' target in the 'Photo' project
-//
-
-#import
-
-#ifndef __IPHONE_3_0
-#warning "This project uses features only available in iOS SDK 3.0 and later."
-#endif
-
-#ifdef __OBJC__
-#import
-#import
-#import
-#import
-#import "GAI.h"
-#import "GAIDictionaryBuilder.h"
-#import "AppDelegate.h"
-#import "Constants.h"
-#import "PrivateConstants.h"
-#import "PhotoAlertView.h"
-#import "DisplayUtilities.h"
-#import "UINavigationBar+Trovebox.h"
-#import "UINavigationItem+Trovebox.h"
-
-
-#define SharedAppDelegate ((AppDelegate*)[[UIApplication sharedApplication] delegate])
-
-#endif
-
diff --git a/Photo/de.lproj/Localizable.strings b/Photo/de.lproj/Localizable.strings
deleted file mode 100644
index 611521d..0000000
Binary files a/Photo/de.lproj/Localizable.strings and /dev/null differ
diff --git a/Photo/main.m b/Photo/main.m
deleted file mode 100644
index 25530dd..0000000
--- a/Photo/main.m
+++ /dev/null
@@ -1,29 +0,0 @@
-//
-// main.m
-// Trovebox
-//
-// Created by Patrick Santana on 25/09/12.
-// Copyright 2013 Trovebox
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#import
-
-#import "AppDelegate.h"
-
-int main(int argc, char *argv[])
-{
- @autoreleasepool {
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
- }
-}
diff --git a/Photo/pt.lproj/Localizable.strings b/Photo/pt.lproj/Localizable.strings
deleted file mode 100644
index ba861e8..0000000
Binary files a/Photo/pt.lproj/Localizable.strings and /dev/null differ
diff --git a/PhotoTests/PhotoTests.h b/PhotoTests/PhotoTests.h
deleted file mode 100644
index cd6bbc2..0000000
--- a/PhotoTests/PhotoTests.h
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// PhotoTests.h
-// TroveboxTest
-//
-// Created by Patrick Santana on 25/09/12.
-// Copyright 2013 Trovebox
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#import
-
-@interface PhotoTests : SenTestCase
-
-@end
diff --git a/PhotoTests/PhotoTests.m b/PhotoTests/PhotoTests.m
deleted file mode 100644
index fd3320b..0000000
--- a/PhotoTests/PhotoTests.m
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// PhotoTests.m
-// TroveboxTest
-//
-// Created by Patrick Santana on 25/09/12.
-// Copyright 2013 Trovebox
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#import "PhotoTests.h"
-
-@implementation PhotoTests
-
-- (void)setUp
-{
- [super setUp];
-
- // Set-up code here.
-}
-
-- (void)tearDown
-{
- // Tear-down code here.
-
- [super tearDown];
-}
-
-- (void)testExample
-{
- STFail(@"Unit tests are not implemented yet in PhotoTests");
-}
-
-@end
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAI.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAI.h
new file mode 120000
index 0000000..85745ea
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAI.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAI.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAIDictionaryBuilder.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAIDictionaryBuilder.h
new file mode 120000
index 0000000..111a00c
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAIDictionaryBuilder.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIDictionaryBuilder.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAIFields.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAIFields.h
new file mode 120000
index 0000000..8b94c32
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAIFields.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIFields.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAILogger.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAILogger.h
new file mode 120000
index 0000000..a0bcffd
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAILogger.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAILogger.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAITrackedViewController.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAITrackedViewController.h
new file mode 120000
index 0000000..84da762
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAITrackedViewController.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAITrackedViewController.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAITracker.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAITracker.h
new file mode 120000
index 0000000..ae293fa
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/GAITracker.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAITracker.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGContainer.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGContainer.h
new file mode 120000
index 0000000..1269aa0
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGContainer.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGContainer.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGContainerOpener.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGContainerOpener.h
new file mode 120000
index 0000000..302563f
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGContainerOpener.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGContainerOpener.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGDataLayer.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGDataLayer.h
new file mode 120000
index 0000000..0b938a3
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGDataLayer.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGDataLayer.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGLogger.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGLogger.h
new file mode 120000
index 0000000..d1f94d4
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGLogger.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGLogger.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGManager.h b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGManager.h
new file mode 120000
index 0000000..4d6da7f
--- /dev/null
+++ b/Pods/BuildHeaders/GoogleAnalytics-iOS-SDK/TAGManager.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGManager.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/MBProgressHUD/MBProgressHUD.h b/Pods/BuildHeaders/MBProgressHUD/MBProgressHUD.h
new file mode 120000
index 0000000..6a8f158
--- /dev/null
+++ b/Pods/BuildHeaders/MBProgressHUD/MBProgressHUD.h
@@ -0,0 +1 @@
+../../MBProgressHUD/MBProgressHUD.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/Reachability/Reachability.h b/Pods/BuildHeaders/Reachability/Reachability.h
new file mode 120000
index 0000000..d374abf
--- /dev/null
+++ b/Pods/BuildHeaders/Reachability/Reachability.h
@@ -0,0 +1 @@
+../../Reachability/Reachability.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/NSObject+SBJson.h b/Pods/BuildHeaders/SBJson/NSObject+SBJson.h
new file mode 120000
index 0000000..86813ae
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/NSObject+SBJson.h
@@ -0,0 +1 @@
+../../SBJson/Classes/NSObject+SBJson.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJson.h b/Pods/BuildHeaders/SBJson/SBJson.h
new file mode 120000
index 0000000..3dd0622
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJson.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJson.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonParser.h b/Pods/BuildHeaders/SBJson/SBJsonParser.h
new file mode 120000
index 0000000..d2d9fc6
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonParser.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonParser.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonStreamParser.h b/Pods/BuildHeaders/SBJson/SBJsonStreamParser.h
new file mode 120000
index 0000000..340e217
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonStreamParser.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamParser.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonStreamParserAccumulator.h b/Pods/BuildHeaders/SBJson/SBJsonStreamParserAccumulator.h
new file mode 120000
index 0000000..e29491e
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonStreamParserAccumulator.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamParserAccumulator.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonStreamParserAdapter.h b/Pods/BuildHeaders/SBJson/SBJsonStreamParserAdapter.h
new file mode 120000
index 0000000..1c9ff95
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonStreamParserAdapter.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamParserAdapter.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonStreamParserState.h b/Pods/BuildHeaders/SBJson/SBJsonStreamParserState.h
new file mode 120000
index 0000000..1e1742a
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonStreamParserState.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamParserState.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonStreamWriter.h b/Pods/BuildHeaders/SBJson/SBJsonStreamWriter.h
new file mode 120000
index 0000000..37adc83
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonStreamWriter.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamWriter.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonStreamWriterAccumulator.h b/Pods/BuildHeaders/SBJson/SBJsonStreamWriterAccumulator.h
new file mode 120000
index 0000000..2b72bbe
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonStreamWriterAccumulator.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamWriterAccumulator.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonStreamWriterState.h b/Pods/BuildHeaders/SBJson/SBJsonStreamWriterState.h
new file mode 120000
index 0000000..9175369
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonStreamWriterState.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamWriterState.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonTokeniser.h b/Pods/BuildHeaders/SBJson/SBJsonTokeniser.h
new file mode 120000
index 0000000..4effa3c
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonTokeniser.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonTokeniser.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonUTF8Stream.h b/Pods/BuildHeaders/SBJson/SBJsonUTF8Stream.h
new file mode 120000
index 0000000..2440c4f
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonUTF8Stream.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonUTF8Stream.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SBJson/SBJsonWriter.h b/Pods/BuildHeaders/SBJson/SBJsonWriter.h
new file mode 120000
index 0000000..a6b4901
--- /dev/null
+++ b/Pods/BuildHeaders/SBJson/SBJsonWriter.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonWriter.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/NSData+GIF.h b/Pods/BuildHeaders/SDWebImage/NSData+GIF.h
new file mode 120000
index 0000000..f2225d4
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/NSData+GIF.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/NSData+GIF.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/SDImageCache.h b/Pods/BuildHeaders/SDWebImage/SDImageCache.h
new file mode 120000
index 0000000..9893ccc
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/SDImageCache.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDImageCache.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/SDWebImageCompat.h b/Pods/BuildHeaders/SDWebImage/SDWebImageCompat.h
new file mode 120000
index 0000000..088c749
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/SDWebImageCompat.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageCompat.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/SDWebImageDecoder.h b/Pods/BuildHeaders/SDWebImage/SDWebImageDecoder.h
new file mode 120000
index 0000000..b4d0b05
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/SDWebImageDecoder.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageDecoder.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/SDWebImageDownloader.h b/Pods/BuildHeaders/SDWebImage/SDWebImageDownloader.h
new file mode 120000
index 0000000..501f4ff
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/SDWebImageDownloader.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageDownloader.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/SDWebImageDownloaderOperation.h b/Pods/BuildHeaders/SDWebImage/SDWebImageDownloaderOperation.h
new file mode 120000
index 0000000..a864736
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/SDWebImageDownloaderOperation.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageDownloaderOperation.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/SDWebImageManager.h b/Pods/BuildHeaders/SDWebImage/SDWebImageManager.h
new file mode 120000
index 0000000..f9d2aa2
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/SDWebImageManager.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageManager.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/SDWebImageOperation.h b/Pods/BuildHeaders/SDWebImage/SDWebImageOperation.h
new file mode 120000
index 0000000..a0769c4
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/SDWebImageOperation.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageOperation.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/SDWebImagePrefetcher.h b/Pods/BuildHeaders/SDWebImage/SDWebImagePrefetcher.h
new file mode 120000
index 0000000..fcc0b60
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/SDWebImagePrefetcher.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImagePrefetcher.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/UIButton+WebCache.h b/Pods/BuildHeaders/SDWebImage/UIButton+WebCache.h
new file mode 120000
index 0000000..5586e49
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/UIButton+WebCache.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/UIButton+WebCache.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/UIImage+GIF.h b/Pods/BuildHeaders/SDWebImage/UIImage+GIF.h
new file mode 120000
index 0000000..44cfed5
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/UIImage+GIF.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/UIImage+GIF.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/UIImage+MultiFormat.h b/Pods/BuildHeaders/SDWebImage/UIImage+MultiFormat.h
new file mode 120000
index 0000000..185c480
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/UIImage+MultiFormat.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/UIImage+MultiFormat.h
\ No newline at end of file
diff --git a/Pods/BuildHeaders/SDWebImage/UIImageView+WebCache.h b/Pods/BuildHeaders/SDWebImage/UIImageView+WebCache.h
new file mode 120000
index 0000000..336b44b
--- /dev/null
+++ b/Pods/BuildHeaders/SDWebImage/UIImageView+WebCache.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/UIImageView+WebCache.h
\ No newline at end of file
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAI.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAI.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAI.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAI.h
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAIDictionaryBuilder.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIDictionaryBuilder.h
similarity index 94%
rename from Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAIDictionaryBuilder.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIDictionaryBuilder.h
index 24c5a95..20adff8 100644
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAIDictionaryBuilder.h
+++ b/Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIDictionaryBuilder.h
@@ -12,11 +12,11 @@
* Examples:
*
* id t = // get a tracker.
- * [t send:[[GAIDictionaryBuilder createEventWithCategory:@"EventCategory"
- * action:@"EventAction"
- * label:nil
- * value:nil]
- * set:@"dimension1" forKey:[GAIFields CustomDimension:1] build]];
+ * [t send:[[[GAIDictionaryBuilder createEventWithCategory:@"EventCategory"
+ * action:@"EventAction"
+ * label:nil
+ * value:nil]
+ * set:@"dimension1" forKey:[GAIFields customDimensionForIndex:1]] build]];
*
* This will send an event hit type with the specified parameters
* and a custom dimension parameter.
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAIFields.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIFields.h
similarity index 97%
rename from Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAIFields.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIFields.h
index 868baae..caa8660 100644
--- a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAIFields.h
+++ b/Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIFields.h
@@ -77,6 +77,9 @@ extern NSString *const kGAIExFatal;
extern NSString *const kGAISampleRate;
+extern NSString *const kGAIIdfa;
+extern NSString *const kGAIAdTargetingEnabled;
+
// hit types
extern NSString *const kGAIAppView;
extern NSString *const kGAIEvent;
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAILogger.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAILogger.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAILogger.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAILogger.h
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAITrackedViewController.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAITrackedViewController.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAITrackedViewController.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAITrackedViewController.h
diff --git a/Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAITracker.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAITracker.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleAnalytics/Library/GAITracker.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAITracker.h
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGContainer.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGContainer.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGContainer.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGContainer.h
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGContainerOpener.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGContainerOpener.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGContainerOpener.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGContainerOpener.h
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGDataLayer.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGDataLayer.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGDataLayer.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGDataLayer.h
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGLogger.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGLogger.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGLogger.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGLogger.h
diff --git a/Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGManager.h b/Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGManager.h
similarity index 100%
rename from Frameworks/Google Analytics SDK/GoogleTagManager/Library/TAGManager.h
rename to Pods/GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGManager.h
diff --git a/Frameworks/Google Analytics SDK/ReadMe.txt b/Pods/GoogleAnalytics-iOS-SDK/Readme.txt
similarity index 100%
rename from Frameworks/Google Analytics SDK/ReadMe.txt
rename to Pods/GoogleAnalytics-iOS-SDK/Readme.txt
diff --git a/Pods/GoogleAnalytics-iOS-SDK/libGoogleAnalyticsServices.a b/Pods/GoogleAnalytics-iOS-SDK/libGoogleAnalyticsServices.a
new file mode 100644
index 0000000..f40d3f1
Binary files /dev/null and b/Pods/GoogleAnalytics-iOS-SDK/libGoogleAnalyticsServices.a differ
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/GAI.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAI.h
new file mode 120000
index 0000000..85745ea
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAI.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAI.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/GAIDictionaryBuilder.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAIDictionaryBuilder.h
new file mode 120000
index 0000000..111a00c
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAIDictionaryBuilder.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIDictionaryBuilder.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/GAIFields.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAIFields.h
new file mode 120000
index 0000000..8b94c32
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAIFields.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAIFields.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/GAILogger.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAILogger.h
new file mode 120000
index 0000000..a0bcffd
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAILogger.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAILogger.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/GAITrackedViewController.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAITrackedViewController.h
new file mode 120000
index 0000000..84da762
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAITrackedViewController.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAITrackedViewController.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/GAITracker.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAITracker.h
new file mode 120000
index 0000000..ae293fa
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/GAITracker.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleAnalytics/Library/GAITracker.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGContainer.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGContainer.h
new file mode 120000
index 0000000..1269aa0
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGContainer.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGContainer.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGContainerOpener.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGContainerOpener.h
new file mode 120000
index 0000000..302563f
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGContainerOpener.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGContainerOpener.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGDataLayer.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGDataLayer.h
new file mode 120000
index 0000000..0b938a3
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGDataLayer.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGDataLayer.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGLogger.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGLogger.h
new file mode 120000
index 0000000..d1f94d4
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGLogger.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGLogger.h
\ No newline at end of file
diff --git a/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGManager.h b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGManager.h
new file mode 120000
index 0000000..4d6da7f
--- /dev/null
+++ b/Pods/Headers/GoogleAnalytics-iOS-SDK/TAGManager.h
@@ -0,0 +1 @@
+../../GoogleAnalytics-iOS-SDK/GoogleTagManager/Library/TAGManager.h
\ No newline at end of file
diff --git a/Pods/Headers/MBProgressHUD/MBProgressHUD.h b/Pods/Headers/MBProgressHUD/MBProgressHUD.h
new file mode 120000
index 0000000..6a8f158
--- /dev/null
+++ b/Pods/Headers/MBProgressHUD/MBProgressHUD.h
@@ -0,0 +1 @@
+../../MBProgressHUD/MBProgressHUD.h
\ No newline at end of file
diff --git a/Pods/Headers/Reachability/Reachability.h b/Pods/Headers/Reachability/Reachability.h
new file mode 120000
index 0000000..d374abf
--- /dev/null
+++ b/Pods/Headers/Reachability/Reachability.h
@@ -0,0 +1 @@
+../../Reachability/Reachability.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/NSObject+SBJson.h b/Pods/Headers/SBJson/NSObject+SBJson.h
new file mode 120000
index 0000000..86813ae
--- /dev/null
+++ b/Pods/Headers/SBJson/NSObject+SBJson.h
@@ -0,0 +1 @@
+../../SBJson/Classes/NSObject+SBJson.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJson.h b/Pods/Headers/SBJson/SBJson.h
new file mode 120000
index 0000000..3dd0622
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJson.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJson.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonParser.h b/Pods/Headers/SBJson/SBJsonParser.h
new file mode 120000
index 0000000..d2d9fc6
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonParser.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonParser.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonStreamParser.h b/Pods/Headers/SBJson/SBJsonStreamParser.h
new file mode 120000
index 0000000..340e217
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonStreamParser.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamParser.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonStreamParserAccumulator.h b/Pods/Headers/SBJson/SBJsonStreamParserAccumulator.h
new file mode 120000
index 0000000..e29491e
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonStreamParserAccumulator.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamParserAccumulator.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonStreamParserAdapter.h b/Pods/Headers/SBJson/SBJsonStreamParserAdapter.h
new file mode 120000
index 0000000..1c9ff95
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonStreamParserAdapter.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamParserAdapter.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonStreamParserState.h b/Pods/Headers/SBJson/SBJsonStreamParserState.h
new file mode 120000
index 0000000..1e1742a
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonStreamParserState.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamParserState.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonStreamWriter.h b/Pods/Headers/SBJson/SBJsonStreamWriter.h
new file mode 120000
index 0000000..37adc83
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonStreamWriter.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamWriter.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonStreamWriterAccumulator.h b/Pods/Headers/SBJson/SBJsonStreamWriterAccumulator.h
new file mode 120000
index 0000000..2b72bbe
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonStreamWriterAccumulator.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamWriterAccumulator.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonStreamWriterState.h b/Pods/Headers/SBJson/SBJsonStreamWriterState.h
new file mode 120000
index 0000000..9175369
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonStreamWriterState.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonStreamWriterState.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonTokeniser.h b/Pods/Headers/SBJson/SBJsonTokeniser.h
new file mode 120000
index 0000000..4effa3c
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonTokeniser.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonTokeniser.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonUTF8Stream.h b/Pods/Headers/SBJson/SBJsonUTF8Stream.h
new file mode 120000
index 0000000..2440c4f
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonUTF8Stream.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonUTF8Stream.h
\ No newline at end of file
diff --git a/Pods/Headers/SBJson/SBJsonWriter.h b/Pods/Headers/SBJson/SBJsonWriter.h
new file mode 120000
index 0000000..a6b4901
--- /dev/null
+++ b/Pods/Headers/SBJson/SBJsonWriter.h
@@ -0,0 +1 @@
+../../SBJson/Classes/SBJsonWriter.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/NSData+GIF.h b/Pods/Headers/SDWebImage/NSData+GIF.h
new file mode 120000
index 0000000..f2225d4
--- /dev/null
+++ b/Pods/Headers/SDWebImage/NSData+GIF.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/NSData+GIF.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/SDImageCache.h b/Pods/Headers/SDWebImage/SDImageCache.h
new file mode 120000
index 0000000..9893ccc
--- /dev/null
+++ b/Pods/Headers/SDWebImage/SDImageCache.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDImageCache.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/SDWebImageCompat.h b/Pods/Headers/SDWebImage/SDWebImageCompat.h
new file mode 120000
index 0000000..088c749
--- /dev/null
+++ b/Pods/Headers/SDWebImage/SDWebImageCompat.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageCompat.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/SDWebImageDecoder.h b/Pods/Headers/SDWebImage/SDWebImageDecoder.h
new file mode 120000
index 0000000..b4d0b05
--- /dev/null
+++ b/Pods/Headers/SDWebImage/SDWebImageDecoder.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageDecoder.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/SDWebImageDownloader.h b/Pods/Headers/SDWebImage/SDWebImageDownloader.h
new file mode 120000
index 0000000..501f4ff
--- /dev/null
+++ b/Pods/Headers/SDWebImage/SDWebImageDownloader.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageDownloader.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/SDWebImageDownloaderOperation.h b/Pods/Headers/SDWebImage/SDWebImageDownloaderOperation.h
new file mode 120000
index 0000000..a864736
--- /dev/null
+++ b/Pods/Headers/SDWebImage/SDWebImageDownloaderOperation.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageDownloaderOperation.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/SDWebImageManager.h b/Pods/Headers/SDWebImage/SDWebImageManager.h
new file mode 120000
index 0000000..f9d2aa2
--- /dev/null
+++ b/Pods/Headers/SDWebImage/SDWebImageManager.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageManager.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/SDWebImageOperation.h b/Pods/Headers/SDWebImage/SDWebImageOperation.h
new file mode 120000
index 0000000..a0769c4
--- /dev/null
+++ b/Pods/Headers/SDWebImage/SDWebImageOperation.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImageOperation.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/SDWebImagePrefetcher.h b/Pods/Headers/SDWebImage/SDWebImagePrefetcher.h
new file mode 120000
index 0000000..fcc0b60
--- /dev/null
+++ b/Pods/Headers/SDWebImage/SDWebImagePrefetcher.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/SDWebImagePrefetcher.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/UIButton+WebCache.h b/Pods/Headers/SDWebImage/UIButton+WebCache.h
new file mode 120000
index 0000000..5586e49
--- /dev/null
+++ b/Pods/Headers/SDWebImage/UIButton+WebCache.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/UIButton+WebCache.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/UIImage+GIF.h b/Pods/Headers/SDWebImage/UIImage+GIF.h
new file mode 120000
index 0000000..44cfed5
--- /dev/null
+++ b/Pods/Headers/SDWebImage/UIImage+GIF.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/UIImage+GIF.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/UIImage+MultiFormat.h b/Pods/Headers/SDWebImage/UIImage+MultiFormat.h
new file mode 120000
index 0000000..185c480
--- /dev/null
+++ b/Pods/Headers/SDWebImage/UIImage+MultiFormat.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/UIImage+MultiFormat.h
\ No newline at end of file
diff --git a/Pods/Headers/SDWebImage/UIImageView+WebCache.h b/Pods/Headers/SDWebImage/UIImageView+WebCache.h
new file mode 120000
index 0000000..336b44b
--- /dev/null
+++ b/Pods/Headers/SDWebImage/UIImageView+WebCache.h
@@ -0,0 +1 @@
+../../SDWebImage/SDWebImage/UIImageView+WebCache.h
\ No newline at end of file
diff --git a/Pods/MBProgressHUD/LICENSE b/Pods/MBProgressHUD/LICENSE
new file mode 100644
index 0000000..c51b6b0
--- /dev/null
+++ b/Pods/MBProgressHUD/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2013 Matej Bukovinski
+
+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/Pods/MBProgressHUD/MBProgressHUD.h b/Pods/MBProgressHUD/MBProgressHUD.h
new file mode 100755
index 0000000..26eadf6
--- /dev/null
+++ b/Pods/MBProgressHUD/MBProgressHUD.h
@@ -0,0 +1,484 @@
+//
+// MBProgressHUD.h
+// Version 0.8
+// Created by Matej Bukovinski on 2.4.09.
+//
+
+// This code is distributed under the terms and conditions of the MIT license.
+
+// Copyright (c) 2013 Matej Bukovinski
+//
+// 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.
+
+#import
+#import
+#import
+
+@protocol MBProgressHUDDelegate;
+
+
+typedef enum {
+ /** Progress is shown using an UIActivityIndicatorView. This is the default. */
+ MBProgressHUDModeIndeterminate,
+ /** Progress is shown using a round, pie-chart like, progress view. */
+ MBProgressHUDModeDeterminate,
+ /** Progress is shown using a horizontal progress bar */
+ MBProgressHUDModeDeterminateHorizontalBar,
+ /** Progress is shown using a ring-shaped progress view. */
+ MBProgressHUDModeAnnularDeterminate,
+ /** Shows a custom view */
+ MBProgressHUDModeCustomView,
+ /** Shows only labels */
+ MBProgressHUDModeText
+} MBProgressHUDMode;
+
+typedef enum {
+ /** Opacity animation */
+ MBProgressHUDAnimationFade,
+ /** Opacity + scale animation */
+ MBProgressHUDAnimationZoom,
+ MBProgressHUDAnimationZoomOut = MBProgressHUDAnimationZoom,
+ MBProgressHUDAnimationZoomIn
+} MBProgressHUDAnimation;
+
+
+#ifndef MB_INSTANCETYPE
+#if __has_feature(objc_instancetype)
+ #define MB_INSTANCETYPE instancetype
+#else
+ #define MB_INSTANCETYPE id
+#endif
+#endif
+
+#ifndef MB_STRONG
+#if __has_feature(objc_arc)
+ #define MB_STRONG strong
+#else
+ #define MB_STRONG retain
+#endif
+#endif
+
+#ifndef MB_WEAK
+#if __has_feature(objc_arc_weak)
+ #define MB_WEAK weak
+#elif __has_feature(objc_arc)
+ #define MB_WEAK unsafe_unretained
+#else
+ #define MB_WEAK assign
+#endif
+#endif
+
+#if NS_BLOCKS_AVAILABLE
+typedef void (^MBProgressHUDCompletionBlock)();
+#endif
+
+
+/**
+ * Displays a simple HUD window containing a progress indicator and two optional labels for short messages.
+ *
+ * This is a simple drop-in class for displaying a progress HUD view similar to Apple's private UIProgressHUD class.
+ * The MBProgressHUD window spans over the entire space given to it by the initWithFrame constructor and catches all
+ * user input on this region, thereby preventing the user operations on components below the view. The HUD itself is
+ * drawn centered as a rounded semi-transparent view which resizes depending on the user specified content.
+ *
+ * This view supports four modes of operation:
+ * - MBProgressHUDModeIndeterminate - shows a UIActivityIndicatorView
+ * - MBProgressHUDModeDeterminate - shows a custom round progress indicator
+ * - MBProgressHUDModeAnnularDeterminate - shows a custom annular progress indicator
+ * - MBProgressHUDModeCustomView - shows an arbitrary, user specified view (@see customView)
+ *
+ * All three modes can have optional labels assigned:
+ * - If the labelText property is set and non-empty then a label containing the provided content is placed below the
+ * indicator view.
+ * - If also the detailsLabelText property is set then another label is placed below the first label.
+ */
+@interface MBProgressHUD : UIView
+
+/**
+ * Creates a new HUD, adds it to provided view and shows it. The counterpart to this method is hideHUDForView:animated:.
+ *
+ * @param view The view that the HUD will be added to
+ * @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
+ * animations while appearing.
+ * @return A reference to the created HUD.
+ *
+ * @see hideHUDForView:animated:
+ * @see animationType
+ */
++ (MB_INSTANCETYPE)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;
+
+/**
+ * Finds the top-most HUD subview and hides it. The counterpart to this method is showHUDAddedTo:animated:.
+ *
+ * @param view The view that is going to be searched for a HUD subview.
+ * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
+ * animations while disappearing.
+ * @return YES if a HUD was found and removed, NO otherwise.
+ *
+ * @see showHUDAddedTo:animated:
+ * @see animationType
+ */
++ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;
+
+/**
+ * Finds all the HUD subviews and hides them.
+ *
+ * @param view The view that is going to be searched for HUD subviews.
+ * @param animated If set to YES the HUDs will disappear using the current animationType. If set to NO the HUDs will not use
+ * animations while disappearing.
+ * @return the number of HUDs found and removed.
+ *
+ * @see hideHUDForView:animated:
+ * @see animationType
+ */
++ (NSUInteger)hideAllHUDsForView:(UIView *)view animated:(BOOL)animated;
+
+/**
+ * Finds the top-most HUD subview and returns it.
+ *
+ * @param view The view that is going to be searched.
+ * @return A reference to the last HUD subview discovered.
+ */
++ (MB_INSTANCETYPE)HUDForView:(UIView *)view;
+
+/**
+ * Finds all HUD subviews and returns them.
+ *
+ * @param view The view that is going to be searched.
+ * @return All found HUD views (array of MBProgressHUD objects).
+ */
++ (NSArray *)allHUDsForView:(UIView *)view;
+
+/**
+ * A convenience constructor that initializes the HUD with the window's bounds. Calls the designated constructor with
+ * window.bounds as the parameter.
+ *
+ * @param window The window instance that will provide the bounds for the HUD. Should be the same instance as
+ * the HUD's superview (i.e., the window that the HUD will be added to).
+ */
+- (id)initWithWindow:(UIWindow *)window;
+
+/**
+ * A convenience constructor that initializes the HUD with the view's bounds. Calls the designated constructor with
+ * view.bounds as the parameter
+ *
+ * @param view The view instance that will provide the bounds for the HUD. Should be the same instance as
+ * the HUD's superview (i.e., the view that the HUD will be added to).
+ */
+- (id)initWithView:(UIView *)view;
+
+/**
+ * Display the HUD. You need to make sure that the main thread completes its run loop soon after this method call so
+ * the user interface can be updated. Call this method when your task is already set-up to be executed in a new thread
+ * (e.g., when using something like NSOperation or calling an asynchronous call like NSURLRequest).
+ *
+ * @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
+ * animations while appearing.
+ *
+ * @see animationType
+ */
+- (void)show:(BOOL)animated;
+
+/**
+ * Hide the HUD. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
+ * hide the HUD when your task completes.
+ *
+ * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
+ * animations while disappearing.
+ *
+ * @see animationType
+ */
+- (void)hide:(BOOL)animated;
+
+/**
+ * Hide the HUD after a delay. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
+ * hide the HUD when your task completes.
+ *
+ * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
+ * animations while disappearing.
+ * @param delay Delay in seconds until the HUD is hidden.
+ *
+ * @see animationType
+ */
+- (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay;
+
+/**
+ * Shows the HUD while a background task is executing in a new thread, then hides the HUD.
+ *
+ * This method also takes care of autorelease pools so your method does not have to be concerned with setting up a
+ * pool.
+ *
+ * @param method The method to be executed while the HUD is shown. This method will be executed in a new thread.
+ * @param target The object that the target method belongs to.
+ * @param object An optional object to be passed to the method.
+ * @param animated If set to YES the HUD will (dis)appear using the current animationType. If set to NO the HUD will not use
+ * animations while (dis)appearing.
+ */
+- (void)showWhileExecuting:(SEL)method onTarget:(id)target withObject:(id)object animated:(BOOL)animated;
+
+#if NS_BLOCKS_AVAILABLE
+
+/**
+ * Shows the HUD while a block is executing on a background queue, then hides the HUD.
+ *
+ * @see showAnimated:whileExecutingBlock:onQueue:completionBlock:
+ */
+- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block;
+
+/**
+ * Shows the HUD while a block is executing on a background queue, then hides the HUD.
+ *
+ * @see showAnimated:whileExecutingBlock:onQueue:completionBlock:
+ */
+- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block completionBlock:(MBProgressHUDCompletionBlock)completion;
+
+/**
+ * Shows the HUD while a block is executing on the specified dispatch queue, then hides the HUD.
+ *
+ * @see showAnimated:whileExecutingBlock:onQueue:completionBlock:
+ */
+- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue;
+
+/**
+ * Shows the HUD while a block is executing on the specified dispatch queue, executes completion block on the main queue, and then hides the HUD.
+ *
+ * @param animated If set to YES the HUD will (dis)appear using the current animationType. If set to NO the HUD will
+ * not use animations while (dis)appearing.
+ * @param block The block to be executed while the HUD is shown.
+ * @param queue The dispatch queue on which the block should be executed.
+ * @param completion The block to be executed on completion.
+ *
+ * @see completionBlock
+ */
+- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue
+ completionBlock:(MBProgressHUDCompletionBlock)completion;
+
+/**
+ * A block that gets called after the HUD was completely hidden.
+ */
+@property (copy) MBProgressHUDCompletionBlock completionBlock;
+
+#endif
+
+/**
+ * MBProgressHUD operation mode. The default is MBProgressHUDModeIndeterminate.
+ *
+ * @see MBProgressHUDMode
+ */
+@property (assign) MBProgressHUDMode mode;
+
+/**
+ * The animation type that should be used when the HUD is shown and hidden.
+ *
+ * @see MBProgressHUDAnimation
+ */
+@property (assign) MBProgressHUDAnimation animationType;
+
+/**
+ * The UIView (e.g., a UIImageView) to be shown when the HUD is in MBProgressHUDModeCustomView.
+ * For best results use a 37 by 37 pixel view (so the bounds match the built in indicator bounds).
+ */
+@property (MB_STRONG) UIView *customView;
+
+/**
+ * The HUD delegate object.
+ *
+ * @see MBProgressHUDDelegate
+ */
+@property (MB_WEAK) id delegate;
+
+/**
+ * An optional short message to be displayed below the activity indicator. The HUD is automatically resized to fit
+ * the entire text. If the text is too long it will get clipped by displaying "..." at the end. If left unchanged or
+ * set to @"", then no message is displayed.
+ */
+@property (copy) NSString *labelText;
+
+/**
+ * An optional details message displayed below the labelText message. This message is displayed only if the labelText
+ * property is also set and is different from an empty string (@""). The details text can span multiple lines.
+ */
+@property (copy) NSString *detailsLabelText;
+
+/**
+ * The opacity of the HUD window. Defaults to 0.8 (80% opacity).
+ */
+@property (assign) float opacity;
+
+/**
+ * The color of the HUD window. Defaults to black. If this property is set, color is set using
+ * this UIColor and the opacity property is not used. using retain because performing copy on
+ * UIColor base colors (like [UIColor greenColor]) cause problems with the copyZone.
+ */
+@property (MB_STRONG) UIColor *color;
+
+/**
+ * The x-axis offset of the HUD relative to the centre of the superview.
+ */
+@property (assign) float xOffset;
+
+/**
+ * The y-axis offset of the HUD relative to the centre of the superview.
+ */
+@property (assign) float yOffset;
+
+/**
+ * The amount of space between the HUD edge and the HUD elements (labels, indicators or custom views).
+ * Defaults to 20.0
+ */
+@property (assign) float margin;
+
+/**
+ * Cover the HUD background view with a radial gradient.
+ */
+@property (assign) BOOL dimBackground;
+
+/*
+ * Grace period is the time (in seconds) that the invoked method may be run without
+ * showing the HUD. If the task finishes before the grace time runs out, the HUD will
+ * not be shown at all.
+ * This may be used to prevent HUD display for very short tasks.
+ * Defaults to 0 (no grace time).
+ * Grace time functionality is only supported when the task status is known!
+ * @see taskInProgress
+ */
+@property (assign) float graceTime;
+
+/**
+ * The minimum time (in seconds) that the HUD is shown.
+ * This avoids the problem of the HUD being shown and than instantly hidden.
+ * Defaults to 0 (no minimum show time).
+ */
+@property (assign) float minShowTime;
+
+/**
+ * Indicates that the executed operation is in progress. Needed for correct graceTime operation.
+ * If you don't set a graceTime (different than 0.0) this does nothing.
+ * This property is automatically set when using showWhileExecuting:onTarget:withObject:animated:.
+ * When threading is done outside of the HUD (i.e., when the show: and hide: methods are used directly),
+ * you need to set this property when your task starts and completes in order to have normal graceTime
+ * functionality.
+ */
+@property (assign) BOOL taskInProgress;
+
+/**
+ * Removes the HUD from its parent view when hidden.
+ * Defaults to NO.
+ */
+@property (assign) BOOL removeFromSuperViewOnHide;
+
+/**
+ * Font to be used for the main label. Set this property if the default is not adequate.
+ */
+@property (MB_STRONG) UIFont* labelFont;
+
+/**
+ * Font to be used for the details label. Set this property if the default is not adequate.
+ */
+@property (MB_STRONG) UIFont* detailsLabelFont;
+
+/**
+ * The progress of the progress indicator, from 0.0 to 1.0. Defaults to 0.0.
+ */
+@property (assign) float progress;
+
+/**
+ * The minimum size of the HUD bezel. Defaults to CGSizeZero (no minimum size).
+ */
+@property (assign) CGSize minSize;
+
+/**
+ * Force the HUD dimensions to be equal if possible.
+ */
+@property (assign, getter = isSquare) BOOL square;
+
+@end
+
+
+@protocol MBProgressHUDDelegate
+
+@optional
+
+/**
+ * Called after the HUD was fully hidden from the screen.
+ */
+- (void)hudWasHidden:(MBProgressHUD *)hud;
+
+@end
+
+
+/**
+ * A progress view for showing definite progress by filling up a circle (pie chart).
+ */
+@interface MBRoundProgressView : UIView
+
+/**
+ * Progress (0.0 to 1.0)
+ */
+@property (nonatomic, assign) float progress;
+
+/**
+ * Indicator progress color.
+ * Defaults to white [UIColor whiteColor]
+ */
+@property (nonatomic, MB_STRONG) UIColor *progressTintColor;
+
+/**
+ * Indicator background (non-progress) color.
+ * Defaults to translucent white (alpha 0.1)
+ */
+@property (nonatomic, MB_STRONG) UIColor *backgroundTintColor;
+
+/*
+ * Display mode - NO = round or YES = annular. Defaults to round.
+ */
+@property (nonatomic, assign, getter = isAnnular) BOOL annular;
+
+@end
+
+
+/**
+ * A flat bar progress view.
+ */
+@interface MBBarProgressView : UIView
+
+/**
+ * Progress (0.0 to 1.0)
+ */
+@property (nonatomic, assign) float progress;
+
+/**
+ * Bar border line color.
+ * Defaults to white [UIColor whiteColor].
+ */
+@property (nonatomic, MB_STRONG) UIColor *lineColor;
+
+/**
+ * Bar background color.
+ * Defaults to clear [UIColor clearColor];
+ */
+@property (nonatomic, MB_STRONG) UIColor *progressRemainingColor;
+
+/**
+ * Bar progress color.
+ * Defaults to white [UIColor whiteColor].
+ */
+@property (nonatomic, MB_STRONG) UIColor *progressColor;
+
+@end
diff --git a/Pods/MBProgressHUD/MBProgressHUD.m b/Pods/MBProgressHUD/MBProgressHUD.m
new file mode 100755
index 0000000..b1f2055
--- /dev/null
+++ b/Pods/MBProgressHUD/MBProgressHUD.m
@@ -0,0 +1,1008 @@
+//
+// MBProgressHUD.m
+// Version 0.8
+// Created by Matej Bukovinski on 2.4.09.
+//
+
+#import "MBProgressHUD.h"
+
+
+#if __has_feature(objc_arc)
+ #define MB_AUTORELEASE(exp) exp
+ #define MB_RELEASE(exp) exp
+ #define MB_RETAIN(exp) exp
+#else
+ #define MB_AUTORELEASE(exp) [exp autorelease]
+ #define MB_RELEASE(exp) [exp release]
+ #define MB_RETAIN(exp) [exp retain]
+#endif
+
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000
+ #define MBLabelAlignmentCenter NSTextAlignmentCenter
+#else
+ #define MBLabelAlignmentCenter UITextAlignmentCenter
+#endif
+
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
+ #define MB_TEXTSIZE(text, font) [text length] > 0 ? [text \
+ sizeWithAttributes:@{NSFontAttributeName:font}] : CGSizeZero;
+#else
+ #define MB_TEXTSIZE(text, font) [text length] > 0 ? [text sizeWithFont:font] : CGSizeZero;
+#endif
+
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
+ #define MB_MULTILINE_TEXTSIZE(text, font, maxSize, mode) [text length] > 0 ? [text \
+ boundingRectWithSize:maxSize options:(NSStringDrawingUsesLineFragmentOrigin) \
+ attributes:@{NSFontAttributeName:font} context:nil].size : CGSizeZero;
+#else
+ #define MB_MULTILINE_TEXTSIZE(text, font, maxSize, mode) [text length] > 0 ? [text \
+ sizeWithFont:font constrainedToSize:maxSize lineBreakMode:mode] : CGSizeZero;
+#endif
+
+
+static const CGFloat kPadding = 4.f;
+static const CGFloat kLabelFontSize = 16.f;
+static const CGFloat kDetailsLabelFontSize = 12.f;
+
+
+@interface MBProgressHUD ()
+
+- (void)setupLabels;
+- (void)registerForKVO;
+- (void)unregisterFromKVO;
+- (NSArray *)observableKeypaths;
+- (void)registerForNotifications;
+- (void)unregisterFromNotifications;
+- (void)updateUIForKeypath:(NSString *)keyPath;
+- (void)hideUsingAnimation:(BOOL)animated;
+- (void)showUsingAnimation:(BOOL)animated;
+- (void)done;
+- (void)updateIndicators;
+- (void)handleGraceTimer:(NSTimer *)theTimer;
+- (void)handleMinShowTimer:(NSTimer *)theTimer;
+- (void)setTransformForCurrentOrientation:(BOOL)animated;
+- (void)cleanUp;
+- (void)launchExecution;
+- (void)deviceOrientationDidChange:(NSNotification *)notification;
+- (void)hideDelayed:(NSNumber *)animated;
+
+@property (atomic, MB_STRONG) UIView *indicator;
+@property (atomic, MB_STRONG) NSTimer *graceTimer;
+@property (atomic, MB_STRONG) NSTimer *minShowTimer;
+@property (atomic, MB_STRONG) NSDate *showStarted;
+@property (atomic, assign) CGSize size;
+
+@end
+
+
+@implementation MBProgressHUD {
+ BOOL useAnimation;
+ SEL methodForExecution;
+ id targetForExecution;
+ id objectForExecution;
+ UILabel *label;
+ UILabel *detailsLabel;
+ BOOL isFinished;
+ CGAffineTransform rotationTransform;
+}
+
+#pragma mark - Properties
+
+@synthesize animationType;
+@synthesize delegate;
+@synthesize opacity;
+@synthesize color;
+@synthesize labelFont;
+@synthesize detailsLabelFont;
+@synthesize indicator;
+@synthesize xOffset;
+@synthesize yOffset;
+@synthesize minSize;
+@synthesize square;
+@synthesize margin;
+@synthesize dimBackground;
+@synthesize graceTime;
+@synthesize minShowTime;
+@synthesize graceTimer;
+@synthesize minShowTimer;
+@synthesize taskInProgress;
+@synthesize removeFromSuperViewOnHide;
+@synthesize customView;
+@synthesize showStarted;
+@synthesize mode;
+@synthesize labelText;
+@synthesize detailsLabelText;
+@synthesize progress;
+@synthesize size;
+#if NS_BLOCKS_AVAILABLE
+@synthesize completionBlock;
+#endif
+
+#pragma mark - Class methods
+
++ (MB_INSTANCETYPE)showHUDAddedTo:(UIView *)view animated:(BOOL)animated {
+ MBProgressHUD *hud = [[self alloc] initWithView:view];
+ [view addSubview:hud];
+ [hud show:animated];
+ return MB_AUTORELEASE(hud);
+}
+
++ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated {
+ MBProgressHUD *hud = [self HUDForView:view];
+ if (hud != nil) {
+ hud.removeFromSuperViewOnHide = YES;
+ [hud hide:animated];
+ return YES;
+ }
+ return NO;
+}
+
++ (NSUInteger)hideAllHUDsForView:(UIView *)view animated:(BOOL)animated {
+ NSArray *huds = [MBProgressHUD allHUDsForView:view];
+ for (MBProgressHUD *hud in huds) {
+ hud.removeFromSuperViewOnHide = YES;
+ [hud hide:animated];
+ }
+ return [huds count];
+}
+
++ (MB_INSTANCETYPE)HUDForView:(UIView *)view {
+ NSEnumerator *subviewsEnum = [view.subviews reverseObjectEnumerator];
+ for (UIView *subview in subviewsEnum) {
+ if ([subview isKindOfClass:self]) {
+ return (MBProgressHUD *)subview;
+ }
+ }
+ return nil;
+}
+
++ (NSArray *)allHUDsForView:(UIView *)view {
+ NSMutableArray *huds = [NSMutableArray array];
+ NSArray *subviews = view.subviews;
+ for (UIView *aView in subviews) {
+ if ([aView isKindOfClass:self]) {
+ [huds addObject:aView];
+ }
+ }
+ return [NSArray arrayWithArray:huds];
+}
+
+#pragma mark - Lifecycle
+
+- (id)initWithFrame:(CGRect)frame {
+ self = [super initWithFrame:frame];
+ if (self) {
+ // Set default values for properties
+ self.animationType = MBProgressHUDAnimationFade;
+ self.mode = MBProgressHUDModeIndeterminate;
+ self.labelText = nil;
+ self.detailsLabelText = nil;
+ self.opacity = 0.8f;
+ self.color = nil;
+ self.labelFont = [UIFont boldSystemFontOfSize:kLabelFontSize];
+ self.detailsLabelFont = [UIFont boldSystemFontOfSize:kDetailsLabelFontSize];
+ self.xOffset = 0.0f;
+ self.yOffset = 0.0f;
+ self.dimBackground = NO;
+ self.margin = 20.0f;
+ self.graceTime = 0.0f;
+ self.minShowTime = 0.0f;
+ self.removeFromSuperViewOnHide = NO;
+ self.minSize = CGSizeZero;
+ self.square = NO;
+ self.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin
+ | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
+
+ // Transparent background
+ self.opaque = NO;
+ self.backgroundColor = [UIColor clearColor];
+ // Make it invisible for now
+ self.alpha = 0.0f;
+
+ taskInProgress = NO;
+ rotationTransform = CGAffineTransformIdentity;
+
+ [self setupLabels];
+ [self updateIndicators];
+ [self registerForKVO];
+ [self registerForNotifications];
+ }
+ return self;
+}
+
+- (id)initWithView:(UIView *)view {
+ NSAssert(view, @"View must not be nil.");
+ return [self initWithFrame:view.bounds];
+}
+
+- (id)initWithWindow:(UIWindow *)window {
+ return [self initWithView:window];
+}
+
+- (void)dealloc {
+ [self unregisterFromNotifications];
+ [self unregisterFromKVO];
+#if !__has_feature(objc_arc)
+ [color release];
+ [indicator release];
+ [label release];
+ [detailsLabel release];
+ [labelText release];
+ [detailsLabelText release];
+ [graceTimer release];
+ [minShowTimer release];
+ [showStarted release];
+ [customView release];
+#if NS_BLOCKS_AVAILABLE
+ [completionBlock release];
+#endif
+ [super dealloc];
+#endif
+}
+
+#pragma mark - Show & hide
+
+- (void)show:(BOOL)animated {
+ useAnimation = animated;
+ // If the grace time is set postpone the HUD display
+ if (self.graceTime > 0.0) {
+ self.graceTimer = [NSTimer scheduledTimerWithTimeInterval:self.graceTime target:self
+ selector:@selector(handleGraceTimer:) userInfo:nil repeats:NO];
+ }
+ // ... otherwise show the HUD imediately
+ else {
+ [self setNeedsDisplay];
+ [self showUsingAnimation:useAnimation];
+ }
+}
+
+- (void)hide:(BOOL)animated {
+ useAnimation = animated;
+ // If the minShow time is set, calculate how long the hud was shown,
+ // and pospone the hiding operation if necessary
+ if (self.minShowTime > 0.0 && showStarted) {
+ NSTimeInterval interv = [[NSDate date] timeIntervalSinceDate:showStarted];
+ if (interv < self.minShowTime) {
+ self.minShowTimer = [NSTimer scheduledTimerWithTimeInterval:(self.minShowTime - interv) target:self
+ selector:@selector(handleMinShowTimer:) userInfo:nil repeats:NO];
+ return;
+ }
+ }
+ // ... otherwise hide the HUD immediately
+ [self hideUsingAnimation:useAnimation];
+}
+
+- (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay {
+ [self performSelector:@selector(hideDelayed:) withObject:[NSNumber numberWithBool:animated] afterDelay:delay];
+}
+
+- (void)hideDelayed:(NSNumber *)animated {
+ [self hide:[animated boolValue]];
+}
+
+#pragma mark - Timer callbacks
+
+- (void)handleGraceTimer:(NSTimer *)theTimer {
+ // Show the HUD only if the task is still running
+ if (taskInProgress) {
+ [self setNeedsDisplay];
+ [self showUsingAnimation:useAnimation];
+ }
+}
+
+- (void)handleMinShowTimer:(NSTimer *)theTimer {
+ [self hideUsingAnimation:useAnimation];
+}
+
+#pragma mark - View Hierrarchy
+
+- (void)didMoveToSuperview {
+ // We need to take care of rotation ourselfs if we're adding the HUD to a window
+ if ([self.superview isKindOfClass:[UIWindow class]]) {
+ [self setTransformForCurrentOrientation:NO];
+ }
+}
+
+#pragma mark - Internal show & hide operations
+
+- (void)showUsingAnimation:(BOOL)animated {
+ if (animated && animationType == MBProgressHUDAnimationZoomIn) {
+ self.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(0.5f, 0.5f));
+ } else if (animated && animationType == MBProgressHUDAnimationZoomOut) {
+ self.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(1.5f, 1.5f));
+ }
+ self.showStarted = [NSDate date];
+ // Fade in
+ if (animated) {
+ [UIView beginAnimations:nil context:NULL];
+ [UIView setAnimationDuration:0.30];
+ self.alpha = 1.0f;
+ if (animationType == MBProgressHUDAnimationZoomIn || animationType == MBProgressHUDAnimationZoomOut) {
+ self.transform = rotationTransform;
+ }
+ [UIView commitAnimations];
+ }
+ else {
+ self.alpha = 1.0f;
+ }
+}
+
+- (void)hideUsingAnimation:(BOOL)animated {
+ // Fade out
+ if (animated && showStarted) {
+ [UIView beginAnimations:nil context:NULL];
+ [UIView setAnimationDuration:0.30];
+ [UIView setAnimationDelegate:self];
+ [UIView setAnimationDidStopSelector:@selector(animationFinished:finished:context:)];
+ // 0.02 prevents the hud from passing through touches during the animation the hud will get completely hidden
+ // in the done method
+ if (animationType == MBProgressHUDAnimationZoomIn) {
+ self.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(1.5f, 1.5f));
+ } else if (animationType == MBProgressHUDAnimationZoomOut) {
+ self.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(0.5f, 0.5f));
+ }
+
+ self.alpha = 0.02f;
+ [UIView commitAnimations];
+ }
+ else {
+ self.alpha = 0.0f;
+ [self done];
+ }
+ self.showStarted = nil;
+}
+
+- (void)animationFinished:(NSString *)animationID finished:(BOOL)finished context:(void*)context {
+ [self done];
+}
+
+- (void)done {
+ isFinished = YES;
+ self.alpha = 0.0f;
+ if (removeFromSuperViewOnHide) {
+ [self removeFromSuperview];
+ }
+#if NS_BLOCKS_AVAILABLE
+ if (self.completionBlock) {
+ self.completionBlock();
+ self.completionBlock = NULL;
+ }
+#endif
+ if ([delegate respondsToSelector:@selector(hudWasHidden:)]) {
+ [delegate performSelector:@selector(hudWasHidden:) withObject:self];
+ }
+}
+
+#pragma mark - Threading
+
+- (void)showWhileExecuting:(SEL)method onTarget:(id)target withObject:(id)object animated:(BOOL)animated {
+ methodForExecution = method;
+ targetForExecution = MB_RETAIN(target);
+ objectForExecution = MB_RETAIN(object);
+ // Launch execution in new thread
+ self.taskInProgress = YES;
+ [NSThread detachNewThreadSelector:@selector(launchExecution) toTarget:self withObject:nil];
+ // Show HUD view
+ [self show:animated];
+}
+
+#if NS_BLOCKS_AVAILABLE
+
+- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block {
+ dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
+ [self showAnimated:animated whileExecutingBlock:block onQueue:queue completionBlock:NULL];
+}
+
+- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block completionBlock:(void (^)())completion {
+ dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
+ [self showAnimated:animated whileExecutingBlock:block onQueue:queue completionBlock:completion];
+}
+
+- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue {
+ [self showAnimated:animated whileExecutingBlock:block onQueue:queue completionBlock:NULL];
+}
+
+- (void)showAnimated:(BOOL)animated whileExecutingBlock:(dispatch_block_t)block onQueue:(dispatch_queue_t)queue
+ completionBlock:(MBProgressHUDCompletionBlock)completion {
+ self.taskInProgress = YES;
+ self.completionBlock = completion;
+ dispatch_async(queue, ^(void) {
+ block();
+ dispatch_async(dispatch_get_main_queue(), ^(void) {
+ [self cleanUp];
+ });
+ });
+ [self show:animated];
+}
+
+#endif
+
+- (void)launchExecution {
+ @autoreleasepool {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
+ // Start executing the requested task
+ [targetForExecution performSelector:methodForExecution withObject:objectForExecution];
+#pragma clang diagnostic pop
+ // Task completed, update view in main thread (note: view operations should
+ // be done only in the main thread)
+ [self performSelectorOnMainThread:@selector(cleanUp) withObject:nil waitUntilDone:NO];
+ }
+}
+
+- (void)cleanUp {
+ taskInProgress = NO;
+#if !__has_feature(objc_arc)
+ [targetForExecution release];
+ [objectForExecution release];
+#else
+ targetForExecution = nil;
+ objectForExecution = nil;
+#endif
+ [self hide:useAnimation];
+}
+
+#pragma mark - UI
+
+- (void)setupLabels {
+ label = [[UILabel alloc] initWithFrame:self.bounds];
+ label.adjustsFontSizeToFitWidth = NO;
+ label.textAlignment = MBLabelAlignmentCenter;
+ label.opaque = NO;
+ label.backgroundColor = [UIColor clearColor];
+ label.textColor = [UIColor whiteColor];
+ label.font = self.labelFont;
+ label.text = self.labelText;
+ [self addSubview:label];
+
+ detailsLabel = [[UILabel alloc] initWithFrame:self.bounds];
+ detailsLabel.font = self.detailsLabelFont;
+ detailsLabel.adjustsFontSizeToFitWidth = NO;
+ detailsLabel.textAlignment = MBLabelAlignmentCenter;
+ detailsLabel.opaque = NO;
+ detailsLabel.backgroundColor = [UIColor clearColor];
+ detailsLabel.textColor = [UIColor whiteColor];
+ detailsLabel.numberOfLines = 0;
+ detailsLabel.font = self.detailsLabelFont;
+ detailsLabel.text = self.detailsLabelText;
+ [self addSubview:detailsLabel];
+}
+
+- (void)updateIndicators {
+
+ BOOL isActivityIndicator = [indicator isKindOfClass:[UIActivityIndicatorView class]];
+ BOOL isRoundIndicator = [indicator isKindOfClass:[MBRoundProgressView class]];
+
+ if (mode == MBProgressHUDModeIndeterminate && !isActivityIndicator) {
+ // Update to indeterminate indicator
+ [indicator removeFromSuperview];
+ self.indicator = MB_AUTORELEASE([[UIActivityIndicatorView alloc]
+ initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]);
+ [(UIActivityIndicatorView *)indicator startAnimating];
+ [self addSubview:indicator];
+ }
+ else if (mode == MBProgressHUDModeDeterminateHorizontalBar) {
+ // Update to bar determinate indicator
+ [indicator removeFromSuperview];
+ self.indicator = MB_AUTORELEASE([[MBBarProgressView alloc] init]);
+ [self addSubview:indicator];
+ }
+ else if (mode == MBProgressHUDModeDeterminate || mode == MBProgressHUDModeAnnularDeterminate) {
+ if (!isRoundIndicator) {
+ // Update to determinante indicator
+ [indicator removeFromSuperview];
+ self.indicator = MB_AUTORELEASE([[MBRoundProgressView alloc] init]);
+ [self addSubview:indicator];
+ }
+ if (mode == MBProgressHUDModeAnnularDeterminate) {
+ [(MBRoundProgressView *)indicator setAnnular:YES];
+ }
+ }
+ else if (mode == MBProgressHUDModeCustomView && customView != indicator) {
+ // Update custom view indicator
+ [indicator removeFromSuperview];
+ self.indicator = customView;
+ [self addSubview:indicator];
+ } else if (mode == MBProgressHUDModeText) {
+ [indicator removeFromSuperview];
+ self.indicator = nil;
+ }
+}
+
+#pragma mark - Layout
+
+- (void)layoutSubviews {
+
+ // Entirely cover the parent view
+ UIView *parent = self.superview;
+ if (parent) {
+ self.frame = parent.bounds;
+ }
+ CGRect bounds = self.bounds;
+
+ // Determine the total widt and height needed
+ CGFloat maxWidth = bounds.size.width - 4 * margin;
+ CGSize totalSize = CGSizeZero;
+
+ CGRect indicatorF = indicator.bounds;
+ indicatorF.size.width = MIN(indicatorF.size.width, maxWidth);
+ totalSize.width = MAX(totalSize.width, indicatorF.size.width);
+ totalSize.height += indicatorF.size.height;
+
+ CGSize labelSize = MB_TEXTSIZE(label.text, label.font);
+ labelSize.width = MIN(labelSize.width, maxWidth);
+ totalSize.width = MAX(totalSize.width, labelSize.width);
+ totalSize.height += labelSize.height;
+ if (labelSize.height > 0.f && indicatorF.size.height > 0.f) {
+ totalSize.height += kPadding;
+ }
+
+ CGFloat remainingHeight = bounds.size.height - totalSize.height - kPadding - 4 * margin;
+ CGSize maxSize = CGSizeMake(maxWidth, remainingHeight);
+ CGSize detailsLabelSize = MB_MULTILINE_TEXTSIZE(detailsLabel.text, detailsLabel.font, maxSize, detailsLabel.lineBreakMode);
+ totalSize.width = MAX(totalSize.width, detailsLabelSize.width);
+ totalSize.height += detailsLabelSize.height;
+ if (detailsLabelSize.height > 0.f && (indicatorF.size.height > 0.f || labelSize.height > 0.f)) {
+ totalSize.height += kPadding;
+ }
+
+ totalSize.width += 2 * margin;
+ totalSize.height += 2 * margin;
+
+ // Position elements
+ CGFloat yPos = roundf(((bounds.size.height - totalSize.height) / 2)) + margin + yOffset;
+ CGFloat xPos = xOffset;
+ indicatorF.origin.y = yPos;
+ indicatorF.origin.x = roundf((bounds.size.width - indicatorF.size.width) / 2) + xPos;
+ indicator.frame = indicatorF;
+ yPos += indicatorF.size.height;
+
+ if (labelSize.height > 0.f && indicatorF.size.height > 0.f) {
+ yPos += kPadding;
+ }
+ CGRect labelF;
+ labelF.origin.y = yPos;
+ labelF.origin.x = roundf((bounds.size.width - labelSize.width) / 2) + xPos;
+ labelF.size = labelSize;
+ label.frame = labelF;
+ yPos += labelF.size.height;
+
+ if (detailsLabelSize.height > 0.f && (indicatorF.size.height > 0.f || labelSize.height > 0.f)) {
+ yPos += kPadding;
+ }
+ CGRect detailsLabelF;
+ detailsLabelF.origin.y = yPos;
+ detailsLabelF.origin.x = roundf((bounds.size.width - detailsLabelSize.width) / 2) + xPos;
+ detailsLabelF.size = detailsLabelSize;
+ detailsLabel.frame = detailsLabelF;
+
+ // Enforce minsize and quare rules
+ if (square) {
+ CGFloat max = MAX(totalSize.width, totalSize.height);
+ if (max <= bounds.size.width - 2 * margin) {
+ totalSize.width = max;
+ }
+ if (max <= bounds.size.height - 2 * margin) {
+ totalSize.height = max;
+ }
+ }
+ if (totalSize.width < minSize.width) {
+ totalSize.width = minSize.width;
+ }
+ if (totalSize.height < minSize.height) {
+ totalSize.height = minSize.height;
+ }
+
+ self.size = totalSize;
+}
+
+#pragma mark BG Drawing
+
+- (void)drawRect:(CGRect)rect {
+
+ CGContextRef context = UIGraphicsGetCurrentContext();
+ UIGraphicsPushContext(context);
+
+ if (self.dimBackground) {
+ //Gradient colours
+ size_t gradLocationsNum = 2;
+ CGFloat gradLocations[2] = {0.0f, 1.0f};
+ CGFloat gradColors[8] = {0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.75f};
+ CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
+ CGGradientRef gradient = CGGradientCreateWithColorComponents(colorSpace, gradColors, gradLocations, gradLocationsNum);
+ CGColorSpaceRelease(colorSpace);
+ //Gradient center
+ CGPoint gradCenter= CGPointMake(self.bounds.size.width/2, self.bounds.size.height/2);
+ //Gradient radius
+ float gradRadius = MIN(self.bounds.size.width , self.bounds.size.height) ;
+ //Gradient draw
+ CGContextDrawRadialGradient (context, gradient, gradCenter,
+ 0, gradCenter, gradRadius,
+ kCGGradientDrawsAfterEndLocation);
+ CGGradientRelease(gradient);
+ }
+
+ // Set background rect color
+ if (self.color) {
+ CGContextSetFillColorWithColor(context, self.color.CGColor);
+ } else {
+ CGContextSetGrayFillColor(context, 0.0f, self.opacity);
+ }
+
+
+ // Center HUD
+ CGRect allRect = self.bounds;
+ // Draw rounded HUD backgroud rect
+ CGRect boxRect = CGRectMake(roundf((allRect.size.width - size.width) / 2) + self.xOffset,
+ roundf((allRect.size.height - size.height) / 2) + self.yOffset, size.width, size.height);
+ float radius = 10.0f;
+ CGContextBeginPath(context);
+ CGContextMoveToPoint(context, CGRectGetMinX(boxRect) + radius, CGRectGetMinY(boxRect));
+ CGContextAddArc(context, CGRectGetMaxX(boxRect) - radius, CGRectGetMinY(boxRect) + radius, radius, 3 * (float)M_PI / 2, 0, 0);
+ CGContextAddArc(context, CGRectGetMaxX(boxRect) - radius, CGRectGetMaxY(boxRect) - radius, radius, 0, (float)M_PI / 2, 0);
+ CGContextAddArc(context, CGRectGetMinX(boxRect) + radius, CGRectGetMaxY(boxRect) - radius, radius, (float)M_PI / 2, (float)M_PI, 0);
+ CGContextAddArc(context, CGRectGetMinX(boxRect) + radius, CGRectGetMinY(boxRect) + radius, radius, (float)M_PI, 3 * (float)M_PI / 2, 0);
+ CGContextClosePath(context);
+ CGContextFillPath(context);
+
+ UIGraphicsPopContext();
+}
+
+#pragma mark - KVO
+
+- (void)registerForKVO {
+ for (NSString *keyPath in [self observableKeypaths]) {
+ [self addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew context:NULL];
+ }
+}
+
+- (void)unregisterFromKVO {
+ for (NSString *keyPath in [self observableKeypaths]) {
+ [self removeObserver:self forKeyPath:keyPath];
+ }
+}
+
+- (NSArray *)observableKeypaths {
+ return [NSArray arrayWithObjects:@"mode", @"customView", @"labelText", @"labelFont",
+ @"detailsLabelText", @"detailsLabelFont", @"progress", nil];
+}
+
+- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
+ if (![NSThread isMainThread]) {
+ [self performSelectorOnMainThread:@selector(updateUIForKeypath:) withObject:keyPath waitUntilDone:NO];
+ } else {
+ [self updateUIForKeypath:keyPath];
+ }
+}
+
+- (void)updateUIForKeypath:(NSString *)keyPath {
+ if ([keyPath isEqualToString:@"mode"] || [keyPath isEqualToString:@"customView"]) {
+ [self updateIndicators];
+ } else if ([keyPath isEqualToString:@"labelText"]) {
+ label.text = self.labelText;
+ } else if ([keyPath isEqualToString:@"labelFont"]) {
+ label.font = self.labelFont;
+ } else if ([keyPath isEqualToString:@"detailsLabelText"]) {
+ detailsLabel.text = self.detailsLabelText;
+ } else if ([keyPath isEqualToString:@"detailsLabelFont"]) {
+ detailsLabel.font = self.detailsLabelFont;
+ } else if ([keyPath isEqualToString:@"progress"]) {
+ if ([indicator respondsToSelector:@selector(setProgress:)]) {
+ [(id)indicator setProgress:progress];
+ }
+ return;
+ }
+ [self setNeedsLayout];
+ [self setNeedsDisplay];
+}
+
+#pragma mark - Notifications
+
+- (void)registerForNotifications {
+ NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
+ [nc addObserver:self selector:@selector(deviceOrientationDidChange:)
+ name:UIDeviceOrientationDidChangeNotification object:nil];
+}
+
+- (void)unregisterFromNotifications {
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
+}
+
+- (void)deviceOrientationDidChange:(NSNotification *)notification {
+ UIView *superview = self.superview;
+ if (!superview) {
+ return;
+ } else if ([superview isKindOfClass:[UIWindow class]]) {
+ [self setTransformForCurrentOrientation:YES];
+ } else {
+ self.bounds = self.superview.bounds;
+ [self setNeedsDisplay];
+ }
+}
+
+- (void)setTransformForCurrentOrientation:(BOOL)animated {
+ // Stay in sync with the superview
+ if (self.superview) {
+ self.bounds = self.superview.bounds;
+ [self setNeedsDisplay];
+ }
+
+ UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
+ CGFloat radians = 0;
+ if (UIInterfaceOrientationIsLandscape(orientation)) {
+ if (orientation == UIInterfaceOrientationLandscapeLeft) { radians = -(CGFloat)M_PI_2; }
+ else { radians = (CGFloat)M_PI_2; }
+ // Window coordinates differ!
+ self.bounds = CGRectMake(0, 0, self.bounds.size.height, self.bounds.size.width);
+ } else {
+ if (orientation == UIInterfaceOrientationPortraitUpsideDown) { radians = (CGFloat)M_PI; }
+ else { radians = 0; }
+ }
+ rotationTransform = CGAffineTransformMakeRotation(radians);
+
+ if (animated) {
+ [UIView beginAnimations:nil context:nil];
+ }
+ [self setTransform:rotationTransform];
+ if (animated) {
+ [UIView commitAnimations];
+ }
+}
+
+@end
+
+
+@implementation MBRoundProgressView
+
+#pragma mark - Lifecycle
+
+- (id)init {
+ return [self initWithFrame:CGRectMake(0.f, 0.f, 37.f, 37.f)];
+}
+
+- (id)initWithFrame:(CGRect)frame {
+ self = [super initWithFrame:frame];
+ if (self) {
+ self.backgroundColor = [UIColor clearColor];
+ self.opaque = NO;
+ _progress = 0.f;
+ _annular = NO;
+ _progressTintColor = [[UIColor alloc] initWithWhite:1.f alpha:1.f];
+ _backgroundTintColor = [[UIColor alloc] initWithWhite:1.f alpha:.1f];
+ [self registerForKVO];
+ }
+ return self;
+}
+
+- (void)dealloc {
+ [self unregisterFromKVO];
+#if !__has_feature(objc_arc)
+ [_progressTintColor release];
+ [_backgroundTintColor release];
+ [super dealloc];
+#endif
+}
+
+#pragma mark - Drawing
+
+- (void)drawRect:(CGRect)rect {
+
+ CGRect allRect = self.bounds;
+ CGRect circleRect = CGRectInset(allRect, 2.0f, 2.0f);
+ CGContextRef context = UIGraphicsGetCurrentContext();
+
+ if (_annular) {
+ // Draw background
+ CGFloat lineWidth = 5.f;
+ UIBezierPath *processBackgroundPath = [UIBezierPath bezierPath];
+ processBackgroundPath.lineWidth = lineWidth;
+ processBackgroundPath.lineCapStyle = kCGLineCapRound;
+ CGPoint center = CGPointMake(self.bounds.size.width/2, self.bounds.size.height/2);
+ CGFloat radius = (self.bounds.size.width - lineWidth)/2;
+ CGFloat startAngle = - ((float)M_PI / 2); // 90 degrees
+ CGFloat endAngle = (2 * (float)M_PI) + startAngle;
+ [processBackgroundPath addArcWithCenter:center radius:radius startAngle:startAngle endAngle:endAngle clockwise:YES];
+ [_backgroundTintColor set];
+ [processBackgroundPath stroke];
+ // Draw progress
+ UIBezierPath *processPath = [UIBezierPath bezierPath];
+ processPath.lineCapStyle = kCGLineCapRound;
+ processPath.lineWidth = lineWidth;
+ endAngle = (self.progress * 2 * (float)M_PI) + startAngle;
+ [processPath addArcWithCenter:center radius:radius startAngle:startAngle endAngle:endAngle clockwise:YES];
+ [_progressTintColor set];
+ [processPath stroke];
+ } else {
+ // Draw background
+ [_progressTintColor setStroke];
+ [_backgroundTintColor setFill];
+ CGContextSetLineWidth(context, 2.0f);
+ CGContextFillEllipseInRect(context, circleRect);
+ CGContextStrokeEllipseInRect(context, circleRect);
+ // Draw progress
+ CGPoint center = CGPointMake(allRect.size.width / 2, allRect.size.height / 2);
+ CGFloat radius = (allRect.size.width - 4) / 2;
+ CGFloat startAngle = - ((float)M_PI / 2); // 90 degrees
+ CGFloat endAngle = (self.progress * 2 * (float)M_PI) + startAngle;
+ CGContextSetRGBFillColor(context, 1.0f, 1.0f, 1.0f, 1.0f); // white
+ CGContextMoveToPoint(context, center.x, center.y);
+ CGContextAddArc(context, center.x, center.y, radius, startAngle, endAngle, 0);
+ CGContextClosePath(context);
+ CGContextFillPath(context);
+ }
+}
+
+#pragma mark - KVO
+
+- (void)registerForKVO {
+ for (NSString *keyPath in [self observableKeypaths]) {
+ [self addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew context:NULL];
+ }
+}
+
+- (void)unregisterFromKVO {
+ for (NSString *keyPath in [self observableKeypaths]) {
+ [self removeObserver:self forKeyPath:keyPath];
+ }
+}
+
+- (NSArray *)observableKeypaths {
+ return [NSArray arrayWithObjects:@"progressTintColor", @"backgroundTintColor", @"progress", @"annular", nil];
+}
+
+- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
+ [self setNeedsDisplay];
+}
+
+@end
+
+
+@implementation MBBarProgressView
+
+#pragma mark - Lifecycle
+
+- (id)init {
+ return [self initWithFrame:CGRectMake(.0f, .0f, 120.0f, 20.0f)];
+}
+
+- (id)initWithFrame:(CGRect)frame {
+ self = [super initWithFrame:frame];
+ if (self) {
+ _progress = 0.f;
+ _lineColor = [UIColor whiteColor];
+ _progressColor = [UIColor whiteColor];
+ _progressRemainingColor = [UIColor clearColor];
+ self.backgroundColor = [UIColor clearColor];
+ self.opaque = NO;
+ [self registerForKVO];
+ }
+ return self;
+}
+
+- (void)dealloc {
+ [self unregisterFromKVO];
+#if !__has_feature(objc_arc)
+ [_lineColor release];
+ [_progressColor release];
+ [_progressRemainingColor release];
+ [super dealloc];
+#endif
+}
+
+#pragma mark - Drawing
+
+- (void)drawRect:(CGRect)rect {
+ CGContextRef context = UIGraphicsGetCurrentContext();
+
+ // setup properties
+ CGContextSetLineWidth(context, 2);
+ CGContextSetStrokeColorWithColor(context,[_lineColor CGColor]);
+ CGContextSetFillColorWithColor(context, [_progressRemainingColor CGColor]);
+
+ // draw line border
+ float radius = (rect.size.height / 2) - 2;
+ CGContextMoveToPoint(context, 2, rect.size.height/2);
+ CGContextAddArcToPoint(context, 2, 2, radius + 2, 2, radius);
+ CGContextAddLineToPoint(context, rect.size.width - radius - 2, 2);
+ CGContextAddArcToPoint(context, rect.size.width - 2, 2, rect.size.width - 2, rect.size.height / 2, radius);
+ CGContextAddArcToPoint(context, rect.size.width - 2, rect.size.height - 2, rect.size.width - radius - 2, rect.size.height - 2, radius);
+ CGContextAddLineToPoint(context, radius + 2, rect.size.height - 2);
+ CGContextAddArcToPoint(context, 2, rect.size.height - 2, 2, rect.size.height/2, radius);
+ CGContextFillPath(context);
+
+ // draw progress background
+ CGContextMoveToPoint(context, 2, rect.size.height/2);
+ CGContextAddArcToPoint(context, 2, 2, radius + 2, 2, radius);
+ CGContextAddLineToPoint(context, rect.size.width - radius - 2, 2);
+ CGContextAddArcToPoint(context, rect.size.width - 2, 2, rect.size.width - 2, rect.size.height / 2, radius);
+ CGContextAddArcToPoint(context, rect.size.width - 2, rect.size.height - 2, rect.size.width - radius - 2, rect.size.height - 2, radius);
+ CGContextAddLineToPoint(context, radius + 2, rect.size.height - 2);
+ CGContextAddArcToPoint(context, 2, rect.size.height - 2, 2, rect.size.height/2, radius);
+ CGContextStrokePath(context);
+
+ // setup to draw progress color
+ CGContextSetFillColorWithColor(context, [_progressColor CGColor]);
+ radius = radius - 2;
+ float amount = self.progress * rect.size.width;
+
+ // if progress is in the middle area
+ if (amount >= radius + 4 && amount <= (rect.size.width - radius - 4)) {
+ // top
+ CGContextMoveToPoint(context, 4, rect.size.height/2);
+ CGContextAddArcToPoint(context, 4, 4, radius + 4, 4, radius);
+ CGContextAddLineToPoint(context, amount, 4);
+ CGContextAddLineToPoint(context, amount, radius + 4);
+
+ // bottom
+ CGContextMoveToPoint(context, 4, rect.size.height/2);
+ CGContextAddArcToPoint(context, 4, rect.size.height - 4, radius + 4, rect.size.height - 4, radius);
+ CGContextAddLineToPoint(context, amount, rect.size.height - 4);
+ CGContextAddLineToPoint(context, amount, radius + 4);
+
+ CGContextFillPath(context);
+ }
+
+ // progress is in the right arc
+ else if (amount > radius + 4) {
+ float x = amount - (rect.size.width - radius - 4);
+
+ // top
+ CGContextMoveToPoint(context, 4, rect.size.height/2);
+ CGContextAddArcToPoint(context, 4, 4, radius + 4, 4, radius);
+ CGContextAddLineToPoint(context, rect.size.width - radius - 4, 4);
+ float angle = -acos(x/radius);
+ if (isnan(angle)) angle = 0;
+ CGContextAddArc(context, rect.size.width - radius - 4, rect.size.height/2, radius, M_PI, angle, 0);
+ CGContextAddLineToPoint(context, amount, rect.size.height/2);
+
+ // bottom
+ CGContextMoveToPoint(context, 4, rect.size.height/2);
+ CGContextAddArcToPoint(context, 4, rect.size.height - 4, radius + 4, rect.size.height - 4, radius);
+ CGContextAddLineToPoint(context, rect.size.width - radius - 4, rect.size.height - 4);
+ angle = acos(x/radius);
+ if (isnan(angle)) angle = 0;
+ CGContextAddArc(context, rect.size.width - radius - 4, rect.size.height/2, radius, -M_PI, angle, 1);
+ CGContextAddLineToPoint(context, amount, rect.size.height/2);
+
+ CGContextFillPath(context);
+ }
+
+ // progress is in the left arc
+ else if (amount < radius + 4 && amount > 0) {
+ // top
+ CGContextMoveToPoint(context, 4, rect.size.height/2);
+ CGContextAddArcToPoint(context, 4, 4, radius + 4, 4, radius);
+ CGContextAddLineToPoint(context, radius + 4, rect.size.height/2);
+
+ // bottom
+ CGContextMoveToPoint(context, 4, rect.size.height/2);
+ CGContextAddArcToPoint(context, 4, rect.size.height - 4, radius + 4, rect.size.height - 4, radius);
+ CGContextAddLineToPoint(context, radius + 4, rect.size.height/2);
+
+ CGContextFillPath(context);
+ }
+}
+
+#pragma mark - KVO
+
+- (void)registerForKVO {
+ for (NSString *keyPath in [self observableKeypaths]) {
+ [self addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew context:NULL];
+ }
+}
+
+- (void)unregisterFromKVO {
+ for (NSString *keyPath in [self observableKeypaths]) {
+ [self removeObserver:self forKeyPath:keyPath];
+ }
+}
+
+- (NSArray *)observableKeypaths {
+ return [NSArray arrayWithObjects:@"lineColor", @"progressRemainingColor", @"progressColor", @"progress", nil];
+}
+
+- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
+ [self setNeedsDisplay];
+}
+
+@end
diff --git a/Pods/MBProgressHUD/README.mdown b/Pods/MBProgressHUD/README.mdown
new file mode 100644
index 0000000..d21bc65
--- /dev/null
+++ b/Pods/MBProgressHUD/README.mdown
@@ -0,0 +1,101 @@
+# MBProgressHUD [](https://travis-ci.org/matej/MBProgressHUD)
+
+MBProgressHUD is an iOS drop-in class that displays a translucent HUD with an indicator and/or labels while work is being done in a background thread. The HUD is meant as a replacement for the undocumented, private UIKit UIProgressHUD with some additional features.
+
+[](http://dl.dropbox.com/u/378729/MBProgressHUD/1.png)
+[](http://dl.dropbox.com/u/378729/MBProgressHUD/2.png)
+[](http://dl.dropbox.com/u/378729/MBProgressHUD/3.png)
+[](http://dl.dropbox.com/u/378729/MBProgressHUD/4.png)
+[](http://dl.dropbox.com/u/378729/MBProgressHUD/5.png)
+[](http://dl.dropbox.com/u/378729/MBProgressHUD/6.png)
+[](http://dl.dropbox.com/u/378729/MBProgressHUD/7.png)
+
+## Requirements
+
+MBProgressHUD works on any iOS version and is compatible with both ARC and non-ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
+
+* Foundation.framework
+* UIKit.framework
+* CoreGraphics.framework
+
+You will need LLVM 3.0 or later in order to build MBProgressHUD.
+
+## Adding MBProgressHUD to your project
+
+### Cocoapods
+
+[CocoaPods](http://cocoapods.org) is the recommended way to add MBProgressHUD to your project.
+
+1. Add a pod entry for MBProgressHUD to your Podfile `pod 'MBProgressHUD', '~> 0.8'`
+2. Install the pod(s) by running `pod install`.
+3. Include MBProgressHUD wherever you need it with `#import "MBProgressHUD.h"`.
+
+### Source files
+
+Alternatively you can directly add the `MBProgressHUD.h` and `MBProgressHUD.m` source files to your project.
+
+1. Download the [latest code version](https://github.com/matej/MBProgressHUD/archive/master.zip) or add the repository as a git submodule to your git-tracked project.
+2. Open your project in Xcode, then drag and drop `MBProgressHUD.h` and `MBProgressHUD.m` onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
+3. Include MBProgressHUD wherever you need it with `#import "MBProgressHUD.h"`.
+
+### Static library
+
+You can also add MBProgressHUD as a static library to your project or workspace.
+
+1. Download the [latest code version](https://github.com/matej/MBProgressHUD/downloads) or add the repository as a git submodule to your git-tracked project.
+2. Open your project in Xcode, then drag and drop `MBProgressHUD.xcodeproj` onto your project or workspace (use the "Product Navigator view").
+3. Select your target and go to the Build phases tab. In the Link Binary With Libraries section select the add button. On the sheet find and add `libMBProgressHUD.a`. You might also need to add `MBProgressHUD` to the Target Dependencies list.
+4. Include MBProgressHUD wherever you need it with `#import `.
+
+## Usage
+
+The main guideline you need to follow when dealing with MBProgressHUD while running long-running tasks is keeping the main thread work-free, so the UI can be updated promptly. The recommended way of using MBProgressHUD is therefore to set it up on the main thread and then spinning the task, that you want to perform, off onto a new thread.
+
+```objective-c
+[MBProgressHUD showHUDAddedTo:self.view animated:YES];
+dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
+ // Do something...
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [MBProgressHUD hideHUDForView:self.view animated:YES];
+ });
+});
+```
+
+If you need to configure the HUD you can do this by using the MBProgressHUD reference that showHUDAddedTo:animated: returns.
+
+```objective-c
+MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
+hud.mode = MBProgressHUDModeAnnularDeterminate;
+hud.labelText = @"Loading";
+[self doSomethingInBackgroundWithProgressCallback:^(float progress) {
+ hud.progress = progress;
+} completionCallback:^{
+ [hud hide:YES];
+}];
+```
+
+UI updates should always be done on the main thread. Some MBProgressHUD setters are however considered "thread safe" and can be called from background threads. Those also include `setMode:`, `setCustomView:`, `setLabelText:`, `setLabelFont:`, `setDetailsLabelText:`, `setDetailsLabelFont:` and `setProgress:`.
+
+If you need to run your long-running task in the main thread, you should perform it with a slight delay, so UIKit will have enough time to update the UI (i.e., draw the HUD) before you block the main thread with your task.
+
+```objective-c
+[MBProgressHUD showHUDAddedTo:self.view animated:YES];
+dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.01 * NSEC_PER_SEC);
+dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
+ // Do something...
+ [MBProgressHUD hideHUDForView:self.view animated:YES];
+});
+```
+
+You should be aware that any HUD updates issued inside the above block won't be displayed until the block completes.
+
+For more examples, including how to use MBProgressHUD with asynchronous operations such as NSURLConnection, take a look at the bundled demo project. Extensive API documentation is provided in the header file (MBProgressHUD.h).
+
+
+## License
+
+This code is distributed under the terms and conditions of the [MIT license](LICENSE).
+
+## Change-log
+
+A brief summary of each MBProgressHUD release can be found on the [wiki](https://github.com/matej/MBProgressHUD/wiki/Change-log).
diff --git a/Pods/Manifest.lock b/Pods/Manifest.lock
new file mode 100644
index 0000000..677bf55
--- /dev/null
+++ b/Pods/Manifest.lock
@@ -0,0 +1,24 @@
+PODS:
+ - GoogleAnalytics-iOS-SDK (3.0.3)
+ - MBProgressHUD (0.8)
+ - Reachability (3.1.1)
+ - SBJson (3.2)
+ - SDWebImage (3.5.2):
+ - SDWebImage/Core
+ - SDWebImage/Core (3.5.2)
+
+DEPENDENCIES:
+ - GoogleAnalytics-iOS-SDK (~> 3.0.3)
+ - MBProgressHUD (= 0.8)
+ - Reachability (~> 3.1.1)
+ - SBJson (~> 3.2)
+ - SDWebImage (~> 3.5.2)
+
+SPEC CHECKSUMS:
+ GoogleAnalytics-iOS-SDK: 7b0e55cfe5e70d60478a7b105f15ac71e8bc373e
+ MBProgressHUD: 2bbc6f470111daf7f3eaa4eb12b8cbf01c4c0622
+ Reachability: be4883bb93f31e38266ae3365e5600a317aae735
+ SBJson: abc2bf2baef456d5dae213f9826fe2b6fdf19861
+ SDWebImage: fe7ce01ae4e0a884d168f59c9dd82d35baf8429e
+
+COCOAPODS: 0.29.0
diff --git a/Pods/Pods-GoogleAnalytics-iOS-SDK-Private.xcconfig b/Pods/Pods-GoogleAnalytics-iOS-SDK-Private.xcconfig
new file mode 100644
index 0000000..e3f7ff9
--- /dev/null
+++ b/Pods/Pods-GoogleAnalytics-iOS-SDK-Private.xcconfig
@@ -0,0 +1,6 @@
+#include "Pods-GoogleAnalytics-iOS-SDK.xcconfig"
+GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1
+HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/GoogleAnalytics-iOS-SDK" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/GoogleAnalytics-iOS-SDK" "${PODS_ROOT}/Headers/MBProgressHUD" "${PODS_ROOT}/Headers/Reachability" "${PODS_ROOT}/Headers/SBJson" "${PODS_ROOT}/Headers/SDWebImage" ${PODS_GOOGLEANALYTICS_IOS_SDK_HEADER_SEARCH_PATHS}
+LIBRARY_SEARCH_PATHS = ${PODS_GOOGLEANALYTICS_IOS_SDK_LIBRARY_SEARCH_PATHS}
+OTHER_LDFLAGS = -ObjC ${PODS_GOOGLEANALYTICS_IOS_SDK_OTHER_LDFLAGS}
+PODS_ROOT = ${SRCROOT}
\ No newline at end of file
diff --git a/Pods/Pods-GoogleAnalytics-iOS-SDK-dummy.m b/Pods/Pods-GoogleAnalytics-iOS-SDK-dummy.m
new file mode 100644
index 0000000..cd37bc1
--- /dev/null
+++ b/Pods/Pods-GoogleAnalytics-iOS-SDK-dummy.m
@@ -0,0 +1,5 @@
+#import
+@interface PodsDummy_Pods_GoogleAnalytics_iOS_SDK : NSObject
+@end
+@implementation PodsDummy_Pods_GoogleAnalytics_iOS_SDK
+@end
diff --git a/Pods/Pods-GoogleAnalytics-iOS-SDK-prefix.pch b/Pods/Pods-GoogleAnalytics-iOS-SDK-prefix.pch
new file mode 100644
index 0000000..95cf11d
--- /dev/null
+++ b/Pods/Pods-GoogleAnalytics-iOS-SDK-prefix.pch
@@ -0,0 +1,5 @@
+#ifdef __OBJC__
+#import
+#endif
+
+#import "Pods-environment.h"
diff --git a/Pods/Pods-GoogleAnalytics-iOS-SDK.xcconfig b/Pods/Pods-GoogleAnalytics-iOS-SDK.xcconfig
new file mode 100644
index 0000000..bf85094
--- /dev/null
+++ b/Pods/Pods-GoogleAnalytics-iOS-SDK.xcconfig
@@ -0,0 +1,3 @@
+PODS_GOOGLEANALYTICS_IOS_SDK_HEADER_SEARCH_PATHS = $(SDKROOT)/usr/include/libz
+PODS_GOOGLEANALYTICS_IOS_SDK_LIBRARY_SEARCH_PATHS = "$(PODS_ROOT)/GoogleAnalytics-iOS-SDK"
+PODS_GOOGLEANALYTICS_IOS_SDK_OTHER_LDFLAGS = -lGoogleAnalyticsServices -lz -framework CFNetwork -framework CoreData -framework SystemConfiguration -weak_framework AdSupport
\ No newline at end of file
diff --git a/Pods/Pods-MBProgressHUD-Private.xcconfig b/Pods/Pods-MBProgressHUD-Private.xcconfig
new file mode 100644
index 0000000..b879e8d
--- /dev/null
+++ b/Pods/Pods-MBProgressHUD-Private.xcconfig
@@ -0,0 +1,5 @@
+#include "Pods-MBProgressHUD.xcconfig"
+GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1
+HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/MBProgressHUD" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/GoogleAnalytics-iOS-SDK" "${PODS_ROOT}/Headers/MBProgressHUD" "${PODS_ROOT}/Headers/Reachability" "${PODS_ROOT}/Headers/SBJson" "${PODS_ROOT}/Headers/SDWebImage"
+OTHER_LDFLAGS = -ObjC ${PODS_MBPROGRESSHUD_OTHER_LDFLAGS}
+PODS_ROOT = ${SRCROOT}
\ No newline at end of file
diff --git a/Pods/Pods-MBProgressHUD-dummy.m b/Pods/Pods-MBProgressHUD-dummy.m
new file mode 100644
index 0000000..10d445d
--- /dev/null
+++ b/Pods/Pods-MBProgressHUD-dummy.m
@@ -0,0 +1,5 @@
+#import
+@interface PodsDummy_Pods_MBProgressHUD : NSObject
+@end
+@implementation PodsDummy_Pods_MBProgressHUD
+@end
diff --git a/Pods/Pods-MBProgressHUD-prefix.pch b/Pods/Pods-MBProgressHUD-prefix.pch
new file mode 100644
index 0000000..95cf11d
--- /dev/null
+++ b/Pods/Pods-MBProgressHUD-prefix.pch
@@ -0,0 +1,5 @@
+#ifdef __OBJC__
+#import
+#endif
+
+#import "Pods-environment.h"
diff --git a/Pods/Pods-MBProgressHUD.xcconfig b/Pods/Pods-MBProgressHUD.xcconfig
new file mode 100644
index 0000000..e1c175d
--- /dev/null
+++ b/Pods/Pods-MBProgressHUD.xcconfig
@@ -0,0 +1 @@
+PODS_MBPROGRESSHUD_OTHER_LDFLAGS = -framework CoreGraphics
\ No newline at end of file
diff --git a/Pods/Pods-Reachability-Private.xcconfig b/Pods/Pods-Reachability-Private.xcconfig
new file mode 100644
index 0000000..dde0baa
--- /dev/null
+++ b/Pods/Pods-Reachability-Private.xcconfig
@@ -0,0 +1,5 @@
+#include "Pods-Reachability.xcconfig"
+GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1
+HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/Reachability" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/GoogleAnalytics-iOS-SDK" "${PODS_ROOT}/Headers/MBProgressHUD" "${PODS_ROOT}/Headers/Reachability" "${PODS_ROOT}/Headers/SBJson" "${PODS_ROOT}/Headers/SDWebImage"
+OTHER_LDFLAGS = -ObjC ${PODS_REACHABILITY_OTHER_LDFLAGS}
+PODS_ROOT = ${SRCROOT}
\ No newline at end of file
diff --git a/Pods/Pods-Reachability-dummy.m b/Pods/Pods-Reachability-dummy.m
new file mode 100644
index 0000000..abdf477
--- /dev/null
+++ b/Pods/Pods-Reachability-dummy.m
@@ -0,0 +1,5 @@
+#import
+@interface PodsDummy_Pods_Reachability : NSObject
+@end
+@implementation PodsDummy_Pods_Reachability
+@end
diff --git a/Pods/Pods-Reachability-prefix.pch b/Pods/Pods-Reachability-prefix.pch
new file mode 100644
index 0000000..95cf11d
--- /dev/null
+++ b/Pods/Pods-Reachability-prefix.pch
@@ -0,0 +1,5 @@
+#ifdef __OBJC__
+#import
+#endif
+
+#import "Pods-environment.h"
diff --git a/Pods/Pods-Reachability.xcconfig b/Pods/Pods-Reachability.xcconfig
new file mode 100644
index 0000000..05645ce
--- /dev/null
+++ b/Pods/Pods-Reachability.xcconfig
@@ -0,0 +1 @@
+PODS_REACHABILITY_OTHER_LDFLAGS = -framework SystemConfiguration
\ No newline at end of file
diff --git a/Pods/Pods-SBJson-Private.xcconfig b/Pods/Pods-SBJson-Private.xcconfig
new file mode 100644
index 0000000..a0ba693
--- /dev/null
+++ b/Pods/Pods-SBJson-Private.xcconfig
@@ -0,0 +1,5 @@
+#include "Pods-SBJson.xcconfig"
+GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1
+HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/SBJson" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/GoogleAnalytics-iOS-SDK" "${PODS_ROOT}/Headers/MBProgressHUD" "${PODS_ROOT}/Headers/Reachability" "${PODS_ROOT}/Headers/SBJson" "${PODS_ROOT}/Headers/SDWebImage"
+OTHER_LDFLAGS = -ObjC
+PODS_ROOT = ${SRCROOT}
\ No newline at end of file
diff --git a/Pods/Pods-SBJson-dummy.m b/Pods/Pods-SBJson-dummy.m
new file mode 100644
index 0000000..0e0e4b4
--- /dev/null
+++ b/Pods/Pods-SBJson-dummy.m
@@ -0,0 +1,5 @@
+#import
+@interface PodsDummy_Pods_SBJson : NSObject
+@end
+@implementation PodsDummy_Pods_SBJson
+@end
diff --git a/Pods/Pods-SBJson-prefix.pch b/Pods/Pods-SBJson-prefix.pch
new file mode 100644
index 0000000..95cf11d
--- /dev/null
+++ b/Pods/Pods-SBJson-prefix.pch
@@ -0,0 +1,5 @@
+#ifdef __OBJC__
+#import
+#endif
+
+#import "Pods-environment.h"
diff --git a/Pods/Pods-SBJson.xcconfig b/Pods/Pods-SBJson.xcconfig
new file mode 100644
index 0000000..e69de29
diff --git a/Pods/Pods-SDWebImage-Private.xcconfig b/Pods/Pods-SDWebImage-Private.xcconfig
new file mode 100644
index 0000000..21afd68
--- /dev/null
+++ b/Pods/Pods-SDWebImage-Private.xcconfig
@@ -0,0 +1,5 @@
+#include "Pods-SDWebImage.xcconfig"
+GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1
+HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/SDWebImage" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/GoogleAnalytics-iOS-SDK" "${PODS_ROOT}/Headers/MBProgressHUD" "${PODS_ROOT}/Headers/Reachability" "${PODS_ROOT}/Headers/SBJson" "${PODS_ROOT}/Headers/SDWebImage"
+OTHER_LDFLAGS = -ObjC ${PODS_SDWEBIMAGE_OTHER_LDFLAGS}
+PODS_ROOT = ${SRCROOT}
\ No newline at end of file
diff --git a/Pods/Pods-SDWebImage-dummy.m b/Pods/Pods-SDWebImage-dummy.m
new file mode 100644
index 0000000..1e978bb
--- /dev/null
+++ b/Pods/Pods-SDWebImage-dummy.m
@@ -0,0 +1,5 @@
+#import
+@interface PodsDummy_Pods_SDWebImage : NSObject
+@end
+@implementation PodsDummy_Pods_SDWebImage
+@end
diff --git a/Pods/Pods-SDWebImage-prefix.pch b/Pods/Pods-SDWebImage-prefix.pch
new file mode 100644
index 0000000..951b031
--- /dev/null
+++ b/Pods/Pods-SDWebImage-prefix.pch
@@ -0,0 +1,6 @@
+#ifdef __OBJC__
+#import
+#endif
+
+#import "Pods-environment.h"
+
diff --git a/Pods/Pods-SDWebImage.xcconfig b/Pods/Pods-SDWebImage.xcconfig
new file mode 100644
index 0000000..46844fa
--- /dev/null
+++ b/Pods/Pods-SDWebImage.xcconfig
@@ -0,0 +1 @@
+PODS_SDWEBIMAGE_OTHER_LDFLAGS = -framework ImageIO
\ No newline at end of file
diff --git a/Pods/Pods-acknowledgements.markdown b/Pods/Pods-acknowledgements.markdown
new file mode 100644
index 0000000..7883b91
--- /dev/null
+++ b/Pods/Pods-acknowledgements.markdown
@@ -0,0 +1,96 @@
+# Acknowledgements
+This application makes use of the following third party libraries:
+
+## GoogleAnalytics-iOS-SDK
+
+Copyright 2009 - 2014 Google, Inc. All rights reserved.
+
+
+## MBProgressHUD
+
+Copyright (c) 2013 Matej Bukovinski
+
+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.
+
+## Reachability
+
+Copyright (c) 2011, Tony Million.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+## SBJson
+
+Copyright (C) 2007-2013 Stig Brautaset. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+## SDWebImage
+
+Copyright (c) 2009 Olivier Poitrey
+
+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.
+
+
+Generated by CocoaPods - http://cocoapods.org
diff --git a/Pods/Pods-acknowledgements.plist b/Pods/Pods-acknowledgements.plist
new file mode 100644
index 0000000..3142319
--- /dev/null
+++ b/Pods/Pods-acknowledgements.plist
@@ -0,0 +1,142 @@
+
+
+
+
+ PreferenceSpecifiers
+
+
+ FooterText
+ This application makes use of the following third party libraries:
+ Title
+ Acknowledgements
+ Type
+ PSGroupSpecifier
+
+
+ FooterText
+ Copyright 2009 - 2014 Google, Inc. All rights reserved.
+
+ Title
+ GoogleAnalytics-iOS-SDK
+ Type
+ PSGroupSpecifier
+
+
+ FooterText
+ Copyright (c) 2013 Matej Bukovinski
+
+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.
+ Title
+ MBProgressHUD
+ Type
+ PSGroupSpecifier
+
+
+ FooterText
+ Copyright (c) 2011, Tony Million.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ Title
+ Reachability
+ Type
+ PSGroupSpecifier
+
+
+ FooterText
+ Copyright (C) 2007-2013 Stig Brautaset. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ Title
+ SBJson
+ Type
+ PSGroupSpecifier
+
+
+ FooterText
+ Copyright (c) 2009 Olivier Poitrey <rs@dailymotion.com>
+
+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.
+
+
+ Title
+ SDWebImage
+ Type
+ PSGroupSpecifier
+
+
+ FooterText
+ Generated by CocoaPods - http://cocoapods.org
+ Title
+
+ Type
+ PSGroupSpecifier
+
+
+ StringsTable
+ Acknowledgements
+ Title
+ Acknowledgements
+
+
diff --git a/Pods/Pods-dummy.m b/Pods/Pods-dummy.m
new file mode 100644
index 0000000..ade64bd
--- /dev/null
+++ b/Pods/Pods-dummy.m
@@ -0,0 +1,5 @@
+#import
+@interface PodsDummy_Pods : NSObject
+@end
+@implementation PodsDummy_Pods
+@end
diff --git a/Pods/Pods-environment.h b/Pods/Pods-environment.h
new file mode 100644
index 0000000..0053596
--- /dev/null
+++ b/Pods/Pods-environment.h
@@ -0,0 +1,44 @@
+
+// To check if a library is compiled with CocoaPods you
+// can use the `COCOAPODS` macro definition which is
+// defined in the xcconfigs so it is available in
+// headers also when they are imported in the client
+// project.
+
+
+// GoogleAnalytics-iOS-SDK
+#define COCOAPODS_POD_AVAILABLE_GoogleAnalytics_iOS_SDK
+#define COCOAPODS_VERSION_MAJOR_GoogleAnalytics_iOS_SDK 3
+#define COCOAPODS_VERSION_MINOR_GoogleAnalytics_iOS_SDK 0
+#define COCOAPODS_VERSION_PATCH_GoogleAnalytics_iOS_SDK 3
+
+// MBProgressHUD
+#define COCOAPODS_POD_AVAILABLE_MBProgressHUD
+#define COCOAPODS_VERSION_MAJOR_MBProgressHUD 0
+#define COCOAPODS_VERSION_MINOR_MBProgressHUD 8
+#define COCOAPODS_VERSION_PATCH_MBProgressHUD 0
+
+// Reachability
+#define COCOAPODS_POD_AVAILABLE_Reachability
+#define COCOAPODS_VERSION_MAJOR_Reachability 3
+#define COCOAPODS_VERSION_MINOR_Reachability 1
+#define COCOAPODS_VERSION_PATCH_Reachability 1
+
+// SBJson
+#define COCOAPODS_POD_AVAILABLE_SBJson
+#define COCOAPODS_VERSION_MAJOR_SBJson 3
+#define COCOAPODS_VERSION_MINOR_SBJson 2
+#define COCOAPODS_VERSION_PATCH_SBJson 0
+
+// SDWebImage
+#define COCOAPODS_POD_AVAILABLE_SDWebImage
+#define COCOAPODS_VERSION_MAJOR_SDWebImage 3
+#define COCOAPODS_VERSION_MINOR_SDWebImage 5
+#define COCOAPODS_VERSION_PATCH_SDWebImage 2
+
+// SDWebImage/Core
+#define COCOAPODS_POD_AVAILABLE_SDWebImage_Core
+#define COCOAPODS_VERSION_MAJOR_SDWebImage_Core 3
+#define COCOAPODS_VERSION_MINOR_SDWebImage_Core 5
+#define COCOAPODS_VERSION_PATCH_SDWebImage_Core 2
+
diff --git a/Pods/Pods-resources.sh b/Pods/Pods-resources.sh
new file mode 100755
index 0000000..39c2549
--- /dev/null
+++ b/Pods/Pods-resources.sh
@@ -0,0 +1,68 @@
+#!/bin/sh
+set -e
+
+RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
+> "$RESOURCES_TO_COPY"
+
+install_resource()
+{
+ case $1 in
+ *.storyboard)
+ echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
+ ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
+ ;;
+ *.xib)
+ echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
+ ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
+ ;;
+ *.framework)
+ echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
+ mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
+ echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
+ rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
+ ;;
+ *.xcdatamodel)
+ echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\""
+ xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom"
+ ;;
+ *.xcdatamodeld)
+ echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\""
+ xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd"
+ ;;
+ *.xcassets)
+ ;;
+ /*)
+ echo "$1"
+ echo "$1" >> "$RESOURCES_TO_COPY"
+ ;;
+ *)
+ echo "${PODS_ROOT}/$1"
+ echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY"
+ ;;
+ esac
+}
+
+rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
+if [[ "${ACTION}" == "install" ]]; then
+ rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
+fi
+rm -f "$RESOURCES_TO_COPY"
+
+if [[ -n "${WRAPPER_EXTENSION}" ]] && [ `xcrun --find actool` ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ]
+then
+ case "${TARGETED_DEVICE_FAMILY}" in
+ 1,2)
+ TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
+ ;;
+ 1)
+ TARGET_DEVICE_ARGS="--target-device iphone"
+ ;;
+ 2)
+ TARGET_DEVICE_ARGS="--target-device ipad"
+ ;;
+ *)
+ TARGET_DEVICE_ARGS="--target-device mac"
+ ;;
+ esac
+ find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
+fi
diff --git a/Pods/Pods.xcconfig b/Pods/Pods.xcconfig
new file mode 100644
index 0000000..54dc23c
--- /dev/null
+++ b/Pods/Pods.xcconfig
@@ -0,0 +1,6 @@
+GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
+HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/GoogleAnalytics-iOS-SDK" "${PODS_ROOT}/Headers/MBProgressHUD" "${PODS_ROOT}/Headers/Reachability" "${PODS_ROOT}/Headers/SBJson" "${PODS_ROOT}/Headers/SDWebImage" $(SDKROOT)/usr/include/libz
+LIBRARY_SEARCH_PATHS = "$(PODS_ROOT)/GoogleAnalytics-iOS-SDK"
+OTHER_CFLAGS = $(inherited) "-isystem${PODS_ROOT}/Headers" "-isystem${PODS_ROOT}/Headers/GoogleAnalytics-iOS-SDK" "-isystem${PODS_ROOT}/Headers/MBProgressHUD" "-isystem${PODS_ROOT}/Headers/Reachability" "-isystem${PODS_ROOT}/Headers/SBJson" "-isystem${PODS_ROOT}/Headers/SDWebImage"
+OTHER_LDFLAGS = -ObjC -lGoogleAnalyticsServices -lz -framework CFNetwork -framework CoreData -framework CoreGraphics -framework ImageIO -framework SystemConfiguration -weak_framework AdSupport
+PODS_ROOT = ${SRCROOT}/Pods
\ No newline at end of file
diff --git a/Pods/Pods.xcodeproj/project.pbxproj b/Pods/Pods.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..ff9c016
--- /dev/null
+++ b/Pods/Pods.xcodeproj/project.pbxproj
@@ -0,0 +1,4045 @@
+
+
+
+
+ archiveVersion
+ 1
+ classes
+
+ objectVersion
+ 46
+ objects
+
+ 003BB572B89D4797A515F2CB
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ path
+ Pods-SDWebImage-prefix.pch
+ sourceTree
+ <group>
+
+ 00900672C355452A9AF03E3E
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SDWebImageManager.m
+ path
+ SDWebImage/SDWebImageManager.m
+ sourceTree
+ <group>
+
+ 012C1FA08AAE4AD3B91F1C0F
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ TAGLogger.h
+ path
+ GoogleTagManager/Library/TAGLogger.h
+ sourceTree
+ <group>
+
+ 022950EBF5CA4EE78004C059
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SDWebImageCompat.m
+ path
+ SDWebImage/SDWebImageCompat.m
+ sourceTree
+ <group>
+
+ 03B8BACDAC21442BBAC2B4E6
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-SDWebImage-Private.xcconfig
+ sourceTree
+ <group>
+
+ 054CC86878F346E482315B1D
+
+ fileRef
+ 85D6A2EBB86B4EADB35F1BCC
+ isa
+ PBXBuildFile
+
+ 07742E08010F4D93A50B2B57
+
+ fileRef
+ FE51E6157E9B4D14A6ECF438
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 07EA954AEC7A46E69282D1FE
+
+ fileRef
+ 6DB01783B9254255A4A47DA0
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 0AC453DACE954BE0A612F4D0
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ UIButton+WebCache.h
+ path
+ SDWebImage/UIButton+WebCache.h
+ sourceTree
+ <group>
+
+ 0B8B6614A0FB4EFF928D2191
+
+ fileRef
+ EAF87EAE87584C45AEB9017F
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 0CB3BDCE888E4E1E8505E64A
+
+ fileRef
+ C9365D2112AD4458A93F22A7
+ isa
+ PBXBuildFile
+
+ 0CE627779FED4664A9783BF3
+
+ fileRef
+ 8DED7C3671094B29BC6974ED
+ isa
+ PBXBuildFile
+
+ 0D560C677EE74E6E8A8D5180
+
+ buildActionMask
+ 2147483647
+ files
+
+ A00926E84AD94E948689AAB2
+ 752E8E312F9D4E6FA0F39FF7
+ D10CB2BEAF8548B1BC443E04
+ 9E7D015D42CE4FD18D0B2C29
+ 4517C58AAD504C5EAF6D3AF7
+ 9013E4E89D4E471E8FF1A18B
+ 363FD7FD52C747BA9151AF82
+ 79573FA8ED5C4901925FACA5
+ 21FF55CF8C934F009A618F5B
+ 55DF28B07A8342CD801510F9
+ 91A9223B9CE64FB492E8E661
+ 6D7A0C736912469E876996C1
+ CCA47F5763564FA4929C1ACC
+
+ isa
+ PBXHeadersBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 0DD0CE6B2E59430F897EDDC8
+
+ children
+
+ 55203EC76C024B35B3D336B7
+ 956BC3792799426ABDF33FAB
+ CD5818BC963F44DD86B02DC0
+ 28FCBED4DDA446669C520BF4
+ FC8FC20E05FE422B898C6608
+ 168AB1D585634D71B98A2C81
+ 3987027727DF431680C6FCC2
+ 14508931864D490D974F3091
+ 189AC9A1A60048CF9FAA3216
+ 012C1FA08AAE4AD3B91F1C0F
+ 5634B33AA941404790C7FC37
+ A40B7B1E5218450183013C87
+
+ isa
+ PBXGroup
+ name
+ GoogleAnalytics-iOS-SDK
+ path
+ GoogleAnalytics-iOS-SDK
+ sourceTree
+ <group>
+
+ 0E0656D69E424CBCA2B2F8A6
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ path
+ Pods-SDWebImage-dummy.m
+ sourceTree
+ <group>
+
+ 0E0E570884D4411B83FAD3CD
+
+ isa
+ PBXFileReference
+ lastKnownFileType
+ wrapper.framework
+ name
+ ImageIO.framework
+ path
+ Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/ImageIO.framework
+ sourceTree
+ DEVELOPER_DIR
+
+ 0E886E16DDE04E38943FCF68
+
+ fileRef
+ 23F8D7F46F0F4A9D90FBA0F3
+ isa
+ PBXBuildFile
+
+ 0EFF5DED14FD4D60A2B4C7F3
+
+ fileRef
+ 82628760FAAD48A5ACF5947C
+ isa
+ PBXBuildFile
+
+ 0F08612C3F964899BD10394E
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonStreamParser.h
+ path
+ Classes/SBJsonStreamParser.h
+ sourceTree
+ <group>
+
+ 0F465D8F6BDE4F299DEEBD8C
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonStreamWriterAccumulator.m
+ path
+ Classes/SBJsonStreamWriterAccumulator.m
+ sourceTree
+ <group>
+
+ 11EFC360CCAC434A91F893A1
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonParser.h
+ path
+ Classes/SBJsonParser.h
+ sourceTree
+ <group>
+
+ 14508931864D490D974F3091
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ TAGContainerOpener.h
+ path
+ GoogleTagManager/Library/TAGContainerOpener.h
+ sourceTree
+ <group>
+
+ 168AB1D585634D71B98A2C81
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ GAITracker.h
+ path
+ GoogleAnalytics/Library/GAITracker.h
+ sourceTree
+ <group>
+
+ 1772331B36AB4B48A551F0EA
+
+ fileRef
+ B510E3C56D924F739F80376C
+ isa
+ PBXBuildFile
+
+ 17916CB9378A401C9D9A8B40
+
+ buildActionMask
+ 2147483647
+ files
+
+ 51CF84DC5C084041B7F6CB06
+
+ isa
+ PBXSourcesBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 189AC9A1A60048CF9FAA3216
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ TAGDataLayer.h
+ path
+ GoogleTagManager/Library/TAGDataLayer.h
+ sourceTree
+ <group>
+
+ 1927EC6481264AA7A958093C
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ UIImageView+WebCache.m
+ path
+ SDWebImage/UIImageView+WebCache.m
+ sourceTree
+ <group>
+
+ 1AF0856606B44638B55F67D0
+
+ fileRef
+ 0E0656D69E424CBCA2B2F8A6
+ isa
+ PBXBuildFile
+
+ 1D34705010B249D69563D8AA
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-SBJson.xcconfig
+ sourceTree
+ <group>
+
+ 1D405613F07047EE844F546A
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonStreamWriterState.m
+ path
+ Classes/SBJsonStreamWriterState.m
+ sourceTree
+ <group>
+
+ 1E30A1264A2A4218A8FA5A19
+
+ isa
+ PBXFileReference
+ lastKnownFileType
+ wrapper.framework
+ name
+ SystemConfiguration.framework
+ path
+ Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/SystemConfiguration.framework
+ sourceTree
+ DEVELOPER_DIR
+
+ 2170EA094B6F4787BD47B9EE
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonStreamParserAdapter.h
+ path
+ Classes/SBJsonStreamParserAdapter.h
+ sourceTree
+ <group>
+
+ 21FF55CF8C934F009A618F5B
+
+ fileRef
+ 3AF682DAEE3E49D4B82B21C6
+ isa
+ PBXBuildFile
+
+ 23F8D7F46F0F4A9D90FBA0F3
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonTokeniser.h
+ path
+ Classes/SBJsonTokeniser.h
+ sourceTree
+ <group>
+
+ 24547587CF8D46DF9B02E604
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ path
+ Pods-dummy.m
+ sourceTree
+ <group>
+
+ 25773EB8C40A4C4CB4CE4991
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonUTF8Stream.m
+ path
+ Classes/SBJsonUTF8Stream.m
+ sourceTree
+ <group>
+
+ 277AD59F04B6400FB200600F
+
+ fileRef
+ 82628760FAAD48A5ACF5947C
+ isa
+ PBXBuildFile
+
+ 278E77ED35E24333B4C62569
+
+ children
+
+ 0DD0CE6B2E59430F897EDDC8
+ ECA0C8CA5C5B42E38DF5CB0C
+ DE0A359B417A44C09BC31560
+ DF40FD82AE024F3E87DC9E4C
+ 924678CFB71D457389699A20
+
+ isa
+ PBXGroup
+ name
+ Pods
+ sourceTree
+ <group>
+
+ 28FCBED4DDA446669C520BF4
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ GAILogger.h
+ path
+ GoogleAnalytics/Library/GAILogger.h
+ sourceTree
+ <group>
+
+ 296315D5D22B4D1CB1D8D08E
+
+ buildActionMask
+ 2147483647
+ files
+
+ 74F4BB733AC042B9B7DAC3A5
+ E6A6920C9D2C4EB4BCF1D0CC
+
+ isa
+ PBXFrameworksBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 2A4838E8EF9248C89A880EE7
+
+ buildActionMask
+ 2147483647
+ files
+
+ 7DF4A75AF3C84598B4A51C9F
+
+ isa
+ PBXSourcesBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 2A4D004F77D14DB482ADCAC0
+
+ children
+
+ 4A7CEAABEB594311BCDD4594
+ 4EE47461203240CE8F33B4ED
+ 64A101CC25AA42A488F161E3
+ 2AB0BDDB7551476982D105B2
+
+ isa
+ PBXGroup
+ name
+ Support Files
+ sourceTree
+ SOURCE_ROOT
+
+ 2A5F196EB3414EE8ABD68112
+
+ fileRef
+ FE98E42E61BC476790097994
+ isa
+ PBXBuildFile
+
+ 2AB0BDDB7551476982D105B2
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ path
+ Pods-Reachability-prefix.pch
+ sourceTree
+ <group>
+
+ 2AF5565ECD4646099875BCE3
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-GoogleAnalytics-iOS-SDK.xcconfig
+ sourceTree
+ <group>
+
+ 2B1505C9201D440BB7F79CA3
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.plist.xml
+ path
+ Pods-acknowledgements.plist
+ sourceTree
+ <group>
+
+ 2CBFAED094A4415BA377DF2E
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJson.h
+ path
+ Classes/SBJson.h
+ sourceTree
+ <group>
+
+ 2CD81D4CC6D44B3A8019AD7C
+
+ buildConfigurationList
+ 77D69448F9704D1D8E2BE09E
+ buildPhases
+
+ 2A4838E8EF9248C89A880EE7
+ B33DEEC5C0164514AB77CD1A
+ 6E1DE8FC29B7401FBFE27BEE
+
+ buildRules
+
+ dependencies
+
+ isa
+ PBXNativeTarget
+ name
+ Pods-GoogleAnalytics-iOS-SDK
+ productName
+ Pods-GoogleAnalytics-iOS-SDK
+ productReference
+ 35EB6667BCBC4D7AA1BFB5BB
+ productType
+ com.apple.product-type.library.static
+
+ 307E7377850546B783B8D71D
+
+ isa
+ PBXTargetDependency
+ target
+ 424BF183AE794B8BB59C4F2A
+ targetProxy
+ 57E73A6B535A494EBA5B0AD1
+
+ 3472B0534DB04F9E9B71D308
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ path
+ Pods-GoogleAnalytics-iOS-SDK-prefix.pch
+ sourceTree
+ <group>
+
+ 350F3C8532F84E6CB522BA9F
+
+ fileRef
+ 7439ADDBD4D3402E884EE38B
+ isa
+ PBXBuildFile
+
+ 3598CF6FD11244E9A878C86A
+
+ fileRef
+ 4B5A4310265F4F9884826F2A
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 35EB6667BCBC4D7AA1BFB5BB
+
+ explicitFileType
+ archive.ar
+ includeInIndex
+ 0
+ isa
+ PBXFileReference
+ path
+ libPods-GoogleAnalytics-iOS-SDK.a
+ sourceTree
+ BUILT_PRODUCTS_DIR
+
+ 363FD7FD52C747BA9151AF82
+
+ fileRef
+ 90361B3CD1E8498D8CADCC9D
+ isa
+ PBXBuildFile
+
+ 365D61900BD748029172106D
+
+ children
+
+ DD7C223E84364EC189E1AD3A
+ B46B5B02BB5748F99A7752EF
+ 59F4DE0BC90C4D5E97142456
+ 7D4E70E551C7406FB3B50D09
+ FCE3FDA1BCB3462D9C8D12A1
+ 022950EBF5CA4EE78004C059
+ 89B79CD853C44298859382D8
+ 78884C3F4F76470EB9F14210
+ F1B112B6A2A64272A457C894
+ EAF87EAE87584C45AEB9017F
+ 45BEF503AEBF47D58BC63D1E
+ EE9CB81677BC40A98DF3F832
+ 90361B3CD1E8498D8CADCC9D
+ 00900672C355452A9AF03E3E
+ 5F529BEF9EC84B749935BE09
+ 3AF682DAEE3E49D4B82B21C6
+ D80DC10AE4504B33BF70AF95
+ 0AC453DACE954BE0A612F4D0
+ EF100AFFCAA749FA8AEFA529
+ 6402D0A65F6D4DAE91CB3CAF
+ C32C913F2DD14D34BB26F733
+ C2F3645273214FEDB31C5AF6
+ 792E25DAA76942B398FCF12C
+ A251E3B9EE974D448AE90B30
+ 1927EC6481264AA7A958093C
+
+ isa
+ PBXGroup
+ name
+ Core
+ sourceTree
+ <group>
+
+ 36BBEEAC0B4848AE85033FD6
+
+ fileRef
+ B9964E94D2264B9FB5950DAA
+ isa
+ PBXBuildFile
+
+ 37DB351D62864857BB9AAC14
+
+ fileRef
+ 28FCBED4DDA446669C520BF4
+ isa
+ PBXBuildFile
+
+ 3987027727DF431680C6FCC2
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ TAGContainer.h
+ path
+ GoogleTagManager/Library/TAGContainer.h
+ sourceTree
+ <group>
+
+ 39B5DC555AA2470B9CDBEC2D
+
+ fileRef
+ 3D4CC484B9F942BF9DFA38C9
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 3AF682DAEE3E49D4B82B21C6
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SDWebImagePrefetcher.h
+ path
+ SDWebImage/SDWebImagePrefetcher.h
+ sourceTree
+ <group>
+
+ 3CB3BCD9DDE74BFFA90DBAFD
+
+ fileRef
+ FC8FC20E05FE422B898C6608
+ isa
+ PBXBuildFile
+
+ 3D4CC484B9F942BF9DFA38C9
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonStreamWriter.m
+ path
+ Classes/SBJsonStreamWriter.m
+ sourceTree
+ <group>
+
+ 424BF183AE794B8BB59C4F2A
+
+ buildConfigurationList
+ AA093DA83306440F9909C264
+ buildPhases
+
+ C2B1EBADD9084AF98DB05E6B
+ A4721273E6E54EDD8E5E5F46
+ B302E784B5B34720A24BFDBF
+
+ buildRules
+
+ dependencies
+
+ isa
+ PBXNativeTarget
+ name
+ Pods-MBProgressHUD
+ productName
+ Pods-MBProgressHUD
+ productReference
+ 4C78556D251A42E4BE4D1CED
+ productType
+ com.apple.product-type.library.static
+
+ 42C14A544AE44054A7C9D45A
+
+ fileRef
+ C32C913F2DD14D34BB26F733
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 43164EA5180A4CF1A0E61D9C
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text
+ path
+ Pods-acknowledgements.markdown
+ sourceTree
+ <group>
+
+ 4517C58AAD504C5EAF6D3AF7
+
+ fileRef
+ F1B112B6A2A64272A457C894
+ isa
+ PBXBuildFile
+
+ 4519DF8C13FB4841BA016496
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonStreamParserAdapter.m
+ path
+ Classes/SBJsonStreamParserAdapter.m
+ sourceTree
+ <group>
+
+ 45BEF503AEBF47D58BC63D1E
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SDWebImageDownloaderOperation.h
+ path
+ SDWebImage/SDWebImageDownloaderOperation.h
+ sourceTree
+ <group>
+
+ 472ABA72A3F0477BA6BD072B
+
+ fileRef
+ 35EB6667BCBC4D7AA1BFB5BB
+ isa
+ PBXBuildFile
+
+ 47A9C6C8510046B2AEA46858
+
+ baseConfigurationReference
+ 77C387AD284548E28745394E
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ NO
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_DYNAMIC_NO_PIC
+ NO
+ GCC_OPTIMIZATION_LEVEL
+ 0
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREPROCESSOR_DEFINITIONS
+
+ DEBUG=1
+ $(inherited)
+
+ GCC_SYMBOLS_PRIVATE_EXTERN
+ NO
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Debug
+
+ 485ED0C4DF974890B25C1F0C
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.script.sh
+ path
+ Pods-resources.sh
+ sourceTree
+ <group>
+
+ 48BE7272930C4C3CA5708E62
+
+ fileRef
+ 012C1FA08AAE4AD3B91F1C0F
+ isa
+ PBXBuildFile
+
+ 494D27E6535C4BFF86D04705
+
+ fileRef
+ 55203EC76C024B35B3D336B7
+ isa
+ PBXBuildFile
+
+ 49874FA1F2EB41CA83569BEC
+
+ fileRef
+ 4519DF8C13FB4841BA016496
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 4A7CEAABEB594311BCDD4594
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-Reachability.xcconfig
+ sourceTree
+ <group>
+
+ 4B1386A3F0A2486D9EC05C59
+
+ baseConfigurationReference
+ EC86382FB757461FBFD60689
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ YES
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-SBJson-prefix.pch
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_CFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_CPLUSPLUSFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+ VALIDATE_PRODUCT
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Release
+
+ 4B5A4310265F4F9884826F2A
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonTokeniser.m
+ path
+ Classes/SBJsonTokeniser.m
+ sourceTree
+ <group>
+
+ 4BC4D38830F5430882509517
+
+ fileRef
+ 7D4E70E551C7406FB3B50D09
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 4BFFDB552C1E424BBAA602CC
+
+ fileRef
+ 00900672C355452A9AF03E3E
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 4C78556D251A42E4BE4D1CED
+
+ explicitFileType
+ archive.ar
+ includeInIndex
+ 0
+ isa
+ PBXFileReference
+ path
+ libPods-MBProgressHUD.a
+ sourceTree
+ BUILT_PRODUCTS_DIR
+
+ 4C86531344664C5AB94AE006
+
+ buildConfigurationList
+ C53CAD9A0E0F4F02A2721B50
+ buildPhases
+
+ FF3CC075D6E54C1D80A05B7D
+ 296315D5D22B4D1CB1D8D08E
+ 82574E64ABA74F72A19E4A52
+
+ buildRules
+
+ dependencies
+
+ isa
+ PBXNativeTarget
+ name
+ Pods-Reachability
+ productName
+ Pods-Reachability
+ productReference
+ 85D6A2EBB86B4EADB35F1BCC
+ productType
+ com.apple.product-type.library.static
+
+ 4EE47461203240CE8F33B4ED
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-Reachability-Private.xcconfig
+ sourceTree
+ <group>
+
+ 50167BD83B3B47B0A334CDED
+
+ fileRef
+ 0E0E570884D4411B83FAD3CD
+ isa
+ PBXBuildFile
+
+ 518D525C56E84BFE9403D04C
+
+ isa
+ PBXTargetDependency
+ target
+ 9DB0FBEF13DA4F63A0A7C630
+ targetProxy
+ 906ABBAB7BA34BB5889965D8
+
+ 51CF84DC5C084041B7F6CB06
+
+ fileRef
+ 24547587CF8D46DF9B02E604
+ isa
+ PBXBuildFile
+
+ 5224EDB887474C8BA536641E
+
+ fileRef
+ 4C78556D251A42E4BE4D1CED
+ isa
+ PBXBuildFile
+
+ 5423D15F7CC84B94BCE5A609
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonStreamWriterAccumulator.h
+ path
+ Classes/SBJsonStreamWriterAccumulator.h
+ sourceTree
+ <group>
+
+ 55203EC76C024B35B3D336B7
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ GAI.h
+ path
+ GoogleAnalytics/Library/GAI.h
+ sourceTree
+ <group>
+
+ 55DF28B07A8342CD801510F9
+
+ fileRef
+ 0AC453DACE954BE0A612F4D0
+ isa
+ PBXBuildFile
+
+ 5634B33AA941404790C7FC37
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ TAGManager.h
+ path
+ GoogleTagManager/Library/TAGManager.h
+ sourceTree
+ <group>
+
+ 571F9C12CBBC453FB62BFB53
+
+ fileRef
+ FA855A824C32493395B93715
+ isa
+ PBXBuildFile
+
+ 57E73A6B535A494EBA5B0AD1
+
+ containerPortal
+ 93897145FA0C4E4797DD7885
+ isa
+ PBXContainerItemProxy
+ proxyType
+ 1
+ remoteGlobalIDString
+ 424BF183AE794B8BB59C4F2A
+ remoteInfo
+ Pods-MBProgressHUD
+
+ 59F4DE0BC90C4D5E97142456
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SDImageCache.h
+ path
+ SDWebImage/SDImageCache.h
+ sourceTree
+ <group>
+
+ 5A4E319BE3C04686803C5E3B
+
+ buildActionMask
+ 2147483647
+ files
+
+ 07EA954AEC7A46E69282D1FE
+ B08B34D165884E5FB1602C96
+ 7FA5EB3FD5B1488FBF274B20
+ 7EDB5CB7B0B94AC98F6044C2
+ 7E36034719E94604B43E818E
+ 49874FA1F2EB41CA83569BEC
+ 07742E08010F4D93A50B2B57
+ 39B5DC555AA2470B9CDBEC2D
+ A9FFE154DF0642CC82CD3791
+ 9078AD3CDEF54E47AE9C9D1F
+ 3598CF6FD11244E9A878C86A
+ EDE84C18B67D4E69BFCAF732
+ A3198293BEA24927A86F968B
+
+ isa
+ PBXSourcesBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 5B89FF7891A3456A8799AF7E
+
+ baseConfigurationReference
+ 03B8BACDAC21442BBAC2B4E6
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ YES
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-SDWebImage-prefix.pch
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_CFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_CPLUSPLUSFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+ VALIDATE_PRODUCT
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Release
+
+ 5D952F3EF52640C4A5CF85A6
+
+ containerPortal
+ 93897145FA0C4E4797DD7885
+ isa
+ PBXContainerItemProxy
+ proxyType
+ 1
+ remoteGlobalIDString
+ 2CD81D4CC6D44B3A8019AD7C
+ remoteInfo
+ Pods-GoogleAnalytics-iOS-SDK
+
+ 5DCEEFD5F09944DD924BB973
+
+ buildConfigurationList
+ BFC5C2427D934FB69163E57D
+ buildPhases
+
+ 17916CB9378A401C9D9A8B40
+ 80EB815EDBC844B0BFB05C8C
+
+ buildRules
+
+ dependencies
+
+ EA4E77A8EE5548DE9799A480
+ 307E7377850546B783B8D71D
+ E242413913494DDDABB18697
+ 518D525C56E84BFE9403D04C
+ FBF80A065080410288B6A3CA
+
+ isa
+ PBXNativeTarget
+ name
+ Pods
+ productName
+ Pods
+ productReference
+ EA723EEFD9054F3495254C73
+ productType
+ com.apple.product-type.library.static
+
+ 5DEBF1000EAE44859241AB18
+
+ baseConfigurationReference
+ 4EE47461203240CE8F33B4ED
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ YES
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-Reachability-prefix.pch
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_CFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_CPLUSPLUSFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+ VALIDATE_PRODUCT
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Release
+
+ 5F529BEF9EC84B749935BE09
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SDWebImageOperation.h
+ path
+ SDWebImage/SDWebImageOperation.h
+ sourceTree
+ <group>
+
+ 60F44C2FD5ED4DE1A194612D
+
+ buildActionMask
+ 2147483647
+ files
+
+ 277AD59F04B6400FB200600F
+ 50167BD83B3B47B0A334CDED
+
+ isa
+ PBXFrameworksBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 62045B35752B4053B8C6D40B
+
+ children
+
+ B4D9BDC746BD42F78AB0AE98
+ D2F48D89D67B4777BD54F87D
+ FA855A824C32493395B93715
+ BE5E3C9654424A7DBD117C52
+
+ isa
+ PBXGroup
+ name
+ Support Files
+ sourceTree
+ SOURCE_ROOT
+
+ 6402D0A65F6D4DAE91CB3CAF
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ UIImage+GIF.h
+ path
+ SDWebImage/UIImage+GIF.h
+ sourceTree
+ <group>
+
+ 648070F22362460F872CC157
+
+ children
+
+ C163DB96626A44AE8F006CF1
+ 83931098CBED458A96987E70
+ 278E77ED35E24333B4C62569
+ 88FBD37A463C402B835D3DD2
+ 7BA7100C24ED43A2A101F56F
+
+ isa
+ PBXGroup
+ sourceTree
+ <group>
+
+ 64A101CC25AA42A488F161E3
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ path
+ Pods-Reachability-dummy.m
+ sourceTree
+ <group>
+
+ 64ED374A48CA411B91CA497C
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ path
+ MBProgressHUD.h
+ sourceTree
+ <group>
+
+ 6760F83637304B31B0C82722
+
+ containerPortal
+ 93897145FA0C4E4797DD7885
+ isa
+ PBXContainerItemProxy
+ proxyType
+ 1
+ remoteGlobalIDString
+ A93A257AD7CF4B3F8C86FE74
+ remoteInfo
+ Pods-SDWebImage
+
+ 68966E2E949A423DB063C15E
+
+ fileRef
+ 1E30A1264A2A4218A8FA5A19
+ isa
+ PBXBuildFile
+
+ 6AD845BD658B4C81B9C6BBED
+
+ fileRef
+ 189AC9A1A60048CF9FAA3216
+ isa
+ PBXBuildFile
+
+ 6D7A0C736912469E876996C1
+
+ fileRef
+ C2F3645273214FEDB31C5AF6
+ isa
+ PBXBuildFile
+
+ 6DB01783B9254255A4A47DA0
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ NSObject+SBJson.m
+ path
+ Classes/NSObject+SBJson.m
+ sourceTree
+ <group>
+
+ 6E1DE8FC29B7401FBFE27BEE
+
+ buildActionMask
+ 2147483647
+ files
+
+ 494D27E6535C4BFF86D04705
+ 9F88EA3236794D069F43565D
+ F3F8A76F2C11494FBC9C145A
+ 37DB351D62864857BB9AAC14
+ 3CB3BCD9DDE74BFFA90DBAFD
+ FF86BEED47BC4D27BE032A59
+ 70D53CBA2FE241BEA95D452D
+ D8E61ACD454245EAB8779D0E
+ 6AD845BD658B4C81B9C6BBED
+ 48BE7272930C4C3CA5708E62
+ FF5A4D52DBB14202B9A6E036
+
+ isa
+ PBXHeadersBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 70D53CBA2FE241BEA95D452D
+
+ fileRef
+ 3987027727DF431680C6FCC2
+ isa
+ PBXBuildFile
+
+ 711F6524526B479E936C24CB
+
+ fileRef
+ B46B5B02BB5748F99A7752EF
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 71B9693F25BC4576B916DBC1
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ path
+ MBProgressHUD.m
+ sourceTree
+ <group>
+
+ 72F495860B024995BE841717
+
+ fileRef
+ 64A101CC25AA42A488F161E3
+ isa
+ PBXBuildFile
+
+ 73F984F03A9B4A15B3FCDFEA
+
+ fileRef
+ 2170EA094B6F4787BD47B9EE
+ isa
+ PBXBuildFile
+
+ 7439ADDBD4D3402E884EE38B
+
+ explicitFileType
+ archive.ar
+ includeInIndex
+ 0
+ isa
+ PBXFileReference
+ path
+ libPods-SBJson.a
+ sourceTree
+ BUILT_PRODUCTS_DIR
+
+ 74F4BB733AC042B9B7DAC3A5
+
+ fileRef
+ 82628760FAAD48A5ACF5947C
+ isa
+ PBXBuildFile
+
+ 752E8E312F9D4E6FA0F39FF7
+
+ fileRef
+ 59F4DE0BC90C4D5E97142456
+ isa
+ PBXBuildFile
+
+ 77C387AD284548E28745394E
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods.xcconfig
+ sourceTree
+ <group>
+
+ 77D69448F9704D1D8E2BE09E
+
+ buildConfigurations
+
+ FF6578CF364A4D2AB5C9FA45
+ 97FA47EDC02441A5A3CE3377
+
+ defaultConfigurationIsVisible
+ 0
+ defaultConfigurationName
+ Release
+ isa
+ XCConfigurationList
+
+ 78884C3F4F76470EB9F14210
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SDWebImageDecoder.m
+ path
+ SDWebImage/SDWebImageDecoder.m
+ sourceTree
+ <group>
+
+ 792E25DAA76942B398FCF12C
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ UIImage+MultiFormat.m
+ path
+ SDWebImage/UIImage+MultiFormat.m
+ sourceTree
+ <group>
+
+ 79573FA8ED5C4901925FACA5
+
+ fileRef
+ 5F529BEF9EC84B749935BE09
+ isa
+ PBXBuildFile
+
+ 7AA0216340B94A3C90ECB512
+
+ fileRef
+ 8278D807B6184E989A3EA811
+ isa
+ PBXBuildFile
+
+ 7BA7100C24ED43A2A101F56F
+
+ children
+
+ E3F1A88E872A4855A9F74CC5
+
+ isa
+ PBXGroup
+ name
+ Targets Support Files
+ sourceTree
+ <group>
+
+ 7D4E70E551C7406FB3B50D09
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SDImageCache.m
+ path
+ SDWebImage/SDImageCache.m
+ sourceTree
+ <group>
+
+ 7DF4A75AF3C84598B4A51C9F
+
+ fileRef
+ 8A238FBB37004E668440BE8C
+ isa
+ PBXBuildFile
+
+ 7E36034719E94604B43E818E
+
+ fileRef
+ DE882321BB924FB482DFF0FF
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 7E42072AEE5940809A6DDD86
+
+ explicitFileType
+ archive.ar
+ includeInIndex
+ 0
+ isa
+ PBXFileReference
+ path
+ libPods-SDWebImage.a
+ sourceTree
+ BUILT_PRODUCTS_DIR
+
+ 7EDB5CB7B0B94AC98F6044C2
+
+ fileRef
+ C8765593FAED4547958AA635
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 7FA5EB3FD5B1488FBF274B20
+
+ fileRef
+ A3C9CB96A36447FA821AF216
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 7FE67B373AAC4B679FBDF291
+
+ fileRef
+ C0DF5FD83BCA4C60BE34EFC6
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 8035F0A85E1C4055AAEB3913
+
+ fileRef
+ 64ED374A48CA411B91CA497C
+ isa
+ PBXBuildFile
+
+ 80EB815EDBC844B0BFB05C8C
+
+ buildActionMask
+ 2147483647
+ files
+
+ C2787EB5ADDB414C8B4D6BAC
+ 472ABA72A3F0477BA6BD072B
+ 5224EDB887474C8BA536641E
+ 054CC86878F346E482315B1D
+ 350F3C8532F84E6CB522BA9F
+ C48351A789E04BDF9473EE42
+
+ isa
+ PBXFrameworksBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 82574E64ABA74F72A19E4A52
+
+ buildActionMask
+ 2147483647
+ files
+
+ 7AA0216340B94A3C90ECB512
+
+ isa
+ PBXHeadersBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 82628760FAAD48A5ACF5947C
+
+ isa
+ PBXFileReference
+ lastKnownFileType
+ wrapper.framework
+ name
+ Foundation.framework
+ path
+ Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework
+ sourceTree
+ DEVELOPER_DIR
+
+ 8278D807B6184E989A3EA811
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ path
+ Reachability.h
+ sourceTree
+ <group>
+
+ 83931098CBED458A96987E70
+
+ children
+
+ BB9E8C3206F246D0BA390746
+
+ isa
+ PBXGroup
+ name
+ Frameworks
+ sourceTree
+ <group>
+
+ 85D6A2EBB86B4EADB35F1BCC
+
+ explicitFileType
+ archive.ar
+ includeInIndex
+ 0
+ isa
+ PBXFileReference
+ path
+ libPods-Reachability.a
+ sourceTree
+ BUILT_PRODUCTS_DIR
+
+ 87022B8A037F46D585FEF2A4
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ NSObject+SBJson.h
+ path
+ Classes/NSObject+SBJson.h
+ sourceTree
+ <group>
+
+ 875AE98EB1F643B0A5D1090D
+
+ fileRef
+ 71B9693F25BC4576B916DBC1
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 883BD9B903EC44FE860D516B
+
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ CLANG_CXX_LANGUAGE_STANDARD
+ gnu++0x
+ CLANG_CXX_LIBRARY
+ libc++
+ CLANG_ENABLE_MODULES
+ YES
+ CLANG_ENABLE_OBJC_ARC
+ NO
+ 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
+ COPY_PHASE_STRIP
+ YES
+ 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_64_TO_32_BIT_CONVERSION
+ YES
+ 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
+ 7.0
+ ONLY_ACTIVE_ARCH
+ YES
+ STRIP_INSTALLED_PRODUCT
+ NO
+
+ isa
+ XCBuildConfiguration
+ name
+ Debug
+
+ 88BABE80EC76421393050F39
+
+ fileRef
+ F92BA74A5A8D45669A888465
+ isa
+ PBXBuildFile
+
+ 88FBD37A463C402B835D3DD2
+
+ children
+
+ EA723EEFD9054F3495254C73
+ 35EB6667BCBC4D7AA1BFB5BB
+ 4C78556D251A42E4BE4D1CED
+ 85D6A2EBB86B4EADB35F1BCC
+ 7439ADDBD4D3402E884EE38B
+ 7E42072AEE5940809A6DDD86
+
+ isa
+ PBXGroup
+ name
+ Products
+ sourceTree
+ <group>
+
+ 89B79CD853C44298859382D8
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SDWebImageDecoder.h
+ path
+ SDWebImage/SDWebImageDecoder.h
+ sourceTree
+ <group>
+
+ 8A238FBB37004E668440BE8C
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ path
+ Pods-GoogleAnalytics-iOS-SDK-dummy.m
+ sourceTree
+ <group>
+
+ 8D83154F818E45D8A6AC8BE7
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonStreamParserState.h
+ path
+ Classes/SBJsonStreamParserState.h
+ sourceTree
+ <group>
+
+ 8DED7C3671094B29BC6974ED
+
+ isa
+ PBXFileReference
+ lastKnownFileType
+ wrapper.framework
+ name
+ CoreData.framework
+ path
+ Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CoreData.framework
+ sourceTree
+ DEVELOPER_DIR
+
+ 8F9D37F624294E28BA08D929
+
+ baseConfigurationReference
+ D2F48D89D67B4777BD54F87D
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ YES
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-MBProgressHUD-prefix.pch
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_CFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_CPLUSPLUSFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+ VALIDATE_PRODUCT
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Release
+
+ 8FE8BE8255B944F29AC8A7DF
+
+ fileRef
+ 5423D15F7CC84B94BCE5A609
+ isa
+ PBXBuildFile
+
+ 9013E4E89D4E471E8FF1A18B
+
+ fileRef
+ 45BEF503AEBF47D58BC63D1E
+ isa
+ PBXBuildFile
+
+ 90361B3CD1E8498D8CADCC9D
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SDWebImageManager.h
+ path
+ SDWebImage/SDWebImageManager.h
+ sourceTree
+ <group>
+
+ 906ABBAB7BA34BB5889965D8
+
+ containerPortal
+ 93897145FA0C4E4797DD7885
+ isa
+ PBXContainerItemProxy
+ proxyType
+ 1
+ remoteGlobalIDString
+ 9DB0FBEF13DA4F63A0A7C630
+ remoteInfo
+ Pods-SBJson
+
+ 9078AD3CDEF54E47AE9C9D1F
+
+ fileRef
+ 1D405613F07047EE844F546A
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 91A9223B9CE64FB492E8E661
+
+ fileRef
+ 6402D0A65F6D4DAE91CB3CAF
+ isa
+ PBXBuildFile
+
+ 920D7E4F5A5349EA8A1248FD
+
+ buildActionMask
+ 2147483647
+ files
+
+ F0774799A7594D3594BD5977
+
+ isa
+ PBXFrameworksBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ 924678CFB71D457389699A20
+
+ children
+
+ 365D61900BD748029172106D
+ D97DBB2F7F64415BBD5C1C0F
+
+ isa
+ PBXGroup
+ name
+ SDWebImage
+ path
+ SDWebImage
+ sourceTree
+ <group>
+
+ 93897145FA0C4E4797DD7885
+
+ attributes
+
+ LastUpgradeCheck
+ 0500
+
+ buildConfigurationList
+ F3715469520E4397955DFCD9
+ compatibilityVersion
+ Xcode 3.2
+ developmentRegion
+ English
+ hasScannedForEncodings
+ 0
+ isa
+ PBXProject
+ knownRegions
+
+ en
+
+ mainGroup
+ 648070F22362460F872CC157
+ productRefGroup
+ 88FBD37A463C402B835D3DD2
+ projectDirPath
+
+ projectReferences
+
+ projectRoot
+
+ targets
+
+ 5DCEEFD5F09944DD924BB973
+ 2CD81D4CC6D44B3A8019AD7C
+ 424BF183AE794B8BB59C4F2A
+ 4C86531344664C5AB94AE006
+ 9DB0FBEF13DA4F63A0A7C630
+ A93A257AD7CF4B3F8C86FE74
+
+
+ 956BC3792799426ABDF33FAB
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ GAIDictionaryBuilder.h
+ path
+ GoogleAnalytics/Library/GAIDictionaryBuilder.h
+ sourceTree
+ <group>
+
+ 95E3D4453EA744D8B2DC5FF7
+
+ fileRef
+ 11EFC360CCAC434A91F893A1
+ isa
+ PBXBuildFile
+
+ 97FA47EDC02441A5A3CE3377
+
+ baseConfigurationReference
+ E0C47ECD74474DF1A399B4D5
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ YES
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-GoogleAnalytics-iOS-SDK-prefix.pch
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_CFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_CPLUSPLUSFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+ VALIDATE_PRODUCT
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Release
+
+ 9A0EE36145814CCD8F43325C
+
+ containerPortal
+ 93897145FA0C4E4797DD7885
+ isa
+ PBXContainerItemProxy
+ proxyType
+ 1
+ remoteGlobalIDString
+ 4C86531344664C5AB94AE006
+ remoteInfo
+ Pods-Reachability
+
+ 9AE42B08C44242709AAA8919
+
+ fileRef
+ EE9CB81677BC40A98DF3F832
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 9B22B69BDE1542E18F39C342
+
+ fileRef
+ 0F08612C3F964899BD10394E
+ isa
+ PBXBuildFile
+
+ 9C18EF742E2E4DBFA2EBF4A3
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ path
+ Pods-environment.h
+ sourceTree
+ <group>
+
+ 9DB0FBEF13DA4F63A0A7C630
+
+ buildConfigurationList
+ BB7D5EFE9CD14A5C906EF8C1
+ buildPhases
+
+ 5A4E319BE3C04686803C5E3B
+ 920D7E4F5A5349EA8A1248FD
+ F2F6A9BF7D714A05957D955E
+
+ buildRules
+
+ dependencies
+
+ isa
+ PBXNativeTarget
+ name
+ Pods-SBJson
+ productName
+ Pods-SBJson
+ productReference
+ 7439ADDBD4D3402E884EE38B
+ productType
+ com.apple.product-type.library.static
+
+ 9DBDD16E802C4A2E837D974E
+
+ fileRef
+ 78884C3F4F76470EB9F14210
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ 9E7D015D42CE4FD18D0B2C29
+
+ fileRef
+ 89B79CD853C44298859382D8
+ isa
+ PBXBuildFile
+
+ 9F88EA3236794D069F43565D
+
+ fileRef
+ 956BC3792799426ABDF33FAB
+ isa
+ PBXBuildFile
+
+ A00926E84AD94E948689AAB2
+
+ fileRef
+ DD7C223E84364EC189E1AD3A
+ isa
+ PBXBuildFile
+
+ A0D3148824374AF7932E2FDB
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonWriter.m
+ path
+ Classes/SBJsonWriter.m
+ sourceTree
+ <group>
+
+ A2448F0927FD465EB2651D19
+
+ baseConfigurationReference
+ 03B8BACDAC21442BBAC2B4E6
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ NO
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_DYNAMIC_NO_PIC
+ NO
+ GCC_OPTIMIZATION_LEVEL
+ 0
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-SDWebImage-prefix.pch
+ GCC_PREPROCESSOR_DEFINITIONS
+
+ DEBUG=1
+ $(inherited)
+
+ GCC_SYMBOLS_PRIVATE_EXTERN
+ NO
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Debug
+
+ A251E3B9EE974D448AE90B30
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ UIImageView+WebCache.h
+ path
+ SDWebImage/UIImageView+WebCache.h
+ sourceTree
+ <group>
+
+ A3198293BEA24927A86F968B
+
+ fileRef
+ A0D3148824374AF7932E2FDB
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ A3C9CB96A36447FA821AF216
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonParser.m
+ path
+ Classes/SBJsonParser.m
+ sourceTree
+ <group>
+
+ A40B7B1E5218450183013C87
+
+ children
+
+ 2AF5565ECD4646099875BCE3
+ E0C47ECD74474DF1A399B4D5
+ 8A238FBB37004E668440BE8C
+ 3472B0534DB04F9E9B71D308
+
+ isa
+ PBXGroup
+ name
+ Support Files
+ sourceTree
+ SOURCE_ROOT
+
+ A4721273E6E54EDD8E5E5F46
+
+ buildActionMask
+ 2147483647
+ files
+
+ 1772331B36AB4B48A551F0EA
+ B2A2487B2FBD460490AC7DB8
+
+ isa
+ PBXFrameworksBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ A93A257AD7CF4B3F8C86FE74
+
+ buildConfigurationList
+ C308C9F8273546C7AE536BC9
+ buildPhases
+
+ E587324C90B641318EBF8F25
+ 60F44C2FD5ED4DE1A194612D
+ 0D560C677EE74E6E8A8D5180
+
+ buildRules
+
+ dependencies
+
+ isa
+ PBXNativeTarget
+ name
+ Pods-SDWebImage
+ productName
+ Pods-SDWebImage
+ productReference
+ 7E42072AEE5940809A6DDD86
+ productType
+ com.apple.product-type.library.static
+
+ A9FFE154DF0642CC82CD3791
+
+ fileRef
+ 0F465D8F6BDE4F299DEEBD8C
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ AA093DA83306440F9909C264
+
+ buildConfigurations
+
+ D6C05A0C656F41848C35999B
+ 8F9D37F624294E28BA08D929
+
+ defaultConfigurationIsVisible
+ 0
+ defaultConfigurationName
+ Release
+ isa
+ XCConfigurationList
+
+ AC8EFBD45D2E465EBD8E7F39
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-SDWebImage.xcconfig
+ sourceTree
+ <group>
+
+ AD0C2CA784A2476E9A33F321
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ path
+ Pods-SBJson-prefix.pch
+ sourceTree
+ <group>
+
+ B08B34D165884E5FB1602C96
+
+ fileRef
+ CECF2E82E5B14B92964130DE
+ isa
+ PBXBuildFile
+
+ B2A2487B2FBD460490AC7DB8
+
+ fileRef
+ 82628760FAAD48A5ACF5947C
+ isa
+ PBXBuildFile
+
+ B302E784B5B34720A24BFDBF
+
+ buildActionMask
+ 2147483647
+ files
+
+ 8035F0A85E1C4055AAEB3913
+
+ isa
+ PBXHeadersBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ B33DEEC5C0164514AB77CD1A
+
+ buildActionMask
+ 2147483647
+ files
+
+ 36BBEEAC0B4848AE85033FD6
+ 0CE627779FED4664A9783BF3
+ 0EFF5DED14FD4D60A2B4C7F3
+ 68966E2E949A423DB063C15E
+
+ isa
+ PBXFrameworksBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ B46B5B02BB5748F99A7752EF
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ NSData+GIF.m
+ path
+ SDWebImage/NSData+GIF.m
+ sourceTree
+ <group>
+
+ B4D9BDC746BD42F78AB0AE98
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-MBProgressHUD.xcconfig
+ sourceTree
+ <group>
+
+ B510E3C56D924F739F80376C
+
+ isa
+ PBXFileReference
+ lastKnownFileType
+ wrapper.framework
+ name
+ CoreGraphics.framework
+ path
+ Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CoreGraphics.framework
+ sourceTree
+ DEVELOPER_DIR
+
+ B6BC27251BF84897976BA453
+
+ fileRef
+ 792E25DAA76942B398FCF12C
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ B9964E94D2264B9FB5950DAA
+
+ isa
+ PBXFileReference
+ lastKnownFileType
+ wrapper.framework
+ name
+ CFNetwork.framework
+ path
+ Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CFNetwork.framework
+ sourceTree
+ DEVELOPER_DIR
+
+ BB7D5EFE9CD14A5C906EF8C1
+
+ buildConfigurations
+
+ D9C41470234F480492476A87
+ 4B1386A3F0A2486D9EC05C59
+
+ defaultConfigurationIsVisible
+ 0
+ defaultConfigurationName
+ Release
+ isa
+ XCConfigurationList
+
+ BB9E8C3206F246D0BA390746
+
+ children
+
+ B9964E94D2264B9FB5950DAA
+ 8DED7C3671094B29BC6974ED
+ B510E3C56D924F739F80376C
+ 82628760FAAD48A5ACF5947C
+ 0E0E570884D4411B83FAD3CD
+ 1E30A1264A2A4218A8FA5A19
+
+ isa
+ PBXGroup
+ name
+ iOS
+ sourceTree
+ <group>
+
+ BC4F94AB5FA148E3B5A93EF1
+
+ fileRef
+ 022950EBF5CA4EE78004C059
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ BC9AD3B018034F6581A5D9A1
+
+ fileRef
+ 2CBFAED094A4415BA377DF2E
+ isa
+ PBXBuildFile
+
+ BE5E3C9654424A7DBD117C52
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ path
+ Pods-MBProgressHUD-prefix.pch
+ sourceTree
+ <group>
+
+ BEF2718ED4554852B2EEC6B3
+
+ fileRef
+ FEE21457474A4C9688D463ED
+ isa
+ PBXBuildFile
+
+ BFC5C2427D934FB69163E57D
+
+ buildConfigurations
+
+ 47A9C6C8510046B2AEA46858
+ DF4F80F0428F447D94E8BFA2
+
+ defaultConfigurationIsVisible
+ 0
+ defaultConfigurationName
+ Release
+ isa
+ XCConfigurationList
+
+ C0DF5FD83BCA4C60BE34EFC6
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ path
+ Reachability.m
+ sourceTree
+ <group>
+
+ C163DB96626A44AE8F006CF1
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text
+ name
+ Podfile
+ path
+ ../Podfile
+ sourceTree
+ SOURCE_ROOT
+ xcLanguageSpecificationIdentifier
+ xcode.lang.ruby
+
+ C2787EB5ADDB414C8B4D6BAC
+
+ fileRef
+ 82628760FAAD48A5ACF5947C
+ isa
+ PBXBuildFile
+
+ C2B1EBADD9084AF98DB05E6B
+
+ buildActionMask
+ 2147483647
+ files
+
+ 875AE98EB1F643B0A5D1090D
+ 571F9C12CBBC453FB62BFB53
+
+ isa
+ PBXSourcesBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ C2DE23E485E14693AEF5C136
+
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ CLANG_CXX_LANGUAGE_STANDARD
+ gnu++0x
+ CLANG_CXX_LIBRARY
+ libc++
+ CLANG_ENABLE_MODULES
+ YES
+ CLANG_ENABLE_OBJC_ARC
+ NO
+ 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
+ COPY_PHASE_STRIP
+ NO
+ ENABLE_NS_ASSERTIONS
+ NO
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_WARN_64_TO_32_BIT_CONVERSION
+ YES
+ 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
+ 7.0
+ STRIP_INSTALLED_PRODUCT
+ NO
+ VALIDATE_PRODUCT
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Release
+
+ C2F3645273214FEDB31C5AF6
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ UIImage+MultiFormat.h
+ path
+ SDWebImage/UIImage+MultiFormat.h
+ sourceTree
+ <group>
+
+ C308C9F8273546C7AE536BC9
+
+ buildConfigurations
+
+ A2448F0927FD465EB2651D19
+ 5B89FF7891A3456A8799AF7E
+
+ defaultConfigurationIsVisible
+ 0
+ defaultConfigurationName
+ Release
+ isa
+ XCConfigurationList
+
+ C32C913F2DD14D34BB26F733
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ UIImage+GIF.m
+ path
+ SDWebImage/UIImage+GIF.m
+ sourceTree
+ <group>
+
+ C48351A789E04BDF9473EE42
+
+ fileRef
+ 7E42072AEE5940809A6DDD86
+ isa
+ PBXBuildFile
+
+ C53CAD9A0E0F4F02A2721B50
+
+ buildConfigurations
+
+ CF6C1434B17E4617B082071F
+ 5DEBF1000EAE44859241AB18
+
+ defaultConfigurationIsVisible
+ 0
+ defaultConfigurationName
+ Release
+ isa
+ XCConfigurationList
+
+ C800207836D94CD59FE0BE7C
+
+ fileRef
+ 1927EC6481264AA7A958093C
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ C8765593FAED4547958AA635
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonStreamParser.m
+ path
+ Classes/SBJsonStreamParser.m
+ sourceTree
+ <group>
+
+ C9365D2112AD4458A93F22A7
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonStreamWriter.h
+ path
+ Classes/SBJsonStreamWriter.h
+ sourceTree
+ <group>
+
+ CB9C10BB52A8488C80819D40
+
+ fileRef
+ D80DC10AE4504B33BF70AF95
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ CCA47F5763564FA4929C1ACC
+
+ fileRef
+ A251E3B9EE974D448AE90B30
+ isa
+ PBXBuildFile
+
+ CD5818BC963F44DD86B02DC0
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ GAIFields.h
+ path
+ GoogleAnalytics/Library/GAIFields.h
+ sourceTree
+ <group>
+
+ CECF2E82E5B14B92964130DE
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ path
+ Pods-SBJson-dummy.m
+ sourceTree
+ <group>
+
+ CF6C1434B17E4617B082071F
+
+ baseConfigurationReference
+ 4EE47461203240CE8F33B4ED
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ NO
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_DYNAMIC_NO_PIC
+ NO
+ GCC_OPTIMIZATION_LEVEL
+ 0
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-Reachability-prefix.pch
+ GCC_PREPROCESSOR_DEFINITIONS
+
+ DEBUG=1
+ $(inherited)
+
+ GCC_SYMBOLS_PRIVATE_EXTERN
+ NO
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Debug
+
+ D10CB2BEAF8548B1BC443E04
+
+ fileRef
+ FCE3FDA1BCB3462D9C8D12A1
+ isa
+ PBXBuildFile
+
+ D2F48D89D67B4777BD54F87D
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-MBProgressHUD-Private.xcconfig
+ sourceTree
+ <group>
+
+ D4DA1057603D4AD287A00EE8
+
+ fileRef
+ 8D83154F818E45D8A6AC8BE7
+ isa
+ PBXBuildFile
+
+ D6C05A0C656F41848C35999B
+
+ baseConfigurationReference
+ D2F48D89D67B4777BD54F87D
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ NO
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_DYNAMIC_NO_PIC
+ NO
+ GCC_OPTIMIZATION_LEVEL
+ 0
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-MBProgressHUD-prefix.pch
+ GCC_PREPROCESSOR_DEFINITIONS
+
+ DEBUG=1
+ $(inherited)
+
+ GCC_SYMBOLS_PRIVATE_EXTERN
+ NO
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Debug
+
+ D80DC10AE4504B33BF70AF95
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SDWebImagePrefetcher.m
+ path
+ SDWebImage/SDWebImagePrefetcher.m
+ sourceTree
+ <group>
+
+ D8E61ACD454245EAB8779D0E
+
+ fileRef
+ 14508931864D490D974F3091
+ isa
+ PBXBuildFile
+
+ D97DBB2F7F64415BBD5C1C0F
+
+ children
+
+ AC8EFBD45D2E465EBD8E7F39
+ 03B8BACDAC21442BBAC2B4E6
+ 0E0656D69E424CBCA2B2F8A6
+ 003BB572B89D4797A515F2CB
+
+ isa
+ PBXGroup
+ name
+ Support Files
+ sourceTree
+ SOURCE_ROOT
+
+ D9C41470234F480492476A87
+
+ baseConfigurationReference
+ EC86382FB757461FBFD60689
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ NO
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_DYNAMIC_NO_PIC
+ NO
+ GCC_OPTIMIZATION_LEVEL
+ 0
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-SBJson-prefix.pch
+ GCC_PREPROCESSOR_DEFINITIONS
+
+ DEBUG=1
+ $(inherited)
+
+ GCC_SYMBOLS_PRIVATE_EXTERN
+ NO
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Debug
+
+ D9F8D53BEB154789B6BA54D2
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonWriter.h
+ path
+ Classes/SBJsonWriter.h
+ sourceTree
+ <group>
+
+ DD7C223E84364EC189E1AD3A
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ NSData+GIF.h
+ path
+ SDWebImage/NSData+GIF.h
+ sourceTree
+ <group>
+
+ DDCA74E185B34593BD2A30A0
+
+ children
+
+ 1D34705010B249D69563D8AA
+ EC86382FB757461FBFD60689
+ CECF2E82E5B14B92964130DE
+ AD0C2CA784A2476E9A33F321
+
+ isa
+ PBXGroup
+ name
+ Support Files
+ sourceTree
+ SOURCE_ROOT
+
+ DE0A359B417A44C09BC31560
+
+ children
+
+ 8278D807B6184E989A3EA811
+ C0DF5FD83BCA4C60BE34EFC6
+ 2A4D004F77D14DB482ADCAC0
+
+ isa
+ PBXGroup
+ name
+ Reachability
+ path
+ Reachability
+ sourceTree
+ <group>
+
+ DE882321BB924FB482DFF0FF
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonStreamParserAccumulator.m
+ path
+ Classes/SBJsonStreamParserAccumulator.m
+ sourceTree
+ <group>
+
+ DF40FD82AE024F3E87DC9E4C
+
+ children
+
+ 87022B8A037F46D585FEF2A4
+ 6DB01783B9254255A4A47DA0
+ 2CBFAED094A4415BA377DF2E
+ 11EFC360CCAC434A91F893A1
+ A3C9CB96A36447FA821AF216
+ 0F08612C3F964899BD10394E
+ C8765593FAED4547958AA635
+ F92BA74A5A8D45669A888465
+ DE882321BB924FB482DFF0FF
+ 2170EA094B6F4787BD47B9EE
+ 4519DF8C13FB4841BA016496
+ 8D83154F818E45D8A6AC8BE7
+ FE51E6157E9B4D14A6ECF438
+ C9365D2112AD4458A93F22A7
+ 3D4CC484B9F942BF9DFA38C9
+ 5423D15F7CC84B94BCE5A609
+ 0F465D8F6BDE4F299DEEBD8C
+ FE98E42E61BC476790097994
+ 1D405613F07047EE844F546A
+ 23F8D7F46F0F4A9D90FBA0F3
+ 4B5A4310265F4F9884826F2A
+ FEE21457474A4C9688D463ED
+ 25773EB8C40A4C4CB4CE4991
+ D9F8D53BEB154789B6BA54D2
+ A0D3148824374AF7932E2FDB
+ DDCA74E185B34593BD2A30A0
+
+ isa
+ PBXGroup
+ name
+ SBJson
+ path
+ SBJson
+ sourceTree
+ <group>
+
+ DF4F80F0428F447D94E8BFA2
+
+ baseConfigurationReference
+ 77C387AD284548E28745394E
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ YES
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_CFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_CPLUSPLUSFLAGS
+
+ -DNS_BLOCK_ASSERTIONS=1
+ $(inherited)
+
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+ VALIDATE_PRODUCT
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Release
+
+ E0C47ECD74474DF1A399B4D5
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-GoogleAnalytics-iOS-SDK-Private.xcconfig
+ sourceTree
+ <group>
+
+ E242413913494DDDABB18697
+
+ isa
+ PBXTargetDependency
+ target
+ 4C86531344664C5AB94AE006
+ targetProxy
+ 9A0EE36145814CCD8F43325C
+
+ E3F1A88E872A4855A9F74CC5
+
+ children
+
+ 77C387AD284548E28745394E
+ 43164EA5180A4CF1A0E61D9C
+ 2B1505C9201D440BB7F79CA3
+ 24547587CF8D46DF9B02E604
+ 9C18EF742E2E4DBFA2EBF4A3
+ 485ED0C4DF974890B25C1F0C
+
+ isa
+ PBXGroup
+ name
+ Pods
+ sourceTree
+ <group>
+
+ E587324C90B641318EBF8F25
+
+ buildActionMask
+ 2147483647
+ files
+
+ 711F6524526B479E936C24CB
+ 1AF0856606B44638B55F67D0
+ 4BC4D38830F5430882509517
+ BC4F94AB5FA148E3B5A93EF1
+ 9DBDD16E802C4A2E837D974E
+ 0B8B6614A0FB4EFF928D2191
+ 9AE42B08C44242709AAA8919
+ 4BFFDB552C1E424BBAA602CC
+ CB9C10BB52A8488C80819D40
+ F35D2EDC519E4337B519EDBB
+ 42C14A544AE44054A7C9D45A
+ B6BC27251BF84897976BA453
+ C800207836D94CD59FE0BE7C
+
+ isa
+ PBXSourcesBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ E6A6920C9D2C4EB4BCF1D0CC
+
+ fileRef
+ 1E30A1264A2A4218A8FA5A19
+ isa
+ PBXBuildFile
+
+ EA4E77A8EE5548DE9799A480
+
+ isa
+ PBXTargetDependency
+ target
+ 2CD81D4CC6D44B3A8019AD7C
+ targetProxy
+ 5D952F3EF52640C4A5CF85A6
+
+ EA723EEFD9054F3495254C73
+
+ explicitFileType
+ archive.ar
+ includeInIndex
+ 0
+ isa
+ PBXFileReference
+ path
+ libPods.a
+ sourceTree
+ BUILT_PRODUCTS_DIR
+
+ EA9BB0FAB8DB4672B3A6A167
+
+ fileRef
+ 87022B8A037F46D585FEF2A4
+ isa
+ PBXBuildFile
+
+ EAF87EAE87584C45AEB9017F
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SDWebImageDownloader.m
+ path
+ SDWebImage/SDWebImageDownloader.m
+ sourceTree
+ <group>
+
+ EC86382FB757461FBFD60689
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ text.xcconfig
+ path
+ Pods-SBJson-Private.xcconfig
+ sourceTree
+ <group>
+
+ ECA0C8CA5C5B42E38DF5CB0C
+
+ children
+
+ 64ED374A48CA411B91CA497C
+ 71B9693F25BC4576B916DBC1
+ 62045B35752B4053B8C6D40B
+
+ isa
+ PBXGroup
+ name
+ MBProgressHUD
+ path
+ MBProgressHUD
+ sourceTree
+ <group>
+
+ EDE84C18B67D4E69BFCAF732
+
+ fileRef
+ 25773EB8C40A4C4CB4CE4991
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ EE9CB81677BC40A98DF3F832
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SDWebImageDownloaderOperation.m
+ path
+ SDWebImage/SDWebImageDownloaderOperation.m
+ sourceTree
+ <group>
+
+ EF100AFFCAA749FA8AEFA529
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ UIButton+WebCache.m
+ path
+ SDWebImage/UIButton+WebCache.m
+ sourceTree
+ <group>
+
+ EF26EB5C65594FD7898D9AE9
+
+ fileRef
+ D9F8D53BEB154789B6BA54D2
+ isa
+ PBXBuildFile
+
+ F0774799A7594D3594BD5977
+
+ fileRef
+ 82628760FAAD48A5ACF5947C
+ isa
+ PBXBuildFile
+
+ F1B112B6A2A64272A457C894
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SDWebImageDownloader.h
+ path
+ SDWebImage/SDWebImageDownloader.h
+ sourceTree
+ <group>
+
+ F2F6A9BF7D714A05957D955E
+
+ buildActionMask
+ 2147483647
+ files
+
+ EA9BB0FAB8DB4672B3A6A167
+ BC9AD3B018034F6581A5D9A1
+ 95E3D4453EA744D8B2DC5FF7
+ 9B22B69BDE1542E18F39C342
+ 88BABE80EC76421393050F39
+ 73F984F03A9B4A15B3FCDFEA
+ D4DA1057603D4AD287A00EE8
+ 0CB3BDCE888E4E1E8505E64A
+ 8FE8BE8255B944F29AC8A7DF
+ 2A5F196EB3414EE8ABD68112
+ 0E886E16DDE04E38943FCF68
+ BEF2718ED4554852B2EEC6B3
+ EF26EB5C65594FD7898D9AE9
+
+ isa
+ PBXHeadersBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ F35D2EDC519E4337B519EDBB
+
+ fileRef
+ EF100AFFCAA749FA8AEFA529
+ isa
+ PBXBuildFile
+ settings
+
+ COMPILER_FLAGS
+ -fobjc-arc -DOS_OBJECT_USE_OBJC=0
+
+
+ F3715469520E4397955DFCD9
+
+ buildConfigurations
+
+ 883BD9B903EC44FE860D516B
+ C2DE23E485E14693AEF5C136
+
+ defaultConfigurationIsVisible
+ 0
+ defaultConfigurationName
+ Release
+ isa
+ XCConfigurationList
+
+ F3F8A76F2C11494FBC9C145A
+
+ fileRef
+ CD5818BC963F44DD86B02DC0
+ isa
+ PBXBuildFile
+
+ F92BA74A5A8D45669A888465
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonStreamParserAccumulator.h
+ path
+ Classes/SBJsonStreamParserAccumulator.h
+ sourceTree
+ <group>
+
+ FA855A824C32493395B93715
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ path
+ Pods-MBProgressHUD-dummy.m
+ sourceTree
+ <group>
+
+ FBF80A065080410288B6A3CA
+
+ isa
+ PBXTargetDependency
+ target
+ A93A257AD7CF4B3F8C86FE74
+ targetProxy
+ 6760F83637304B31B0C82722
+
+ FC8FC20E05FE422B898C6608
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ GAITrackedViewController.h
+ path
+ GoogleAnalytics/Library/GAITrackedViewController.h
+ sourceTree
+ <group>
+
+ FCE3FDA1BCB3462D9C8D12A1
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SDWebImageCompat.h
+ path
+ SDWebImage/SDWebImageCompat.h
+ sourceTree
+ <group>
+
+ FE51E6157E9B4D14A6ECF438
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.objc
+ name
+ SBJsonStreamParserState.m
+ path
+ Classes/SBJsonStreamParserState.m
+ sourceTree
+ <group>
+
+ FE98E42E61BC476790097994
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonStreamWriterState.h
+ path
+ Classes/SBJsonStreamWriterState.h
+ sourceTree
+ <group>
+
+ FEE21457474A4C9688D463ED
+
+ includeInIndex
+ 1
+ isa
+ PBXFileReference
+ lastKnownFileType
+ sourcecode.c.h
+ name
+ SBJsonUTF8Stream.h
+ path
+ Classes/SBJsonUTF8Stream.h
+ sourceTree
+ <group>
+
+ FF3CC075D6E54C1D80A05B7D
+
+ buildActionMask
+ 2147483647
+ files
+
+ 72F495860B024995BE841717
+ 7FE67B373AAC4B679FBDF291
+
+ isa
+ PBXSourcesBuildPhase
+ runOnlyForDeploymentPostprocessing
+ 0
+
+ FF5A4D52DBB14202B9A6E036
+
+ fileRef
+ 5634B33AA941404790C7FC37
+ isa
+ PBXBuildFile
+
+ FF6578CF364A4D2AB5C9FA45
+
+ baseConfigurationReference
+ E0C47ECD74474DF1A399B4D5
+ buildSettings
+
+ ALWAYS_SEARCH_USER_PATHS
+ NO
+ ARCHS
+ $(ARCHS_STANDARD_INCLUDING_64_BIT)
+ COPY_PHASE_STRIP
+ NO
+ DSTROOT
+ /tmp/xcodeproj.dst
+ GCC_C_LANGUAGE_STANDARD
+ gnu99
+ GCC_DYNAMIC_NO_PIC
+ NO
+ GCC_OPTIMIZATION_LEVEL
+ 0
+ GCC_PRECOMPILE_PREFIX_HEADER
+ YES
+ GCC_PREFIX_HEADER
+ Pods-GoogleAnalytics-iOS-SDK-prefix.pch
+ GCC_PREPROCESSOR_DEFINITIONS
+
+ DEBUG=1
+ $(inherited)
+
+ GCC_SYMBOLS_PRIVATE_EXTERN
+ NO
+ GCC_VERSION
+ com.apple.compilers.llvm.clang.1_0
+ INSTALL_PATH
+ $(BUILT_PRODUCTS_DIR)
+ IPHONEOS_DEPLOYMENT_TARGET
+ 7.0
+ OTHER_LDFLAGS
+
+ PRODUCT_NAME
+ $(TARGET_NAME)
+ PUBLIC_HEADERS_FOLDER_PATH
+ $(TARGET_NAME)
+ SDKROOT
+ iphoneos
+ SKIP_INSTALL
+ YES
+
+ isa
+ XCBuildConfiguration
+ name
+ Debug
+
+ FF86BEED47BC4D27BE032A59
+
+ fileRef
+ 168AB1D585634D71B98A2C81
+ isa
+ PBXBuildFile
+
+
+ rootObject
+ 93897145FA0C4E4797DD7885
+
+
diff --git a/Pods/Reachability/LICENCE.txt b/Pods/Reachability/LICENCE.txt
new file mode 100644
index 0000000..12b7844
--- /dev/null
+++ b/Pods/Reachability/LICENCE.txt
@@ -0,0 +1,24 @@
+Copyright (c) 2011-2013, Tony Million.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
diff --git a/Pods/Reachability/README.md b/Pods/Reachability/README.md
new file mode 100644
index 0000000..57fdab7
--- /dev/null
+++ b/Pods/Reachability/README.md
@@ -0,0 +1,65 @@
+# Reachability
+
+This is a drop-in replacement for Apple's `Reachability` class. It is ARC-compatible, and it uses the new GCD methods to notify of network interface changes.
+
+In addition to the standard `NSNotification`, it supports the use of blocks for when the network becomes reachable and unreachable.
+
+Finally, you can specify whether a WWAN connection is considered "reachable".
+
+## Requirements
+
+Once you have added the `.h/m` files to your project, simply:
+
+* Go to the `Project->TARGETS->Build Phases->Link Binary With Libraries`.
+* Press the plus in the lower left of the list.
+* Add `SystemConfiguration.framework`.
+
+Boom, you're done.
+
+## Examples
+
+### Block Example
+
+This sample uses blocks to notify when the interface state has changed. The blocks will be called on a **BACKGROUND THREAD**, so you need to dispatch UI updates onto the main thread.
+
+ // Allocate a reachability object
+ Reachability* reach = [Reachability reachabilityWithHostname:@"www.google.com"];
+
+ // Set the blocks
+ reach.reachableBlock = ^(Reachability*reach)
+ {
+ NSLog(@"REACHABLE!");
+ };
+
+ reach.unreachableBlock = ^(Reachability*reach)
+ {
+ NSLog(@"UNREACHABLE!");
+ };
+
+ // Start the notifier, which will cause the reachability object to retain itself!
+ [reach startNotifier];
+
+### `NSNotification` Example
+
+This sample will use `NSNotification`s to notify when the interface has changed. They will be delivered on the **MAIN THREAD**, so you *can* do UI updates from within the function.
+
+In addition, it asks the `Reachability` object to consider the WWAN (3G/EDGE/CDMA) as a non-reachable connection (you might use this if you are writing a video streaming app, for example, to save the user's data plan).
+
+ // Allocate a reachability object
+ Reachability* reach = [Reachability reachabilityWithHostname:@"www.google.com"];
+
+ // Tell the reachability that we DON'T want to be reachable on 3G/EDGE/CDMA
+ reach.reachableOnWWAN = NO;
+
+ // Here we set up a NSNotification observer. The Reachability that caused the notification
+ // is passed in the object parameter
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(reachabilityChanged:)
+ name:kReachabilityChangedNotification
+ object:nil];
+
+ [reach startNotifier]
+
+## Tell the world
+
+Head over to [Projects using Reachability](https://github.com/tonymillion/Reachability/wiki/Projects-using-Reachability) and add your project for "Maximum Wins!".
diff --git a/Pods/Reachability/Reachability.h b/Pods/Reachability/Reachability.h
new file mode 100644
index 0000000..211b816
--- /dev/null
+++ b/Pods/Reachability/Reachability.h
@@ -0,0 +1,109 @@
+/*
+ Copyright (c) 2011, Tony Million.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+#import
+
+#import
+#import
+#import
+#import
+#import
+#import
+
+/**
+ * Does ARC support GCD objects?
+ * It does if the minimum deployment target is iOS 6+ or Mac OS X 8+
+ *
+ * @see http://opensource.apple.com/source/libdispatch/libdispatch-228.18/os/object.h
+ **/
+#if OS_OBJECT_USE_OBJC
+#define NEEDS_DISPATCH_RETAIN_RELEASE 0
+#else
+#define NEEDS_DISPATCH_RETAIN_RELEASE 1
+#endif
+
+/**
+ * Create NS_ENUM macro if it does not exist on the targeted version of iOS or OS X.
+ *
+ * @see http://nshipster.com/ns_enum-ns_options/
+ **/
+#ifndef NS_ENUM
+#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
+#endif
+
+extern NSString *const kReachabilityChangedNotification;
+
+typedef NS_ENUM(NSInteger, NetworkStatus) {
+ // Apple NetworkStatus Compatible Names.
+ NotReachable = 0,
+ ReachableViaWiFi = 2,
+ ReachableViaWWAN = 1
+};
+
+@class Reachability;
+
+typedef void (^NetworkReachable)(Reachability * reachability);
+typedef void (^NetworkUnreachable)(Reachability * reachability);
+
+@interface Reachability : NSObject
+
+@property (nonatomic, copy) NetworkReachable reachableBlock;
+@property (nonatomic, copy) NetworkUnreachable unreachableBlock;
+
+
+@property (nonatomic, assign) BOOL reachableOnWWAN;
+
++(Reachability*)reachabilityWithHostname:(NSString*)hostname;
++(Reachability*)reachabilityForInternetConnection;
++(Reachability*)reachabilityWithAddress:(const struct sockaddr_in*)hostAddress;
++(Reachability*)reachabilityForLocalWiFi;
+
+-(Reachability *)initWithReachabilityRef:(SCNetworkReachabilityRef)ref;
+
+-(BOOL)startNotifier;
+-(void)stopNotifier;
+
+-(BOOL)isReachable;
+-(BOOL)isReachableViaWWAN;
+-(BOOL)isReachableViaWiFi;
+
+// WWAN may be available, but not active until a connection has been established.
+// WiFi may require a connection for VPN on Demand.
+-(BOOL)isConnectionRequired; // Identical DDG variant.
+-(BOOL)connectionRequired; // Apple's routine.
+// Dynamic, on demand connection?
+-(BOOL)isConnectionOnDemand;
+// Is user intervention required?
+-(BOOL)isInterventionRequired;
+
+-(NetworkStatus)currentReachabilityStatus;
+-(SCNetworkReachabilityFlags)reachabilityFlags;
+-(NSString*)currentReachabilityString;
+-(NSString*)currentReachabilityFlags;
+
+@end
diff --git a/Pods/Reachability/Reachability.m b/Pods/Reachability/Reachability.m
new file mode 100644
index 0000000..96ef95c
--- /dev/null
+++ b/Pods/Reachability/Reachability.m
@@ -0,0 +1,527 @@
+/*
+ Copyright (c) 2011, Tony Million.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "Reachability.h"
+
+
+NSString *const kReachabilityChangedNotification = @"kReachabilityChangedNotification";
+
+@interface Reachability ()
+
+@property (nonatomic, assign) SCNetworkReachabilityRef reachabilityRef;
+
+
+#if NEEDS_DISPATCH_RETAIN_RELEASE
+@property (nonatomic, assign) dispatch_queue_t reachabilitySerialQueue;
+#else
+@property (nonatomic, strong) dispatch_queue_t reachabilitySerialQueue;
+#endif
+
+
+@property (nonatomic, strong) id reachabilityObject;
+
+-(void)reachabilityChanged:(SCNetworkReachabilityFlags)flags;
+-(BOOL)isReachableWithFlags:(SCNetworkReachabilityFlags)flags;
+
+@end
+
+static NSString *reachabilityFlags(SCNetworkReachabilityFlags flags)
+{
+ return [NSString stringWithFormat:@"%c%c %c%c%c%c%c%c%c",
+#if TARGET_OS_IPHONE
+ (flags & kSCNetworkReachabilityFlagsIsWWAN) ? 'W' : '-',
+#else
+ 'X',
+#endif
+ (flags & kSCNetworkReachabilityFlagsReachable) ? 'R' : '-',
+ (flags & kSCNetworkReachabilityFlagsConnectionRequired) ? 'c' : '-',
+ (flags & kSCNetworkReachabilityFlagsTransientConnection) ? 't' : '-',
+ (flags & kSCNetworkReachabilityFlagsInterventionRequired) ? 'i' : '-',
+ (flags & kSCNetworkReachabilityFlagsConnectionOnTraffic) ? 'C' : '-',
+ (flags & kSCNetworkReachabilityFlagsConnectionOnDemand) ? 'D' : '-',
+ (flags & kSCNetworkReachabilityFlagsIsLocalAddress) ? 'l' : '-',
+ (flags & kSCNetworkReachabilityFlagsIsDirect) ? 'd' : '-'];
+}
+
+// Start listening for reachability notifications on the current run loop
+static void TMReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void* info)
+{
+#pragma unused (target)
+#if __has_feature(objc_arc)
+ Reachability *reachability = ((__bridge Reachability*)info);
+#else
+ Reachability *reachability = ((Reachability*)info);
+#endif
+
+ // We probably don't need an autoreleasepool here, as GCD docs state each queue has its own autorelease pool,
+ // but what the heck eh?
+ @autoreleasepool
+ {
+ [reachability reachabilityChanged:flags];
+ }
+}
+
+
+@implementation Reachability
+
+@synthesize reachabilityRef;
+@synthesize reachabilitySerialQueue;
+
+@synthesize reachableOnWWAN;
+
+@synthesize reachableBlock;
+@synthesize unreachableBlock;
+
+@synthesize reachabilityObject;
+
+#pragma mark - Class Constructor Methods
+
++(Reachability*)reachabilityWithHostName:(NSString*)hostname
+{
+ return [Reachability reachabilityWithHostname:hostname];
+}
+
++(Reachability*)reachabilityWithHostname:(NSString*)hostname
+{
+ SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithName(NULL, [hostname UTF8String]);
+ if (ref)
+ {
+ id reachability = [[self alloc] initWithReachabilityRef:ref];
+
+#if __has_feature(objc_arc)
+ return reachability;
+#else
+ return [reachability autorelease];
+#endif
+
+ }
+
+ return nil;
+}
+
++(Reachability *)reachabilityWithAddress:(const struct sockaddr_in *)hostAddress
+{
+ SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, (const struct sockaddr*)hostAddress);
+ if (ref)
+ {
+ id reachability = [[self alloc] initWithReachabilityRef:ref];
+
+#if __has_feature(objc_arc)
+ return reachability;
+#else
+ return [reachability autorelease];
+#endif
+ }
+
+ return nil;
+}
+
++(Reachability *)reachabilityForInternetConnection
+{
+ struct sockaddr_in zeroAddress;
+ bzero(&zeroAddress, sizeof(zeroAddress));
+ zeroAddress.sin_len = sizeof(zeroAddress);
+ zeroAddress.sin_family = AF_INET;
+
+ return [self reachabilityWithAddress:&zeroAddress];
+}
+
++(Reachability*)reachabilityForLocalWiFi
+{
+ struct sockaddr_in localWifiAddress;
+ bzero(&localWifiAddress, sizeof(localWifiAddress));
+ localWifiAddress.sin_len = sizeof(localWifiAddress);
+ localWifiAddress.sin_family = AF_INET;
+ // IN_LINKLOCALNETNUM is defined in as 169.254.0.0
+ localWifiAddress.sin_addr.s_addr = htonl(IN_LINKLOCALNETNUM);
+
+ return [self reachabilityWithAddress:&localWifiAddress];
+}
+
+
+// Initialization methods
+
+-(Reachability *)initWithReachabilityRef:(SCNetworkReachabilityRef)ref
+{
+ self = [super init];
+ if (self != nil)
+ {
+ self.reachableOnWWAN = YES;
+ self.reachabilityRef = ref;
+ }
+
+ return self;
+}
+
+-(void)dealloc
+{
+ [self stopNotifier];
+
+ if(self.reachabilityRef)
+ {
+ CFRelease(self.reachabilityRef);
+ self.reachabilityRef = nil;
+ }
+
+ self.reachableBlock = nil;
+ self.unreachableBlock = nil;
+
+#if !(__has_feature(objc_arc))
+ [super dealloc];
+#endif
+
+
+}
+
+#pragma mark - Notifier Methods
+
+// Notifier
+// NOTE: This uses GCD to trigger the blocks - they *WILL NOT* be called on THE MAIN THREAD
+// - In other words DO NOT DO ANY UI UPDATES IN THE BLOCKS.
+// INSTEAD USE dispatch_async(dispatch_get_main_queue(), ^{UISTUFF}) (or dispatch_sync if you want)
+
+-(BOOL)startNotifier
+{
+ SCNetworkReachabilityContext context = { 0, NULL, NULL, NULL, NULL };
+
+ // this should do a retain on ourself, so as long as we're in notifier mode we shouldn't disappear out from under ourselves
+ // woah
+ self.reachabilityObject = self;
+
+
+
+ // First, we need to create a serial queue.
+ // We allocate this once for the lifetime of the notifier.
+ self.reachabilitySerialQueue = dispatch_queue_create("com.tonymillion.reachability", NULL);
+ if(!self.reachabilitySerialQueue)
+ {
+ return NO;
+ }
+
+#if __has_feature(objc_arc)
+ context.info = (__bridge void *)self;
+#else
+ context.info = (void *)self;
+#endif
+
+ if (!SCNetworkReachabilitySetCallback(self.reachabilityRef, TMReachabilityCallback, &context))
+ {
+#ifdef DEBUG
+ NSLog(@"SCNetworkReachabilitySetCallback() failed: %s", SCErrorString(SCError()));
+#endif
+
+ // Clear out the dispatch queue
+ if(self.reachabilitySerialQueue)
+ {
+#if NEEDS_DISPATCH_RETAIN_RELEASE
+ dispatch_release(self.reachabilitySerialQueue);
+#endif
+ self.reachabilitySerialQueue = nil;
+ }
+
+ self.reachabilityObject = nil;
+
+ return NO;
+ }
+
+ // Set it as our reachability queue, which will retain the queue
+ if(!SCNetworkReachabilitySetDispatchQueue(self.reachabilityRef, self.reachabilitySerialQueue))
+ {
+#ifdef DEBUG
+ NSLog(@"SCNetworkReachabilitySetDispatchQueue() failed: %s", SCErrorString(SCError()));
+#endif
+
+ // UH OH - FAILURE!
+
+ // First stop, any callbacks!
+ SCNetworkReachabilitySetCallback(self.reachabilityRef, NULL, NULL);
+
+ // Then clear out the dispatch queue.
+ if(self.reachabilitySerialQueue)
+ {
+#if NEEDS_DISPATCH_RETAIN_RELEASE
+ dispatch_release(self.reachabilitySerialQueue);
+#endif
+ self.reachabilitySerialQueue = nil;
+ }
+
+ self.reachabilityObject = nil;
+
+ return NO;
+ }
+
+ return YES;
+}
+
+-(void)stopNotifier
+{
+ // First stop, any callbacks!
+ SCNetworkReachabilitySetCallback(self.reachabilityRef, NULL, NULL);
+
+ // Unregister target from the GCD serial dispatch queue.
+ SCNetworkReachabilitySetDispatchQueue(self.reachabilityRef, NULL);
+
+ if(self.reachabilitySerialQueue)
+ {
+#if NEEDS_DISPATCH_RETAIN_RELEASE
+ dispatch_release(self.reachabilitySerialQueue);
+#endif
+ self.reachabilitySerialQueue = nil;
+ }
+
+ self.reachabilityObject = nil;
+}
+
+#pragma mark - reachability tests
+
+// This is for the case where you flick the airplane mode;
+// you end up getting something like this:
+//Reachability: WR ct-----
+//Reachability: -- -------
+//Reachability: WR ct-----
+//Reachability: -- -------
+// We treat this as 4 UNREACHABLE triggers - really apple should do better than this
+
+#define testcase (kSCNetworkReachabilityFlagsConnectionRequired | kSCNetworkReachabilityFlagsTransientConnection)
+
+-(BOOL)isReachableWithFlags:(SCNetworkReachabilityFlags)flags
+{
+ BOOL connectionUP = YES;
+
+ if(!(flags & kSCNetworkReachabilityFlagsReachable))
+ connectionUP = NO;
+
+ if( (flags & testcase) == testcase )
+ connectionUP = NO;
+
+#if TARGET_OS_IPHONE
+ if(flags & kSCNetworkReachabilityFlagsIsWWAN)
+ {
+ // We're on 3G.
+ if(!self.reachableOnWWAN)
+ {
+ // We don't want to connect when on 3G.
+ connectionUP = NO;
+ }
+ }
+#endif
+
+ return connectionUP;
+}
+
+-(BOOL)isReachable
+{
+ SCNetworkReachabilityFlags flags;
+
+ if(!SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
+ return NO;
+
+ return [self isReachableWithFlags:flags];
+}
+
+-(BOOL)isReachableViaWWAN
+{
+#if TARGET_OS_IPHONE
+
+ SCNetworkReachabilityFlags flags = 0;
+
+ if(SCNetworkReachabilityGetFlags(reachabilityRef, &flags))
+ {
+ // Check we're REACHABLE
+ if(flags & kSCNetworkReachabilityFlagsReachable)
+ {
+ // Now, check we're on WWAN
+ if(flags & kSCNetworkReachabilityFlagsIsWWAN)
+ {
+ return YES;
+ }
+ }
+ }
+#endif
+
+ return NO;
+}
+
+-(BOOL)isReachableViaWiFi
+{
+ SCNetworkReachabilityFlags flags = 0;
+
+ if(SCNetworkReachabilityGetFlags(reachabilityRef, &flags))
+ {
+ // Check we're reachable
+ if((flags & kSCNetworkReachabilityFlagsReachable))
+ {
+#if TARGET_OS_IPHONE
+ // Check we're NOT on WWAN
+ if((flags & kSCNetworkReachabilityFlagsIsWWAN))
+ {
+ return NO;
+ }
+#endif
+ return YES;
+ }
+ }
+
+ return NO;
+}
+
+
+// WWAN may be available, but not active until a connection has been established.
+// WiFi may require a connection for VPN on Demand.
+-(BOOL)isConnectionRequired
+{
+ return [self connectionRequired];
+}
+
+-(BOOL)connectionRequired
+{
+ SCNetworkReachabilityFlags flags;
+
+ if(SCNetworkReachabilityGetFlags(reachabilityRef, &flags))
+ {
+ return (flags & kSCNetworkReachabilityFlagsConnectionRequired);
+ }
+
+ return NO;
+}
+
+// Dynamic, on demand connection?
+-(BOOL)isConnectionOnDemand
+{
+ SCNetworkReachabilityFlags flags;
+
+ if (SCNetworkReachabilityGetFlags(reachabilityRef, &flags))
+ {
+ return ((flags & kSCNetworkReachabilityFlagsConnectionRequired) &&
+ (flags & (kSCNetworkReachabilityFlagsConnectionOnTraffic | kSCNetworkReachabilityFlagsConnectionOnDemand)));
+ }
+
+ return NO;
+}
+
+// Is user intervention required?
+-(BOOL)isInterventionRequired
+{
+ SCNetworkReachabilityFlags flags;
+
+ if (SCNetworkReachabilityGetFlags(reachabilityRef, &flags))
+ {
+ return ((flags & kSCNetworkReachabilityFlagsConnectionRequired) &&
+ (flags & kSCNetworkReachabilityFlagsInterventionRequired));
+ }
+
+ return NO;
+}
+
+
+#pragma mark - reachability status stuff
+
+-(NetworkStatus)currentReachabilityStatus
+{
+ if([self isReachable])
+ {
+ if([self isReachableViaWiFi])
+ return ReachableViaWiFi;
+
+#if TARGET_OS_IPHONE
+ return ReachableViaWWAN;
+#endif
+ }
+
+ return NotReachable;
+}
+
+-(SCNetworkReachabilityFlags)reachabilityFlags
+{
+ SCNetworkReachabilityFlags flags = 0;
+
+ if(SCNetworkReachabilityGetFlags(reachabilityRef, &flags))
+ {
+ return flags;
+ }
+
+ return 0;
+}
+
+-(NSString*)currentReachabilityString
+{
+ NetworkStatus temp = [self currentReachabilityStatus];
+
+ if(temp == reachableOnWWAN)
+ {
+ // Updated for the fact that we have CDMA phones now!
+ return NSLocalizedString(@"Cellular", @"");
+ }
+ if (temp == ReachableViaWiFi)
+ {
+ return NSLocalizedString(@"WiFi", @"");
+ }
+
+ return NSLocalizedString(@"No Connection", @"");
+}
+
+-(NSString*)currentReachabilityFlags
+{
+ return reachabilityFlags([self reachabilityFlags]);
+}
+
+#pragma mark - Callback function calls this method
+
+-(void)reachabilityChanged:(SCNetworkReachabilityFlags)flags
+{
+ if([self isReachableWithFlags:flags])
+ {
+ if(self.reachableBlock)
+ {
+ self.reachableBlock(self);
+ }
+ }
+ else
+ {
+ if(self.unreachableBlock)
+ {
+ self.unreachableBlock(self);
+ }
+ }
+
+ // this makes sure the change notification happens on the MAIN THREAD
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [[NSNotificationCenter defaultCenter] postNotificationName:kReachabilityChangedNotification
+ object:self];
+ });
+}
+
+#pragma mark - Debug Description
+
+- (NSString *) description;
+{
+ NSString *description = [NSString stringWithFormat:@"<%@: %#x>",
+ NSStringFromClass([self class]), (unsigned int) self];
+ return description;
+}
+
+@end
diff --git a/Pods/SBJson/Classes/NSObject+SBJson.h b/Pods/SBJson/Classes/NSObject+SBJson.h
new file mode 100644
index 0000000..9a60b59
--- /dev/null
+++ b/Pods/SBJson/Classes/NSObject+SBJson.h
@@ -0,0 +1,82 @@
+/*
+ Copyright (C) 2009 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+#pragma mark JSON Writing
+
+/// Adds JSON generation to NSObject
+@interface NSObject (NSObject_SBJsonWriting)
+
+/**
+ Encodes the receiver into a JSON string
+
+ Although defined as a category on NSObject it is only defined for NSArray and NSDictionary.
+
+ @return the receiver encoded in JSON, or nil on error.
+
+ @warning Deprecated in Version 3.2; will be removed in 4.0
+
+ */
+- (NSString *)JSONRepresentation __attribute__ ((deprecated));
+
+@end
+
+
+#pragma mark JSON Parsing
+
+/// Adds JSON parsing methods to NSString
+@interface NSString (NSString_SBJsonParsing)
+
+/**
+ Decodes the receiver's JSON text
+
+ @return the NSDictionary or NSArray represented by the receiver, or nil on error.
+
+ @warning Deprecated in Version 3.2; will be removed in 4.0
+
+ */
+- (id)JSONValue __attribute__ ((deprecated));
+
+@end
+
+/// Adds JSON parsing methods to NSData
+@interface NSData (NSData_SBJsonParsing)
+
+/**
+ Decodes the receiver's JSON data
+
+ @return the NSDictionary or NSArray represented by the receiver, or nil on error.
+
+ @warning Deprecated in Version 3.2; will be removed in 4.0
+
+ */
+- (id)JSONValue __attribute__ ((deprecated));
+
+@end
diff --git a/Pods/SBJson/Classes/NSObject+SBJson.m b/Pods/SBJson/Classes/NSObject+SBJson.m
new file mode 100644
index 0000000..192dcb7
--- /dev/null
+++ b/Pods/SBJson/Classes/NSObject+SBJson.m
@@ -0,0 +1,76 @@
+/*
+ Copyright (C) 2009 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "NSObject+SBJson.h"
+#import "SBJsonWriter.h"
+#import "SBJsonParser.h"
+
+@implementation NSObject (NSObject_SBJsonWriting)
+
+- (NSString *)JSONRepresentation {
+ SBJsonWriter *writer = [[SBJsonWriter alloc] init];
+ NSString *json = [writer stringWithObject:self];
+ if (!json)
+ NSLog(@"-JSONRepresentation failed. Error is: %@", writer.error);
+ return json;
+}
+
+@end
+
+
+
+@implementation NSString (NSString_SBJsonParsing)
+
+- (id)JSONValue {
+ SBJsonParser *parser = [[SBJsonParser alloc] init];
+ id repr = [parser objectWithString:self];
+ if (!repr)
+ NSLog(@"-JSONValue failed. Error is: %@", parser.error);
+ return repr;
+}
+
+@end
+
+
+
+@implementation NSData (NSData_SBJsonParsing)
+
+- (id)JSONValue {
+ SBJsonParser *parser = [[SBJsonParser alloc] init];
+ id repr = [parser objectWithData:self];
+ if (!repr)
+ NSLog(@"-JSONValue failed. Error is: %@", parser.error);
+ return repr;
+}
+
+@end
diff --git a/Pods/SBJson/Classes/SBJson.h b/Pods/SBJson/Classes/SBJson.h
new file mode 100644
index 0000000..d37ffcd
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJson.h
@@ -0,0 +1,36 @@
+/*
+ Copyright (C) 2009-2011 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "SBJsonParser.h"
+#import "SBJsonWriter.h"
+#import "SBJsonStreamParser.h"
+#import "SBJsonStreamParserAdapter.h"
+#import "SBJsonStreamWriter.h"
+#import "NSObject+SBJson.h"
+
diff --git a/Pods/SBJson/Classes/SBJsonParser.h b/Pods/SBJson/Classes/SBJsonParser.h
new file mode 100644
index 0000000..69c81c8
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonParser.h
@@ -0,0 +1,102 @@
+/*
+ Copyright (C) 2009 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+/**
+ Parse JSON Strings and NSData objects
+
+ This uses SBJsonStreamParser internally.
+
+ */
+
+@interface SBJsonParser : NSObject
+
+/**
+ The maximum recursing depth.
+
+ Defaults to 32. If the input is nested deeper than this the input will be deemed to be
+ malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can
+ turn off this security feature by setting the maxDepth value to 0.
+ */
+@property NSUInteger maxDepth;
+
+/**
+ Description of parse error
+
+ This method returns the trace of the last method that failed.
+ You need to check the return value of the call you're making to figure out
+ if the call actually failed, before you know call this method.
+
+ @return A string describing the error encountered, or nil if no error occured.
+
+ */
+@property(copy) NSString *error;
+
+/**
+ Return the object represented by the given NSData object.
+
+ The data *must* be UTF8 encoded.
+
+ @param data An NSData containing UTF8 encoded data to parse.
+ @return The NSArray or NSDictionary represented by the object, or nil if an error occured.
+
+ */
+- (id)objectWithData:(NSData*)data;
+
+/**
+ Return the object represented by the given string
+
+ This method converts its input to an NSData object containing UTF8 and calls -objectWithData: with it.
+
+ @return The NSArray or NSDictionary represented by the object, or nil if an error occured.
+ */
+- (id)objectWithString:(NSString *)repr;
+
+/**
+ Return the object represented by the given string
+
+ This method calls objectWithString: internally. If an error occurs, and if error
+ is not nil, it creates an NSError object and returns this through its second argument.
+
+ @param jsonText the json string to parse
+ @param error pointer to an NSError object to populate on error
+
+ @return The NSArray or NSDictionary represented by the object, or nil if an error occured.
+
+ @warning Deprecated in Version 3.2; will be removed in 4.0
+
+ */
+
+- (id)objectWithString:(NSString*)jsonText
+ error:(NSError**)error __attribute__ ((deprecated));
+
+@end
+
+
diff --git a/Pods/SBJson/Classes/SBJsonParser.m b/Pods/SBJson/Classes/SBJsonParser.m
new file mode 100644
index 0000000..729e896
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonParser.m
@@ -0,0 +1,104 @@
+/*
+ Copyright (C) 2009,2010 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonParser.h"
+#import "SBJsonStreamParser.h"
+#import "SBJsonStreamParserAdapter.h"
+#import "SBJsonStreamParserAccumulator.h"
+
+@implementation SBJsonParser
+
+@synthesize maxDepth;
+@synthesize error;
+
+- (id)init {
+ self = [super init];
+ if (self)
+ self.maxDepth = 32u;
+ return self;
+}
+
+
+#pragma mark Methods
+
+- (id)objectWithData:(NSData *)data {
+
+ if (!data) {
+ self.error = @"Input was 'nil'";
+ return nil;
+ }
+
+ SBJsonStreamParserAccumulator *accumulator = [[SBJsonStreamParserAccumulator alloc] init];
+
+ SBJsonStreamParserAdapter *adapter = [[SBJsonStreamParserAdapter alloc] init];
+ adapter.delegate = accumulator;
+
+ SBJsonStreamParser *parser = [[SBJsonStreamParser alloc] init];
+ parser.maxDepth = self.maxDepth;
+ parser.delegate = adapter;
+
+ switch ([parser parse:data]) {
+ case SBJsonStreamParserComplete:
+ return accumulator.value;
+ break;
+
+ case SBJsonStreamParserWaitingForData:
+ self.error = @"Unexpected end of input";
+ break;
+
+ case SBJsonStreamParserError:
+ self.error = parser.error;
+ break;
+ }
+
+ return nil;
+}
+
+- (id)objectWithString:(NSString *)repr {
+ return [self objectWithData:[repr dataUsingEncoding:NSUTF8StringEncoding]];
+}
+
+- (id)objectWithString:(NSString*)repr error:(NSError**)error_ {
+ id tmp = [self objectWithString:repr];
+ if (tmp)
+ return tmp;
+
+ if (error_) {
+ NSDictionary *ui = [NSDictionary dictionaryWithObjectsAndKeys:error, NSLocalizedDescriptionKey, nil];
+ *error_ = [NSError errorWithDomain:@"org.brautaset.SBJsonParser.ErrorDomain" code:0 userInfo:ui];
+ }
+
+ return nil;
+}
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamParser.h b/Pods/SBJson/Classes/SBJsonStreamParser.h
new file mode 100644
index 0000000..619cd55
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamParser.h
@@ -0,0 +1,179 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+@class SBJsonTokeniser;
+@class SBJsonStreamParser;
+@class SBJsonStreamParserState;
+
+typedef enum {
+ SBJsonStreamParserComplete,
+ SBJsonStreamParserWaitingForData,
+ SBJsonStreamParserError,
+} SBJsonStreamParserStatus;
+
+
+/**
+ Delegate for interacting directly with the stream parser
+
+ You will most likely find it much more convenient to implement the
+ SBJsonStreamParserAdapterDelegate protocol instead.
+ */
+@protocol SBJsonStreamParserDelegate
+
+/// Called when object start is found
+- (void)parserFoundObjectStart:(SBJsonStreamParser*)parser;
+
+/// Called when object key is found
+- (void)parser:(SBJsonStreamParser*)parser foundObjectKey:(NSString*)key;
+
+/// Called when object end is found
+- (void)parserFoundObjectEnd:(SBJsonStreamParser*)parser;
+
+/// Called when array start is found
+- (void)parserFoundArrayStart:(SBJsonStreamParser*)parser;
+
+/// Called when array end is found
+- (void)parserFoundArrayEnd:(SBJsonStreamParser*)parser;
+
+/// Called when a boolean value is found
+- (void)parser:(SBJsonStreamParser*)parser foundBoolean:(BOOL)x;
+
+/// Called when a null value is found
+- (void)parserFoundNull:(SBJsonStreamParser*)parser;
+
+/// Called when a number is found
+- (void)parser:(SBJsonStreamParser*)parser foundNumber:(NSNumber*)num;
+
+/// Called when a string is found
+- (void)parser:(SBJsonStreamParser*)parser foundString:(NSString*)string;
+
+@end
+
+
+/**
+ Parse a stream of JSON data.
+
+ Using this class directly you can reduce the apparent latency for each
+ download/parse cycle of documents over a slow connection. You can start
+ parsing *and return chunks of the parsed document* before the entire
+ document is downloaded.
+
+ Using this class is also useful to parse huge documents on disk
+ bit by bit so you don't have to keep them all in memory.
+
+ JSON is mapped to Objective-C types in the following way:
+
+ - null -> NSNull
+ - string -> NSString
+ - array -> NSMutableArray
+ - object -> NSMutableDictionary
+ - true -> NSNumber's -numberWithBool:YES
+ - false -> NSNumber's -numberWithBool:NO
+ - integer up to 19 digits -> NSNumber's -numberWithLongLong:
+ - all other numbers -> NSDecimalNumber
+
+ Since Objective-C doesn't have a dedicated class for boolean values,
+ these turns into NSNumber instances. However, since these are
+ initialised with the -initWithBool: method they round-trip back to JSON
+ properly. In other words, they won't silently suddenly become 0 or 1;
+ they'll be represented as 'true' and 'false' again.
+
+ As an optimisation integers up to 19 digits in length (the max length
+ for signed long long integers) turn into NSNumber instances, while
+ complex ones turn into NSDecimalNumber instances. We can thus avoid any
+ loss of precision as JSON allows ridiculously large numbers.
+
+ See also SBJsonStreamParserAdapter for more information.
+
+ */
+@interface SBJsonStreamParser : NSObject {
+@private
+ SBJsonTokeniser *tokeniser;
+}
+
+@property (nonatomic, unsafe_unretained) SBJsonStreamParserState *state; // Private
+@property (nonatomic, readonly, strong) NSMutableArray *stateStack; // Private
+
+/**
+ Expect multiple documents separated by whitespace
+
+ Normally the -parse: method returns SBJsonStreamParserComplete when it's found a complete JSON document.
+ Attempting to parse any more data at that point is considered an error. ("Garbage after JSON".)
+
+ If you set this property to true the parser will never return SBJsonStreamParserComplete. Rather,
+ once an object is completed it will expect another object to immediately follow, separated
+ only by (optional) whitespace.
+
+ */
+@property BOOL supportMultipleDocuments;
+
+/**
+ Delegate to receive messages
+
+ The object set here receives a series of messages as the parser breaks down the JSON stream
+ into valid tokens.
+
+ Usually this should be an instance of SBJsonStreamParserAdapter, but you can
+ substitute your own implementation of the SBJsonStreamParserDelegate protocol if you need to.
+ */
+@property (unsafe_unretained) id delegate;
+
+/**
+ The max parse depth
+
+ If the input is nested deeper than this the parser will halt parsing and return an error.
+
+ Defaults to 32.
+ */
+@property NSUInteger maxDepth;
+
+/// Holds the error after SBJsonStreamParserError was returned
+@property (copy) NSString *error;
+
+/**
+ Parse some JSON
+
+ The JSON is assumed to be UTF8 encoded. This can be a full JSON document, or a part of one.
+
+ @param data An NSData object containing the next chunk of JSON
+
+ @return
+ - SBJsonStreamParserComplete if a full document was found
+ - SBJsonStreamParserWaitingForData if a partial document was found and more data is required to complete it
+ - SBJsonStreamParserError if an error occured. (See the error property for details in this case.)
+
+ */
+- (SBJsonStreamParserStatus)parse:(NSData*)data;
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamParser.m b/Pods/SBJson/Classes/SBJsonStreamParser.m
new file mode 100644
index 0000000..57d5016
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamParser.m
@@ -0,0 +1,255 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonStreamParser.h"
+#import "SBJsonTokeniser.h"
+#import "SBJsonStreamParserState.h"
+
+@implementation SBJsonStreamParser
+
+@synthesize supportMultipleDocuments;
+@synthesize error;
+@synthesize delegate;
+@synthesize maxDepth;
+@synthesize state;
+@synthesize stateStack;
+
+#pragma mark Housekeeping
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ maxDepth = 32u;
+ stateStack = [[NSMutableArray alloc] initWithCapacity:maxDepth];
+ state = [SBJsonStreamParserStateStart sharedInstance];
+ tokeniser = [[SBJsonTokeniser alloc] init];
+ }
+ return self;
+}
+
+
+#pragma mark Methods
+
+- (NSString*)tokenName:(sbjson_token_t)token {
+ switch (token) {
+ case sbjson_token_array_start:
+ return @"start of array";
+ break;
+
+ case sbjson_token_array_end:
+ return @"end of array";
+ break;
+
+ case sbjson_token_number:
+ return @"number";
+ break;
+
+ case sbjson_token_string:
+ return @"string";
+ break;
+
+ case sbjson_token_true:
+ case sbjson_token_false:
+ return @"boolean";
+ break;
+
+ case sbjson_token_null:
+ return @"null";
+ break;
+
+ case sbjson_token_keyval_separator:
+ return @"key-value separator";
+ break;
+
+ case sbjson_token_separator:
+ return @"value separator";
+ break;
+
+ case sbjson_token_object_start:
+ return @"start of object";
+ break;
+
+ case sbjson_token_object_end:
+ return @"end of object";
+ break;
+
+ case sbjson_token_eof:
+ case sbjson_token_error:
+ break;
+ }
+ NSAssert(NO, @"Should not get here");
+ return @"";
+}
+
+- (void)maxDepthError {
+ self.error = [NSString stringWithFormat:@"Input depth exceeds max depth of %lu", (unsigned long)maxDepth];
+ self.state = [SBJsonStreamParserStateError sharedInstance];
+}
+
+- (void)handleObjectStart {
+ if (stateStack.count >= maxDepth) {
+ [self maxDepthError];
+ return;
+ }
+
+ [delegate parserFoundObjectStart:self];
+ [stateStack addObject:state];
+ self.state = [SBJsonStreamParserStateObjectStart sharedInstance];
+}
+
+- (void)handleObjectEnd: (sbjson_token_t) tok {
+ self.state = [stateStack lastObject];
+ [stateStack removeLastObject];
+ [state parser:self shouldTransitionTo:tok];
+ [delegate parserFoundObjectEnd:self];
+}
+
+- (void)handleArrayStart {
+ if (stateStack.count >= maxDepth) {
+ [self maxDepthError];
+ return;
+ }
+
+ [delegate parserFoundArrayStart:self];
+ [stateStack addObject:state];
+ self.state = [SBJsonStreamParserStateArrayStart sharedInstance];
+}
+
+- (void)handleArrayEnd: (sbjson_token_t) tok {
+ self.state = [stateStack lastObject];
+ [stateStack removeLastObject];
+ [state parser:self shouldTransitionTo:tok];
+ [delegate parserFoundArrayEnd:self];
+}
+
+- (void) handleTokenNotExpectedHere: (sbjson_token_t) tok {
+ NSString *tokenName = [self tokenName:tok];
+ NSString *stateName = [state name];
+
+ self.error = [NSString stringWithFormat:@"Token '%@' not expected %@", tokenName, stateName];
+ self.state = [SBJsonStreamParserStateError sharedInstance];
+}
+
+- (SBJsonStreamParserStatus)parse:(NSData *)data_ {
+ @autoreleasepool {
+ [tokeniser appendData:data_];
+
+ for (;;) {
+
+ if ([state isError])
+ return SBJsonStreamParserError;
+
+ NSObject *token;
+ sbjson_token_t tok = [tokeniser getToken:&token];
+ switch (tok) {
+ case sbjson_token_eof:
+ return [state parserShouldReturn:self];
+ break;
+
+ case sbjson_token_error:
+ self.state = [SBJsonStreamParserStateError sharedInstance];
+ self.error = tokeniser.error;
+ return SBJsonStreamParserError;
+ break;
+
+ default:
+
+ if (![state parser:self shouldAcceptToken:tok]) {
+ [self handleTokenNotExpectedHere: tok];
+ return SBJsonStreamParserError;
+ }
+
+ switch (tok) {
+ case sbjson_token_object_start:
+ [self handleObjectStart];
+ break;
+
+ case sbjson_token_object_end:
+ [self handleObjectEnd: tok];
+ break;
+
+ case sbjson_token_array_start:
+ [self handleArrayStart];
+ break;
+
+ case sbjson_token_array_end:
+ [self handleArrayEnd: tok];
+ break;
+
+ case sbjson_token_separator:
+ case sbjson_token_keyval_separator:
+ [state parser:self shouldTransitionTo:tok];
+ break;
+
+ case sbjson_token_true:
+ [delegate parser:self foundBoolean:YES];
+ [state parser:self shouldTransitionTo:tok];
+ break;
+
+ case sbjson_token_false:
+ [delegate parser:self foundBoolean:NO];
+ [state parser:self shouldTransitionTo:tok];
+ break;
+
+ case sbjson_token_null:
+ [delegate parserFoundNull:self];
+ [state parser:self shouldTransitionTo:tok];
+ break;
+
+ case sbjson_token_number:
+ [delegate parser:self foundNumber:(NSNumber*)token];
+ [state parser:self shouldTransitionTo:tok];
+ break;
+
+ case sbjson_token_string:
+ if ([state needKey])
+ [delegate parser:self foundObjectKey:(NSString*)token];
+ else
+ [delegate parser:self foundString:(NSString*)token];
+ [state parser:self shouldTransitionTo:tok];
+ break;
+
+ default:
+ break;
+ }
+ break;
+ }
+ }
+ return SBJsonStreamParserComplete;
+ }
+}
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamParserAccumulator.h b/Pods/SBJson/Classes/SBJsonStreamParserAccumulator.h
new file mode 100644
index 0000000..141d6ee
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamParserAccumulator.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (C) 2011 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+#import "SBJsonStreamParserAdapter.h"
+
+@interface SBJsonStreamParserAccumulator : NSObject
+
+@property (copy) id value;
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamParserAccumulator.m b/Pods/SBJson/Classes/SBJsonStreamParserAccumulator.m
new file mode 100644
index 0000000..82d8fe8
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamParserAccumulator.m
@@ -0,0 +1,51 @@
+/*
+ Copyright (C) 2011 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonStreamParserAccumulator.h"
+
+@implementation SBJsonStreamParserAccumulator
+
+@synthesize value;
+
+
+#pragma mark SBJsonStreamParserAdapterDelegate
+
+- (void)parser:(SBJsonStreamParser*)parser foundArray:(NSArray *)array {
+ value = array;
+}
+
+- (void)parser:(SBJsonStreamParser*)parser foundObject:(NSDictionary *)dict {
+ value = dict;
+}
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamParserAdapter.h b/Pods/SBJson/Classes/SBJsonStreamParserAdapter.h
new file mode 100644
index 0000000..8b4bc5d
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamParserAdapter.h
@@ -0,0 +1,142 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+#import "SBJsonStreamParser.h"
+
+typedef enum {
+ SBJsonStreamParserAdapterNone,
+ SBJsonStreamParserAdapterArray,
+ SBJsonStreamParserAdapterObject,
+} SBJsonStreamParserAdapterType;
+
+/**
+ Delegate for getting objects & arrays from the stream parser adapter
+
+ */
+@protocol SBJsonStreamParserAdapterDelegate
+
+/**
+ Called if a JSON array is found
+
+ This method is called if a JSON array is found.
+
+ */
+- (void)parser:(SBJsonStreamParser*)parser foundArray:(NSArray*)array;
+
+/**
+ Called when a JSON object is found
+
+ This method is called if a JSON object is found.
+ */
+- (void)parser:(SBJsonStreamParser*)parser foundObject:(NSDictionary*)dict;
+
+@end
+
+/**
+ SBJsonStreamParserDelegate protocol adapter
+
+ Rather than implementing the SBJsonStreamParserDelegate protocol yourself you will
+ most likely find it much more convenient to use an instance of this class and
+ implement the SBJsonStreamParserAdapterDelegate protocol instead.
+
+ The default behaviour is that the delegate only receives one call from
+ either the -parser:foundArray: or -parser:foundObject: method when the
+ document is fully parsed. However, if your inputs contains multiple JSON
+ documents and you set the parser's -supportMultipleDocuments property to YES
+ you will get one call for each full method.
+
+ SBJsonStreamParserAdapter *adapter = [[[SBJsonStreamParserAdapter alloc] init] autorelease];
+ adapter.delegate = self;
+
+ SBJsonStreamParser *parser = [[[SBJsonStreamParser alloc] init] autorelease];
+ parser.delegate = adapter;
+ parser.supportMultipleDocuments = YES;
+
+ // Note that this input contains multiple top-level JSON documents
+ NSData *json = [@"[]{}[]{}" dataWithEncoding:NSUTF8StringEncoding];
+ [parser parse:data];
+
+ In the above example self will have the following sequence of methods called on it:
+
+ - -parser:foundArray:
+ - -parser:foundObject:
+ - -parser:foundArray:
+ - -parser:foundObject:
+
+ Often you won't have control over the input you're parsing, so can't make use of
+ this feature. But, all is not lost: this class will let you get the same effect by
+ allowing you to skip one or more of the outer enclosing objects. Thus, the next
+ example results in the same sequence of -parser:foundArray: / -parser:foundObject:
+ being called on your delegate.
+
+ SBJsonStreamParserAdapter *adapter = [[[SBJsonStreamParserAdapter alloc] init] autorelease];
+ adapter.delegate = self;
+ adapter.levelsToSkip = 1;
+
+ SBJsonStreamParser *parser = [[[SBJsonStreamParser alloc] init] autorelease];
+ parser.delegate = adapter;
+
+ // Note that this input contains A SINGLE top-level document
+ NSData *json = [@"[[],{},[],{}]" dataWithEncoding:NSUTF8StringEncoding];
+ [parser parse:data];
+
+*/
+@interface SBJsonStreamParserAdapter : NSObject {
+@private
+ NSUInteger depth;
+ NSMutableArray *array;
+ NSMutableDictionary *dict;
+ NSMutableArray *keyStack;
+ NSMutableArray *stack;
+
+ SBJsonStreamParserAdapterType currentType;
+}
+
+/**
+ How many levels to skip
+
+ This is useful for parsing huge JSON documents, or documents coming in over a very slow link.
+
+ If you set this to N it will skip the outer N levels and call the -parser:foundArray:
+ or -parser:foundObject: methods for each of the inner objects, as appropriate.
+
+*/
+@property NSUInteger levelsToSkip;
+
+/**
+ Your delegate object
+ Set this to the object you want to receive the SBJsonStreamParserAdapterDelegate messages.
+ */
+@property (unsafe_unretained) id delegate;
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamParserAdapter.m b/Pods/SBJson/Classes/SBJsonStreamParserAdapter.m
new file mode 100644
index 0000000..7259a06
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamParserAdapter.m
@@ -0,0 +1,168 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonStreamParserAdapter.h"
+
+@interface SBJsonStreamParserAdapter ()
+
+- (void)pop;
+- (void)parser:(SBJsonStreamParser*)parser found:(id)obj;
+
+@end
+
+
+
+@implementation SBJsonStreamParserAdapter
+
+@synthesize delegate;
+@synthesize levelsToSkip;
+
+#pragma mark Housekeeping
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ keyStack = [[NSMutableArray alloc] initWithCapacity:32];
+ stack = [[NSMutableArray alloc] initWithCapacity:32];
+
+ currentType = SBJsonStreamParserAdapterNone;
+ }
+ return self;
+}
+
+
+#pragma mark Private methods
+
+- (void)pop {
+ [stack removeLastObject];
+ array = nil;
+ dict = nil;
+ currentType = SBJsonStreamParserAdapterNone;
+
+ id value = [stack lastObject];
+
+ if ([value isKindOfClass:[NSArray class]]) {
+ array = value;
+ currentType = SBJsonStreamParserAdapterArray;
+ } else if ([value isKindOfClass:[NSDictionary class]]) {
+ dict = value;
+ currentType = SBJsonStreamParserAdapterObject;
+ }
+}
+
+- (void)parser:(SBJsonStreamParser*)parser found:(id)obj {
+ NSParameterAssert(obj);
+
+ switch (currentType) {
+ case SBJsonStreamParserAdapterArray:
+ [array addObject:obj];
+ break;
+
+ case SBJsonStreamParserAdapterObject:
+ NSParameterAssert(keyStack.count);
+ [dict setObject:obj forKey:[keyStack lastObject]];
+ [keyStack removeLastObject];
+ break;
+
+ case SBJsonStreamParserAdapterNone:
+ if ([obj isKindOfClass:[NSArray class]]) {
+ [delegate parser:parser foundArray:obj];
+ } else {
+ [delegate parser:parser foundObject:obj];
+ }
+ break;
+
+ default:
+ break;
+ }
+}
+
+
+#pragma mark Delegate methods
+
+- (void)parserFoundObjectStart:(SBJsonStreamParser*)parser {
+ if (++depth > self.levelsToSkip) {
+ dict = [NSMutableDictionary new];
+ [stack addObject:dict];
+ currentType = SBJsonStreamParserAdapterObject;
+ }
+}
+
+- (void)parser:(SBJsonStreamParser*)parser foundObjectKey:(NSString*)key_ {
+ [keyStack addObject:key_];
+}
+
+- (void)parserFoundObjectEnd:(SBJsonStreamParser*)parser {
+ if (depth-- > self.levelsToSkip) {
+ id value = dict;
+ [self pop];
+ [self parser:parser found:value];
+ }
+}
+
+- (void)parserFoundArrayStart:(SBJsonStreamParser*)parser {
+ if (++depth > self.levelsToSkip) {
+ array = [NSMutableArray new];
+ [stack addObject:array];
+ currentType = SBJsonStreamParserAdapterArray;
+ }
+}
+
+- (void)parserFoundArrayEnd:(SBJsonStreamParser*)parser {
+ if (depth-- > self.levelsToSkip) {
+ id value = array;
+ [self pop];
+ [self parser:parser found:value];
+ }
+}
+
+- (void)parser:(SBJsonStreamParser*)parser foundBoolean:(BOOL)x {
+ [self parser:parser found:[NSNumber numberWithBool:x]];
+}
+
+- (void)parserFoundNull:(SBJsonStreamParser*)parser {
+ [self parser:parser found:[NSNull null]];
+}
+
+- (void)parser:(SBJsonStreamParser*)parser foundNumber:(NSNumber*)num {
+ [self parser:parser found:num];
+}
+
+- (void)parser:(SBJsonStreamParser*)parser foundString:(NSString*)string {
+ [self parser:parser found:string];
+}
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamParserState.h b/Pods/SBJson/Classes/SBJsonStreamParserState.h
new file mode 100644
index 0000000..ea893cb
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamParserState.h
@@ -0,0 +1,83 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+#import "SBJsonTokeniser.h"
+#import "SBJsonStreamParser.h"
+
+@interface SBJsonStreamParserState : NSObject
++ (id)sharedInstance;
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token;
+- (SBJsonStreamParserStatus)parserShouldReturn:(SBJsonStreamParser*)parser;
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok;
+- (BOOL)needKey;
+- (BOOL)isError;
+
+- (NSString*)name;
+
+@end
+
+@interface SBJsonStreamParserStateStart : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateComplete : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateError : SBJsonStreamParserState
+@end
+
+
+@interface SBJsonStreamParserStateObjectStart : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateObjectGotKey : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateObjectSeparator : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateObjectGotValue : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateObjectNeedKey : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateArrayStart : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateArrayGotValue : SBJsonStreamParserState
+@end
+
+@interface SBJsonStreamParserStateArrayNeedValue : SBJsonStreamParserState
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamParserState.m b/Pods/SBJson/Classes/SBJsonStreamParserState.m
new file mode 100644
index 0000000..a59e7dc
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamParserState.m
@@ -0,0 +1,362 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonStreamParserState.h"
+
+#define SINGLETON \
++ (id)sharedInstance { \
+ static id state = nil; \
+ if (!state) { \
+ @synchronized(self) { \
+ if (!state) state = [[self alloc] init]; \
+ } \
+ } \
+ return state; \
+}
+
+@implementation SBJsonStreamParserState
+
++ (id)sharedInstance { return nil; }
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ return NO;
+}
+
+- (SBJsonStreamParserStatus)parserShouldReturn:(SBJsonStreamParser*)parser {
+ return SBJsonStreamParserWaitingForData;
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {}
+
+- (BOOL)needKey {
+ return NO;
+}
+
+- (NSString*)name {
+ return @"";
+}
+
+- (BOOL)isError {
+ return NO;
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateStart
+
+SINGLETON
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ return token == sbjson_token_array_start || token == sbjson_token_object_start;
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+
+ SBJsonStreamParserState *state = nil;
+ switch (tok) {
+ case sbjson_token_array_start:
+ state = [SBJsonStreamParserStateArrayStart sharedInstance];
+ break;
+
+ case sbjson_token_object_start:
+ state = [SBJsonStreamParserStateObjectStart sharedInstance];
+ break;
+
+ case sbjson_token_array_end:
+ case sbjson_token_object_end:
+ if (parser.supportMultipleDocuments)
+ state = parser.state;
+ else
+ state = [SBJsonStreamParserStateComplete sharedInstance];
+ break;
+
+ case sbjson_token_eof:
+ return;
+
+ default:
+ state = [SBJsonStreamParserStateError sharedInstance];
+ break;
+ }
+
+
+ parser.state = state;
+}
+
+- (NSString*)name { return @"before outer-most array or object"; }
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateComplete
+
+SINGLETON
+
+- (NSString*)name { return @"after outer-most array or object"; }
+
+- (SBJsonStreamParserStatus)parserShouldReturn:(SBJsonStreamParser*)parser {
+ return SBJsonStreamParserComplete;
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateError
+
+SINGLETON
+
+- (NSString*)name { return @"in error"; }
+
+- (SBJsonStreamParserStatus)parserShouldReturn:(SBJsonStreamParser*)parser {
+ return SBJsonStreamParserError;
+}
+
+- (BOOL)isError {
+ return YES;
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateObjectStart
+
+SINGLETON
+
+- (NSString*)name { return @"at beginning of object"; }
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ switch (token) {
+ case sbjson_token_object_end:
+ case sbjson_token_string:
+ return YES;
+ break;
+ default:
+ return NO;
+ break;
+ }
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+ parser.state = [SBJsonStreamParserStateObjectGotKey sharedInstance];
+}
+
+- (BOOL)needKey {
+ return YES;
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateObjectGotKey
+
+SINGLETON
+
+- (NSString*)name { return @"after object key"; }
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ return token == sbjson_token_keyval_separator;
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+ parser.state = [SBJsonStreamParserStateObjectSeparator sharedInstance];
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateObjectSeparator
+
+SINGLETON
+
+- (NSString*)name { return @"as object value"; }
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ switch (token) {
+ case sbjson_token_object_start:
+ case sbjson_token_array_start:
+ case sbjson_token_true:
+ case sbjson_token_false:
+ case sbjson_token_null:
+ case sbjson_token_number:
+ case sbjson_token_string:
+ return YES;
+ break;
+
+ default:
+ return NO;
+ break;
+ }
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+ parser.state = [SBJsonStreamParserStateObjectGotValue sharedInstance];
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateObjectGotValue
+
+SINGLETON
+
+- (NSString*)name { return @"after object value"; }
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ switch (token) {
+ case sbjson_token_object_end:
+ case sbjson_token_separator:
+ return YES;
+ break;
+ default:
+ return NO;
+ break;
+ }
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+ parser.state = [SBJsonStreamParserStateObjectNeedKey sharedInstance];
+}
+
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateObjectNeedKey
+
+SINGLETON
+
+- (NSString*)name { return @"in place of object key"; }
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ return sbjson_token_string == token;
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+ parser.state = [SBJsonStreamParserStateObjectGotKey sharedInstance];
+}
+
+- (BOOL)needKey {
+ return YES;
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateArrayStart
+
+SINGLETON
+
+- (NSString*)name { return @"at array start"; }
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ switch (token) {
+ case sbjson_token_object_end:
+ case sbjson_token_keyval_separator:
+ case sbjson_token_separator:
+ return NO;
+ break;
+
+ default:
+ return YES;
+ break;
+ }
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+ parser.state = [SBJsonStreamParserStateArrayGotValue sharedInstance];
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateArrayGotValue
+
+SINGLETON
+
+- (NSString*)name { return @"after array value"; }
+
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ return token == sbjson_token_array_end || token == sbjson_token_separator;
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+ if (tok == sbjson_token_separator)
+ parser.state = [SBJsonStreamParserStateArrayNeedValue sharedInstance];
+}
+
+@end
+
+#pragma mark -
+
+@implementation SBJsonStreamParserStateArrayNeedValue
+
+SINGLETON
+
+- (NSString*)name { return @"as array value"; }
+
+
+- (BOOL)parser:(SBJsonStreamParser*)parser shouldAcceptToken:(sbjson_token_t)token {
+ switch (token) {
+ case sbjson_token_array_end:
+ case sbjson_token_keyval_separator:
+ case sbjson_token_object_end:
+ case sbjson_token_separator:
+ return NO;
+ break;
+
+ default:
+ return YES;
+ break;
+ }
+}
+
+- (void)parser:(SBJsonStreamParser*)parser shouldTransitionTo:(sbjson_token_t)tok {
+ parser.state = [SBJsonStreamParserStateArrayGotValue sharedInstance];
+}
+
+@end
+
diff --git a/Pods/SBJson/Classes/SBJsonStreamWriter.h b/Pods/SBJson/Classes/SBJsonStreamWriter.h
new file mode 100644
index 0000000..7794a14
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamWriter.h
@@ -0,0 +1,210 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+/// Enable JSON writing for non-native objects
+@interface NSObject (SBProxyForJson)
+
+/**
+ Allows generation of JSON for otherwise unsupported classes.
+
+ If you have a custom class that you want to create a JSON representation
+ for you can implement this method in your class. It should return a
+ representation of your object defined in terms of objects that can be
+ translated into JSON. For example, a Person object might implement it like this:
+
+ - (id)proxyForJson {
+ return [NSDictionary dictionaryWithObjectsAndKeys:
+ name, @"name",
+ phone, @"phone",
+ email, @"email",
+ nil];
+ }
+
+ */
+- (id)proxyForJson;
+
+@end
+
+@class SBJsonStreamWriter;
+
+@protocol SBJsonStreamWriterDelegate
+
+- (void)writer:(SBJsonStreamWriter*)writer appendBytes:(const void *)bytes length:(NSUInteger)length;
+
+@end
+
+@class SBJsonStreamWriterState;
+
+/**
+ The Stream Writer class.
+
+ Accepts a stream of messages and writes JSON of these to its delegate object.
+
+ This class provides a range of high-, mid- and low-level methods. You can mix
+ and match calls to these. For example, you may want to call -writeArrayOpen
+ to start an array and then repeatedly call -writeObject: with various objects
+ before finishing off with a -writeArrayClose call.
+
+ Objective-C types are mapped to JSON types in the following way:
+
+ - NSNull -> null
+ - NSString -> string
+ - NSArray -> array
+ - NSDictionary -> object
+ - NSNumber's -initWithBool:YES -> true
+ - NSNumber's -initWithBool:NO -> false
+ - NSNumber -> number
+
+ NSNumber instances created with the -numberWithBool: method are
+ converted into the JSON boolean "true" and "false" values, and vice
+ versa. Any other NSNumber instances are converted to a JSON number the
+ way you would expect.
+
+ @warning: In JSON the keys of an object must be strings. NSDictionary
+ keys need not be, but attempting to convert an NSDictionary with
+ non-string keys into JSON will throw an exception.*
+
+ */
+
+@interface SBJsonStreamWriter : NSObject {
+ NSMutableDictionary *cache;
+}
+
+@property (nonatomic, unsafe_unretained) SBJsonStreamWriterState *state; // Internal
+@property (nonatomic, readonly, strong) NSMutableArray *stateStack; // Internal
+
+/**
+ delegate to receive JSON output
+ Delegate that will receive messages with output.
+ */
+@property (unsafe_unretained) id delegate;
+
+/**
+ The maximum recursing depth.
+
+ Defaults to 512. If the input is nested deeper than this the input will be deemed to be
+ malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can
+ turn off this security feature by setting the maxDepth value to 0.
+ */
+@property NSUInteger maxDepth;
+
+/**
+ Whether we are generating human-readable (multiline) JSON.
+
+ Set whether or not to generate human-readable JSON. The default is NO, which produces
+ JSON without any whitespace between tokens. If set to YES, generates human-readable
+ JSON with linebreaks after each array value and dictionary key/value pair, indented two
+ spaces per nesting level.
+ */
+@property BOOL humanReadable;
+
+/**
+ Whether or not to sort the dictionary keys in the output.
+
+ If this is set to YES, the dictionary keys in the JSON output will be in sorted order.
+ (This is useful if you need to compare two structures, for example.) The default is NO.
+ */
+@property BOOL sortKeys;
+
+/**
+ An optional comparator to be used if sortKeys is YES.
+
+ If this is nil, sorting will be done via @selector(compare:).
+ */
+@property (copy) NSComparator sortKeysComparator;
+
+/// Contains the error description after an error has occured.
+@property (copy) NSString *error;
+
+/**
+ Write an NSDictionary to the JSON stream.
+ @return YES if successful, or NO on failure
+ */
+- (BOOL)writeObject:(NSDictionary*)dict;
+
+/**
+ Write an NSArray to the JSON stream.
+ @return YES if successful, or NO on failure
+ */
+- (BOOL)writeArray:(NSArray *)array;
+
+/**
+ Start writing an Object to the stream
+ @return YES if successful, or NO on failure
+*/
+- (BOOL)writeObjectOpen;
+
+/**
+ Close the current object being written
+ @return YES if successful, or NO on failure
+*/
+- (BOOL)writeObjectClose;
+
+/** Start writing an Array to the stream
+ @return YES if successful, or NO on failure
+*/
+- (BOOL)writeArrayOpen;
+
+/** Close the current Array being written
+ @return YES if successful, or NO on failure
+*/
+- (BOOL)writeArrayClose;
+
+/** Write a null to the stream
+ @return YES if successful, or NO on failure
+*/
+- (BOOL)writeNull;
+
+/** Write a boolean to the stream
+ @return YES if successful, or NO on failure
+*/
+- (BOOL)writeBool:(BOOL)x;
+
+/** Write a Number to the stream
+ @return YES if successful, or NO on failure
+*/
+- (BOOL)writeNumber:(NSNumber*)n;
+
+/** Write a String to the stream
+ @return YES if successful, or NO on failure
+*/
+- (BOOL)writeString:(NSString*)s;
+
+@end
+
+@interface SBJsonStreamWriter (Private)
+- (BOOL)writeValue:(id)v;
+- (void)appendBytes:(const void *)bytes length:(NSUInteger)length;
+@end
+
diff --git a/Pods/SBJson/Classes/SBJsonStreamWriter.m b/Pods/SBJson/Classes/SBJsonStreamWriter.m
new file mode 100644
index 0000000..7302cc0
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamWriter.m
@@ -0,0 +1,374 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonStreamWriter.h"
+#import "SBJsonStreamWriterState.h"
+
+static NSNumber *kNotANumber;
+static NSNumber *kTrue;
+static NSNumber *kFalse;
+static NSNumber *kPositiveInfinity;
+static NSNumber *kNegativeInfinity;
+
+
+@implementation SBJsonStreamWriter
+
+@synthesize error;
+@synthesize maxDepth;
+@synthesize state;
+@synthesize stateStack;
+@synthesize humanReadable;
+@synthesize sortKeys;
+@synthesize sortKeysComparator;
+
++ (void)initialize {
+ kNotANumber = [NSDecimalNumber notANumber];
+ kPositiveInfinity = [NSNumber numberWithDouble:+HUGE_VAL];
+ kNegativeInfinity = [NSNumber numberWithDouble:-HUGE_VAL];
+ kTrue = [NSNumber numberWithBool:YES];
+ kFalse = [NSNumber numberWithBool:NO];
+}
+
+#pragma mark Housekeeping
+
+@synthesize delegate;
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ maxDepth = 32u;
+ stateStack = [[NSMutableArray alloc] initWithCapacity:maxDepth];
+ state = [SBJsonStreamWriterStateStart sharedInstance];
+ cache = [[NSMutableDictionary alloc] initWithCapacity:32];
+ }
+ return self;
+}
+
+#pragma mark Methods
+
+- (void)appendBytes:(const void *)bytes length:(NSUInteger)length {
+ [delegate writer:self appendBytes:bytes length:length];
+}
+
+- (BOOL)writeObject:(NSDictionary *)dict {
+ if (![self writeObjectOpen])
+ return NO;
+
+ NSArray *keys = [dict allKeys];
+
+ if (sortKeys) {
+ if (sortKeysComparator) {
+ keys = [keys sortedArrayWithOptions:NSSortStable usingComparator:sortKeysComparator];
+ }
+ else{
+ keys = [keys sortedArrayUsingSelector:@selector(compare:)];
+ }
+ }
+
+ for (id k in keys) {
+ if (![k isKindOfClass:[NSString class]]) {
+ self.error = [NSString stringWithFormat:@"JSON object key must be string: %@", k];
+ return NO;
+ }
+
+ if (![self writeString:k])
+ return NO;
+ if (![self writeValue:[dict objectForKey:k]])
+ return NO;
+ }
+
+ return [self writeObjectClose];
+}
+
+- (BOOL)writeArray:(NSArray*)array {
+ if (![self writeArrayOpen])
+ return NO;
+ for (id v in array)
+ if (![self writeValue:v])
+ return NO;
+ return [self writeArrayClose];
+}
+
+
+- (BOOL)writeObjectOpen {
+ if ([state isInvalidState:self]) return NO;
+ if ([state expectingKey:self]) return NO;
+ [state appendSeparator:self];
+ if (humanReadable && stateStack.count) [state appendWhitespace:self];
+
+ [stateStack addObject:state];
+ self.state = [SBJsonStreamWriterStateObjectStart sharedInstance];
+
+ if (maxDepth && stateStack.count > maxDepth) {
+ self.error = @"Nested too deep";
+ return NO;
+ }
+
+ [delegate writer:self appendBytes:"{" length:1];
+ return YES;
+}
+
+- (BOOL)writeObjectClose {
+ if ([state isInvalidState:self]) return NO;
+
+ SBJsonStreamWriterState *prev = state;
+
+ self.state = [stateStack lastObject];
+ [stateStack removeLastObject];
+
+ if (humanReadable) [prev appendWhitespace:self];
+ [delegate writer:self appendBytes:"}" length:1];
+
+ [state transitionState:self];
+ return YES;
+}
+
+- (BOOL)writeArrayOpen {
+ if ([state isInvalidState:self]) return NO;
+ if ([state expectingKey:self]) return NO;
+ [state appendSeparator:self];
+ if (humanReadable && stateStack.count) [state appendWhitespace:self];
+
+ [stateStack addObject:state];
+ self.state = [SBJsonStreamWriterStateArrayStart sharedInstance];
+
+ if (maxDepth && stateStack.count > maxDepth) {
+ self.error = @"Nested too deep";
+ return NO;
+ }
+
+ [delegate writer:self appendBytes:"[" length:1];
+ return YES;
+}
+
+- (BOOL)writeArrayClose {
+ if ([state isInvalidState:self]) return NO;
+ if ([state expectingKey:self]) return NO;
+
+ SBJsonStreamWriterState *prev = state;
+
+ self.state = [stateStack lastObject];
+ [stateStack removeLastObject];
+
+ if (humanReadable) [prev appendWhitespace:self];
+ [delegate writer:self appendBytes:"]" length:1];
+
+ [state transitionState:self];
+ return YES;
+}
+
+- (BOOL)writeNull {
+ if ([state isInvalidState:self]) return NO;
+ if ([state expectingKey:self]) return NO;
+ [state appendSeparator:self];
+ if (humanReadable) [state appendWhitespace:self];
+
+ [delegate writer:self appendBytes:"null" length:4];
+ [state transitionState:self];
+ return YES;
+}
+
+- (BOOL)writeBool:(BOOL)x {
+ if ([state isInvalidState:self]) return NO;
+ if ([state expectingKey:self]) return NO;
+ [state appendSeparator:self];
+ if (humanReadable) [state appendWhitespace:self];
+
+ if (x)
+ [delegate writer:self appendBytes:"true" length:4];
+ else
+ [delegate writer:self appendBytes:"false" length:5];
+ [state transitionState:self];
+ return YES;
+}
+
+
+- (BOOL)writeValue:(id)o {
+ if ([o isKindOfClass:[NSDictionary class]]) {
+ return [self writeObject:o];
+
+ } else if ([o isKindOfClass:[NSArray class]]) {
+ return [self writeArray:o];
+
+ } else if ([o isKindOfClass:[NSString class]]) {
+ [self writeString:o];
+ return YES;
+
+ } else if ([o isKindOfClass:[NSNumber class]]) {
+ return [self writeNumber:o];
+
+ } else if ([o isKindOfClass:[NSNull class]]) {
+ return [self writeNull];
+
+ } else if ([o respondsToSelector:@selector(proxyForJson)]) {
+ return [self writeValue:[o proxyForJson]];
+
+ }
+
+ self.error = [NSString stringWithFormat:@"JSON serialisation not supported for %@", [o class]];
+ return NO;
+}
+
+static const char *strForChar(int c) {
+ switch (c) {
+ case 0: return "\\u0000"; break;
+ case 1: return "\\u0001"; break;
+ case 2: return "\\u0002"; break;
+ case 3: return "\\u0003"; break;
+ case 4: return "\\u0004"; break;
+ case 5: return "\\u0005"; break;
+ case 6: return "\\u0006"; break;
+ case 7: return "\\u0007"; break;
+ case 8: return "\\b"; break;
+ case 9: return "\\t"; break;
+ case 10: return "\\n"; break;
+ case 11: return "\\u000b"; break;
+ case 12: return "\\f"; break;
+ case 13: return "\\r"; break;
+ case 14: return "\\u000e"; break;
+ case 15: return "\\u000f"; break;
+ case 16: return "\\u0010"; break;
+ case 17: return "\\u0011"; break;
+ case 18: return "\\u0012"; break;
+ case 19: return "\\u0013"; break;
+ case 20: return "\\u0014"; break;
+ case 21: return "\\u0015"; break;
+ case 22: return "\\u0016"; break;
+ case 23: return "\\u0017"; break;
+ case 24: return "\\u0018"; break;
+ case 25: return "\\u0019"; break;
+ case 26: return "\\u001a"; break;
+ case 27: return "\\u001b"; break;
+ case 28: return "\\u001c"; break;
+ case 29: return "\\u001d"; break;
+ case 30: return "\\u001e"; break;
+ case 31: return "\\u001f"; break;
+ case 34: return "\\\""; break;
+ case 92: return "\\\\"; break;
+ }
+ NSLog(@"FUTFUTFUT: -->'%c'<---", c);
+ return "FUTFUTFUT";
+}
+
+- (BOOL)writeString:(NSString*)string {
+ if ([state isInvalidState:self]) return NO;
+ [state appendSeparator:self];
+ if (humanReadable) [state appendWhitespace:self];
+
+ NSMutableData *buf = [cache objectForKey:string];
+ if (!buf) {
+
+ NSUInteger len = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
+ const char *utf8 = [string UTF8String];
+ NSUInteger written = 0, i = 0;
+
+ buf = [NSMutableData dataWithCapacity:(NSUInteger)(len * 1.1f)];
+ [buf appendBytes:"\"" length:1];
+
+ for (i = 0; i < len; i++) {
+ int c = utf8[i];
+ BOOL isControlChar = c >= 0 && c < 32;
+ if (isControlChar || c == '"' || c == '\\') {
+ if (i - written)
+ [buf appendBytes:utf8 + written length:i - written];
+ written = i + 1;
+
+ const char *t = strForChar(c);
+ [buf appendBytes:t length:strlen(t)];
+ }
+ }
+
+ if (i - written)
+ [buf appendBytes:utf8 + written length:i - written];
+
+ [buf appendBytes:"\"" length:1];
+ [cache setObject:buf forKey:string];
+ }
+
+ [delegate writer:self appendBytes:[buf bytes] length:[buf length]];
+ [state transitionState:self];
+ return YES;
+}
+
+- (BOOL)writeNumber:(NSNumber*)number {
+ if (number == kTrue || number == kFalse)
+ return [self writeBool:[number boolValue]];
+
+ if ([state isInvalidState:self]) return NO;
+ if ([state expectingKey:self]) return NO;
+ [state appendSeparator:self];
+ if (humanReadable) [state appendWhitespace:self];
+
+ if ([kPositiveInfinity isEqualToNumber:number]) {
+ self.error = @"+Infinity is not a valid number in JSON";
+ return NO;
+
+ } else if ([kNegativeInfinity isEqualToNumber:number]) {
+ self.error = @"-Infinity is not a valid number in JSON";
+ return NO;
+
+ } else if ([kNotANumber isEqualToNumber:number]) {
+ self.error = @"NaN is not a valid number in JSON";
+ return NO;
+ }
+
+ const char *objcType = [number objCType];
+ char num[128];
+ size_t len;
+
+ switch (objcType[0]) {
+ case 'c': case 'i': case 's': case 'l': case 'q':
+ len = snprintf(num, sizeof num, "%lld", [number longLongValue]);
+ break;
+ case 'C': case 'I': case 'S': case 'L': case 'Q':
+ len = snprintf(num, sizeof num, "%llu", [number unsignedLongLongValue]);
+ break;
+ case 'f': case 'd': default:
+ if ([number isKindOfClass:[NSDecimalNumber class]]) {
+ char const *utf8 = [[number stringValue] UTF8String];
+ [delegate writer:self appendBytes:utf8 length: strlen(utf8)];
+ [state transitionState:self];
+ return YES;
+ }
+ len = snprintf(num, sizeof num, "%.17g", [number doubleValue]);
+ break;
+ }
+ [delegate writer:self appendBytes:num length: len];
+ [state transitionState:self];
+ return YES;
+}
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamWriterAccumulator.h b/Pods/SBJson/Classes/SBJsonStreamWriterAccumulator.h
new file mode 100644
index 0000000..b12d0d5
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamWriterAccumulator.h
@@ -0,0 +1,36 @@
+/*
+ Copyright (C) 2011 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "SBJsonStreamWriter.h"
+
+@interface SBJsonStreamWriterAccumulator : NSObject
+
+@property (readonly, copy) NSMutableData* data;
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamWriterAccumulator.m b/Pods/SBJson/Classes/SBJsonStreamWriterAccumulator.m
new file mode 100644
index 0000000..d78c317
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamWriterAccumulator.m
@@ -0,0 +1,56 @@
+/*
+ Copyright (C) 2011 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonStreamWriterAccumulator.h"
+
+
+@implementation SBJsonStreamWriterAccumulator
+
+@synthesize data;
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ data = [[NSMutableData alloc] initWithCapacity:8096u];
+ }
+ return self;
+}
+
+
+#pragma mark SBJsonStreamWriterDelegate
+
+- (void)writer:(SBJsonStreamWriter *)writer appendBytes:(const void *)bytes length:(NSUInteger)length {
+ [data appendBytes:bytes length:length];
+}
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonStreamWriterState.h b/Pods/SBJson/Classes/SBJsonStreamWriterState.h
new file mode 100644
index 0000000..90d442a
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamWriterState.h
@@ -0,0 +1,69 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+@class SBJsonStreamWriter;
+
+@interface SBJsonStreamWriterState : NSObject
++ (id)sharedInstance;
+- (BOOL)isInvalidState:(SBJsonStreamWriter*)writer;
+- (void)appendSeparator:(SBJsonStreamWriter*)writer;
+- (BOOL)expectingKey:(SBJsonStreamWriter*)writer;
+- (void)transitionState:(SBJsonStreamWriter*)writer;
+- (void)appendWhitespace:(SBJsonStreamWriter*)writer;
+@end
+
+@interface SBJsonStreamWriterStateObjectStart : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateObjectKey : SBJsonStreamWriterStateObjectStart
+@end
+
+@interface SBJsonStreamWriterStateObjectValue : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateArrayStart : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateArrayValue : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateStart : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateComplete : SBJsonStreamWriterState
+@end
+
+@interface SBJsonStreamWriterStateError : SBJsonStreamWriterState
+@end
+
diff --git a/Pods/SBJson/Classes/SBJsonStreamWriterState.m b/Pods/SBJson/Classes/SBJsonStreamWriterState.m
new file mode 100644
index 0000000..a87b447
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonStreamWriterState.m
@@ -0,0 +1,147 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonStreamWriterState.h"
+#import "SBJsonStreamWriter.h"
+
+#define SINGLETON \
++ (id)sharedInstance { \
+ static id state = nil; \
+ if (!state) { \
+ @synchronized(self) { \
+ if (!state) state = [[self alloc] init]; \
+ } \
+ } \
+ return state; \
+}
+
+
+@implementation SBJsonStreamWriterState
++ (id)sharedInstance { return nil; }
+- (BOOL)isInvalidState:(SBJsonStreamWriter*)writer { return NO; }
+- (void)appendSeparator:(SBJsonStreamWriter*)writer {}
+- (BOOL)expectingKey:(SBJsonStreamWriter*)writer { return NO; }
+- (void)transitionState:(SBJsonStreamWriter *)writer {}
+- (void)appendWhitespace:(SBJsonStreamWriter*)writer {
+ [writer appendBytes:"\n" length:1];
+ for (NSUInteger i = 0; i < writer.stateStack.count; i++)
+ [writer appendBytes:" " length:2];
+}
+@end
+
+@implementation SBJsonStreamWriterStateObjectStart
+
+SINGLETON
+
+- (void)transitionState:(SBJsonStreamWriter *)writer {
+ writer.state = [SBJsonStreamWriterStateObjectValue sharedInstance];
+}
+- (BOOL)expectingKey:(SBJsonStreamWriter *)writer {
+ writer.error = @"JSON object key must be string";
+ return YES;
+}
+@end
+
+@implementation SBJsonStreamWriterStateObjectKey
+
+SINGLETON
+
+- (void)appendSeparator:(SBJsonStreamWriter *)writer {
+ [writer appendBytes:"," length:1];
+}
+@end
+
+@implementation SBJsonStreamWriterStateObjectValue
+
+SINGLETON
+
+- (void)appendSeparator:(SBJsonStreamWriter *)writer {
+ [writer appendBytes:":" length:1];
+}
+- (void)transitionState:(SBJsonStreamWriter *)writer {
+ writer.state = [SBJsonStreamWriterStateObjectKey sharedInstance];
+}
+- (void)appendWhitespace:(SBJsonStreamWriter *)writer {
+ [writer appendBytes:" " length:1];
+}
+@end
+
+@implementation SBJsonStreamWriterStateArrayStart
+
+SINGLETON
+
+- (void)transitionState:(SBJsonStreamWriter *)writer {
+ writer.state = [SBJsonStreamWriterStateArrayValue sharedInstance];
+}
+@end
+
+@implementation SBJsonStreamWriterStateArrayValue
+
+SINGLETON
+
+- (void)appendSeparator:(SBJsonStreamWriter *)writer {
+ [writer appendBytes:"," length:1];
+}
+@end
+
+@implementation SBJsonStreamWriterStateStart
+
+SINGLETON
+
+
+- (void)transitionState:(SBJsonStreamWriter *)writer {
+ writer.state = [SBJsonStreamWriterStateComplete sharedInstance];
+}
+- (void)appendSeparator:(SBJsonStreamWriter *)writer {
+}
+@end
+
+@implementation SBJsonStreamWriterStateComplete
+
+SINGLETON
+
+- (BOOL)isInvalidState:(SBJsonStreamWriter*)writer {
+ writer.error = @"Stream is closed";
+ return YES;
+}
+@end
+
+@implementation SBJsonStreamWriterStateError
+
+SINGLETON
+
+@end
+
diff --git a/Pods/SBJson/Classes/SBJsonTokeniser.h b/Pods/SBJson/Classes/SBJsonTokeniser.h
new file mode 100644
index 0000000..e484a94
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonTokeniser.h
@@ -0,0 +1,67 @@
+/*
+ Copyright (c) 2010, Stig Brautaset.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+typedef enum {
+ sbjson_token_error = -1,
+ sbjson_token_eof,
+
+ sbjson_token_array_start,
+ sbjson_token_array_end,
+
+ sbjson_token_object_start,
+ sbjson_token_object_end,
+
+ sbjson_token_separator,
+ sbjson_token_keyval_separator,
+
+ sbjson_token_number,
+ sbjson_token_string,
+ sbjson_token_true,
+ sbjson_token_false,
+ sbjson_token_null,
+
+} sbjson_token_t;
+
+@class SBJsonUTF8Stream;
+
+@interface SBJsonTokeniser : NSObject
+
+@property (strong) SBJsonUTF8Stream *stream;
+@property (copy) NSString *error;
+
+- (void)appendData:(NSData*)data_;
+
+- (sbjson_token_t)getToken:(NSObject**)token;
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonTokeniser.m b/Pods/SBJson/Classes/SBJsonTokeniser.m
new file mode 100644
index 0000000..9b68d2e
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonTokeniser.m
@@ -0,0 +1,477 @@
+/*
+ Copyright (c) 2010-2011, Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonTokeniser.h"
+#import "SBJsonUTF8Stream.h"
+
+#define SBStringIsIllegalSurrogateHighCharacter(character) (((character) >= 0xD800UL) && ((character) <= 0xDFFFUL))
+#define SBStringIsSurrogateLowCharacter(character) ((character >= 0xDC00UL) && (character <= 0xDFFFUL))
+#define SBStringIsSurrogateHighCharacter(character) ((character >= 0xD800UL) && (character <= 0xDBFFUL))
+
+static int const DECIMAL_MAX_PRECISION = 38;
+static int const DECIMAL_EXPONENT_MAX = 127;
+static short const DECIMAL_EXPONENT_MIN = -128;
+static int const LONG_LONG_DIGITS = 19;
+
+static NSCharacterSet *kDecimalDigitCharacterSet;
+
+@implementation SBJsonTokeniser
+
+@synthesize error = _error;
+@synthesize stream = _stream;
+
++ (void)initialize {
+ kDecimalDigitCharacterSet = [NSCharacterSet decimalDigitCharacterSet];
+}
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ _stream = [[SBJsonUTF8Stream alloc] init];
+
+ }
+
+ return self;
+}
+
+
+- (void)appendData:(NSData *)data_ {
+ [_stream appendData:data_];
+}
+
+
+- (sbjson_token_t)match:(const char *)pattern length:(NSUInteger)len retval:(sbjson_token_t)token {
+ if (![_stream haveRemainingCharacters:len])
+ return sbjson_token_eof;
+
+ if ([_stream skipCharacters:pattern length:len])
+ return token;
+
+ self.error = [NSString stringWithFormat:@"Expected '%s' after initial '%.1s'", pattern, pattern];
+ return sbjson_token_error;
+}
+
+- (BOOL)decodeEscape:(unichar)ch into:(unichar*)decoded {
+ switch (ch) {
+ case '\\':
+ case '/':
+ case '"':
+ *decoded = ch;
+ break;
+
+ case 'b':
+ *decoded = '\b';
+ break;
+
+ case 'n':
+ *decoded = '\n';
+ break;
+
+ case 'r':
+ *decoded = '\r';
+ break;
+
+ case 't':
+ *decoded = '\t';
+ break;
+
+ case 'f':
+ *decoded = '\f';
+ break;
+
+ default:
+ self.error = @"Illegal escape character";
+ return NO;
+ break;
+ }
+ return YES;
+}
+
+- (BOOL)decodeHexQuad:(unichar*)quad {
+ unichar c, tmp = 0;
+
+ for (int i = 0; i < 4; i++) {
+ (void)[_stream getNextUnichar:&c];
+ tmp *= 16;
+ switch (c) {
+ case '0' ... '9':
+ tmp += c - '0';
+ break;
+
+ case 'a' ... 'f':
+ tmp += 10 + c - 'a';
+ break;
+
+ case 'A' ... 'F':
+ tmp += 10 + c - 'A';
+ break;
+
+ default:
+ return NO;
+ }
+ }
+ *quad = tmp;
+ return YES;
+}
+
+- (sbjson_token_t)getStringToken:(NSObject**)token {
+ NSMutableString *acc = nil;
+
+ for (;;) {
+ [_stream skip];
+
+ unichar ch;
+ {
+ NSMutableString *string = nil;
+
+ if (![_stream getStringFragment:&string])
+ return sbjson_token_eof;
+
+ if (!string) {
+ self.error = @"Broken Unicode encoding";
+ return sbjson_token_error;
+ }
+
+ if (![_stream getUnichar:&ch])
+ return sbjson_token_eof;
+
+ if (acc) {
+ [acc appendString:string];
+
+ } else if (ch == '"') {
+ *token = [string copy];
+ [_stream skip];
+ return sbjson_token_string;
+
+ } else {
+ acc = [string mutableCopy];
+ }
+ }
+
+
+ switch (ch) {
+ case 0 ... 0x1F:
+ self.error = [NSString stringWithFormat:@"Unescaped control character [0x%0.2X]", (int)ch];
+ return sbjson_token_error;
+ break;
+
+ case '"':
+ *token = acc;
+ [_stream skip];
+ return sbjson_token_string;
+ break;
+
+ case '\\':
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ if (ch == 'u') {
+ if (![_stream haveRemainingCharacters:5])
+ return sbjson_token_eof;
+
+ unichar hi;
+ if (![self decodeHexQuad:&hi]) {
+ self.error = @"Invalid hex quad";
+ return sbjson_token_error;
+ }
+
+ if (SBStringIsSurrogateHighCharacter(hi)) {
+ unichar lo;
+
+ if (![_stream haveRemainingCharacters:6])
+ return sbjson_token_eof;
+
+ (void)[_stream getNextUnichar:&ch];
+ (void)[_stream getNextUnichar:&lo];
+ if (ch != '\\' || lo != 'u' || ![self decodeHexQuad:&lo]) {
+ self.error = @"Missing low character in surrogate pair";
+ return sbjson_token_error;
+ }
+
+ if (!SBStringIsSurrogateLowCharacter(lo)) {
+ self.error = @"Invalid low character in surrogate pair";
+ return sbjson_token_error;
+ }
+
+ [acc appendFormat:@"%C%C", hi, lo];
+ } else if (SBStringIsIllegalSurrogateHighCharacter(hi)) {
+ self.error = @"Invalid high character in surrogate pair";
+ return sbjson_token_error;
+ } else {
+ [acc appendFormat:@"%C", hi];
+ }
+
+
+ } else {
+ unichar decoded;
+ if (![self decodeEscape:ch into:&decoded])
+ return sbjson_token_error;
+ [acc appendFormat:@"%C", decoded];
+ }
+
+ break;
+
+ default: {
+ self.error = [NSString stringWithFormat:@"Invalid UTF-8: '%x'", (int)ch];
+ return sbjson_token_error;
+ break;
+ }
+ }
+ }
+ return sbjson_token_eof;
+}
+
+- (sbjson_token_t)getNumberToken:(NSObject**)token {
+
+ NSUInteger numberStart = _stream.index;
+
+ unichar ch;
+ if (![_stream getUnichar:&ch])
+ return sbjson_token_eof;
+
+ BOOL isNegative = NO;
+ if (ch == '-') {
+ isNegative = YES;
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ unsigned long long mantissa = 0;
+ int mantissa_length = 0;
+
+ if (ch == '0') {
+ mantissa_length++;
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ if ([kDecimalDigitCharacterSet characterIsMember:ch]) {
+ self.error = @"Leading zero is illegal in number";
+ return sbjson_token_error;
+ }
+ }
+
+ while ([kDecimalDigitCharacterSet characterIsMember:ch]) {
+ mantissa *= 10;
+ mantissa += (ch - '0');
+ mantissa_length++;
+
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ short exponent = 0;
+ BOOL isFloat = NO;
+
+ if (ch == '.') {
+ isFloat = YES;
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ while ([kDecimalDigitCharacterSet characterIsMember:ch]) {
+ mantissa *= 10;
+ mantissa += (ch - '0');
+ mantissa_length++;
+ exponent--;
+
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ if (!exponent) {
+ self.error = @"No digits after decimal point";
+ return sbjson_token_error;
+ }
+ }
+
+ BOOL hasExponent = NO;
+ if (ch == 'e' || ch == 'E') {
+ hasExponent = YES;
+
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ BOOL expIsNegative = NO;
+ if (ch == '-') {
+ expIsNegative = YES;
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+
+ } else if (ch == '+') {
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ short explicit_exponent = 0;
+ short explicit_exponent_length = 0;
+ while ([kDecimalDigitCharacterSet characterIsMember:ch]) {
+ explicit_exponent *= 10;
+ explicit_exponent += (ch - '0');
+ explicit_exponent_length++;
+
+ if (![_stream getNextUnichar:&ch])
+ return sbjson_token_eof;
+ }
+
+ if (explicit_exponent_length == 0) {
+ self.error = @"No digits in exponent";
+ return sbjson_token_error;
+ }
+
+ if (expIsNegative)
+ exponent -= explicit_exponent;
+ else
+ exponent += explicit_exponent;
+ }
+
+ if (!mantissa_length && isNegative) {
+ self.error = @"No digits after initial minus";
+ return sbjson_token_error;
+
+ } else if (mantissa_length > DECIMAL_MAX_PRECISION) {
+ self.error = @"Precision is too high";
+ return sbjson_token_error;
+
+ } else if (exponent > DECIMAL_EXPONENT_MAX || exponent < DECIMAL_EXPONENT_MIN) {
+ self.error = @"Exponent out of range";
+ return sbjson_token_error;
+ }
+
+ if (mantissa_length <= LONG_LONG_DIGITS) {
+ if (!isFloat && !hasExponent) {
+ *token = [NSNumber numberWithLongLong: isNegative ? -mantissa : mantissa];
+ } else if (mantissa == 0) {
+ *token = [NSNumber numberWithFloat:-0.0f];
+ } else {
+ *token = [NSDecimalNumber decimalNumberWithMantissa:mantissa
+ exponent:exponent
+ isNegative:isNegative];
+ }
+
+ } else {
+ NSString *number = [_stream stringWithRange:NSMakeRange(numberStart, _stream.index - numberStart)];
+ *token = [NSDecimalNumber decimalNumberWithString:number];
+
+ }
+
+ return sbjson_token_number;
+}
+
+- (sbjson_token_t)getToken:(NSObject **)token {
+
+ [_stream skipWhitespace];
+
+ unichar ch;
+ if (![_stream getUnichar:&ch])
+ return sbjson_token_eof;
+
+ NSUInteger oldIndexLocation = _stream.index;
+ sbjson_token_t tok;
+
+ switch (ch) {
+ case '[':
+ tok = sbjson_token_array_start;
+ [_stream skip];
+ break;
+
+ case ']':
+ tok = sbjson_token_array_end;
+ [_stream skip];
+ break;
+
+ case '{':
+ tok = sbjson_token_object_start;
+ [_stream skip];
+ break;
+
+ case ':':
+ tok = sbjson_token_keyval_separator;
+ [_stream skip];
+ break;
+
+ case '}':
+ tok = sbjson_token_object_end;
+ [_stream skip];
+ break;
+
+ case ',':
+ tok = sbjson_token_separator;
+ [_stream skip];
+ break;
+
+ case 'n':
+ tok = [self match:"null" length:4 retval:sbjson_token_null];
+ break;
+
+ case 't':
+ tok = [self match:"true" length:4 retval:sbjson_token_true];
+ break;
+
+ case 'f':
+ tok = [self match:"false" length:5 retval:sbjson_token_false];
+ break;
+
+ case '"':
+ tok = [self getStringToken:token];
+ break;
+
+ case '0' ... '9':
+ case '-':
+ tok = [self getNumberToken:token];
+ break;
+
+ case '+':
+ self.error = @"Leading + is illegal in number";
+ tok = sbjson_token_error;
+ break;
+
+ default:
+ self.error = [NSString stringWithFormat:@"Illegal start of token [%c]", ch];
+ tok = sbjson_token_error;
+ break;
+ }
+
+ if (tok == sbjson_token_eof) {
+ // We ran out of bytes in the middle of a token.
+ // We don't know how to restart in mid-flight, so
+ // rewind to the start of the token for next attempt.
+ // Hopefully we'll have more data then.
+ _stream.index = oldIndexLocation;
+ }
+
+ return tok;
+}
+
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonUTF8Stream.h b/Pods/SBJson/Classes/SBJsonUTF8Stream.h
new file mode 100644
index 0000000..a26f032
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonUTF8Stream.h
@@ -0,0 +1,58 @@
+/*
+ Copyright (c) 2011, Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+
+@interface SBJsonUTF8Stream : NSObject {
+@private
+ const char *_bytes;
+ NSMutableData *_data;
+ NSUInteger _length;
+}
+
+@property (assign) NSUInteger index;
+
+- (void)appendData:(NSData*)data_;
+
+- (BOOL)haveRemainingCharacters:(NSUInteger)chars;
+
+- (void)skip;
+- (void)skipWhitespace;
+- (BOOL)skipCharacters:(const char *)chars length:(NSUInteger)len;
+
+- (BOOL)getUnichar:(unichar*)ch;
+- (BOOL)getNextUnichar:(unichar*)ch;
+- (BOOL)getStringFragment:(NSString**)string;
+
+- (NSString*)stringWithRange:(NSRange)range;
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonUTF8Stream.m b/Pods/SBJson/Classes/SBJsonUTF8Stream.m
new file mode 100644
index 0000000..8185ee1
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonUTF8Stream.m
@@ -0,0 +1,145 @@
+/*
+ Copyright (c) 2011, Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of the the author nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonUTF8Stream.h"
+
+
+@implementation SBJsonUTF8Stream
+
+@synthesize index = _index;
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ _data = [[NSMutableData alloc] initWithCapacity:4096u];
+ }
+ return self;
+}
+
+
+- (void)appendData:(NSData *)data_ {
+
+ if (_index) {
+ // Discard data we've already parsed
+ [_data replaceBytesInRange:NSMakeRange(0, _index) withBytes:"" length:0];
+
+ // Reset index to point to current position
+ _index = 0;
+ }
+
+ [_data appendData:data_];
+
+ // This is an optimisation.
+ _bytes = (const char*)[_data bytes];
+ _length = [_data length];
+}
+
+
+- (BOOL)getUnichar:(unichar*)ch {
+ if (_index < _length) {
+ *ch = (unichar)_bytes[_index];
+ return YES;
+ }
+ return NO;
+}
+
+- (BOOL)getNextUnichar:(unichar*)ch {
+ if (++_index < _length) {
+ *ch = (unichar)_bytes[_index];
+ return YES;
+ }
+ return NO;
+}
+
+- (BOOL)getStringFragment:(NSString **)string {
+ NSUInteger start = _index;
+ while (_index < _length) {
+ switch (_bytes[_index]) {
+ case '"':
+ case '\\':
+ case 0 ... 0x1f:
+ *string = [[NSString alloc] initWithBytes:(_bytes + start)
+ length:(_index - start)
+ encoding:NSUTF8StringEncoding];
+ return YES;
+ break;
+ default:
+ _index++;
+ break;
+ }
+ }
+ return NO;
+}
+
+- (void)skip {
+ _index++;
+}
+
+- (void)skipWhitespace {
+ while (_index < _length) {
+ switch (_bytes[_index]) {
+ case ' ':
+ case '\t':
+ case '\r':
+ case '\n':
+ _index++;
+ break;
+ default:
+ return;
+ break;
+ }
+ }
+}
+
+- (BOOL)haveRemainingCharacters:(NSUInteger)chars {
+ return [_data length] - _index >= chars;
+}
+
+- (BOOL)skipCharacters:(const char *)chars length:(NSUInteger)len {
+ const void *bytes = ((const char*)[_data bytes]) + _index;
+ if (!memcmp(bytes, chars, len)) {
+ _index += len;
+ return YES;
+ }
+ return NO;
+}
+
+- (NSString*)stringWithRange:(NSRange)range {
+ return [[NSString alloc] initWithBytes:_bytes + range.location length:range.length encoding:NSUTF8StringEncoding];
+
+}
+
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonWriter.h b/Pods/SBJson/Classes/SBJsonWriter.h
new file mode 100644
index 0000000..8b0a059
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonWriter.h
@@ -0,0 +1,119 @@
+/*
+ Copyright (C) 2009 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import
+
+/**
+ The JSON writer class.
+
+ This uses SBJsonStreamWriter internally.
+
+ */
+
+@interface SBJsonWriter : NSObject
+
+/**
+ The maximum recursing depth.
+
+ Defaults to 32. If the input is nested deeper than this the input will be deemed to be
+ malicious and the parser returns nil, signalling an error. ("Nested too deep".) You can
+ turn off this security feature by setting the maxDepth value to 0.
+ */
+@property NSUInteger maxDepth;
+
+/**
+ Return an error trace, or nil if there was no errors.
+
+ Note that this method returns the trace of the last method that failed.
+ You need to check the return value of the call you're making to figure out
+ if the call actually failed, before you know call this method.
+ */
+@property (readonly, copy) NSString *error;
+
+/**
+ Whether we are generating human-readable (multiline) JSON.
+
+ Set whether or not to generate human-readable JSON. The default is NO, which produces
+ JSON without any whitespace. (Except inside strings.) If set to YES, generates human-readable
+ JSON with linebreaks after each array value and dictionary key/value pair, indented two
+ spaces per nesting level.
+ */
+@property BOOL humanReadable;
+
+/**
+ Whether or not to sort the dictionary keys in the output.
+
+ If this is set to YES, the dictionary keys in the JSON output will be in sorted order.
+ (This is useful if you need to compare two structures, for example.) The default is NO.
+ */
+@property BOOL sortKeys;
+
+/**
+ An optional comparator to be used if sortKeys is YES.
+
+ If this is nil, sorting will be done via @selector(compare:).
+ */
+@property (copy) NSComparator sortKeysComparator;
+
+/**
+ Return JSON representation for the given object.
+
+ Returns a string containing JSON representation of the passed in value, or nil on error.
+ If nil is returned and error is not NULL, *error can be interrogated to find the cause of the error.
+
+ @param value any instance that can be represented as JSON text.
+ */
+- (NSString*)stringWithObject:(id)value;
+
+/**
+ Return JSON representation for the given object.
+
+ Returns an NSData object containing JSON represented as UTF8 text, or nil on error.
+
+ @param value any instance that can be represented as JSON text.
+ */
+- (NSData*)dataWithObject:(id)value;
+
+/**
+ Return JSON representation (or fragment) for the given object.
+
+ Returns a string containing JSON representation of the passed in value, or nil on error.
+ If nil is returned and error is not NULL, *error can be interrogated to find the cause of the error.
+
+ @param value any instance that can be represented as a JSON fragment
+ @param error pointer to object to be populated with NSError on failure
+
+ @warning Deprecated in Version 3.2; will be removed in 4.0
+
+ */
+- (NSString*)stringWithObject:(id)value
+ error:(NSError**)error __attribute__ ((deprecated));
+
+
+@end
diff --git a/Pods/SBJson/Classes/SBJsonWriter.m b/Pods/SBJson/Classes/SBJsonWriter.m
new file mode 100644
index 0000000..105acb9
--- /dev/null
+++ b/Pods/SBJson/Classes/SBJsonWriter.m
@@ -0,0 +1,116 @@
+/*
+ Copyright (C) 2009 Stig Brautaset. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if !__has_feature(objc_arc)
+#error "This source file must be compiled with ARC enabled!"
+#endif
+
+#import "SBJsonWriter.h"
+#import "SBJsonStreamWriter.h"
+#import "SBJsonStreamWriterAccumulator.h"
+
+
+@interface SBJsonWriter ()
+@property (copy) NSString *error;
+@end
+
+@implementation SBJsonWriter
+
+@synthesize sortKeys;
+@synthesize humanReadable;
+
+@synthesize error;
+@synthesize maxDepth;
+
+@synthesize sortKeysComparator;
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ self.maxDepth = 32u;
+ }
+ return self;
+}
+
+
+- (NSString*)stringWithObject:(id)value {
+ NSData *data = [self dataWithObject:value];
+ if (data)
+ return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
+ return nil;
+}
+
+- (NSString*)stringWithObject:(id)value error:(NSError**)error_ {
+ NSString *tmp = [self stringWithObject:value];
+ if (tmp)
+ return tmp;
+
+ if (error_) {
+ NSDictionary *ui = [NSDictionary dictionaryWithObjectsAndKeys:error, NSLocalizedDescriptionKey, nil];
+ *error_ = [NSError errorWithDomain:@"org.brautaset.SBJsonWriter.ErrorDomain" code:0 userInfo:ui];
+ }
+
+ return nil;
+}
+
+- (NSData*)dataWithObject:(id)object {
+ self.error = nil;
+
+ SBJsonStreamWriterAccumulator *accumulator = [[SBJsonStreamWriterAccumulator alloc] init];
+
+ SBJsonStreamWriter *streamWriter = [[SBJsonStreamWriter alloc] init];
+ streamWriter.sortKeys = self.sortKeys;
+ streamWriter.maxDepth = self.maxDepth;
+ streamWriter.sortKeysComparator = self.sortKeysComparator;
+ streamWriter.humanReadable = self.humanReadable;
+ streamWriter.delegate = accumulator;
+
+ BOOL ok = NO;
+ if ([object isKindOfClass:[NSDictionary class]])
+ ok = [streamWriter writeObject:object];
+
+ else if ([object isKindOfClass:[NSArray class]])
+ ok = [streamWriter writeArray:object];
+
+ else if ([object respondsToSelector:@selector(proxyForJson)])
+ return [self dataWithObject:[object proxyForJson]];
+ else {
+ self.error = @"Not valid type for JSON";
+ return nil;
+ }
+
+ if (ok)
+ return accumulator.data;
+
+ self.error = streamWriter.error;
+ return nil;
+}
+
+
+@end
diff --git a/Pods/SBJson/README.md b/Pods/SBJson/README.md
new file mode 100644
index 0000000..8700dfc
--- /dev/null
+++ b/Pods/SBJson/README.md
@@ -0,0 +1,80 @@
+JSON (JavaScript Object Notation) is a light-weight data interchange
+format that's easy to read and write for humans and computers alike.
+This library implements strict JSON parsing and generation in
+Objective-C.
+
+Features
+========
+
+* Streaming Support (see SBJsonStreamParser & SBJsonStreamWriter)
+* Configurable recursion depth limit
+* Automatic Reference Counting (ARC)
+* Optionally sort dictionary keys in JSON output
+* Optional pretty-printing of JSON output
+
+Links
+=====
+
+* [GitHub project page](http://github.com/stig/json-framework)
+* [Online API docs](http://sbjson.org/api/3.2)
+* [SBJson tag on Stack Overflow](http://stackoverflow.com/questions/tagged/sbjson)
+
+
+Installation
+============
+
+The simplest way to start using JSON in your application is to copy all
+the source files (the contents of the `Classes` folder) into your own
+Xcode project.
+
+1. In the Finder, navigate into the `Classes` folder.
+2. Select all the files and drag-and-drop them into your Xcode project.
+3. Tick the **Copy items into destination group's folder** option.
+4. Use `#import "SBJson.h"` in your source files.
+
+That should be it. Now create that Twitter client!
+
+*If you're upgrading from a previous version, make sure you're deleting the
+old SBJson classes first, moving all the files to Trash.*
+
+
+Alternative Installation Instructions
+=====================================
+
+* With Xcode 4's workspaces it has become much simpler to link to dependant
+projects. The examples in the distribution link to the iOS library and Mac
+framework, respectively. Des Hartman wrote [a blog post with step-by-step
+instructions for iOS][link-ios]. This is the recommended way if you need to
+make local changes to SBJson.
+* You can also install SBJson using [CocoaPods](http://cocoapods.org).
+
+[link-ios]: http://deshartman.wordpress.com/2011/09/02/configuring-sbjson-framework-for-xcode-4-2/
+
+
+License
+=======
+
+Copyright (C) 2007-2013 Stig Brautaset. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of the author nor the names of its contributors may be used
+ to endorse or promote products derived from this software without specific
+ prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Pods/SDWebImage/LICENSE b/Pods/SDWebImage/LICENSE
new file mode 100644
index 0000000..ae783e1
--- /dev/null
+++ b/Pods/SDWebImage/LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2009 Olivier Poitrey
+
+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.
+
diff --git a/Pods/SDWebImage/README.md b/Pods/SDWebImage/README.md
new file mode 100644
index 0000000..3d8d6a0
--- /dev/null
+++ b/Pods/SDWebImage/README.md
@@ -0,0 +1,256 @@
+Web Image
+=========
+
+This library provides a category for UIImageVIew with support for remote images coming from the web.
+
+It provides:
+
+- An UIImageView category adding web image and cache management to the Cocoa Touch framework
+- An asynchronous image downloader
+- An asynchronous memory + disk image caching with automatic cache expiration handling
+- Animated GIF support
+- WebP format support
+- A background image decompression
+- A guarantee that the same URL won't be downloaded several times
+- A guarantee that bogus URLs won't be retried again and again
+- A guarantee that main thread will never be blocked
+- Performances!
+- Use GCD and ARC
+
+NOTE: The version 3.0 of SDWebImage isn't fully backward compatible with 2.0 and requires iOS 5.0
+minimum deployement version. If you need iOS < 5.0 support, please use the last [2.0 version](https://github.com/rs/SDWebImage/tree/2.0-compat).
+
+[How is SDWebImage better than X?](https://github.com/rs/SDWebImage/wiki/How-is-SDWebImage-better-than-X%3F)
+
+Who Use It
+----------
+
+Find out [who uses SDWebImage](https://github.com/rs/SDWebImage/wiki/Who-Uses-SDWebImage) and add your app to the list.
+
+How To Use
+----------
+
+API documentation is available at [http://hackemist.com/SDWebImage/doc/](http://hackemist.com/SDWebImage/doc/)
+
+### Using UIImageView+WebCache category with UITableView
+
+Just #import the UIImageView+WebCache.h header, and call the setImageWithURL:placeholderImage:
+method from the tableView:cellForRowAtIndexPath: UITableViewDataSource method. Everything will be
+handled for you, from async downloads to caching management.
+
+```objective-c
+#import
+
+...
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ static NSString *MyIdentifier = @"MyIdentifier";
+
+ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
+
+ if (cell == nil)
+ {
+ cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
+ reuseIdentifier:MyIdentifier] autorelease];
+ }
+
+ // Here we use the new provided setImageWithURL: method to load the web image
+ [cell.imageView setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]
+ placeholderImage:[UIImage imageNamed:@"placeholder.png"]];
+
+ cell.textLabel.text = @"My Text";
+ return cell;
+}
+```
+
+### Using blocks
+
+With blocks, you can be notified about the image download progress and whenever the image retrival
+has completed with success or not:
+
+```objective-c
+// Here we use the new provided setImageWithURL: method to load the web image
+[cell.imageView setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]
+ placeholderImage:[UIImage imageNamed:@"placeholder.png"]
+ completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) {... completion code here ...}];
+```
+
+Note: neither your success nor failure block will be call if your image request is canceled before completion.
+
+### Using SDWebImageManager
+
+The SDWebImageManager is the class behind the UIImageView+WebCache category. It ties the
+asynchronous downloader with the image cache store. You can use this class directly to benefit
+from web image downloading with caching in another context than a UIView (ie: with Cocoa).
+
+Here is a simple example of how to use SDWebImageManager:
+
+```objective-c
+SDWebImageManager *manager = [SDWebImageManager sharedManager];
+[manager downloadWithURL:imageURL
+ options:0
+ progress:^(NSUInteger receivedSize, long long expectedSize)
+ {
+ // progression tracking code
+ }
+ completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
+ {
+ if (image)
+ {
+ // do something with image
+ }
+ }];
+```
+
+### Using Asynchronous Image Downloader Independently
+
+It's also possible to use the async image downloader independently:
+
+```objective-c
+[SDWebImageDownloader.sharedDownloader downloadImageWithURL:imageURL
+ options:0
+ progress:^(NSUInteger receivedSize, long long expectedSize)
+ {
+ // progression tracking code
+ }
+ completed:^(UIImage *image, NSData *data, NSError *error, BOOL finished)
+ {
+ if (image && finished)
+ {
+ // do something with image
+ }
+ }];
+```
+
+### Using Asynchronous Image Caching Independently
+
+It is also possible to use the aync based image cache store independently. SDImageCache
+maintains a memory cache and an optional disk cache. Disk cache write operations are performed
+asynchronous so it doesn't add unnecessary latency to the UI.
+
+The SDImageCache class provides a singleton instance for convenience but you can create your own
+instance if you want to create separated cache namespace.
+
+To lookup the cache, you use the imageForKey: method. If the method returns nil, it means the cache
+doesn't currently own the image. You are thus responsible for generating and caching it. The cache
+key is an application unique identifier for the image to cache. It is generally the absolute URL of
+the image.
+
+```objective-c
+SDImageCache *imageCache = [SDImageCache.alloc initWithNamespace:@"myNamespace"];
+[imageCache queryDiskCacheForKey:myCacheKey done:^(UIImage *image)
+{
+ // image is not nil if image was found
+}];
+```
+
+By default SDImageCache will lookup the disk cache if an image can't be found in the memory cache.
+You can prevent this from happening by calling the alternative method `imageFromMemoryCacheForKey:`.
+
+To store an image into the cache, you use the storeImage:forKey: method:
+
+```objective-c
+[[SDImageCache sharedImageCache] storeImage:myImage forKey:myCacheKey];
+```
+
+By default, the image will be stored in memory cache as well as on disk cache (asynchronously). If
+you want only the memory cache, use the alternative method storeImage:forKey:toDisk: with a negative
+third argument.
+
+### Using cache key filter
+
+Sometime, you may not want to use the image URL as cache key because part of the URL is dynamic
+(i.e.: for access control purpose). SDWebImageManager provides a way to set a cache key filter that
+takes the NSURL as input, and output a cache key NSString.
+
+The following example sets a filter in the application delegate that will remove any query-string from
+the URL before to use it as a cache key:
+
+```objective-c
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ SDWebImageManager.sharedManager.cacheKeyFilter:^(NSURL *url)
+ {
+ url = [[[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path] autorelease];
+ return [url absoluteString];
+ };
+
+ // Your app init code...
+ return YES;
+}
+```
+
+
+Common Problems
+---------------
+
+### Using dynamic image size with UITableViewCell
+
+UITableView determins the size of the image by the first image set for a cell. If your remote images
+don't have the same size as your placeholder image, you may experience strange anamorphic scaling issue.
+The following article gives a way to workaround this issue:
+
+[http://www.wrichards.com/blog/2011/11/sdwebimage-fixed-width-cell-images/](http://www.wrichards.com/blog/2011/11/sdwebimage-fixed-width-cell-images/)
+
+
+### Handle image refresh
+
+SDWebImage does very aggressive caching by default. It ignores all kind of caching control header returned by the HTTP server and cache the returned images with no time restriction. It implies your images URLs are static URLs pointing to images that never change. If the pointed image happen to change, some parts of the URL should change accordingly.
+
+If you don't control the image server you're using, you may not be able to change the URL when its content is updated. This is the case for Facebook avatar URLs for instance. In such case, you may use the `SDWebImageRefreshCached` flag. This will slightly degrade the performance but will respect the HTTP caching control headers:
+
+``` objective-c
+[imageView setImageWithURL:[NSURL URLWithString:@"https://graph.facebook.com/olivier.poitrey/picture"]
+ placeholderImage:[UIImage imageNamed:@"avatar-placeholder.png"]
+ options:SDWebImageRefreshCached];
+```
+
+### Add a progress indicator
+
+See this category: https://github.com/JJSaccolo/UIActivityIndicator-for-SDWebImage
+
+Installation
+------------
+
+There are two ways to use this in your project: copy all the files into your project, or import the project as a static library.
+
+### Add the SDWebImage project to your project
+
+- Download and unzip the last version of the framework from the [download page](https://github.com/rs/SDWebImage/releases)
+- Right-click on the project navigator and select "Add Files to "Your Project":
+- In the dialog, select SDWebImage.framework:
+- Check the "Copy items into destination group's folder (if needed)" checkbox
+
+### Add dependencies
+
+- In you application project app’s target settings, find the "Build Phases" section and open the "Link Binary With Libraries" block:
+- Click the "+" button again and select the "ImageIO.framework", this is needed by the progressive download feature:
+
+### Add Linker Flag
+
+Open the "Build Settings" tab, in the "Linking" section, locate the "Other Linker Flags" setting and add the "-ObjC" flag:
+
+
+
+### Import headers in your source files
+
+In the source files where you need to use the library, import the header file:
+
+```objective-c
+#import
+```
+
+### Build Project
+
+At this point your workspace should build without error. If you are having problem, post to the Issue and the
+community can help you solve it.
+
+Future Enhancements
+-------------------
+
+- LRU memory cache cleanup instead of reset on memory warning
+
+## Licenses
+
+All source code is licensed under the [MIT License](https://raw.github.com/rs/SDWebImage/master/LICENSE).
diff --git a/Pods/SDWebImage/SDWebImage/NSData+GIF.h b/Pods/SDWebImage/SDWebImage/NSData+GIF.h
new file mode 100644
index 0000000..9065bc6
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/NSData+GIF.h
@@ -0,0 +1,15 @@
+//
+// NSData+GIF.h
+// SDWebImage
+//
+// Created by Andy LaVoy on 4/28/13.
+// Copyright (c) 2013 Dailymotion. All rights reserved.
+//
+
+#import
+
+@interface NSData (GIF)
+
+- (BOOL)sd_isGIF;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/NSData+GIF.m b/Pods/SDWebImage/SDWebImage/NSData+GIF.m
new file mode 100644
index 0000000..13f2e98
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/NSData+GIF.m
@@ -0,0 +1,32 @@
+//
+// NSData+GIF.m
+// SDWebImage
+//
+// Created by Andy LaVoy on 4/28/13.
+// Copyright (c) 2013 Dailymotion. All rights reserved.
+//
+
+#import "NSData+GIF.h"
+
+@implementation NSData (GIF)
+
+- (BOOL)sd_isGIF
+{
+ BOOL isGIF = NO;
+
+ uint8_t c;
+ [self getBytes:&c length:1];
+
+ switch (c)
+ {
+ case 0x47: // probably a GIF
+ isGIF = YES;
+ break;
+ default:
+ break;
+ }
+
+ return isGIF;
+}
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDImageCache.h b/Pods/SDWebImage/SDWebImage/SDImageCache.h
new file mode 100644
index 0000000..5c8d814
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDImageCache.h
@@ -0,0 +1,173 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import
+#import "SDWebImageCompat.h"
+
+enum SDImageCacheType
+{
+ /**
+ * The image wasn't available the SDWebImage caches, but was downloaded from the web.
+ */
+ SDImageCacheTypeNone = 0,
+ /**
+ * The image was obtained from the disk cache.
+ */
+ SDImageCacheTypeDisk,
+ /**
+ * The image was obtained from the memory cache.
+ */
+ SDImageCacheTypeMemory
+};
+typedef enum SDImageCacheType SDImageCacheType;
+
+/**
+ * SDImageCache maintains a memory cache and an optional disk cache. Disk cache write operations are performed
+ * asynchronous so it doesn’t add unnecessary latency to the UI.
+ */
+@interface SDImageCache : NSObject
+
+/**
+ * The maximum "total cost" of the in-memory image cache. The cost function is the number of pixels held in memory.
+ */
+@property (assign, nonatomic) NSUInteger maxMemoryCost;
+
+/**
+ * The maximum length of time to keep an image in the cache, in seconds
+ */
+@property (assign, nonatomic) NSInteger maxCacheAge;
+
+/**
+ * The maximum size of the cache, in bytes.
+ */
+@property (assign, nonatomic) unsigned long long maxCacheSize;
+
+/**
+ * Returns global shared cache instance
+ *
+ * @return SDImageCache global instance
+ */
++ (SDImageCache *)sharedImageCache;
+
+/**
+ * Init a new cache store with a specific namespace
+ *
+ * @param ns The namespace to use for this cache store
+ */
+- (id)initWithNamespace:(NSString *)ns;
+
+/**
+ * Add a read-only cache path to search for images pre-cached by SDImageCache
+ * Useful if you want to bundle pre-loaded images with your app
+ *
+ * @param path The path to use for this read-only cache path
+ */
+- (void)addReadOnlyCachePath:(NSString *)path;
+
+/**
+ * Store an image into memory and disk cache at the given key.
+ *
+ * @param image The image to store
+ * @param key The unique image cache key, usually it's image absolute URL
+ */
+- (void)storeImage:(UIImage *)image forKey:(NSString *)key;
+
+/**
+ * Store an image into memory and optionally disk cache at the given key.
+ *
+ * @param image The image to store
+ * @param key The unique image cache key, usually it's image absolute URL
+ * @param toDisk Store the image to disk cache if YES
+ */
+- (void)storeImage:(UIImage *)image forKey:(NSString *)key toDisk:(BOOL)toDisk;
+
+/**
+ * Store an image into memory and optionally disk cache at the given key.
+ *
+ * @param image The image to store
+ * @param recalculate BOOL indicates if imageData can be used or a new data should be constructed from the UIImage
+ * @param imageData The image data as returned by the server, this representation will be used for disk storage
+ * instead of converting the given image object into a storable/compressed image format in order
+ * to save quality and CPU
+ * @param key The unique image cache key, usually it's image absolute URL
+ * @param toDisk Store the image to disk cache if YES
+ */
+- (void)storeImage:(UIImage *)image recalculateFromImage:(BOOL)recalculate imageData:(NSData *)imageData forKey:(NSString *)key toDisk:(BOOL)toDisk;
+
+/**
+ * Query the disk cache asynchronously.
+ *
+ * @param key The unique key used to store the wanted image
+ */
+- (NSOperation *)queryDiskCacheForKey:(NSString *)key done:(void (^)(UIImage *image, SDImageCacheType cacheType))doneBlock;
+
+/**
+ * Query the memory cache synchronously.
+ *
+ * @param key The unique key used to store the wanted image
+ */
+- (UIImage *)imageFromMemoryCacheForKey:(NSString *)key;
+
+/**
+ * Query the disk cache synchronously after checking the memory cache.
+ *
+ * @param key The unique key used to store the wanted image
+ */
+- (UIImage *)imageFromDiskCacheForKey:(NSString *)key;
+
+/**
+ * Remove the image from memory and disk cache synchronously
+ *
+ * @param key The unique image cache key
+ */
+- (void)removeImageForKey:(NSString *)key;
+
+/**
+ * Remove the image from memory and optionaly disk cache synchronously
+ *
+ * @param key The unique image cache key
+ * @param fromDisk Also remove cache entry from disk if YES
+ */
+- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk;
+
+/**
+ * Clear all memory cached images
+ */
+- (void)clearMemory;
+
+/**
+ * Clear all disk cached images
+ */
+- (void)clearDisk;
+
+/**
+ * Remove all expired cached image from disk
+ */
+- (void)cleanDisk;
+
+/**
+ * Get the size used by the disk cache
+ */
+- (unsigned long long)getSize;
+
+/**
+ * Get the number of images in the disk cache
+ */
+- (int)getDiskCount;
+
+/**
+ * Asynchronously calculate the disk cache's size.
+ */
+- (void)calculateSizeWithCompletionBlock:(void (^)(NSUInteger fileCount, unsigned long long totalSize))completionBlock;
+
+/**
+ * Check if image exists in cache already
+ */
+- (BOOL)diskImageExistsWithKey:(NSString *)key;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDImageCache.m b/Pods/SDWebImage/SDWebImage/SDImageCache.m
new file mode 100644
index 0000000..07995df
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDImageCache.m
@@ -0,0 +1,569 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "SDImageCache.h"
+#import "SDWebImageDecoder.h"
+#import "UIImage+MultiFormat.h"
+#import
+#import
+#import
+
+static const NSInteger kDefaultCacheMaxCacheAge = 60 * 60 * 24 * 7; // 1 week
+// PNG signature bytes and data (below)
+static unsigned char kPNGSignatureBytes[8] = {0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A};
+static NSData *kPNGSignatureData = nil;
+
+BOOL ImageDataHasPNGPreffix(NSData *data);
+BOOL ImageDataHasPNGPreffix(NSData *data)
+{
+ NSUInteger pngSignatureLength = [kPNGSignatureData length];
+ if ([data length] >= pngSignatureLength)
+ {
+ if ([[data subdataWithRange:NSMakeRange(0, pngSignatureLength)] isEqualToData:kPNGSignatureData])
+ {
+ return YES;
+ }
+ }
+
+ return NO;
+}
+
+@interface SDImageCache ()
+
+@property (strong, nonatomic) NSCache *memCache;
+@property (strong, nonatomic) NSString *diskCachePath;
+@property (strong, nonatomic) NSMutableArray *customPaths;
+@property (SDDispatchQueueSetterSementics, nonatomic) dispatch_queue_t ioQueue;
+
+@end
+
+
+@implementation SDImageCache
+{
+ NSFileManager *_fileManager;
+}
+
++ (SDImageCache *)sharedImageCache
+{
+ static dispatch_once_t once;
+ static id instance;
+ dispatch_once(&once, ^
+ {
+ instance = self.new;
+ kPNGSignatureData = [NSData dataWithBytes:kPNGSignatureBytes length:8];
+ });
+ return instance;
+}
+
+- (id)init
+{
+ return [self initWithNamespace:@"default"];
+}
+
+- (id)initWithNamespace:(NSString *)ns
+{
+ if ((self = [super init]))
+ {
+ NSString *fullNamespace = [@"com.hackemist.SDWebImageCache." stringByAppendingString:ns];
+
+ // Create IO serial queue
+ _ioQueue = dispatch_queue_create("com.hackemist.SDWebImageCache", DISPATCH_QUEUE_SERIAL);
+
+ // Init default values
+ _maxCacheAge = kDefaultCacheMaxCacheAge;
+
+ // Init the memory cache
+ _memCache = [[NSCache alloc] init];
+ _memCache.name = fullNamespace;
+
+ // Init the disk cache
+ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
+ _diskCachePath = [paths[0] stringByAppendingPathComponent:fullNamespace];
+
+ dispatch_sync(_ioQueue, ^
+ {
+ _fileManager = NSFileManager.new;
+ });
+
+#if TARGET_OS_IPHONE
+ // Subscribe to app events
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(clearMemory)
+ name:UIApplicationDidReceiveMemoryWarningNotification
+ object:nil];
+
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(cleanDisk)
+ name:UIApplicationWillTerminateNotification
+ object:nil];
+
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(backgroundCleanDisk)
+ name:UIApplicationDidEnterBackgroundNotification
+ object:nil];
+#endif
+ }
+
+ return self;
+}
+
+- (void)dealloc
+{
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
+ SDDispatchQueueRelease(_ioQueue);
+}
+
+- (void)addReadOnlyCachePath:(NSString *)path
+{
+ if (!self.customPaths)
+ {
+ self.customPaths = NSMutableArray.new;
+ }
+
+ if (![self.customPaths containsObject:path])
+ {
+ [self.customPaths addObject:path];
+ }
+}
+
+#pragma mark SDImageCache (private)
+
+- (NSString *)cachePathForKey:(NSString *)key inPath:(NSString *)path
+{
+ NSString *filename = [self cachedFileNameForKey:key];
+ return [path stringByAppendingPathComponent:filename];
+}
+
+- (NSString *)defaultCachePathForKey:(NSString *)key
+{
+ return [self cachePathForKey:key inPath:self.diskCachePath];
+}
+
+- (NSString *)cachedFileNameForKey:(NSString *)key
+{
+ const char *str = [key UTF8String];
+ if (str == NULL)
+ {
+ str = "";
+ }
+ unsigned char r[CC_MD5_DIGEST_LENGTH];
+ CC_MD5(str, (CC_LONG)strlen(str), r);
+ NSString *filename = [NSString stringWithFormat:@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
+ r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], r[9], r[10], r[11], r[12], r[13], r[14], r[15]];
+
+ return filename;
+}
+
+#pragma mark ImageCache
+
+- (void)storeImage:(UIImage *)image recalculateFromImage:(BOOL)recalculate imageData:(NSData *)imageData forKey:(NSString *)key toDisk:(BOOL)toDisk
+{
+ if (!image || !key)
+ {
+ return;
+ }
+
+ [self.memCache setObject:image forKey:key cost:image.size.height * image.size.width * image.scale];
+
+ if (toDisk)
+ {
+ dispatch_async(self.ioQueue, ^
+ {
+ NSData *data = imageData;
+
+ if (image && (recalculate || !data))
+ {
+#if TARGET_OS_IPHONE
+ // We need to determine if the image is a PNG or a JPEG
+ // PNGs are easier to detect because they have a unique signature (http://www.w3.org/TR/PNG-Structure.html)
+ // The first eight bytes of a PNG file always contain the following (decimal) values:
+ // 137 80 78 71 13 10 26 10
+
+ // We assume the image is PNG, in case the imageData is nil (i.e. if trying to save a UIImage directly),
+ // we will consider it PNG to avoid loosing the transparency
+ BOOL imageIsPng = YES;
+
+ // But if we have an image data, we will look at the preffix
+ if ([imageData length] >= [kPNGSignatureData length])
+ {
+ imageIsPng = ImageDataHasPNGPreffix(imageData);
+ }
+
+ if (imageIsPng)
+ {
+ data = UIImagePNGRepresentation(image);
+ }
+ else
+ {
+ data = UIImageJPEGRepresentation(image, (CGFloat)1.0);
+ }
+#else
+ data = [NSBitmapImageRep representationOfImageRepsInArray:image.representations usingType: NSJPEGFileType properties:nil];
+#endif
+ }
+
+ if (data)
+ {
+ // Can't use defaultManager another thread
+ NSFileManager *fileManager = NSFileManager.new;
+
+ if (![fileManager fileExistsAtPath:_diskCachePath])
+ {
+ [fileManager createDirectoryAtPath:_diskCachePath withIntermediateDirectories:YES attributes:nil error:NULL];
+ }
+
+ [fileManager createFileAtPath:[self defaultCachePathForKey:key] contents:data attributes:nil];
+ }
+ });
+ }
+}
+
+- (void)storeImage:(UIImage *)image forKey:(NSString *)key
+{
+ [self storeImage:image recalculateFromImage:YES imageData:nil forKey:key toDisk:YES];
+}
+
+- (void)storeImage:(UIImage *)image forKey:(NSString *)key toDisk:(BOOL)toDisk
+{
+ [self storeImage:image recalculateFromImage:YES imageData:nil forKey:key toDisk:toDisk];
+}
+
+- (BOOL)diskImageExistsWithKey:(NSString *)key
+{
+ __block BOOL exists = NO;
+ dispatch_sync(_ioQueue, ^
+ {
+ exists = [_fileManager fileExistsAtPath:[self defaultCachePathForKey:key]];
+ });
+
+ return exists;
+}
+
+- (UIImage *)imageFromMemoryCacheForKey:(NSString *)key
+{
+ return [self.memCache objectForKey:key];
+}
+
+- (UIImage *)imageFromDiskCacheForKey:(NSString *)key
+{
+ // First check the in-memory cache...
+ UIImage *image = [self imageFromMemoryCacheForKey:key];
+ if (image)
+ {
+ return image;
+ }
+
+ // Second check the disk cache...
+ UIImage *diskImage = [self diskImageForKey:key];
+ if (diskImage)
+ {
+ CGFloat cost = diskImage.size.height * diskImage.size.width * diskImage.scale;
+ [self.memCache setObject:diskImage forKey:key cost:cost];
+ }
+
+ return diskImage;
+}
+
+- (NSData *)diskImageDataBySearchingAllPathsForKey:(NSString *)key
+{
+ NSString *defaultPath = [self defaultCachePathForKey:key];
+ NSData *data = [NSData dataWithContentsOfFile:defaultPath];
+ if (data)
+ {
+ return data;
+ }
+
+ for (NSString *path in self.customPaths)
+ {
+ NSString *filePath = [self cachePathForKey:key inPath:path];
+ NSData *imageData = [NSData dataWithContentsOfFile:filePath];
+ if (imageData) {
+ return imageData;
+ }
+ }
+
+ return nil;
+}
+
+- (UIImage *)diskImageForKey:(NSString *)key
+{
+ NSData *data = [self diskImageDataBySearchingAllPathsForKey:key];
+ if (data)
+ {
+ UIImage *image = [UIImage sd_imageWithData:data];
+ image = [self scaledImageForKey:key image:image];
+ image = [UIImage decodedImageWithImage:image];
+ return image;
+ }
+ else
+ {
+ return nil;
+ }
+}
+
+- (UIImage *)scaledImageForKey:(NSString *)key image:(UIImage *)image
+{
+ return SDScaledImageForKey(key, image);
+}
+
+- (NSOperation *)queryDiskCacheForKey:(NSString *)key done:(void (^)(UIImage *image, SDImageCacheType cacheType))doneBlock
+{
+ NSOperation *operation = NSOperation.new;
+
+ if (!doneBlock) return nil;
+
+ if (!key)
+ {
+ doneBlock(nil, SDImageCacheTypeNone);
+ return nil;
+ }
+
+ // First check the in-memory cache...
+ UIImage *image = [self imageFromMemoryCacheForKey:key];
+ if (image)
+ {
+ doneBlock(image, SDImageCacheTypeMemory);
+ return nil;
+ }
+
+ dispatch_async(self.ioQueue, ^
+ {
+ if (operation.isCancelled)
+ {
+ return;
+ }
+
+ @autoreleasepool
+ {
+ UIImage *diskImage = [self diskImageForKey:key];
+ if (diskImage)
+ {
+ CGFloat cost = diskImage.size.height * diskImage.size.width * diskImage.scale;
+ [self.memCache setObject:diskImage forKey:key cost:cost];
+ }
+
+ dispatch_main_sync_safe(^
+ {
+ doneBlock(diskImage, SDImageCacheTypeDisk);
+ });
+ }
+ });
+
+ return operation;
+}
+
+- (void)removeImageForKey:(NSString *)key
+{
+ [self removeImageForKey:key fromDisk:YES];
+}
+
+- (void)removeImageForKey:(NSString *)key fromDisk:(BOOL)fromDisk
+{
+ if (key == nil)
+ {
+ return;
+ }
+
+ [self.memCache removeObjectForKey:key];
+
+ if (fromDisk)
+ {
+ dispatch_async(self.ioQueue, ^
+ {
+ [[NSFileManager defaultManager] removeItemAtPath:[self defaultCachePathForKey:key] error:nil];
+ });
+ }
+}
+
+- (void)setMaxMemoryCost:(NSUInteger)maxMemoryCost
+{
+ self.memCache.totalCostLimit = maxMemoryCost;
+}
+
+- (NSUInteger)maxMemoryCost
+{
+ return self.memCache.totalCostLimit;
+}
+
+- (void)clearMemory
+{
+ [self.memCache removeAllObjects];
+}
+
+- (void)clearDisk
+{
+ dispatch_async(self.ioQueue, ^
+ {
+ [[NSFileManager defaultManager] removeItemAtPath:self.diskCachePath error:nil];
+ [[NSFileManager defaultManager] createDirectoryAtPath:self.diskCachePath
+ withIntermediateDirectories:YES
+ attributes:nil
+ error:NULL];
+ });
+}
+
+- (void)cleanDisk
+{
+ dispatch_async(self.ioQueue, ^
+ {
+ NSFileManager *fileManager = [NSFileManager defaultManager];
+ NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES];
+ NSArray *resourceKeys = @[ NSURLIsDirectoryKey, NSURLContentModificationDateKey, NSURLTotalFileAllocatedSizeKey ];
+
+ // This enumerator prefetches useful properties for our cache files.
+ NSDirectoryEnumerator *fileEnumerator = [fileManager enumeratorAtURL:diskCacheURL
+ includingPropertiesForKeys:resourceKeys
+ options:NSDirectoryEnumerationSkipsHiddenFiles
+ errorHandler:NULL];
+
+ NSDate *expirationDate = [NSDate dateWithTimeIntervalSinceNow:-self.maxCacheAge];
+ NSMutableDictionary *cacheFiles = [NSMutableDictionary dictionary];
+ unsigned long long currentCacheSize = 0;
+
+ // Enumerate all of the files in the cache directory. This loop has two purposes:
+ //
+ // 1. Removing files that are older than the expiration date.
+ // 2. Storing file attributes for the size-based cleanup pass.
+ for (NSURL *fileURL in fileEnumerator)
+ {
+ NSDictionary *resourceValues = [fileURL resourceValuesForKeys:resourceKeys error:NULL];
+
+ // Skip directories.
+ if ([resourceValues[NSURLIsDirectoryKey] boolValue])
+ {
+ continue;
+ }
+
+ // Remove files that are older than the expiration date;
+ NSDate *modificationDate = resourceValues[NSURLContentModificationDateKey];
+ if ([[modificationDate laterDate:expirationDate] isEqualToDate:expirationDate])
+ {
+ [fileManager removeItemAtURL:fileURL error:nil];
+ continue;
+ }
+
+ // Store a reference to this file and account for its total size.
+ NSNumber *totalAllocatedSize = resourceValues[NSURLTotalFileAllocatedSizeKey];
+ currentCacheSize += [totalAllocatedSize unsignedLongLongValue];
+ [cacheFiles setObject:resourceValues forKey:fileURL];
+ }
+
+ // If our remaining disk cache exceeds a configured maximum size, perform a second
+ // size-based cleanup pass. We delete the oldest files first.
+ if (self.maxCacheSize > 0 && currentCacheSize > self.maxCacheSize)
+ {
+ // Target half of our maximum cache size for this cleanup pass.
+ const unsigned long long desiredCacheSize = self.maxCacheSize / 2;
+
+ // Sort the remaining cache files by their last modification time (oldest first).
+ NSArray *sortedFiles = [cacheFiles keysSortedByValueWithOptions:NSSortConcurrent
+ usingComparator:^NSComparisonResult(id obj1, id obj2)
+ {
+ return [obj1[NSURLContentModificationDateKey] compare:obj2[NSURLContentModificationDateKey]];
+ }];
+
+ // Delete files until we fall below our desired cache size.
+ for (NSURL *fileURL in sortedFiles)
+ {
+ if ([fileManager removeItemAtURL:fileURL error:nil])
+ {
+ NSDictionary *resourceValues = cacheFiles[fileURL];
+ NSNumber *totalAllocatedSize = resourceValues[NSURLTotalFileAllocatedSizeKey];
+ currentCacheSize -= [totalAllocatedSize unsignedLongLongValue];
+
+ if (currentCacheSize < desiredCacheSize)
+ {
+ break;
+ }
+ }
+ }
+ }
+ });
+}
+
+- (void)backgroundCleanDisk
+{
+ UIApplication *application = [UIApplication sharedApplication];
+ __block UIBackgroundTaskIdentifier bgTask = [application beginBackgroundTaskWithExpirationHandler:^
+ {
+ // Clean up any unfinished task business by marking where you
+ // stopped or ending the task outright.
+ [application endBackgroundTask:bgTask];
+ bgTask = UIBackgroundTaskInvalid;
+ }];
+
+ // Start the long-running task and return immediately.
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^
+ {
+ // Do the work associated with the task, preferably in chunks.
+ [self cleanDisk];
+
+ [application endBackgroundTask:bgTask];
+ bgTask = UIBackgroundTaskInvalid;
+ });
+}
+
+- (unsigned long long)getSize
+{
+ unsigned long long size = 0;
+ NSDirectoryEnumerator *fileEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:self.diskCachePath];
+ for (NSString *fileName in fileEnumerator)
+ {
+ NSString *filePath = [self.diskCachePath stringByAppendingPathComponent:fileName];
+ NSDictionary *attrs = [[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:nil];
+ size += [attrs fileSize];
+ }
+ return size;
+}
+
+- (int)getDiskCount
+{
+ int count = 0;
+ NSDirectoryEnumerator *fileEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:self.diskCachePath];
+ for (__unused NSString *fileName in fileEnumerator)
+ {
+ count += 1;
+ }
+
+ return count;
+}
+
+- (void)calculateSizeWithCompletionBlock:(void (^)(NSUInteger fileCount, unsigned long long totalSize))completionBlock
+{
+ NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES];
+
+ dispatch_async(self.ioQueue, ^
+ {
+ NSUInteger fileCount = 0;
+ unsigned long long totalSize = 0;
+
+ NSFileManager *fileManager = [NSFileManager defaultManager];
+ NSDirectoryEnumerator *fileEnumerator = [fileManager enumeratorAtURL:diskCacheURL
+ includingPropertiesForKeys:@[ NSFileSize ]
+ options:NSDirectoryEnumerationSkipsHiddenFiles
+ errorHandler:NULL];
+
+ for (NSURL *fileURL in fileEnumerator)
+ {
+ NSNumber *fileSize;
+ [fileURL getResourceValue:&fileSize forKey:NSURLFileSizeKey error:NULL];
+ totalSize += [fileSize unsignedLongLongValue];
+ fileCount += 1;
+ }
+
+ if (completionBlock)
+ {
+ dispatch_main_sync_safe(^
+ {
+ completionBlock(fileCount, totalSize);
+ });
+ }
+ });
+}
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageCompat.h b/Pods/SDWebImage/SDWebImage/SDWebImageCompat.h
new file mode 100644
index 0000000..934a643
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageCompat.h
@@ -0,0 +1,54 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ * (c) Jamie Pinkham
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import
+
+#ifdef __OBJC_GC__
+#error SDWebImage does not support Objective-C Garbage Collection
+#endif
+
+#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_5_0
+#error SDWebImage doesn't support Deployement Target version < 5.0
+#endif
+
+#if !TARGET_OS_IPHONE
+#import
+#ifndef UIImage
+#define UIImage NSImage
+#endif
+#ifndef UIImageView
+#define UIImageView NSImageView
+#endif
+#else
+#import
+#endif
+
+#if OS_OBJECT_USE_OBJC
+ #undef SDDispatchQueueRelease
+ #undef SDDispatchQueueSetterSementics
+ #define SDDispatchQueueRelease(q)
+ #define SDDispatchQueueSetterSementics strong
+#else
+ #undef SDDispatchQueueRelease
+ #undef SDDispatchQueueSetterSementics
+ #define SDDispatchQueueRelease(q) (dispatch_release(q))
+ #define SDDispatchQueueSetterSementics assign
+#endif
+
+extern UIImage *SDScaledImageForKey(NSString *key, UIImage *image);
+
+#define dispatch_main_sync_safe(block)\
+ if ([NSThread isMainThread])\
+ {\
+ block();\
+ }\
+ else\
+ {\
+ dispatch_sync(dispatch_get_main_queue(), block);\
+ }
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageCompat.m b/Pods/SDWebImage/SDWebImage/SDWebImageCompat.m
new file mode 100644
index 0000000..e88f9fa
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageCompat.m
@@ -0,0 +1,48 @@
+//
+// SDWebImageCompat.m
+// SDWebImage
+//
+// Created by Olivier Poitrey on 11/12/12.
+// Copyright (c) 2012 Dailymotion. All rights reserved.
+//
+
+#import "SDWebImageCompat.h"
+
+#if !__has_feature(objc_arc)
+#error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag
+#endif
+
+inline UIImage *SDScaledImageForKey(NSString *key, UIImage *image)
+{
+ if ([image.images count] > 0)
+ {
+ NSMutableArray *scaledImages = [NSMutableArray array];
+
+ for (UIImage *tempImage in image.images)
+ {
+ [scaledImages addObject:SDScaledImageForKey(key, tempImage)];
+ }
+
+ return [UIImage animatedImageWithImages:scaledImages duration:image.duration];
+ }
+ else
+ {
+ if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
+ {
+ CGFloat scale = 1.0;
+ if (key.length >= 8)
+ {
+ // Search @2x. at the end of the string, before a 3 to 4 extension length (only if key len is 8 or more @2x. + 4 len ext)
+ NSRange range = [key rangeOfString:@"@2x." options:0 range:NSMakeRange(key.length - 8, 5)];
+ if (range.location != NSNotFound)
+ {
+ scale = 2.0;
+ }
+ }
+
+ UIImage *scaledImage = [[UIImage alloc] initWithCGImage:image.CGImage scale:scale orientation:image.imageOrientation];
+ image = scaledImage;
+ }
+ return image;
+ }
+}
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageDecoder.h b/Pods/SDWebImage/SDWebImage/SDWebImageDecoder.h
new file mode 100644
index 0000000..0176a7b
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageDecoder.h
@@ -0,0 +1,18 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * Created by james on 9/28/11.
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import
+#import "SDWebImageCompat.h"
+
+@interface UIImage (ForceDecode)
+
++ (UIImage *)decodedImageWithImage:(UIImage *)image;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageDecoder.m b/Pods/SDWebImage/SDWebImage/SDWebImageDecoder.m
new file mode 100644
index 0000000..6e904d3
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageDecoder.m
@@ -0,0 +1,76 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * Created by james on 9/28/11.
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "SDWebImageDecoder.h"
+
+@implementation UIImage (ForceDecode)
+
++ (UIImage *)decodedImageWithImage:(UIImage *)image
+{
+ if (image.images)
+ {
+ // Do not decode animated images
+ return image;
+ }
+
+ CGImageRef imageRef = image.CGImage;
+ CGSize imageSize = CGSizeMake(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef));
+ CGRect imageRect = (CGRect){.origin = CGPointZero, .size = imageSize};
+
+ CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
+ CGBitmapInfo bitmapInfo = CGImageGetBitmapInfo(imageRef);
+
+ int infoMask = (bitmapInfo & kCGBitmapAlphaInfoMask);
+ BOOL anyNonAlpha = (infoMask == kCGImageAlphaNone ||
+ infoMask == kCGImageAlphaNoneSkipFirst ||
+ infoMask == kCGImageAlphaNoneSkipLast);
+
+ // CGBitmapContextCreate doesn't support kCGImageAlphaNone with RGB.
+ // https://developer.apple.com/library/mac/#qa/qa1037/_index.html
+ if (infoMask == kCGImageAlphaNone && CGColorSpaceGetNumberOfComponents(colorSpace) > 1)
+ {
+ // Unset the old alpha info.
+ bitmapInfo &= ~kCGBitmapAlphaInfoMask;
+
+ // Set noneSkipFirst.
+ bitmapInfo |= kCGImageAlphaNoneSkipFirst;
+ }
+ // Some PNGs tell us they have alpha but only 3 components. Odd.
+ else if (!anyNonAlpha && CGColorSpaceGetNumberOfComponents(colorSpace) == 3)
+ {
+ // Unset the old alpha info.
+ bitmapInfo &= ~kCGBitmapAlphaInfoMask;
+ bitmapInfo |= kCGImageAlphaPremultipliedFirst;
+ }
+
+ // It calculates the bytes-per-row based on the bitsPerComponent and width arguments.
+ CGContextRef context = CGBitmapContextCreate(NULL,
+ imageSize.width,
+ imageSize.height,
+ CGImageGetBitsPerComponent(imageRef),
+ 0,
+ colorSpace,
+ bitmapInfo);
+ CGColorSpaceRelease(colorSpace);
+
+ // If failed, return undecompressed image
+ if (!context) return image;
+
+ CGContextDrawImage(context, imageRect, imageRef);
+ CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context);
+
+ CGContextRelease(context);
+
+ UIImage *decompressedImage = [UIImage imageWithCGImage:decompressedImageRef scale:image.scale orientation:image.imageOrientation];
+ CGImageRelease(decompressedImageRef);
+ return decompressedImage;
+}
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageDownloader.h b/Pods/SDWebImage/SDWebImage/SDWebImageDownloader.h
new file mode 100644
index 0000000..03e1558
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageDownloader.h
@@ -0,0 +1,139 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import
+#import "SDWebImageCompat.h"
+#import "SDWebImageOperation.h"
+
+typedef enum
+{
+ SDWebImageDownloaderLowPriority = 1 << 0,
+ SDWebImageDownloaderProgressiveDownload = 1 << 1,
+ /**
+ * By default, request prevent the of NSURLCache. With this flag, NSURLCache
+ * is used with default policies.
+ */
+ SDWebImageDownloaderUseNSURLCache = 1 << 2,
+ /**
+ * Call completion block with nil image/imageData if the image was read from NSURLCache
+ * (to be combined with `SDWebImageDownloaderUseNSURLCache`).
+ */
+ SDWebImageDownloaderIgnoreCachedResponse = 1 << 3,
+ /**
+ * In iOS 4+, continue the download of the image if the app goes to background. This is achieved by asking the system for
+ * extra time in background to let the request finish. If the background task expires the operation will be cancelled.
+ */
+ SDWebImageDownloaderContinueInBackground = 1 << 4,
+ /**
+ * Handles cookies stored in NSHTTPCookieStore by setting
+ * NSMutableURLRequest.HTTPShouldHandleCookies = YES;
+ */
+ SDWebImageDownloaderHandleCookies = 1 << 5,
+ /**
+ * Enable to allow untrusted SSL ceriticates.
+ * Useful for testing purposes. Use with caution in production.
+ */
+ SDWebImageDownloaderAllowInvalidSSLCertificates = 1 << 6
+
+} SDWebImageDownloaderOptions;
+
+typedef enum
+{
+ SDWebImageDownloaderFIFOExecutionOrder,
+ /**
+ * Default value. All download operations will execute in queue style (first-in-first-out).
+ */
+ SDWebImageDownloaderLIFOExecutionOrder
+ /**
+ * All download operations will execute in stack style (last-in-first-out).
+ */
+} SDWebImageDownloaderExecutionOrder;
+
+extern NSString *const SDWebImageDownloadStartNotification;
+extern NSString *const SDWebImageDownloadStopNotification;
+
+typedef void(^SDWebImageDownloaderProgressBlock)(NSUInteger receivedSize, long long expectedSize);
+typedef void(^SDWebImageDownloaderCompletedBlock)(UIImage *image, NSData *data, NSError *error, BOOL finished);
+
+/**
+ * Asynchronous downloader dedicated and optimized for image loading.
+ */
+@interface SDWebImageDownloader : NSObject
+
+@property (assign, nonatomic) NSInteger maxConcurrentDownloads;
+
+/**
+ * Shows the current amount of downloads that still need to be downloaded
+ */
+
+@property (readonly, nonatomic) NSUInteger currentDownloadCount;
+
+
+/**
+ * The timeout value (in seconds) for the download operation. Default: 15.0.
+ */
+@property (assign, nonatomic) NSTimeInterval downloadTimeout;
+
+
+/**
+ * Changes download operations execution order. Default value is `SDWebImageDownloaderFIFOExecutionOrder`.
+ */
+@property (assign, nonatomic) SDWebImageDownloaderExecutionOrder executionOrder;
+
++ (SDWebImageDownloader *)sharedDownloader;
+
+/**
+ * Set filter to pick headers for downloading image HTTP request.
+ *
+ * This block will be invoked for each downloading image request, returned
+ * NSDictionary will be used as headers in corresponding HTTP request.
+ */
+@property (nonatomic, strong) NSDictionary *(^headersFilter)(NSURL *url, NSDictionary *headers);
+
+/**
+ * Set a value for a HTTP header to be appended to each download HTTP request.
+ *
+ * @param value The value for the header field. Use `nil` value to remove the header.
+ * @param field The name of the header field to set.
+ */
+- (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)field;
+
+/**
+ * Returns the value of the specified HTTP header field.
+ *
+ * @return The value associated with the header field field, or `nil` if there is no corresponding header field.
+ */
+- (NSString *)valueForHTTPHeaderField:(NSString *)field;
+
+/**
+ * Creates a SDWebImageDownloader async downloader instance with a given URL
+ *
+ * The delegate will be informed when the image is finish downloaded or an error has happen.
+ *
+ * @see SDWebImageDownloaderDelegate
+ *
+ * @param url The URL to the image to download
+ * @param options The options to be used for this download
+ * @param progressBlock A block called repeatedly while the image is downloading
+ * @param completedBlock A block called once the download is completed.
+ * If the download succeeded, the image parameter is set, in case of error,
+ * error parameter is set with the error. The last parameter is always YES
+ * if SDWebImageDownloaderProgressiveDownload isn't use. With the
+ * SDWebImageDownloaderProgressiveDownload option, this block is called
+ * repeatedly with the partial image object and the finished argument set to NO
+ * before to be called a last time with the full image and finished argument
+ * set to YES. In case of error, the finished argument is always YES.
+ *
+ * @return A cancellable SDWebImageOperation
+ */
+- (id)downloadImageWithURL:(NSURL *)url
+ options:(SDWebImageDownloaderOptions)options
+ progress:(SDWebImageDownloaderProgressBlock)progressBlock
+ completed:(SDWebImageDownloaderCompletedBlock)completedBlock;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageDownloader.m b/Pods/SDWebImage/SDWebImage/SDWebImageDownloader.m
new file mode 100644
index 0000000..4cf5957
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageDownloader.m
@@ -0,0 +1,240 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "SDWebImageDownloader.h"
+#import "SDWebImageDownloaderOperation.h"
+#import
+
+NSString *const SDWebImageDownloadStartNotification = @"SDWebImageDownloadStartNotification";
+NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNotification";
+
+static NSString *const kProgressCallbackKey = @"progress";
+static NSString *const kCompletedCallbackKey = @"completed";
+
+@interface SDWebImageDownloader ()
+
+@property (strong, nonatomic) NSOperationQueue *downloadQueue;
+@property (weak, nonatomic) NSOperation *lastAddedOperation;
+@property (strong, nonatomic) NSMutableDictionary *URLCallbacks;
+@property (strong, nonatomic) NSMutableDictionary *HTTPHeaders;
+// This queue is used to serialize the handling of the network responses of all the download operation in a single queue
+@property (SDDispatchQueueSetterSementics, nonatomic) dispatch_queue_t barrierQueue;
+
+@end
+
+@implementation SDWebImageDownloader
+
++ (void)initialize
+{
+ // Bind SDNetworkActivityIndicator if available (download it here: http://github.com/rs/SDNetworkActivityIndicator )
+ // To use it, just add #import "SDNetworkActivityIndicator.h" in addition to the SDWebImage import
+ if (NSClassFromString(@"SDNetworkActivityIndicator"))
+ {
+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
+ id activityIndicator = [NSClassFromString(@"SDNetworkActivityIndicator") performSelector:NSSelectorFromString(@"sharedActivityIndicator")];
+#pragma clang diagnostic pop
+
+ // Remove observer in case it was previously added.
+ [[NSNotificationCenter defaultCenter] removeObserver:activityIndicator name:SDWebImageDownloadStartNotification object:nil];
+ [[NSNotificationCenter defaultCenter] removeObserver:activityIndicator name:SDWebImageDownloadStopNotification object:nil];
+
+ [[NSNotificationCenter defaultCenter] addObserver:activityIndicator
+ selector:NSSelectorFromString(@"startActivity")
+ name:SDWebImageDownloadStartNotification object:nil];
+ [[NSNotificationCenter defaultCenter] addObserver:activityIndicator
+ selector:NSSelectorFromString(@"stopActivity")
+ name:SDWebImageDownloadStopNotification object:nil];
+ }
+}
+
++ (SDWebImageDownloader *)sharedDownloader
+{
+ static dispatch_once_t once;
+ static id instance;
+ dispatch_once(&once, ^{instance = self.new;});
+ return instance;
+}
+
+- (id)init
+{
+ if ((self = [super init]))
+ {
+ _executionOrder = SDWebImageDownloaderFIFOExecutionOrder;
+ _downloadQueue = NSOperationQueue.new;
+ _downloadQueue.maxConcurrentOperationCount = 2;
+ _URLCallbacks = NSMutableDictionary.new;
+ _HTTPHeaders = [NSMutableDictionary dictionaryWithObject:@"image/webp,image/*;q=0.8" forKey:@"Accept"];
+ _barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT);
+ _downloadTimeout = 15.0;
+ }
+ return self;
+}
+
+- (void)dealloc
+{
+ [self.downloadQueue cancelAllOperations];
+ SDDispatchQueueRelease(_barrierQueue);
+}
+
+- (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)field
+{
+ if (value)
+ {
+ self.HTTPHeaders[field] = value;
+ }
+ else
+ {
+ [self.HTTPHeaders removeObjectForKey:field];
+ }
+}
+
+- (NSString *)valueForHTTPHeaderField:(NSString *)field
+{
+ return self.HTTPHeaders[field];
+}
+
+- (void)setMaxConcurrentDownloads:(NSInteger)maxConcurrentDownloads
+{
+ _downloadQueue.maxConcurrentOperationCount = maxConcurrentDownloads;
+}
+
+- (NSUInteger)currentDownloadCount
+{
+ return _downloadQueue.operationCount;
+}
+
+- (NSInteger)maxConcurrentDownloads
+{
+ return _downloadQueue.maxConcurrentOperationCount;
+}
+
+- (id)downloadImageWithURL:(NSURL *)url options:(SDWebImageDownloaderOptions)options progress:(void (^)(NSUInteger, long long))progressBlock completed:(void (^)(UIImage *, NSData *, NSError *, BOOL))completedBlock
+{
+ __block SDWebImageDownloaderOperation *operation;
+ __weak SDWebImageDownloader *wself = self;
+
+ [self addProgressCallback:progressBlock andCompletedBlock:completedBlock forURL:url createCallback:^
+ {
+ NSTimeInterval timeoutInterval = wself.downloadTimeout;
+ if (timeoutInterval == 0.0) {
+ timeoutInterval = 15.0;
+ }
+
+ // In order to prevent from potential duplicate caching (NSURLCache + SDImageCache) we disable the cache for image requests if told otherwise
+ NSMutableURLRequest *request = [NSMutableURLRequest.alloc initWithURL:url cachePolicy:(options & SDWebImageDownloaderUseNSURLCache ? NSURLRequestUseProtocolCachePolicy : NSURLRequestReloadIgnoringLocalCacheData) timeoutInterval:timeoutInterval];
+ request.HTTPShouldHandleCookies = (options & SDWebImageDownloaderHandleCookies);
+ request.HTTPShouldUsePipelining = YES;
+ if (wself.headersFilter)
+ {
+ request.allHTTPHeaderFields = wself.headersFilter(url, [wself.HTTPHeaders copy]);
+ }
+ else
+ {
+ request.allHTTPHeaderFields = wself.HTTPHeaders;
+ }
+ operation = [SDWebImageDownloaderOperation.alloc initWithRequest:request options:options progress:^(NSUInteger receivedSize, long long expectedSize)
+ {
+ if (!wself) return;
+ SDWebImageDownloader *sself = wself;
+ NSArray *callbacksForURL = [sself callbacksForURL:url];
+ for (NSDictionary *callbacks in callbacksForURL)
+ {
+ SDWebImageDownloaderProgressBlock callback = callbacks[kProgressCallbackKey];
+ if (callback) callback(receivedSize, expectedSize);
+ }
+ }
+ completed:^(UIImage *image, NSData *data, NSError *error, BOOL finished)
+ {
+ if (!wself) return;
+ SDWebImageDownloader *sself = wself;
+ NSArray *callbacksForURL = [sself callbacksForURL:url];
+ if (finished)
+ {
+ [sself removeCallbacksForURL:url];
+ }
+ for (NSDictionary *callbacks in callbacksForURL)
+ {
+ SDWebImageDownloaderCompletedBlock callback = callbacks[kCompletedCallbackKey];
+ if (callback) callback(image, data, error, finished);
+ }
+ }
+ cancelled:^
+ {
+ if (!wself) return;
+ SDWebImageDownloader *sself = wself;
+ [sself removeCallbacksForURL:url];
+ }];
+ [wself.downloadQueue addOperation:operation];
+ if (wself.executionOrder == SDWebImageDownloaderLIFOExecutionOrder)
+ {
+ // Emulate LIFO execution order by systematically adding new operations as last operation's dependency
+ [wself.lastAddedOperation addDependency:operation];
+ wself.lastAddedOperation = operation;
+ }
+ }];
+
+ return operation;
+}
+
+- (void)addProgressCallback:(void (^)(NSUInteger, long long))progressBlock andCompletedBlock:(void (^)(UIImage *, NSData *data, NSError *, BOOL))completedBlock forURL:(NSURL *)url createCallback:(void (^)())createCallback
+{
+ // The URL will be used as the key to the callbacks dictionary so it cannot be nil. If it is nil immediately call the completed block with no image or data.
+ if(url == nil)
+ {
+ if (completedBlock != nil)
+ {
+ completedBlock(nil, nil, nil, NO);
+ }
+ return;
+ }
+
+ dispatch_barrier_sync(self.barrierQueue, ^
+ {
+ BOOL first = NO;
+ if (!self.URLCallbacks[url])
+ {
+ self.URLCallbacks[url] = NSMutableArray.new;
+ first = YES;
+ }
+
+ // Handle single download of simultaneous download request for the same URL
+ NSMutableArray *callbacksForURL = self.URLCallbacks[url];
+ NSMutableDictionary *callbacks = NSMutableDictionary.new;
+ if (progressBlock) callbacks[kProgressCallbackKey] = [progressBlock copy];
+ if (completedBlock) callbacks[kCompletedCallbackKey] = [completedBlock copy];
+ [callbacksForURL addObject:callbacks];
+ self.URLCallbacks[url] = callbacksForURL;
+
+ if (first)
+ {
+ createCallback();
+ }
+ });
+}
+
+- (NSArray *)callbacksForURL:(NSURL *)url
+{
+ __block NSArray *callbacksForURL;
+ dispatch_sync(self.barrierQueue, ^
+ {
+ callbacksForURL = self.URLCallbacks[url];
+ });
+ return [callbacksForURL copy];
+}
+
+- (void)removeCallbacksForURL:(NSURL *)url
+{
+ dispatch_barrier_async(self.barrierQueue, ^
+ {
+ [self.URLCallbacks removeObjectForKey:url];
+ });
+}
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.h b/Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.h
new file mode 100644
index 0000000..154a4e5
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.h
@@ -0,0 +1,24 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import
+#import "SDWebImageDownloader.h"
+#import "SDWebImageOperation.h"
+
+@interface SDWebImageDownloaderOperation : NSOperation
+
+@property (strong, nonatomic, readonly) NSURLRequest *request;
+@property (assign, nonatomic, readonly) SDWebImageDownloaderOptions options;
+
+- (id)initWithRequest:(NSURLRequest *)request
+ options:(SDWebImageDownloaderOptions)options
+ progress:(SDWebImageDownloaderProgressBlock)progressBlock
+ completed:(SDWebImageDownloaderCompletedBlock)completedBlock
+ cancelled:(void (^)())cancelBlock;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.m b/Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.m
new file mode 100644
index 0000000..4d4f94e
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageDownloaderOperation.m
@@ -0,0 +1,418 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "SDWebImageDownloaderOperation.h"
+#import "SDWebImageDecoder.h"
+#import "UIImage+MultiFormat.h"
+#import
+
+@interface SDWebImageDownloaderOperation ()
+
+@property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock;
+@property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock;
+@property (copy, nonatomic) void (^cancelBlock)();
+
+@property (assign, nonatomic, getter = isExecuting) BOOL executing;
+@property (assign, nonatomic, getter = isFinished) BOOL finished;
+@property (assign, nonatomic) long long expectedSize;
+@property (strong, nonatomic) NSMutableData *imageData;
+@property (strong, nonatomic) NSURLConnection *connection;
+@property (strong, atomic) NSThread *thread;
+
+#if TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_4_0
+@property (assign, nonatomic) UIBackgroundTaskIdentifier backgroundTaskId;
+#endif
+
+@end
+
+@implementation SDWebImageDownloaderOperation
+{
+ size_t width, height;
+ BOOL responseFromCached;
+}
+
+- (id)initWithRequest:(NSURLRequest *)request options:(SDWebImageDownloaderOptions)options progress:(void (^)(NSUInteger, long long))progressBlock completed:(void (^)(UIImage *, NSData *, NSError *, BOOL))completedBlock cancelled:(void (^)())cancelBlock
+{
+ if ((self = [super init]))
+ {
+ _request = request;
+ _options = options;
+ _progressBlock = [progressBlock copy];
+ _completedBlock = [completedBlock copy];
+ _cancelBlock = [cancelBlock copy];
+ _executing = NO;
+ _finished = NO;
+ _expectedSize = 0;
+ responseFromCached = YES; // Initially wrong until `connection:willCacheResponse:` is called or not called
+ }
+ return self;
+}
+
+- (void)start
+{
+ @synchronized(self)
+ {
+ if (self.isCancelled)
+ {
+ self.finished = YES;
+ [self reset];
+ return;
+ }
+
+#if TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_4_0
+ if ([self shouldContinueWhenAppEntersBackground])
+ {
+ __weak __typeof__(self) wself = self;
+ self.backgroundTaskId = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^
+ {
+ __strong __typeof(wself)sself = wself;
+
+ if (sself)
+ {
+ [sself cancel];
+
+ [[UIApplication sharedApplication] endBackgroundTask:sself.backgroundTaskId];
+ sself.backgroundTaskId = UIBackgroundTaskInvalid;
+ }
+ }];
+ }
+#endif
+
+ self.executing = YES;
+ self.connection = [NSURLConnection.alloc initWithRequest:self.request delegate:self startImmediately:NO];
+ self.thread = [NSThread currentThread];
+ }
+
+ [self.connection start];
+
+ if (self.connection)
+ {
+ if (self.progressBlock)
+ {
+ self.progressBlock(0, -1);
+ }
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self];
+
+ if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_5_1)
+ {
+ // Make sure to run the runloop in our background thread so it can process downloaded data
+ // Note: we use a timeout to work around an issue with NSURLConnection cancel under iOS 5
+ // not waking up the runloop, leading to dead threads (see https://github.com/rs/SDWebImage/issues/466)
+ CFRunLoopRunInMode(kCFRunLoopDefaultMode, 10, false);
+ }
+ else
+ {
+ CFRunLoopRun();
+ }
+
+ if (!self.isFinished)
+ {
+ [self.connection cancel];
+ [self connection:self.connection didFailWithError:[NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorTimedOut userInfo:@{NSURLErrorFailingURLErrorKey: self.request.URL}]];
+ }
+ }
+ else
+ {
+ if (self.completedBlock)
+ {
+ self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:0 userInfo:@{NSLocalizedDescriptionKey: @"Connection can't be initialized"}], YES);
+ }
+ }
+}
+
+- (void)cancel
+{
+ @synchronized(self)
+ {
+ if (self.thread)
+ {
+ [self performSelector:@selector(cancelInternalAndStop) onThread:self.thread withObject:nil waitUntilDone:NO];
+ }
+ else
+ {
+ [self cancelInternal];
+ }
+ }
+}
+
+- (void)cancelInternalAndStop
+{
+ [self cancelInternal];
+ CFRunLoopStop(CFRunLoopGetCurrent());
+}
+
+- (void)cancelInternal
+{
+ if (self.isFinished) return;
+ [super cancel];
+ if (self.cancelBlock) self.cancelBlock();
+
+ if (self.connection)
+ {
+ [self.connection cancel];
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:self];
+
+ // As we cancelled the connection, its callback won't be called and thus won't
+ // maintain the isFinished and isExecuting flags.
+ if (self.isExecuting) self.executing = NO;
+ if (!self.isFinished) self.finished = YES;
+ }
+
+ [self reset];
+}
+
+- (void)done
+{
+ self.finished = YES;
+ self.executing = NO;
+ [self reset];
+}
+
+- (void)reset
+{
+ self.cancelBlock = nil;
+ self.completedBlock = nil;
+ self.progressBlock = nil;
+ self.connection = nil;
+ self.imageData = nil;
+ self.thread = nil;
+}
+
+- (void)setFinished:(BOOL)finished
+{
+ [self willChangeValueForKey:@"isFinished"];
+ _finished = finished;
+ [self didChangeValueForKey:@"isFinished"];
+}
+
+- (void)setExecuting:(BOOL)executing
+{
+ [self willChangeValueForKey:@"isExecuting"];
+ _executing = executing;
+ [self didChangeValueForKey:@"isExecuting"];
+}
+
+- (BOOL)isConcurrent
+{
+ return YES;
+}
+
+#pragma mark NSURLConnection (delegate)
+
+- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
+{
+ if (![response respondsToSelector:@selector(statusCode)] || [((NSHTTPURLResponse *)response) statusCode] < 400)
+ {
+ NSUInteger expected = response.expectedContentLength > 0 ? (NSUInteger)response.expectedContentLength : 0;
+ self.expectedSize = expected;
+ if (self.progressBlock)
+ {
+ self.progressBlock(0, expected);
+ }
+
+ self.imageData = [NSMutableData.alloc initWithCapacity:expected];
+ }
+ else
+ {
+ [self.connection cancel];
+
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil];
+
+ if (self.completedBlock)
+ {
+ self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:[((NSHTTPURLResponse *)response) statusCode] userInfo:nil], YES);
+ }
+
+ [self done];
+ }
+}
+
+- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
+{
+ [self.imageData appendData:data];
+
+ if ((self.options & SDWebImageDownloaderProgressiveDownload) && self.expectedSize > 0 && self.completedBlock)
+ {
+ // The following code is from http://www.cocoaintheshell.com/2011/05/progressive-images-download-imageio/
+ // Thanks to the author @Nyx0uf
+
+ // Get the total bytes downloaded
+ const NSUInteger totalSize = self.imageData.length;
+
+ // Update the data source, we must pass ALL the data, not just the new bytes
+ CGImageSourceRef imageSource = CGImageSourceCreateIncremental(NULL);
+ CGImageSourceUpdateData(imageSource, (__bridge CFDataRef)self.imageData, totalSize == self.expectedSize);
+
+ if (width + height == 0)
+ {
+ CFDictionaryRef properties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);
+ if (properties)
+ {
+ CFTypeRef val = CFDictionaryGetValue(properties, kCGImagePropertyPixelHeight);
+ if (val) CFNumberGetValue(val, kCFNumberLongType, &height);
+ val = CFDictionaryGetValue(properties, kCGImagePropertyPixelWidth);
+ if (val) CFNumberGetValue(val, kCFNumberLongType, &width);
+ CFRelease(properties);
+ }
+ }
+
+ if (width + height > 0 && totalSize < self.expectedSize)
+ {
+ // Create the image
+ CGImageRef partialImageRef = CGImageSourceCreateImageAtIndex(imageSource, 0, NULL);
+
+#ifdef TARGET_OS_IPHONE
+ // Workaround for iOS anamorphic image
+ if (partialImageRef)
+ {
+ const size_t partialHeight = CGImageGetHeight(partialImageRef);
+ CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
+ CGContextRef bmContext = CGBitmapContextCreate(NULL, width, height, 8, width * 4, colorSpace, kCGBitmapByteOrderDefault | kCGImageAlphaPremultipliedFirst);
+ CGColorSpaceRelease(colorSpace);
+ if (bmContext)
+ {
+ CGContextDrawImage(bmContext, (CGRect){.origin.x = 0.0f, .origin.y = 0.0f, .size.width = width, .size.height = partialHeight}, partialImageRef);
+ CGImageRelease(partialImageRef);
+ partialImageRef = CGBitmapContextCreateImage(bmContext);
+ CGContextRelease(bmContext);
+ }
+ else
+ {
+ CGImageRelease(partialImageRef);
+ partialImageRef = nil;
+ }
+ }
+#endif
+
+ if (partialImageRef)
+ {
+ UIImage *image = [UIImage imageWithCGImage:partialImageRef];
+ UIImage *scaledImage = [self scaledImageForKey:self.request.URL.absoluteString image:image];
+ image = [UIImage decodedImageWithImage:scaledImage];
+ CGImageRelease(partialImageRef);
+ dispatch_main_sync_safe(^
+ {
+ if (self.completedBlock)
+ {
+ self.completedBlock(image, nil, nil, NO);
+ }
+ });
+ }
+ }
+
+ CFRelease(imageSource);
+ }
+
+ if (self.progressBlock)
+ {
+ self.progressBlock(self.imageData.length, self.expectedSize);
+ }
+}
+
+- (UIImage *)scaledImageForKey:(NSString *)key image:(UIImage *)image
+{
+ return SDScaledImageForKey(key, image);
+}
+
+- (void)connectionDidFinishLoading:(NSURLConnection *)aConnection
+{
+ CFRunLoopStop(CFRunLoopGetCurrent());
+ self.connection = nil;
+
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil];
+
+ SDWebImageDownloaderCompletedBlock completionBlock = self.completedBlock;
+
+ if (completionBlock)
+ {
+ if (self.options & SDWebImageDownloaderIgnoreCachedResponse && responseFromCached)
+ {
+ completionBlock(nil, nil, nil, YES);
+ self.completionBlock = nil;
+ [self done];
+ }
+ else
+ {
+
+ UIImage *image = [UIImage sd_imageWithData:self.imageData];
+
+ image = [self scaledImageForKey:self.request.URL.absoluteString image:image];
+
+ if (!image.images) // Do not force decod animated GIFs
+ {
+ image = [UIImage decodedImageWithImage:image];
+ }
+
+ if (CGSizeEqualToSize(image.size, CGSizeZero))
+ {
+ completionBlock(nil, nil, [NSError errorWithDomain:@"SDWebImageErrorDomain" code:0 userInfo:@{NSLocalizedDescriptionKey: @"Downloaded image has 0 pixels"}], YES);
+ }
+ else
+ {
+ completionBlock(image, self.imageData, nil, YES);
+ }
+ self.completionBlock = nil;
+ [self done];
+ }
+ }
+ else
+ {
+ [self done];
+ }
+}
+
+- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
+{
+ CFRunLoopStop(CFRunLoopGetCurrent());
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil];
+
+ if (self.completedBlock)
+ {
+ self.completedBlock(nil, nil, error, YES);
+ }
+
+ [self done];
+}
+
+- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse
+{
+ responseFromCached = NO; // If this method is called, it means the response wasn't read from cache
+ if (self.request.cachePolicy == NSURLRequestReloadIgnoringLocalCacheData)
+ {
+ // Prevents caching of responses
+ return nil;
+ }
+ else
+ {
+ return cachedResponse;
+ }
+}
+
+- (BOOL)shouldContinueWhenAppEntersBackground
+{
+ return self.options & SDWebImageDownloaderContinueInBackground;
+}
+
+- (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace
+{
+ return [protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust];
+}
+
+- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+{
+ BOOL trustAllCertificates = (self.options & SDWebImageDownloaderAllowInvalidSSLCertificates);
+ if (trustAllCertificates && [challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust])
+ {
+ [challenge.sender useCredential:[NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]
+ forAuthenticationChallenge:challenge];
+ }
+
+ [challenge.sender continueWithoutCredentialForAuthenticationChallenge:challenge];
+}
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageManager.h b/Pods/SDWebImage/SDWebImage/SDWebImageManager.h
new file mode 100644
index 0000000..688d457
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageManager.h
@@ -0,0 +1,195 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "SDWebImageCompat.h"
+#import "SDWebImageOperation.h"
+#import "SDWebImageDownloader.h"
+#import "SDImageCache.h"
+
+typedef enum
+{
+ /**
+ * By default, when a URL fail to be downloaded, the URL is blacklisted so the library won't keep trying.
+ * This flag disable this blacklisting.
+ */
+ SDWebImageRetryFailed = 1 << 0,
+ /**
+ * By default, image downloads are started during UI interactions, this flags disable this feature,
+ * leading to delayed download on UIScrollView deceleration for instance.
+ */
+ SDWebImageLowPriority = 1 << 1,
+ /**
+ * This flag disables on-disk caching
+ */
+ SDWebImageCacheMemoryOnly = 1 << 2,
+ /**
+ * This flag enables progressive download, the image is displayed progressively during download as a browser would do.
+ * By default, the image is only displayed once completely downloaded.
+ */
+ SDWebImageProgressiveDownload = 1 << 3,
+ /**
+ * Even if the image is cached, respect the HTTP response cache control, and refresh the image from remote location if needed.
+ * The disk caching will be handled by NSURLCache instead of SDWebImage leading to slight performance degradation.
+ * This option helps deal with images changing behind the same request URL, e.g. Facebook graph api profile pics.
+ * If a cached image is refreshed, the completion block is called once with the cached image and again with the final image.
+ *
+ * Use this flag only if you can't make your URLs static with embeded cache busting parameter.
+ */
+ SDWebImageRefreshCached = 1 << 4,
+
+ /**
+ * In iOS 4+, continue the download of the image if the app goes to background. This is achieved by asking the system for
+ * extra time in background to let the request finish. If the background task expires the operation will be cancelled.
+ */
+ SDWebImageContinueInBackground = 1 << 5,
+ /**
+ * Handles cookies stored in NSHTTPCookieStore by setting
+ * NSMutableURLRequest.HTTPShouldHandleCookies = YES;
+ */
+ SDWebImageHandleCookies = 1 << 6,
+ /**
+ * Enable to allow untrusted SSL ceriticates.
+ * Useful for testing purposes. Use with caution in production.
+ */
+ SDWebImageAllowInvalidSSLCertificates = 1 << 7
+} SDWebImageOptions;
+
+typedef void(^SDWebImageCompletedBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType);
+typedef void(^SDWebImageCompletedWithFinishedBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished);
+
+
+@class SDWebImageManager;
+
+@protocol SDWebImageManagerDelegate
+
+@optional
+
+/**
+ * Controls which image should be downloaded when the image is not found in the cache.
+ *
+ * @param imageManager The current `SDWebImageManager`
+ * @param imageURL The url of the image to be downloaded
+ *
+ * @return Return NO to prevent the downloading of the image on cache misses. If not implemented, YES is implied.
+ */
+- (BOOL)imageManager:(SDWebImageManager *)imageManager shouldDownloadImageForURL:(NSURL *)imageURL;
+
+/**
+ * Allows to transform the image immediately after it has been downloaded and just before to cache it on disk and memory.
+ * NOTE: This method is called from a global queue in order to not to block the main thread.
+ *
+ * @param imageManager The current `SDWebImageManager`
+ * @param image The image to transform
+ * @param imageURL The url of the image to transform
+ *
+ * @return The transformed image object.
+ */
+- (UIImage *)imageManager:(SDWebImageManager *)imageManager transformDownloadedImage:(UIImage *)image withURL:(NSURL *)imageURL;
+
+@end
+
+/**
+ * The SDWebImageManager is the class behind the UIImageView+WebCache category and likes.
+ * It ties the asynchronous downloader (SDWebImageDownloader) with the image cache store (SDImageCache).
+ * You can use this class directly to benefit from web image downloading with caching in another context than
+ * a UIView.
+ *
+ * Here is a simple example of how to use SDWebImageManager:
+ *
+ * @code
+
+SDWebImageManager *manager = [SDWebImageManager sharedManager];
+[manager downloadWithURL:imageURL
+ options:0
+ progress:nil
+ completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
+ {
+ if (image)
+ {
+ // do something with image
+ }
+ }];
+
+ * @endcode
+ */
+@interface SDWebImageManager : NSObject
+
+@property (weak, nonatomic) id delegate;
+
+@property (strong, nonatomic, readonly) SDImageCache *imageCache;
+@property (strong, nonatomic, readonly) SDWebImageDownloader *imageDownloader;
+
+/**
+ * The cache filter is a block used each time SDWebImageManager need to convert an URL into a cache key. This can
+ * be used to remove dynamic part of an image URL.
+ *
+ * The following example sets a filter in the application delegate that will remove any query-string from the
+ * URL before to use it as a cache key:
+ *
+ * @code
+
+[[SDWebImageManager sharedManager] setCacheKeyFilter:^(NSURL *url)
+{
+ url = [[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path];
+ return [url absoluteString];
+}];
+
+ * @endcode
+ */
+@property (strong) NSString *(^cacheKeyFilter)(NSURL *url);
+
+/**
+ * Returns global SDWebImageManager instance.
+ *
+ * @return SDWebImageManager shared instance
+ */
++ (SDWebImageManager *)sharedManager;
+
+/**
+ * Downloads the image at the given URL if not present in cache or return the cached version otherwise.
+ *
+ * @param url The URL to the image
+ * @param options A mask to specify options to use for this request
+ * @param progressBlock A block called while image is downloading
+ * @param completedBlock A block called when operation has been completed.
+ *
+ * This parameter is required.
+ *
+ * This block has no return value and takes the requested UIImage as first parameter.
+ * In case of error the image parameter is nil and the second parameter may contain an NSError.
+ *
+ * The third parameter is an `SDImageCacheType` enum indicating if the image was retrived from the local cache
+ * or from the memory cache or from the network.
+ *
+ * The last parameter is set to NO when the SDWebImageProgressiveDownload option is used and the image is
+ * downloading. This block is thus called repetidly with a partial image. When image is fully downloaded, the
+ * block is called a last time with the full image and the last parameter set to YES.
+ *
+ * @return Returns a cancellable NSOperation
+ */
+- (id)downloadWithURL:(NSURL *)url
+ options:(SDWebImageOptions)options
+ progress:(SDWebImageDownloaderProgressBlock)progressBlock
+ completed:(SDWebImageCompletedWithFinishedBlock)completedBlock;
+
+/**
+ * Cancel all current opreations
+ */
+- (void)cancelAll;
+
+/**
+ * Check one or more operations running
+ */
+- (BOOL)isRunning;
+
+/**
+ * Check if image has already been cached
+ */
+- (BOOL)diskImageExistsForURL:(NSURL *)url;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageManager.m b/Pods/SDWebImage/SDWebImage/SDWebImageManager.m
new file mode 100644
index 0000000..2c9bafe
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageManager.m
@@ -0,0 +1,305 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "SDWebImageManager.h"
+#import "UIImage+GIF.h"
+#import
+
+@interface SDWebImageCombinedOperation : NSObject
+
+@property (assign, nonatomic, getter = isCancelled) BOOL cancelled;
+@property (copy, nonatomic) void (^cancelBlock)();
+@property (strong, nonatomic) NSOperation *cacheOperation;
+
+@end
+
+@interface SDWebImageManager ()
+
+@property (strong, nonatomic, readwrite) SDImageCache *imageCache;
+@property (strong, nonatomic, readwrite) SDWebImageDownloader *imageDownloader;
+@property (strong, nonatomic) NSMutableArray *failedURLs;
+@property (strong, nonatomic) NSMutableArray *runningOperations;
+
+@end
+
+@implementation SDWebImageManager
+
++ (id)sharedManager
+{
+ static dispatch_once_t once;
+ static id instance;
+ dispatch_once(&once, ^{instance = self.new;});
+ return instance;
+}
+
+- (id)init
+{
+ if ((self = [super init]))
+ {
+ _imageCache = [self createCache];
+ _imageDownloader = SDWebImageDownloader.new;
+ _failedURLs = NSMutableArray.new;
+ _runningOperations = NSMutableArray.new;
+ }
+ return self;
+}
+
+- (SDImageCache *)createCache
+{
+ return [SDImageCache sharedImageCache];
+}
+
+- (NSString *)cacheKeyForURL:(NSURL *)url
+{
+ if (self.cacheKeyFilter)
+ {
+ return self.cacheKeyFilter(url);
+ }
+ else
+ {
+ return [url absoluteString];
+ }
+}
+
+- (BOOL)diskImageExistsForURL:(NSURL *)url
+{
+ NSString *key = [self cacheKeyForURL:url];
+ return [self.imageCache diskImageExistsWithKey:key];
+}
+
+- (id)downloadWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletedWithFinishedBlock)completedBlock
+{
+ // Invoking this method without a completedBlock is pointless
+ NSParameterAssert(completedBlock);
+
+ // Very common mistake is to send the URL using NSString object instead of NSURL. For some strange reason, XCode won't
+ // throw any warning for this type mismatch. Here we failsafe this error by allowing URLs to be passed as NSString.
+ if ([url isKindOfClass:NSString.class])
+ {
+ url = [NSURL URLWithString:(NSString *)url];
+ }
+
+ // Prevents app crashing on argument type error like sending NSNull instead of NSURL
+ if (![url isKindOfClass:NSURL.class])
+ {
+ url = nil;
+ }
+
+ __block SDWebImageCombinedOperation *operation = SDWebImageCombinedOperation.new;
+ __weak SDWebImageCombinedOperation *weakOperation = operation;
+
+ BOOL isFailedUrl = NO;
+ @synchronized(self.failedURLs)
+ {
+ isFailedUrl = [self.failedURLs containsObject:url];
+ }
+
+ if (!url || (!(options & SDWebImageRetryFailed) && isFailedUrl))
+ {
+ dispatch_main_sync_safe(^
+ {
+ NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorFileDoesNotExist userInfo:nil];
+ completedBlock(nil, error, SDImageCacheTypeNone, YES);
+ });
+ return operation;
+ }
+
+ @synchronized(self.runningOperations)
+ {
+ [self.runningOperations addObject:operation];
+ }
+ NSString *key = [self cacheKeyForURL:url];
+
+ operation.cacheOperation = [self.imageCache queryDiskCacheForKey:key done:^(UIImage *image, SDImageCacheType cacheType)
+ {
+ if (operation.isCancelled)
+ {
+ @synchronized(self.runningOperations)
+ {
+ [self.runningOperations removeObject:operation];
+ }
+
+ return;
+ }
+
+ if ((!image || options & SDWebImageRefreshCached) && (![self.delegate respondsToSelector:@selector(imageManager:shouldDownloadImageForURL:)] || [self.delegate imageManager:self shouldDownloadImageForURL:url]))
+ {
+ if (image && options & SDWebImageRefreshCached)
+ {
+ dispatch_main_sync_safe(^
+ {
+ // If image was found in the cache bug SDWebImageRefreshCached is provided, notify about the cached image
+ // AND try to re-download it in order to let a chance to NSURLCache to refresh it from server.
+ completedBlock(image, nil, cacheType, YES);
+ });
+ }
+
+ // download if no image or requested to refresh anyway, and download allowed by delegate
+ SDWebImageDownloaderOptions downloaderOptions = 0;
+ if (options & SDWebImageLowPriority) downloaderOptions |= SDWebImageDownloaderLowPriority;
+ if (options & SDWebImageProgressiveDownload) downloaderOptions |= SDWebImageDownloaderProgressiveDownload;
+ if (options & SDWebImageRefreshCached) downloaderOptions |= SDWebImageDownloaderUseNSURLCache;
+ if (options & SDWebImageContinueInBackground) downloaderOptions |= SDWebImageDownloaderContinueInBackground;
+ if (options & SDWebImageHandleCookies) downloaderOptions |= SDWebImageDownloaderHandleCookies;
+ if (options & SDWebImageAllowInvalidSSLCertificates) downloaderOptions |= SDWebImageDownloaderAllowInvalidSSLCertificates;
+ if (image && options & SDWebImageRefreshCached)
+ {
+ // force progressive off if image already cached but forced refreshing
+ downloaderOptions &= ~SDWebImageDownloaderProgressiveDownload;
+ // ignore image read from NSURLCache if image if cached but force refreshing
+ downloaderOptions |= SDWebImageDownloaderIgnoreCachedResponse;
+ }
+ id subOperation = [self.imageDownloader downloadImageWithURL:url options:downloaderOptions progress:progressBlock completed:^(UIImage *downloadedImage, NSData *data, NSError *error, BOOL finished)
+ {
+ if (weakOperation.isCancelled)
+ {
+ dispatch_main_sync_safe(^
+ {
+ completedBlock(nil, nil, SDImageCacheTypeNone, finished);
+ });
+ }
+ else if (error)
+ {
+ dispatch_main_sync_safe(^
+ {
+ completedBlock(nil, error, SDImageCacheTypeNone, finished);
+ });
+
+ if (error.code != NSURLErrorNotConnectedToInternet)
+ {
+ @synchronized(self.failedURLs)
+ {
+ [self.failedURLs addObject:url];
+ }
+ }
+ }
+ else
+ {
+ BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly);
+
+ if (options & SDWebImageRefreshCached && image && !downloadedImage)
+ {
+ // Image refresh hit the NSURLCache cache, do not call the completion block
+ }
+ // NOTE: We don't call transformDownloadedImage delegate method on animated images as most transformation code would mangle it
+ else if (downloadedImage && !downloadedImage.images && [self.delegate respondsToSelector:@selector(imageManager:transformDownloadedImage:withURL:)])
+ {
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^
+ {
+ UIImage *transformedImage = [self.delegate imageManager:self transformDownloadedImage:downloadedImage withURL:url];
+
+ dispatch_main_sync_safe(^
+ {
+ completedBlock(transformedImage, nil, SDImageCacheTypeNone, finished);
+ });
+
+ if (transformedImage && finished)
+ {
+ BOOL imageWasTransformed = ![transformedImage isEqual:downloadedImage];
+ [self.imageCache storeImage:transformedImage recalculateFromImage:imageWasTransformed imageData:data forKey:key toDisk:cacheOnDisk];
+ }
+ });
+ }
+ else
+ {
+ dispatch_main_sync_safe(^
+ {
+ completedBlock(downloadedImage, nil, SDImageCacheTypeNone, finished);
+ });
+
+ if (downloadedImage && finished)
+ {
+ [self.imageCache storeImage:downloadedImage recalculateFromImage:NO imageData:data forKey:key toDisk:cacheOnDisk];
+ }
+ }
+ }
+
+ if (finished)
+ {
+ @synchronized(self.runningOperations)
+ {
+ [self.runningOperations removeObject:operation];
+ }
+ }
+ }];
+ operation.cancelBlock = ^{[subOperation cancel];};
+ }
+ else if (image)
+ {
+ dispatch_main_sync_safe(^
+ {
+ completedBlock(image, nil, cacheType, YES);
+ });
+ @synchronized(self.runningOperations)
+ {
+ [self.runningOperations removeObject:operation];
+ }
+ }
+ else
+ {
+ // Image not in cache and download disallowed by delegate
+ dispatch_main_sync_safe(^
+ {
+ completedBlock(nil, nil, SDImageCacheTypeNone, YES);
+ });
+ @synchronized(self.runningOperations)
+ {
+ [self.runningOperations removeObject:operation];
+ }
+ }
+ }];
+
+ return operation;
+}
+
+- (void)cancelAll
+{
+ @synchronized(self.runningOperations)
+ {
+ [self.runningOperations makeObjectsPerformSelector:@selector(cancel)];
+ [self.runningOperations removeAllObjects];
+ }
+}
+
+- (BOOL)isRunning
+{
+ return self.runningOperations.count > 0;
+}
+
+@end
+
+@implementation SDWebImageCombinedOperation
+
+- (void)setCancelBlock:(void (^)())cancelBlock
+{
+ if (self.isCancelled)
+ {
+ if (cancelBlock) cancelBlock();
+ }
+ else
+ {
+ _cancelBlock = [cancelBlock copy];
+ }
+}
+
+- (void)cancel
+{
+ self.cancelled = YES;
+ if (self.cacheOperation)
+ {
+ [self.cacheOperation cancel];
+ self.cacheOperation = nil;
+ }
+ if (self.cancelBlock)
+ {
+ self.cancelBlock();
+ self.cancelBlock = nil;
+ }
+}
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImageOperation.h b/Pods/SDWebImage/SDWebImage/SDWebImageOperation.h
new file mode 100644
index 0000000..71094ee
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImageOperation.h
@@ -0,0 +1,15 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import
+
+@protocol SDWebImageOperation
+
+- (void)cancel;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.h b/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.h
new file mode 100644
index 0000000..2b534e4
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.h
@@ -0,0 +1,86 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import
+#import "SDWebImageManager.h"
+
+@class SDWebImagePrefetcher;
+
+@protocol SDWebImagePrefetcherDelegate
+
+@optional
+
+/**
+ * Called when an image was prefetched.
+ *
+ * @param imagePrefetcher The current image prefetcher
+ * @param imageURL The image url that was prefetched
+ * @param finishedCount The total number of images that were prefetched
+ * @param totalCount The total number of images that need to be prefetched
+ */
+- (void)imagePrefetcher:(SDWebImagePrefetcher*)imagePrefetcher didPrefetchURL:(NSURL*)imageURL finishedCount:(NSUInteger)finishedCount totalCount:(NSUInteger)totalCount;
+
+/**
+ * Called when all images are prefetched.
+ * @param imagePrefetcher The current image prefetcher
+ * @param totalCount The total number of images that need to be prefetched
+ * @param skippedCount The total number of images that were skipped
+ */
+- (void)imagePrefetcher:(SDWebImagePrefetcher*)imagePrefetcher didFinishWithTotalCount:(NSUInteger)totalCount skippedCount:(NSUInteger)skippedCount;
+
+@end
+
+
+/**
+ * Prefetch some URLs in the cache for future use. Images are downloaded in low priority.
+ */
+@interface SDWebImagePrefetcher : NSObject
+
+/**
+ * Maximum number of URLs to prefetch at the same time. Defaults to 3.
+ */
+@property (nonatomic, assign) NSUInteger maxConcurrentDownloads;
+
+/**
+ * SDWebImageOptions for prefetcher. Defaults to SDWebImageLowPriority.
+ */
+@property (nonatomic, assign) SDWebImageOptions options;
+
+@property (weak, nonatomic) id delegate;
+
+/**
+ * Return the global image prefetcher instance.
+ */
++ (SDWebImagePrefetcher *)sharedImagePrefetcher;
+
+/**
+ * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching,
+ * currently one image is downloaded at a time,
+ * and skips images for failed downloads and proceed to the next image in the list
+ *
+ * @param urls list of URLs to prefetch
+ */
+- (void)prefetchURLs:(NSArray *)urls;
+
+/**
+ * Assign list of URLs to let SDWebImagePrefetcher to queue the prefetching,
+ * currently one image is downloaded at a time,
+ * and skips images for failed downloads and proceed to the next image in the list
+ *
+ * @param urls list of URLs to prefetch
+ * @param completionBlock block to be called when prefetching is completed
+ */
+- (void)prefetchURLs:(NSArray *)urls completed:(void (^)(NSUInteger finishedCount, NSUInteger skippedCount))completionBlock;
+
+/**
+ * Remove and cancel queued list
+ */
+- (void)cancelPrefetching;
+
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.m b/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.m
new file mode 100644
index 0000000..ff9e6c6
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/SDWebImagePrefetcher.m
@@ -0,0 +1,148 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "SDWebImagePrefetcher.h"
+#import "SDWebImageManager.h"
+
+@interface SDWebImagePrefetcher ()
+
+@property (strong, nonatomic) SDWebImageManager *manager;
+@property (strong, nonatomic) NSArray *prefetchURLs;
+@property (assign, nonatomic) NSUInteger requestedCount;
+@property (assign, nonatomic) NSUInteger skippedCount;
+@property (assign, nonatomic) NSUInteger finishedCount;
+@property (assign, nonatomic) NSTimeInterval startedTime;
+@property (copy, nonatomic) void (^completionBlock)(NSUInteger, NSUInteger);
+
+@end
+
+@implementation SDWebImagePrefetcher
+
++ (SDWebImagePrefetcher *)sharedImagePrefetcher
+{
+ static dispatch_once_t once;
+ static id instance;
+ dispatch_once(&once, ^{instance = self.new;});
+ return instance;
+}
+
+- (id)init
+{
+ if ((self = [super init]))
+ {
+ _manager = SDWebImageManager.new;
+ _options = SDWebImageLowPriority;
+ self.maxConcurrentDownloads = 3;
+ }
+ return self;
+}
+
+- (void)setMaxConcurrentDownloads:(NSUInteger)maxConcurrentDownloads
+{
+ self.manager.imageDownloader.maxConcurrentDownloads = maxConcurrentDownloads;
+}
+
+- (NSUInteger)maxConcurrentDownloads
+{
+ return self.manager.imageDownloader.maxConcurrentDownloads;
+}
+
+- (void)startPrefetchingAtIndex:(NSUInteger)index
+{
+ if (index >= self.prefetchURLs.count) return;
+ self.requestedCount++;
+ [self.manager downloadWithURL:self.prefetchURLs[index] options:self.options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
+ {
+ if (!finished) return;
+ self.finishedCount++;
+
+ if (image)
+ {
+#ifdef SD_VERBOSE
+ NSLog(@"Prefetched %d out of %d", self.finishedCount, self.prefetchURLs.count);
+#endif
+ }
+ else
+ {
+#ifdef SD_VERBOSE
+ NSLog(@"Prefetched %d out of %d (Failed)", self.finishedCount, [self.prefetchURLs count]);
+#endif
+
+ // Add last failed
+ self.skippedCount++;
+ }
+ if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didPrefetchURL:finishedCount:totalCount:)])
+ {
+ [self.delegate imagePrefetcher:self
+ didPrefetchURL:self.prefetchURLs[index]
+ finishedCount:self.finishedCount
+ totalCount:self.prefetchURLs.count
+ ];
+ }
+
+ if (self.prefetchURLs.count > self.requestedCount)
+ {
+ [self startPrefetchingAtIndex:self.requestedCount];
+ }
+ else if (self.finishedCount == self.requestedCount)
+ {
+ [self reportStatus];
+ if (self.completionBlock)
+ {
+ self.completionBlock(self.finishedCount, self.skippedCount);
+ self.completionBlock = nil;
+ }
+ }
+ }];
+}
+
+- (void)reportStatus
+{
+ NSUInteger total = [self.prefetchURLs count];
+#ifdef SD_VERBOSE
+ NSLog(@"Finished prefetching (%d successful, %d skipped, timeElasped %.2f)", total - self.skippedCount, self.skippedCount, CFAbsoluteTimeGetCurrent() - self.startedTime);
+#endif
+ if ([self.delegate respondsToSelector:@selector(imagePrefetcher:didFinishWithTotalCount:skippedCount:)])
+ {
+ [self.delegate imagePrefetcher:self
+ didFinishWithTotalCount:(total - self.skippedCount)
+ skippedCount:self.skippedCount
+ ];
+ }
+}
+
+- (void)prefetchURLs:(NSArray *)urls
+{
+ [self prefetchURLs:urls completed:nil];
+}
+
+- (void)prefetchURLs:(NSArray *)urls completed:(void (^)(NSUInteger, NSUInteger))completionBlock
+{
+ [self cancelPrefetching]; // Prevent duplicate prefetch request
+ self.startedTime = CFAbsoluteTimeGetCurrent();
+ self.prefetchURLs = urls;
+ self.completionBlock = completionBlock;
+
+ // Starts prefetching from the very first image on the list with the max allowed concurrency
+ NSUInteger listCount = self.prefetchURLs.count;
+ for (NSUInteger i = 0; i < self.maxConcurrentDownloads && self.requestedCount < listCount; i++)
+ {
+ [self startPrefetchingAtIndex:i];
+ }
+}
+
+- (void)cancelPrefetching
+{
+ self.prefetchURLs = nil;
+ self.skippedCount = 0;
+ self.requestedCount = 0;
+ self.finishedCount = 0;
+ [self.manager cancelAll];
+}
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/UIButton+WebCache.h b/Pods/SDWebImage/SDWebImage/UIButton+WebCache.h
new file mode 100644
index 0000000..1f5d2c8
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/UIButton+WebCache.h
@@ -0,0 +1,179 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "SDWebImageCompat.h"
+#import "SDWebImageManager.h"
+
+/**
+ * Integrates SDWebImage async downloading and caching of remote images with UIButtonView.
+ */
+@interface UIButton (WebCache)
+
+/**
+ * Set the imageView `image` with an `url`.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ */
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state;
+
+/**
+ * Set the imageView `image` with an `url` and a placeholder.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param placeholder The image to be set initially, until the image request finishes.
+ * @see setImageWithURL:placeholderImage:options:
+ */
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;
+
+/**
+ * Set the imageView `image` with an `url`, placeholder and custom options.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param placeholder The image to be set initially, until the image request finishes.
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
+ */
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;
+
+/**
+ * Set the imageView `image` with an `url`.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param completedBlock A block called when operation has been completed. This block as no return value
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
+ * indicating if the image was retrived from the local cache of from the network.
+ */
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock;
+
+/**
+ * Set the imageView `image` with an `url`, placeholder.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param placeholder The image to be set initially, until the image request finishes.
+ * @param completedBlock A block called when operation has been completed. This block as no return value
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
+ * indicating if the image was retrived from the local cache of from the network.
+ */
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock;
+
+/**
+ * Set the imageView `image` with an `url`, placeholder and custom options.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param placeholder The image to be set initially, until the image request finishes.
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
+ * @param completedBlock A block called when operation has been completed. This block as no return value
+ * and takes the requested UIImage as first parameter. In case of error the image parameter
+ * is nil and the second parameter may contain an NSError. The third parameter is a Boolean
+ * indicating if the image was retrived from the local cache of from the network.
+ */
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock;
+
+/**
+ * Set the backgroundImageView `image` with an `url`.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ */
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state;
+
+/**
+ * Set the backgroundImageView `image` with an `url` and a placeholder.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param placeholder The image to be set initially, until the image request finishes.
+ * @see setImageWithURL:placeholderImage:options:
+ */
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;
+
+/**
+ * Set the backgroundImageView `image` with an `url`, placeholder and custom options.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param placeholder The image to be set initially, until the image request finishes.
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
+ */
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;
+
+/**
+ * Set the backgroundImageView `image` with an `url`.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param completedBlock A block object to be executed after the request operation
+ * completed. This block has no return value and takes three argument: the requested
+ * `UIImage` object, the `NSError` object describing error that occurred, and an
+ * `SDImageCacheType` enum describing the source of the image obtained from.
+ */
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock;
+
+/**
+ * Set the backgroundImageView `image` with an `url`, placeholder.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param state The state that uses the specified title. The values are described in UIControlState.
+ * @param placeholder The image to be set initially, until the image request finishes.
+ * @param completedBlock A block object to be executed after the request operation
+ * completed. This block has no return value and takes three argument: the requested
+ * `UIImage` object, the `NSError` object describing error that occurred, and an
+ * `SDImageCacheType` enum describing the source of the image obtained from.
+ */
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock;
+
+/**
+ * Set the backgroundImageView `image` with an `url`, placeholder and custom options.
+ *
+ * The downloand is asynchronous and cached.
+ *
+ * @param url The url for the image.
+ * @param placeholder The image to be set initially, until the image request finishes.
+ * @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
+ * @param completedBlock A block object to be executed after the request operation
+ * completed. This block has no return value and takes three argument: the requested
+ * `UIImage` object, the `NSError` object describing error that occurred, and an
+ * `SDImageCacheType` enum describing the source of the image obtained from.
+ */
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock;
+
+/**
+ * Cancel the current download
+ */
+- (void)cancelCurrentImageLoad;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/UIButton+WebCache.m b/Pods/SDWebImage/SDWebImage/UIButton+WebCache.m
new file mode 100644
index 0000000..3b8420e
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/UIButton+WebCache.m
@@ -0,0 +1,137 @@
+/*
+ * This file is part of the SDWebImage package.
+ * (c) Olivier Poitrey
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+#import "UIButton+WebCache.h"
+#import "objc/runtime.h"
+
+static char operationKey;
+
+@implementation UIButton (WebCache)
+
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state
+{
+ [self setImageWithURL:url forState:state placeholderImage:nil options:0 completed:nil];
+}
+
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder
+{
+ [self setImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:nil];
+}
+
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options
+{
+ [self setImageWithURL:url forState:state placeholderImage:placeholder options:options completed:nil];
+}
+
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock
+{
+ [self setImageWithURL:url forState:state placeholderImage:nil options:0 completed:completedBlock];
+}
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock
+{
+ [self setImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:completedBlock];
+}
+
+- (void)setImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock
+{
+ [self cancelCurrentImageLoad];
+
+ [self setImage:placeholder forState:state];
+
+ if (url)
+ {
+ __weak UIButton *wself = self;
+ id operation = [SDWebImageManager.sharedManager downloadWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
+ {
+ if (!wself) return;
+ dispatch_main_sync_safe(^
+ {
+ __strong UIButton *sself = wself;
+ if (!sself) return;
+ if (image)
+ {
+ [sself setImage:image forState:state];
+ }
+ if (completedBlock && finished)
+ {
+ completedBlock(image, error, cacheType);
+ }
+ });
+ }];
+ objc_setAssociatedObject(self, &operationKey, operation, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
+ }
+}
+
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state
+{
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:nil options:0 completed:nil];
+}
+
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder
+{
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:nil];
+}
+
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options
+{
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:options completed:nil];
+}
+
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state completed:(SDWebImageCompletedBlock)completedBlock
+{
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:nil options:0 completed:completedBlock];
+}
+
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDWebImageCompletedBlock)completedBlock
+{
+ [self setBackgroundImageWithURL:url forState:state placeholderImage:placeholder options:0 completed:completedBlock];
+}
+
+- (void)setBackgroundImageWithURL:(NSURL *)url forState:(UIControlState)state placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDWebImageCompletedBlock)completedBlock
+{
+ [self cancelCurrentImageLoad];
+
+ [self setBackgroundImage:placeholder forState:state];
+
+ if (url)
+ {
+ __weak UIButton *wself = self;
+ id operation = [SDWebImageManager.sharedManager downloadWithURL:url options:options progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
+ {
+ if (!wself) return;
+ dispatch_main_sync_safe(^
+ {
+ __strong UIButton *sself = wself;
+ if (!sself) return;
+ if (image)
+ {
+ [sself setBackgroundImage:image forState:state];
+ }
+ if (completedBlock && finished)
+ {
+ completedBlock(image, error, cacheType);
+ }
+ });
+ }];
+ objc_setAssociatedObject(self, &operationKey, operation, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
+ }
+}
+
+
+- (void)cancelCurrentImageLoad
+{
+ // Cancel in progress downloader from queue
+ id operation = objc_getAssociatedObject(self, &operationKey);
+ if (operation)
+ {
+ [operation cancel];
+ objc_setAssociatedObject(self, &operationKey, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
+ }
+}
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/UIImage+GIF.h b/Pods/SDWebImage/SDWebImage/UIImage+GIF.h
new file mode 100755
index 0000000..1183035
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/UIImage+GIF.h
@@ -0,0 +1,19 @@
+//
+// UIImage+GIF.h
+// LBGIFImage
+//
+// Created by Laurin Brandner on 06.01.12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import "NSData+GIF.h"
+#import
+
+@interface UIImage (GIF)
+
++ (UIImage *)sd_animatedGIFNamed:(NSString *)name;
++ (UIImage *)sd_animatedGIFWithData:(NSData *)data;
+
+- (UIImage *)sd_animatedImageByScalingAndCroppingToSize:(CGSize)size;
+
+@end
diff --git a/Pods/SDWebImage/SDWebImage/UIImage+GIF.m b/Pods/SDWebImage/SDWebImage/UIImage+GIF.m
new file mode 100755
index 0000000..99a0c88
--- /dev/null
+++ b/Pods/SDWebImage/SDWebImage/UIImage+GIF.m
@@ -0,0 +1,180 @@
+//
+// UIImage+GIF.m
+// LBGIFImage
+//
+// Created by Laurin Brandner on 06.01.12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import "UIImage+GIF.h"
+#import
+
+@implementation UIImage (GIF)
+
++ (UIImage *)sd_animatedGIFWithData:(NSData *)data
+{
+ if (!data)
+ {
+ return nil;
+ }
+
+ CGImageSourceRef source = CGImageSourceCreateWithData((__bridge CFDataRef)data, NULL);
+
+ size_t count = CGImageSourceGetCount(source);
+
+ UIImage *animatedImage;
+
+ if (count <= 1)
+ {
+ animatedImage = [[UIImage alloc] initWithData:data];
+ }
+ else
+ {
+ NSMutableArray *images = [NSMutableArray array];
+
+ NSTimeInterval duration = 0.0f;
+
+ for (size_t i = 0; i < count; i++)
+ {
+ CGImageRef image = CGImageSourceCreateImageAtIndex(source, i, NULL);
+
+ duration += [self frameDurationAtIndex:i source:source];
+
+ [images addObject:[UIImage imageWithCGImage:image scale:[UIScreen mainScreen].scale orientation:UIImageOrientationUp]];
+
+ CGImageRelease(image);
+ }
+
+ if (!duration)
+ {
+ duration = (1.0f/10.0f)*count;
+ }
+
+ animatedImage = [UIImage animatedImageWithImages:images duration:duration];
+ }
+
+ CFRelease(source);
+
+ return animatedImage;
+}
+
++ (float)frameDurationAtIndex:(NSUInteger)index source:(CGImageSourceRef)source
+{
+ float frameDuration = 0.1f;
+ CFDictionaryRef cfFrameProperties = CGImageSourceCopyPropertiesAtIndex(source, index, nil);
+ NSDictionary *frameProperties = (__bridge NSDictionary *)cfFrameProperties;
+ NSDictionary *gifProperties = frameProperties[(NSString *)kCGImagePropertyGIFDictionary];
+
+ NSNumber *delayTimeUnclampedProp = gifProperties[(NSString *)kCGImagePropertyGIFUnclampedDelayTime];
+ if (delayTimeUnclampedProp)
+ {
+ frameDuration = [delayTimeUnclampedProp floatValue];
+ }
+ else
+ {
+
+ NSNumber *delayTimeProp = gifProperties[(NSString *)kCGImagePropertyGIFDelayTime];
+ if (delayTimeProp)
+ {
+ frameDuration = [delayTimeProp floatValue];
+ }
+ }
+
+ // Many annoying ads specify a 0 duration to make an image flash as quickly as possible.
+ // We follow Firefox's behavior and use a duration of 100 ms for any frames that specify
+ // a duration of <= 10 ms. See and