diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2019-10-08 09:12:29 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2019-10-08 09:12:29 +0300 |
commit | d758f907a9c993f40e07d1a193e4cc7793beabca (patch) | |
tree | 6e3ae568e2961a5208e3d01e7e86387e05c58fd4 /Carthage | |
parent | 4929d1b7cb75de652aa018e7b37e7d92ad3d4dc4 (diff) |
Marino
new build
Diffstat (limited to 'Carthage')
90 files changed, 4219 insertions, 89 deletions
diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Applications/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Applications/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h index 50e43107c..5dd70f27d 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Applications/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Applications/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h @@ -1 +1,280 @@ -../../../../../../Source/UIScrollView+EmptyDataSet.h
\ No newline at end of file +// +// UIScrollView+EmptyDataSet.h +// DZNEmptyDataSet +// https://github.com/dzenbot/DZNEmptyDataSet +// +// Created by Ignacio Romero Zurbuchen on 6/20/14. +// Copyright (c) 2016 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +@protocol DZNEmptyDataSetSource; +@protocol DZNEmptyDataSetDelegate; + +#define DZNEmptyDataSetDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(" Use " # instead " instead") + +/** + A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. + @discussion It will work automatically, by just conforming to DZNEmptyDataSetSource, and returning the data you want to show. + */ +@interface UIScrollView (EmptyDataSet) + +/** The empty datasets data source. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetSource> emptyDataSetSource; +/** The empty datasets delegate. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetDelegate> emptyDataSetDelegate; +/** YES if any empty dataset is visible. */ +@property (nonatomic, readonly, getter = isEmptyDataSetVisible) BOOL emptyDataSetVisible; + +/** + Reloads the empty dataset content receiver. + @discussion Call this method to force all the data to refresh. Calling -reloadData is similar, but this forces only the empty dataset to reload, not the entire table view or collection view. + */ +- (void)reloadEmptyDataSet; + +@end + + +/** + The object that acts as the data source of the empty datasets. + @discussion The data source must adopt the DZNEmptyDataSetSource protocol. The data source is not retained. All data source methods are optional. + */ +@protocol DZNEmptyDataSetSource <NSObject> +@optional + +/** + Asks the data source for the title of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the description of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset description text, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the image of the dataset. + + @param scrollView A scrollView subclass informing the data source. + @return An image for the dataset. + */ +- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView; + + +/** + Asks the data source for a tint color of the image dataset. Default is nil. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to tint the image of the dataset. + */ +- (UIColor *)imageTintColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + * Asks the data source for the image animation of the dataset. + * + * @param scrollView A scrollView subclass object informing the delegate. + * + * @return image animation + */ +- (CAAnimation *) imageAnimationForEmptyDataSet:(UIScrollView *) scrollView; + +/** + Asks the data source for the title to be used for the specified button state. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)buttonTitleForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the image to be used for the specified button state. + This method will override buttonTitleForEmptyDataSet:forState: and present the image only without any text. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An image for the dataset button imageview. + */ +- (UIImage *)buttonImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for a background image to be used for the specified button state. + There is no default style for this call. + + @param scrollView A scrollView subclass informing the data source. + @param state The state that uses the specified image. The values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (UIImage *)buttonBackgroundImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the background color of the dataset. Default is clear color. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to be applied to the dataset background view. + */ +- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a custom view to be displayed instead of the default views such as labels, imageview and button. Default is nil. + Use this method to show an activity view indicator for loading feedback, or for complete custom empty data set. + Returning a custom view will ignore -offsetForEmptyDataSet and -spaceHeightForEmptyDataSet configurations. + + @param scrollView A scrollView subclass object informing the delegate. + @return The custom view. + */ +- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a offset for vertical and horizontal alignment of the content. Default is CGPointZero. + + @param scrollView A scrollView subclass object informing the delegate. + @return The offset for vertical and horizontal alignment. + */ +- (CGPoint)offsetForEmptyDataSet:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-verticalOffsetForEmptyDataSet:); +- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a vertical space between elements. Default is 11 pts. + + @param scrollView A scrollView subclass object informing the delegate. + @return The space height between elements. + */ +- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView; + +@end + + +/** + The object that acts as the delegate of the empty datasets. + @discussion The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional. + + @discussion All delegate methods are optional. Use this delegate for receiving action callbacks. + */ +@protocol DZNEmptyDataSetDelegate <NSObject> +@optional + +/** + Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should fade in. + */ +- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if empty dataset should be forced to display + */ +- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should show. + */ +- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate for touch permission. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset receives touch gestures. + */ +- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView; + +/** + Asks the delegate for scroll permission. Default is NO. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to be scrollable. + */ +- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView; + +/** + Asks the delegate for image view animation permission. Default is NO. + Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet: + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to animate + */ +- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapView:); + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapButton:); + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + @param view the view tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view; + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + @param button the button tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button; + +/** + Tells the delegate that the empty data set will appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set will disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView; + +@end + +#undef DZNEmptyDataSetDeprecated + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Applications/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Applications/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h index 50e43107c..5dd70f27d 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Applications/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Applications/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h @@ -1 +1,280 @@ -../../../../../../Source/UIScrollView+EmptyDataSet.h
\ No newline at end of file +// +// UIScrollView+EmptyDataSet.h +// DZNEmptyDataSet +// https://github.com/dzenbot/DZNEmptyDataSet +// +// Created by Ignacio Romero Zurbuchen on 6/20/14. +// Copyright (c) 2016 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +@protocol DZNEmptyDataSetSource; +@protocol DZNEmptyDataSetDelegate; + +#define DZNEmptyDataSetDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(" Use " # instead " instead") + +/** + A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. + @discussion It will work automatically, by just conforming to DZNEmptyDataSetSource, and returning the data you want to show. + */ +@interface UIScrollView (EmptyDataSet) + +/** The empty datasets data source. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetSource> emptyDataSetSource; +/** The empty datasets delegate. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetDelegate> emptyDataSetDelegate; +/** YES if any empty dataset is visible. */ +@property (nonatomic, readonly, getter = isEmptyDataSetVisible) BOOL emptyDataSetVisible; + +/** + Reloads the empty dataset content receiver. + @discussion Call this method to force all the data to refresh. Calling -reloadData is similar, but this forces only the empty dataset to reload, not the entire table view or collection view. + */ +- (void)reloadEmptyDataSet; + +@end + + +/** + The object that acts as the data source of the empty datasets. + @discussion The data source must adopt the DZNEmptyDataSetSource protocol. The data source is not retained. All data source methods are optional. + */ +@protocol DZNEmptyDataSetSource <NSObject> +@optional + +/** + Asks the data source for the title of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the description of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset description text, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the image of the dataset. + + @param scrollView A scrollView subclass informing the data source. + @return An image for the dataset. + */ +- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView; + + +/** + Asks the data source for a tint color of the image dataset. Default is nil. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to tint the image of the dataset. + */ +- (UIColor *)imageTintColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + * Asks the data source for the image animation of the dataset. + * + * @param scrollView A scrollView subclass object informing the delegate. + * + * @return image animation + */ +- (CAAnimation *) imageAnimationForEmptyDataSet:(UIScrollView *) scrollView; + +/** + Asks the data source for the title to be used for the specified button state. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)buttonTitleForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the image to be used for the specified button state. + This method will override buttonTitleForEmptyDataSet:forState: and present the image only without any text. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An image for the dataset button imageview. + */ +- (UIImage *)buttonImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for a background image to be used for the specified button state. + There is no default style for this call. + + @param scrollView A scrollView subclass informing the data source. + @param state The state that uses the specified image. The values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (UIImage *)buttonBackgroundImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the background color of the dataset. Default is clear color. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to be applied to the dataset background view. + */ +- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a custom view to be displayed instead of the default views such as labels, imageview and button. Default is nil. + Use this method to show an activity view indicator for loading feedback, or for complete custom empty data set. + Returning a custom view will ignore -offsetForEmptyDataSet and -spaceHeightForEmptyDataSet configurations. + + @param scrollView A scrollView subclass object informing the delegate. + @return The custom view. + */ +- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a offset for vertical and horizontal alignment of the content. Default is CGPointZero. + + @param scrollView A scrollView subclass object informing the delegate. + @return The offset for vertical and horizontal alignment. + */ +- (CGPoint)offsetForEmptyDataSet:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-verticalOffsetForEmptyDataSet:); +- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a vertical space between elements. Default is 11 pts. + + @param scrollView A scrollView subclass object informing the delegate. + @return The space height between elements. + */ +- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView; + +@end + + +/** + The object that acts as the delegate of the empty datasets. + @discussion The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional. + + @discussion All delegate methods are optional. Use this delegate for receiving action callbacks. + */ +@protocol DZNEmptyDataSetDelegate <NSObject> +@optional + +/** + Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should fade in. + */ +- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if empty dataset should be forced to display + */ +- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should show. + */ +- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate for touch permission. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset receives touch gestures. + */ +- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView; + +/** + Asks the delegate for scroll permission. Default is NO. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to be scrollable. + */ +- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView; + +/** + Asks the delegate for image view animation permission. Default is NO. + Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet: + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to animate + */ +- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapView:); + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapButton:); + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + @param view the view tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view; + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + @param button the button tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button; + +/** + Tells the delegate that the empty data set will appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set will disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView; + +@end + +#undef DZNEmptyDataSetDeprecated + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Colors/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Colors/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h index 50e43107c..5dd70f27d 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Colors/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Colors/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h @@ -1 +1,280 @@ -../../../../../../Source/UIScrollView+EmptyDataSet.h
\ No newline at end of file +// +// UIScrollView+EmptyDataSet.h +// DZNEmptyDataSet +// https://github.com/dzenbot/DZNEmptyDataSet +// +// Created by Ignacio Romero Zurbuchen on 6/20/14. +// Copyright (c) 2016 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +@protocol DZNEmptyDataSetSource; +@protocol DZNEmptyDataSetDelegate; + +#define DZNEmptyDataSetDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(" Use " # instead " instead") + +/** + A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. + @discussion It will work automatically, by just conforming to DZNEmptyDataSetSource, and returning the data you want to show. + */ +@interface UIScrollView (EmptyDataSet) + +/** The empty datasets data source. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetSource> emptyDataSetSource; +/** The empty datasets delegate. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetDelegate> emptyDataSetDelegate; +/** YES if any empty dataset is visible. */ +@property (nonatomic, readonly, getter = isEmptyDataSetVisible) BOOL emptyDataSetVisible; + +/** + Reloads the empty dataset content receiver. + @discussion Call this method to force all the data to refresh. Calling -reloadData is similar, but this forces only the empty dataset to reload, not the entire table view or collection view. + */ +- (void)reloadEmptyDataSet; + +@end + + +/** + The object that acts as the data source of the empty datasets. + @discussion The data source must adopt the DZNEmptyDataSetSource protocol. The data source is not retained. All data source methods are optional. + */ +@protocol DZNEmptyDataSetSource <NSObject> +@optional + +/** + Asks the data source for the title of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the description of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset description text, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the image of the dataset. + + @param scrollView A scrollView subclass informing the data source. + @return An image for the dataset. + */ +- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView; + + +/** + Asks the data source for a tint color of the image dataset. Default is nil. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to tint the image of the dataset. + */ +- (UIColor *)imageTintColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + * Asks the data source for the image animation of the dataset. + * + * @param scrollView A scrollView subclass object informing the delegate. + * + * @return image animation + */ +- (CAAnimation *) imageAnimationForEmptyDataSet:(UIScrollView *) scrollView; + +/** + Asks the data source for the title to be used for the specified button state. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)buttonTitleForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the image to be used for the specified button state. + This method will override buttonTitleForEmptyDataSet:forState: and present the image only without any text. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An image for the dataset button imageview. + */ +- (UIImage *)buttonImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for a background image to be used for the specified button state. + There is no default style for this call. + + @param scrollView A scrollView subclass informing the data source. + @param state The state that uses the specified image. The values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (UIImage *)buttonBackgroundImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the background color of the dataset. Default is clear color. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to be applied to the dataset background view. + */ +- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a custom view to be displayed instead of the default views such as labels, imageview and button. Default is nil. + Use this method to show an activity view indicator for loading feedback, or for complete custom empty data set. + Returning a custom view will ignore -offsetForEmptyDataSet and -spaceHeightForEmptyDataSet configurations. + + @param scrollView A scrollView subclass object informing the delegate. + @return The custom view. + */ +- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a offset for vertical and horizontal alignment of the content. Default is CGPointZero. + + @param scrollView A scrollView subclass object informing the delegate. + @return The offset for vertical and horizontal alignment. + */ +- (CGPoint)offsetForEmptyDataSet:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-verticalOffsetForEmptyDataSet:); +- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a vertical space between elements. Default is 11 pts. + + @param scrollView A scrollView subclass object informing the delegate. + @return The space height between elements. + */ +- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView; + +@end + + +/** + The object that acts as the delegate of the empty datasets. + @discussion The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional. + + @discussion All delegate methods are optional. Use this delegate for receiving action callbacks. + */ +@protocol DZNEmptyDataSetDelegate <NSObject> +@optional + +/** + Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should fade in. + */ +- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if empty dataset should be forced to display + */ +- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should show. + */ +- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate for touch permission. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset receives touch gestures. + */ +- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView; + +/** + Asks the delegate for scroll permission. Default is NO. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to be scrollable. + */ +- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView; + +/** + Asks the delegate for image view animation permission. Default is NO. + Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet: + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to animate + */ +- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapView:); + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapButton:); + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + @param view the view tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view; + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + @param button the button tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button; + +/** + Tells the delegate that the empty data set will appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set will disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView; + +@end + +#undef DZNEmptyDataSetDeprecated + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Colors/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Colors/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h index 50e43107c..5dd70f27d 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Colors/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Colors/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h @@ -1 +1,280 @@ -../../../../../../Source/UIScrollView+EmptyDataSet.h
\ No newline at end of file +// +// UIScrollView+EmptyDataSet.h +// DZNEmptyDataSet +// https://github.com/dzenbot/DZNEmptyDataSet +// +// Created by Ignacio Romero Zurbuchen on 6/20/14. +// Copyright (c) 2016 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +@protocol DZNEmptyDataSetSource; +@protocol DZNEmptyDataSetDelegate; + +#define DZNEmptyDataSetDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(" Use " # instead " instead") + +/** + A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. + @discussion It will work automatically, by just conforming to DZNEmptyDataSetSource, and returning the data you want to show. + */ +@interface UIScrollView (EmptyDataSet) + +/** The empty datasets data source. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetSource> emptyDataSetSource; +/** The empty datasets delegate. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetDelegate> emptyDataSetDelegate; +/** YES if any empty dataset is visible. */ +@property (nonatomic, readonly, getter = isEmptyDataSetVisible) BOOL emptyDataSetVisible; + +/** + Reloads the empty dataset content receiver. + @discussion Call this method to force all the data to refresh. Calling -reloadData is similar, but this forces only the empty dataset to reload, not the entire table view or collection view. + */ +- (void)reloadEmptyDataSet; + +@end + + +/** + The object that acts as the data source of the empty datasets. + @discussion The data source must adopt the DZNEmptyDataSetSource protocol. The data source is not retained. All data source methods are optional. + */ +@protocol DZNEmptyDataSetSource <NSObject> +@optional + +/** + Asks the data source for the title of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the description of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset description text, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the image of the dataset. + + @param scrollView A scrollView subclass informing the data source. + @return An image for the dataset. + */ +- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView; + + +/** + Asks the data source for a tint color of the image dataset. Default is nil. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to tint the image of the dataset. + */ +- (UIColor *)imageTintColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + * Asks the data source for the image animation of the dataset. + * + * @param scrollView A scrollView subclass object informing the delegate. + * + * @return image animation + */ +- (CAAnimation *) imageAnimationForEmptyDataSet:(UIScrollView *) scrollView; + +/** + Asks the data source for the title to be used for the specified button state. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)buttonTitleForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the image to be used for the specified button state. + This method will override buttonTitleForEmptyDataSet:forState: and present the image only without any text. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An image for the dataset button imageview. + */ +- (UIImage *)buttonImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for a background image to be used for the specified button state. + There is no default style for this call. + + @param scrollView A scrollView subclass informing the data source. + @param state The state that uses the specified image. The values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (UIImage *)buttonBackgroundImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the background color of the dataset. Default is clear color. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to be applied to the dataset background view. + */ +- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a custom view to be displayed instead of the default views such as labels, imageview and button. Default is nil. + Use this method to show an activity view indicator for loading feedback, or for complete custom empty data set. + Returning a custom view will ignore -offsetForEmptyDataSet and -spaceHeightForEmptyDataSet configurations. + + @param scrollView A scrollView subclass object informing the delegate. + @return The custom view. + */ +- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a offset for vertical and horizontal alignment of the content. Default is CGPointZero. + + @param scrollView A scrollView subclass object informing the delegate. + @return The offset for vertical and horizontal alignment. + */ +- (CGPoint)offsetForEmptyDataSet:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-verticalOffsetForEmptyDataSet:); +- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a vertical space between elements. Default is 11 pts. + + @param scrollView A scrollView subclass object informing the delegate. + @return The space height between elements. + */ +- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView; + +@end + + +/** + The object that acts as the delegate of the empty datasets. + @discussion The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional. + + @discussion All delegate methods are optional. Use this delegate for receiving action callbacks. + */ +@protocol DZNEmptyDataSetDelegate <NSObject> +@optional + +/** + Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should fade in. + */ +- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if empty dataset should be forced to display + */ +- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should show. + */ +- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate for touch permission. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset receives touch gestures. + */ +- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView; + +/** + Asks the delegate for scroll permission. Default is NO. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to be scrollable. + */ +- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView; + +/** + Asks the delegate for image view animation permission. Default is NO. + Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet: + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to animate + */ +- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapView:); + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapButton:); + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + @param view the view tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view; + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + @param button the button tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button; + +/** + Tells the delegate that the empty data set will appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set will disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView; + +@end + +#undef DZNEmptyDataSetDeprecated + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h index 50e43107c..5dd70f27d 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h @@ -1 +1,280 @@ -../../../../../../Source/UIScrollView+EmptyDataSet.h
\ No newline at end of file +// +// UIScrollView+EmptyDataSet.h +// DZNEmptyDataSet +// https://github.com/dzenbot/DZNEmptyDataSet +// +// Created by Ignacio Romero Zurbuchen on 6/20/14. +// Copyright (c) 2016 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +@protocol DZNEmptyDataSetSource; +@protocol DZNEmptyDataSetDelegate; + +#define DZNEmptyDataSetDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(" Use " # instead " instead") + +/** + A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. + @discussion It will work automatically, by just conforming to DZNEmptyDataSetSource, and returning the data you want to show. + */ +@interface UIScrollView (EmptyDataSet) + +/** The empty datasets data source. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetSource> emptyDataSetSource; +/** The empty datasets delegate. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetDelegate> emptyDataSetDelegate; +/** YES if any empty dataset is visible. */ +@property (nonatomic, readonly, getter = isEmptyDataSetVisible) BOOL emptyDataSetVisible; + +/** + Reloads the empty dataset content receiver. + @discussion Call this method to force all the data to refresh. Calling -reloadData is similar, but this forces only the empty dataset to reload, not the entire table view or collection view. + */ +- (void)reloadEmptyDataSet; + +@end + + +/** + The object that acts as the data source of the empty datasets. + @discussion The data source must adopt the DZNEmptyDataSetSource protocol. The data source is not retained. All data source methods are optional. + */ +@protocol DZNEmptyDataSetSource <NSObject> +@optional + +/** + Asks the data source for the title of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the description of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset description text, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the image of the dataset. + + @param scrollView A scrollView subclass informing the data source. + @return An image for the dataset. + */ +- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView; + + +/** + Asks the data source for a tint color of the image dataset. Default is nil. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to tint the image of the dataset. + */ +- (UIColor *)imageTintColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + * Asks the data source for the image animation of the dataset. + * + * @param scrollView A scrollView subclass object informing the delegate. + * + * @return image animation + */ +- (CAAnimation *) imageAnimationForEmptyDataSet:(UIScrollView *) scrollView; + +/** + Asks the data source for the title to be used for the specified button state. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)buttonTitleForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the image to be used for the specified button state. + This method will override buttonTitleForEmptyDataSet:forState: and present the image only without any text. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An image for the dataset button imageview. + */ +- (UIImage *)buttonImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for a background image to be used for the specified button state. + There is no default style for this call. + + @param scrollView A scrollView subclass informing the data source. + @param state The state that uses the specified image. The values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (UIImage *)buttonBackgroundImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the background color of the dataset. Default is clear color. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to be applied to the dataset background view. + */ +- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a custom view to be displayed instead of the default views such as labels, imageview and button. Default is nil. + Use this method to show an activity view indicator for loading feedback, or for complete custom empty data set. + Returning a custom view will ignore -offsetForEmptyDataSet and -spaceHeightForEmptyDataSet configurations. + + @param scrollView A scrollView subclass object informing the delegate. + @return The custom view. + */ +- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a offset for vertical and horizontal alignment of the content. Default is CGPointZero. + + @param scrollView A scrollView subclass object informing the delegate. + @return The offset for vertical and horizontal alignment. + */ +- (CGPoint)offsetForEmptyDataSet:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-verticalOffsetForEmptyDataSet:); +- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a vertical space between elements. Default is 11 pts. + + @param scrollView A scrollView subclass object informing the delegate. + @return The space height between elements. + */ +- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView; + +@end + + +/** + The object that acts as the delegate of the empty datasets. + @discussion The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional. + + @discussion All delegate methods are optional. Use this delegate for receiving action callbacks. + */ +@protocol DZNEmptyDataSetDelegate <NSObject> +@optional + +/** + Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should fade in. + */ +- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if empty dataset should be forced to display + */ +- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should show. + */ +- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate for touch permission. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset receives touch gestures. + */ +- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView; + +/** + Asks the delegate for scroll permission. Default is NO. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to be scrollable. + */ +- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView; + +/** + Asks the delegate for image view animation permission. Default is NO. + Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet: + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to animate + */ +- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapView:); + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapButton:); + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + @param view the view tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view; + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + @param button the button tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button; + +/** + Tells the delegate that the empty data set will appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set will disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView; + +@end + +#undef DZNEmptyDataSetDeprecated + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Private/NSManagedObjectContext-Hydrate/NSManagedObjectContext+Hydrate.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Private/NSManagedObjectContext-Hydrate/NSManagedObjectContext+Hydrate.h index 7bd506096..202bb32d8 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Private/NSManagedObjectContext-Hydrate/NSManagedObjectContext+Hydrate.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Private/NSManagedObjectContext-Hydrate/NSManagedObjectContext+Hydrate.h @@ -1 +1,87 @@ -../../../NSManagedObjectContext-Hydrate/Source/NSManagedObjectContext+Hydrate.h
\ No newline at end of file +// +// NSManagedObjectContext+Hydrate.m +// +// Created by Ignacio Romero Zurbuchen on 7/9/13. +// Copyright (c) 2013 DZN Labs. +// Licence: MIT-Licence +// + +#import <CoreData/CoreData.h> + +/** + A NSManagedObjectContext category class for preload a CoreData persistent store with JSON data. + IMPORTANT: Parsing is done automagically if the JSON key paths are identical to the entity attribute names. If not, you must provide a dictionary with attribute mappings matching the source key paths. + */ +@interface NSManagedObjectContext (Hydrate) + +/** + A custom date format that will be used for all date mappings that have not been configured specifically. + If not set, the default format will be used instead "yyyy-MM-dd'T'HH:mm:ss'Z'" + */ +@property (nonatomic, strong) NSString *preferredDateFormat; + +/** + Returns the singleton managedObjectContext instance. + + @return The shared managedObjectContext. + */ ++ (NSManagedObjectContext *)sharedContext; + + +/** + Sets a managedObjectContext static instance. + + @param context The managedObjectContext to be set. + */ ++ (void)setSharedContext:(NSManagedObjectContext *)context; + + +/** + Preloads an entity table into the persistent store based on a CSV file's data. + + @param path The CSV file's path. + @param attributes A collection of attribute mappings, wherein the keys represent the name target attributes on the destination object and the values represent the source key path. + @param entityName The name of an entity to be stored. + + @discussion Calling this method without a valid attribute mappings collection will raise an exception. The dictionary must be keyed by destination attribute name to source key (the inverse way how the RKObjectMapping class from RestKit works). + Passing a nil attribute mappings collection will be the same as calling hydrateStoreWithJSONAtPath:forEntityName: method. + */ +- (void)hydrateStoreWithCSVAtPath:(NSString *)path attributeMappings:(NSDictionary *)attributes forEntityName:(NSString *)entityName; + + +/** + Preloads an entity table into the persistent store based on a JSON file's data. + + @param path The JSON file's path. + @param attributes A collection of attribute mappings, wherein the keys represent the name target attributes on the destination object and the values represent the source key path. + @param entityName The name of an entity to be stored. + + @discussion Calling this method without a valid attribute mappings collection will raise an exception. The dictionary must be keyed by destination attribute name to source key (the inverse way how the RKObjectMapping class from RestKit works). + Passing a nil attribute mappings collection will be the same as calling hydrateStoreWithJSONAtPath:forEntityName: method. + */ +- (void)hydrateStoreWithJSONAtPath:(NSString *)path attributeMappings:(NSDictionary *)attributes forEntityName:(NSString *)entityName; + + +/** + Preloads an entity table into the persistent store. + + @param objects A list of parsed objects (preferable, NSDictionary instances). + @param attributes A collection of attribute mappings, wherein the keys represent the name target attributes on the destination object and the values represent the source key path. + @param entityName The name of an entity to be stored. + + @discussion Calling this method without a valid attribute mappings collection will raise an exception. The dictionary must be keyed by destination attribute name to source key (the inverse way how the RKObjectMapping class from RestKit works). + Passing a nil attribute mappings collection will be the same as calling hydrateStoreWithObjects:forEntityName: method. + */ +- (void)hydrateStoreWithObjects:(NSArray *)objects attributeMappings:(NSDictionary *)attributes forEntityName:(NSString *)entityName; + + +/** + Checks if there isn't already an entity table preloaded with content. + + @param entityName The entity name to check. + @returns YES if the store's table is empty. NO if the store is already preloaded with content. + */ +- (BOOL)isEmptyStoreForEntityName:(NSString *)entityName; + + +@end diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h index 50e43107c..5dd70f27d 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h @@ -1 +1,280 @@ -../../../../../../Source/UIScrollView+EmptyDataSet.h
\ No newline at end of file +// +// UIScrollView+EmptyDataSet.h +// DZNEmptyDataSet +// https://github.com/dzenbot/DZNEmptyDataSet +// +// Created by Ignacio Romero Zurbuchen on 6/20/14. +// Copyright (c) 2016 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +@protocol DZNEmptyDataSetSource; +@protocol DZNEmptyDataSetDelegate; + +#define DZNEmptyDataSetDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(" Use " # instead " instead") + +/** + A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. + @discussion It will work automatically, by just conforming to DZNEmptyDataSetSource, and returning the data you want to show. + */ +@interface UIScrollView (EmptyDataSet) + +/** The empty datasets data source. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetSource> emptyDataSetSource; +/** The empty datasets delegate. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetDelegate> emptyDataSetDelegate; +/** YES if any empty dataset is visible. */ +@property (nonatomic, readonly, getter = isEmptyDataSetVisible) BOOL emptyDataSetVisible; + +/** + Reloads the empty dataset content receiver. + @discussion Call this method to force all the data to refresh. Calling -reloadData is similar, but this forces only the empty dataset to reload, not the entire table view or collection view. + */ +- (void)reloadEmptyDataSet; + +@end + + +/** + The object that acts as the data source of the empty datasets. + @discussion The data source must adopt the DZNEmptyDataSetSource protocol. The data source is not retained. All data source methods are optional. + */ +@protocol DZNEmptyDataSetSource <NSObject> +@optional + +/** + Asks the data source for the title of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the description of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset description text, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the image of the dataset. + + @param scrollView A scrollView subclass informing the data source. + @return An image for the dataset. + */ +- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView; + + +/** + Asks the data source for a tint color of the image dataset. Default is nil. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to tint the image of the dataset. + */ +- (UIColor *)imageTintColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + * Asks the data source for the image animation of the dataset. + * + * @param scrollView A scrollView subclass object informing the delegate. + * + * @return image animation + */ +- (CAAnimation *) imageAnimationForEmptyDataSet:(UIScrollView *) scrollView; + +/** + Asks the data source for the title to be used for the specified button state. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)buttonTitleForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the image to be used for the specified button state. + This method will override buttonTitleForEmptyDataSet:forState: and present the image only without any text. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An image for the dataset button imageview. + */ +- (UIImage *)buttonImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for a background image to be used for the specified button state. + There is no default style for this call. + + @param scrollView A scrollView subclass informing the data source. + @param state The state that uses the specified image. The values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (UIImage *)buttonBackgroundImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the background color of the dataset. Default is clear color. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to be applied to the dataset background view. + */ +- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a custom view to be displayed instead of the default views such as labels, imageview and button. Default is nil. + Use this method to show an activity view indicator for loading feedback, or for complete custom empty data set. + Returning a custom view will ignore -offsetForEmptyDataSet and -spaceHeightForEmptyDataSet configurations. + + @param scrollView A scrollView subclass object informing the delegate. + @return The custom view. + */ +- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a offset for vertical and horizontal alignment of the content. Default is CGPointZero. + + @param scrollView A scrollView subclass object informing the delegate. + @return The offset for vertical and horizontal alignment. + */ +- (CGPoint)offsetForEmptyDataSet:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-verticalOffsetForEmptyDataSet:); +- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a vertical space between elements. Default is 11 pts. + + @param scrollView A scrollView subclass object informing the delegate. + @return The space height between elements. + */ +- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView; + +@end + + +/** + The object that acts as the delegate of the empty datasets. + @discussion The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional. + + @discussion All delegate methods are optional. Use this delegate for receiving action callbacks. + */ +@protocol DZNEmptyDataSetDelegate <NSObject> +@optional + +/** + Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should fade in. + */ +- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if empty dataset should be forced to display + */ +- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should show. + */ +- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate for touch permission. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset receives touch gestures. + */ +- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView; + +/** + Asks the delegate for scroll permission. Default is NO. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to be scrollable. + */ +- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView; + +/** + Asks the delegate for image view animation permission. Default is NO. + Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet: + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to animate + */ +- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapView:); + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapButton:); + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + @param view the view tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view; + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + @param button the button tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button; + +/** + Tells the delegate that the empty data set will appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set will disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView; + +@end + +#undef DZNEmptyDataSetDeprecated + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Public/NSManagedObjectContext-Hydrate/NSManagedObjectContext+Hydrate.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Public/NSManagedObjectContext-Hydrate/NSManagedObjectContext+Hydrate.h index 7bd506096..202bb32d8 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Public/NSManagedObjectContext-Hydrate/NSManagedObjectContext+Hydrate.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/Countries/Pods/Headers/Public/NSManagedObjectContext-Hydrate/NSManagedObjectContext+Hydrate.h @@ -1 +1,87 @@ -../../../NSManagedObjectContext-Hydrate/Source/NSManagedObjectContext+Hydrate.h
\ No newline at end of file +// +// NSManagedObjectContext+Hydrate.m +// +// Created by Ignacio Romero Zurbuchen on 7/9/13. +// Copyright (c) 2013 DZN Labs. +// Licence: MIT-Licence +// + +#import <CoreData/CoreData.h> + +/** + A NSManagedObjectContext category class for preload a CoreData persistent store with JSON data. + IMPORTANT: Parsing is done automagically if the JSON key paths are identical to the entity attribute names. If not, you must provide a dictionary with attribute mappings matching the source key paths. + */ +@interface NSManagedObjectContext (Hydrate) + +/** + A custom date format that will be used for all date mappings that have not been configured specifically. + If not set, the default format will be used instead "yyyy-MM-dd'T'HH:mm:ss'Z'" + */ +@property (nonatomic, strong) NSString *preferredDateFormat; + +/** + Returns the singleton managedObjectContext instance. + + @return The shared managedObjectContext. + */ ++ (NSManagedObjectContext *)sharedContext; + + +/** + Sets a managedObjectContext static instance. + + @param context The managedObjectContext to be set. + */ ++ (void)setSharedContext:(NSManagedObjectContext *)context; + + +/** + Preloads an entity table into the persistent store based on a CSV file's data. + + @param path The CSV file's path. + @param attributes A collection of attribute mappings, wherein the keys represent the name target attributes on the destination object and the values represent the source key path. + @param entityName The name of an entity to be stored. + + @discussion Calling this method without a valid attribute mappings collection will raise an exception. The dictionary must be keyed by destination attribute name to source key (the inverse way how the RKObjectMapping class from RestKit works). + Passing a nil attribute mappings collection will be the same as calling hydrateStoreWithJSONAtPath:forEntityName: method. + */ +- (void)hydrateStoreWithCSVAtPath:(NSString *)path attributeMappings:(NSDictionary *)attributes forEntityName:(NSString *)entityName; + + +/** + Preloads an entity table into the persistent store based on a JSON file's data. + + @param path The JSON file's path. + @param attributes A collection of attribute mappings, wherein the keys represent the name target attributes on the destination object and the values represent the source key path. + @param entityName The name of an entity to be stored. + + @discussion Calling this method without a valid attribute mappings collection will raise an exception. The dictionary must be keyed by destination attribute name to source key (the inverse way how the RKObjectMapping class from RestKit works). + Passing a nil attribute mappings collection will be the same as calling hydrateStoreWithJSONAtPath:forEntityName: method. + */ +- (void)hydrateStoreWithJSONAtPath:(NSString *)path attributeMappings:(NSDictionary *)attributes forEntityName:(NSString *)entityName; + + +/** + Preloads an entity table into the persistent store. + + @param objects A list of parsed objects (preferable, NSDictionary instances). + @param attributes A collection of attribute mappings, wherein the keys represent the name target attributes on the destination object and the values represent the source key path. + @param entityName The name of an entity to be stored. + + @discussion Calling this method without a valid attribute mappings collection will raise an exception. The dictionary must be keyed by destination attribute name to source key (the inverse way how the RKObjectMapping class from RestKit works). + Passing a nil attribute mappings collection will be the same as calling hydrateStoreWithObjects:forEntityName: method. + */ +- (void)hydrateStoreWithObjects:(NSArray *)objects attributeMappings:(NSDictionary *)attributes forEntityName:(NSString *)entityName; + + +/** + Checks if there isn't already an entity table preloaded with content. + + @param entityName The entity name to check. + @returns YES if the store's table is empty. NO if the store is already preloaded with content. + */ +- (BOOL)isEmptyStoreForEntityName:(NSString *)entityName; + + +@end diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h index 50e43107c..5dd70f27d 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h @@ -1 +1,280 @@ -../../../../../../Source/UIScrollView+EmptyDataSet.h
\ No newline at end of file +// +// UIScrollView+EmptyDataSet.h +// DZNEmptyDataSet +// https://github.com/dzenbot/DZNEmptyDataSet +// +// Created by Ignacio Romero Zurbuchen on 6/20/14. +// Copyright (c) 2016 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +@protocol DZNEmptyDataSetSource; +@protocol DZNEmptyDataSetDelegate; + +#define DZNEmptyDataSetDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(" Use " # instead " instead") + +/** + A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. + @discussion It will work automatically, by just conforming to DZNEmptyDataSetSource, and returning the data you want to show. + */ +@interface UIScrollView (EmptyDataSet) + +/** The empty datasets data source. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetSource> emptyDataSetSource; +/** The empty datasets delegate. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetDelegate> emptyDataSetDelegate; +/** YES if any empty dataset is visible. */ +@property (nonatomic, readonly, getter = isEmptyDataSetVisible) BOOL emptyDataSetVisible; + +/** + Reloads the empty dataset content receiver. + @discussion Call this method to force all the data to refresh. Calling -reloadData is similar, but this forces only the empty dataset to reload, not the entire table view or collection view. + */ +- (void)reloadEmptyDataSet; + +@end + + +/** + The object that acts as the data source of the empty datasets. + @discussion The data source must adopt the DZNEmptyDataSetSource protocol. The data source is not retained. All data source methods are optional. + */ +@protocol DZNEmptyDataSetSource <NSObject> +@optional + +/** + Asks the data source for the title of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the description of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset description text, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the image of the dataset. + + @param scrollView A scrollView subclass informing the data source. + @return An image for the dataset. + */ +- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView; + + +/** + Asks the data source for a tint color of the image dataset. Default is nil. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to tint the image of the dataset. + */ +- (UIColor *)imageTintColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + * Asks the data source for the image animation of the dataset. + * + * @param scrollView A scrollView subclass object informing the delegate. + * + * @return image animation + */ +- (CAAnimation *) imageAnimationForEmptyDataSet:(UIScrollView *) scrollView; + +/** + Asks the data source for the title to be used for the specified button state. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)buttonTitleForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the image to be used for the specified button state. + This method will override buttonTitleForEmptyDataSet:forState: and present the image only without any text. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An image for the dataset button imageview. + */ +- (UIImage *)buttonImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for a background image to be used for the specified button state. + There is no default style for this call. + + @param scrollView A scrollView subclass informing the data source. + @param state The state that uses the specified image. The values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (UIImage *)buttonBackgroundImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the background color of the dataset. Default is clear color. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to be applied to the dataset background view. + */ +- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a custom view to be displayed instead of the default views such as labels, imageview and button. Default is nil. + Use this method to show an activity view indicator for loading feedback, or for complete custom empty data set. + Returning a custom view will ignore -offsetForEmptyDataSet and -spaceHeightForEmptyDataSet configurations. + + @param scrollView A scrollView subclass object informing the delegate. + @return The custom view. + */ +- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a offset for vertical and horizontal alignment of the content. Default is CGPointZero. + + @param scrollView A scrollView subclass object informing the delegate. + @return The offset for vertical and horizontal alignment. + */ +- (CGPoint)offsetForEmptyDataSet:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-verticalOffsetForEmptyDataSet:); +- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a vertical space between elements. Default is 11 pts. + + @param scrollView A scrollView subclass object informing the delegate. + @return The space height between elements. + */ +- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView; + +@end + + +/** + The object that acts as the delegate of the empty datasets. + @discussion The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional. + + @discussion All delegate methods are optional. Use this delegate for receiving action callbacks. + */ +@protocol DZNEmptyDataSetDelegate <NSObject> +@optional + +/** + Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should fade in. + */ +- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if empty dataset should be forced to display + */ +- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should show. + */ +- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate for touch permission. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset receives touch gestures. + */ +- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView; + +/** + Asks the delegate for scroll permission. Default is NO. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to be scrollable. + */ +- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView; + +/** + Asks the delegate for image view animation permission. Default is NO. + Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet: + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to animate + */ +- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapView:); + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapButton:); + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + @param view the view tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view; + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + @param button the button tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button; + +/** + Tells the delegate that the empty data set will appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set will disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView; + +@end + +#undef DZNEmptyDataSetDeprecated + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNWebViewController/DZNPolyActivity.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNWebViewController/DZNPolyActivity.h index 66aabcbbc..8431e0fd2 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNWebViewController/DZNPolyActivity.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNWebViewController/DZNPolyActivity.h @@ -1 +1,45 @@ -../../../DZNWebViewController/Source/Classes/DZNPolyActivity.h
\ No newline at end of file +// +// DZNPolyActivity.h +// DZNWebViewController +// https://github.com/dzenbot/DZNWebViewController +// +// Created by Ignacio Romero Zurbuchen on 3/28/14. +// Copyright (c) 2014 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +/** + * Types of activity kind, used for polymorphic creation. + */ +typedef NS_OPTIONS(NSUInteger, DZNPolyActivityType) { + DZNPolyActivityTypeLink, + DZNPolyActivityTypeSafari, + DZNPolyActivityTypeChrome, + DZNPolyActivityTypeOpera, + DZNPolyActivityTypeDolphin +}; + +/** + * The DZNPolyActivity class is an abstract subclass of UIActivity allowing to easily create polymorphic instances by assigning different activity types. Each type will render a different icon and title, and will perform different actions too. + */ +@interface DZNPolyActivity : UIActivity + +/** + * Initializes and returns a newly created activity with a specific type. + * + * @param type The type of the activity to be created. + * @returns The initialized activity. + */ +- (instancetype)initWithActivityType:(DZNPolyActivityType)type; + +/** + * Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object. + * This method implements the same logic than initWithActivityType: but is just shorter to call. + * + * @param type The type of the activity to be created. + */ ++ (instancetype)activityWithType:(DZNPolyActivityType)type; + +@end diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNWebViewController/DZNWebViewController.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNWebViewController/DZNWebViewController.h index 4558561cf..56362648f 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNWebViewController/DZNWebViewController.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/DZNWebViewController/DZNWebViewController.h @@ -1 +1,75 @@ -../../../DZNWebViewController/Source/Classes/DZNWebViewController.h
\ No newline at end of file +// +// DZNWebViewController.h +// DZNWebViewController +// https://github.com/dzenbot/DZNWebViewController +// +// Created by Ignacio Romero Zurbuchen on 10/25/13. +// Copyright (c) 2014 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +/** + * Types of supported actions (i.e. Share & Copy link, Add to Reading List, Open in Safari/Chrome/Opera/Dolphin). + */ +typedef NS_OPTIONS(NSUInteger, DZNWebViewControllerActions) { + DZNWebViewControllerActionAll = -1, + DZNWebViewControllerActionNone = 0, + DZNWebViewControllerActionShareLink = (1 << 0), + DZNWebViewControllerActionCopyLink = (1 << 1), + DZNWebViewControllerActionReadLater = (1 << 2), + DZNWebViewControllerActionOpenSafari = (1 << 3), + DZNWebViewControllerActionOpenChrome = (1 << 4), + DZNWebViewControllerActionOpenOperaMini = (1 << 5), + DZNWebViewControllerActionOpenDolphin = (1 << 6) +}; + +/** + * Types of network loading style. + */ +typedef NS_OPTIONS(NSUInteger, DZNWebViewControllerLoadingStyle) { + DZNWebViewControllerLoadingStyleNone, + DZNWebViewControllerLoadingStyleProgressView, + DZNWebViewControllerLoadingStyleActivityIndicator +}; + +/** + * A very simple web browser with useful navigation and exportation tools. + */ +@interface DZNWebViewController : UIViewController + +/** The web view that the controller manages. */ +@property (nonatomic, strong) UIWebView *webView; +/** The URL identifying the location of the content to load. */ +@property (nonatomic, readonly) NSURL *URL; +/** The loading visual style, using a progress bar or a network activity indicator. Default is DZNWebViewControllerLoadingStyleProgressView. */ +@property (nonatomic) DZNWebViewControllerLoadingStyle loadingStyle; +/** The supported actions like sharing and copy link, add to reading list, open in Safari, etc. Default is DZNWebViewControllerActionAll. */ +@property (nonatomic) DZNWebViewControllerActions supportedActions; +/** The toolbar background color. Default is black, translucent. */ +@property (nonatomic, strong) UIColor *toolbarBackgroundColor; +/** The toolbar item's tint color. Default is white. */ +@property (nonatomic, strong) UIColor *toolbarTintColor; +/** The navigation bar's title font. Default uses UINavigation's appearance title text attributes with key NSFontAttributeName. */ +@property (nonatomic, strong) UIFont *titleFont; +/** The navigation bar's title custom font. Default uses UINavigation's appearance title text attributes with key NSForegroundColorAttributeName. */ +@property (nonatomic, strong) UIColor *titleColor; + +/** + * Initializes and returns a newly created webview controller with an initial HTTP URL to be requested as soon as the view appears. + * + * @param URL The HTTP URL to be requested. + * @returns The initialized webview controller. + */ +- (id)initWithURL:(NSURL *)URL; + +/** + * Initializes and returns a newly created webview controller for local HTML navigation. + * + * @param URL The file URL of the main html. + * @returns The initialized webview controller. + */ +- (id)initWithFileURL:(NSURL *)URL; + +@end diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/NJKWebViewProgress/NJKWebViewProgress.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/NJKWebViewProgress/NJKWebViewProgress.h index 532f6eb1b..1770c280a 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/NJKWebViewProgress/NJKWebViewProgress.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/NJKWebViewProgress/NJKWebViewProgress.h @@ -1 +1,35 @@ -../../../NJKWebViewProgress/NJKWebViewProgress/NJKWebViewProgress.h
\ No newline at end of file +// +// NJKWebViewProgress.h +// +// Created by Satoshi Aasano on 4/20/13. +// Copyright (c) 2013 Satoshi Asano. All rights reserved. +// + +#import <Foundation/Foundation.h> + +#undef njk_weak +#if __has_feature(objc_arc_weak) +#define njk_weak weak +#else +#define njk_weak unsafe_unretained +#endif + +extern const float NJKInitialProgressValue; +extern const float NJKInteractiveProgressValue; +extern const float NJKFinalProgressValue; + +typedef void (^NJKWebViewProgressBlock)(float progress); +@protocol NJKWebViewProgressDelegate; +@interface NJKWebViewProgress : NSObject<UIWebViewDelegate> +@property (nonatomic, njk_weak) id<NJKWebViewProgressDelegate>progressDelegate; +@property (nonatomic, njk_weak) id<UIWebViewDelegate>webViewProxyDelegate; +@property (nonatomic, copy) NJKWebViewProgressBlock progressBlock; +@property (nonatomic, readonly) float progress; // 0.0..1.0 + +- (void)reset; +@end + +@protocol NJKWebViewProgressDelegate <NSObject> +- (void)webViewProgress:(NJKWebViewProgress *)webViewProgress updateProgress:(float)progress; +@end + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/NJKWebViewProgress/NJKWebViewProgressView.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/NJKWebViewProgress/NJKWebViewProgressView.h index 58af12775..0f7a2add2 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/NJKWebViewProgress/NJKWebViewProgressView.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Private/NJKWebViewProgress/NJKWebViewProgressView.h @@ -1 +1,21 @@ -../../../NJKWebViewProgress/NJKWebViewProgress/NJKWebViewProgressView.h
\ No newline at end of file +// +// NJKWebViewProgressView.h +// iOS 7 Style WebView Progress Bar +// +// Created by Satoshi Aasano on 11/16/13. +// Copyright (c) 2013 Satoshi Asano. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface NJKWebViewProgressView : UIView +@property (nonatomic) float progress; + +@property (nonatomic) UIView *progressBarView; +@property (nonatomic) NSTimeInterval barAnimationDuration; // default 0.1 +@property (nonatomic) NSTimeInterval fadeAnimationDuration; // default 0.27 +@property (nonatomic) NSTimeInterval fadeOutDelay; // default 0.1 + +- (void)setProgress:(float)progress animated:(BOOL)animated; + +@end diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h index 50e43107c..5dd70f27d 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNEmptyDataSet/UIScrollView+EmptyDataSet.h @@ -1 +1,280 @@ -../../../../../../Source/UIScrollView+EmptyDataSet.h
\ No newline at end of file +// +// UIScrollView+EmptyDataSet.h +// DZNEmptyDataSet +// https://github.com/dzenbot/DZNEmptyDataSet +// +// Created by Ignacio Romero Zurbuchen on 6/20/14. +// Copyright (c) 2016 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +@protocol DZNEmptyDataSetSource; +@protocol DZNEmptyDataSetDelegate; + +#define DZNEmptyDataSetDeprecated(instead) DEPRECATED_MSG_ATTRIBUTE(" Use " # instead " instead") + +/** + A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. + @discussion It will work automatically, by just conforming to DZNEmptyDataSetSource, and returning the data you want to show. + */ +@interface UIScrollView (EmptyDataSet) + +/** The empty datasets data source. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetSource> emptyDataSetSource; +/** The empty datasets delegate. */ +@property (nonatomic, weak) IBOutlet id <DZNEmptyDataSetDelegate> emptyDataSetDelegate; +/** YES if any empty dataset is visible. */ +@property (nonatomic, readonly, getter = isEmptyDataSetVisible) BOOL emptyDataSetVisible; + +/** + Reloads the empty dataset content receiver. + @discussion Call this method to force all the data to refresh. Calling -reloadData is similar, but this forces only the empty dataset to reload, not the entire table view or collection view. + */ +- (void)reloadEmptyDataSet; + +@end + + +/** + The object that acts as the data source of the empty datasets. + @discussion The data source must adopt the DZNEmptyDataSetSource protocol. The data source is not retained. All data source methods are optional. + */ +@protocol DZNEmptyDataSetSource <NSObject> +@optional + +/** + Asks the data source for the title of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the description of the dataset. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass informing the data source. + @return An attributed string for the dataset description text, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for the image of the dataset. + + @param scrollView A scrollView subclass informing the data source. + @return An image for the dataset. + */ +- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView; + + +/** + Asks the data source for a tint color of the image dataset. Default is nil. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to tint the image of the dataset. + */ +- (UIColor *)imageTintColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + * Asks the data source for the image animation of the dataset. + * + * @param scrollView A scrollView subclass object informing the delegate. + * + * @return image animation + */ +- (CAAnimation *) imageAnimationForEmptyDataSet:(UIScrollView *) scrollView; + +/** + Asks the data source for the title to be used for the specified button state. + The dataset uses a fixed font style by default, if no attributes are set. If you want a different font style, return a attributed string. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (NSAttributedString *)buttonTitleForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the image to be used for the specified button state. + This method will override buttonTitleForEmptyDataSet:forState: and present the image only without any text. + + @param scrollView A scrollView subclass object informing the data source. + @param state The state that uses the specified title. The possible values are described in UIControlState. + @return An image for the dataset button imageview. + */ +- (UIImage *)buttonImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for a background image to be used for the specified button state. + There is no default style for this call. + + @param scrollView A scrollView subclass informing the data source. + @param state The state that uses the specified image. The values are described in UIControlState. + @return An attributed string for the dataset button title, combining font, text color, text pararaph style, etc. + */ +- (UIImage *)buttonBackgroundImageForEmptyDataSet:(UIScrollView *)scrollView forState:(UIControlState)state; + +/** + Asks the data source for the background color of the dataset. Default is clear color. + + @param scrollView A scrollView subclass object informing the data source. + @return A color to be applied to the dataset background view. + */ +- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a custom view to be displayed instead of the default views such as labels, imageview and button. Default is nil. + Use this method to show an activity view indicator for loading feedback, or for complete custom empty data set. + Returning a custom view will ignore -offsetForEmptyDataSet and -spaceHeightForEmptyDataSet configurations. + + @param scrollView A scrollView subclass object informing the delegate. + @return The custom view. + */ +- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a offset for vertical and horizontal alignment of the content. Default is CGPointZero. + + @param scrollView A scrollView subclass object informing the delegate. + @return The offset for vertical and horizontal alignment. + */ +- (CGPoint)offsetForEmptyDataSet:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-verticalOffsetForEmptyDataSet:); +- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView; + +/** + Asks the data source for a vertical space between elements. Default is 11 pts. + + @param scrollView A scrollView subclass object informing the delegate. + @return The space height between elements. + */ +- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView; + +@end + + +/** + The object that acts as the delegate of the empty datasets. + @discussion The delegate can adopt the DZNEmptyDataSetDelegate protocol. The delegate is not retained. All delegate methods are optional. + + @discussion All delegate methods are optional. Use this delegate for receiving action callbacks. + */ +@protocol DZNEmptyDataSetDelegate <NSObject> +@optional + +/** + Asks the delegate to know if the empty dataset should fade in when displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should fade in. + */ +- (BOOL)emptyDataSetShouldFadeIn:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should still be displayed when the amount of items is more than 0. Default is NO + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if empty dataset should be forced to display + */ +- (BOOL)emptyDataSetShouldBeForcedToDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate to know if the empty dataset should be rendered and displayed. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset should show. + */ +- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView; + +/** + Asks the delegate for touch permission. Default is YES. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset receives touch gestures. + */ +- (BOOL)emptyDataSetShouldAllowTouch:(UIScrollView *)scrollView; + +/** + Asks the delegate for scroll permission. Default is NO. + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to be scrollable. + */ +- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView; + +/** + Asks the delegate for image view animation permission. Default is NO. + Make sure to return a valid CAAnimation object from imageAnimationForEmptyDataSet: + + @param scrollView A scrollView subclass object informing the delegate. + @return YES if the empty dataset is allowed to animate + */ +- (BOOL)emptyDataSetShouldAnimateImageView:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapView:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapView:); + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidTapButton:(UIScrollView *)scrollView DZNEmptyDataSetDeprecated(-emptyDataSet:didTapButton:); + +/** + Tells the delegate that the empty dataset view was tapped. + Use this method either to resignFirstResponder of a textfield or searchBar. + + @param scrollView A scrollView subclass informing the delegate. + @param view the view tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapView:(UIView *)view; + +/** + Tells the delegate that the action button was tapped. + + @param scrollView A scrollView subclass informing the delegate. + @param button the button tapped by the user + */ +- (void)emptyDataSet:(UIScrollView *)scrollView didTapButton:(UIButton *)button; + +/** + Tells the delegate that the empty data set will appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did appear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidAppear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set will disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetWillDisappear:(UIScrollView *)scrollView; + +/** + Tells the delegate that the empty data set did disappear. + + @param scrollView A scrollView subclass informing the delegate. + */ +- (void)emptyDataSetDidDisappear:(UIScrollView *)scrollView; + +@end + +#undef DZNEmptyDataSetDeprecated + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNWebViewController/DZNPolyActivity.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNWebViewController/DZNPolyActivity.h index 66aabcbbc..8431e0fd2 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNWebViewController/DZNPolyActivity.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNWebViewController/DZNPolyActivity.h @@ -1 +1,45 @@ -../../../DZNWebViewController/Source/Classes/DZNPolyActivity.h
\ No newline at end of file +// +// DZNPolyActivity.h +// DZNWebViewController +// https://github.com/dzenbot/DZNWebViewController +// +// Created by Ignacio Romero Zurbuchen on 3/28/14. +// Copyright (c) 2014 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +/** + * Types of activity kind, used for polymorphic creation. + */ +typedef NS_OPTIONS(NSUInteger, DZNPolyActivityType) { + DZNPolyActivityTypeLink, + DZNPolyActivityTypeSafari, + DZNPolyActivityTypeChrome, + DZNPolyActivityTypeOpera, + DZNPolyActivityTypeDolphin +}; + +/** + * The DZNPolyActivity class is an abstract subclass of UIActivity allowing to easily create polymorphic instances by assigning different activity types. Each type will render a different icon and title, and will perform different actions too. + */ +@interface DZNPolyActivity : UIActivity + +/** + * Initializes and returns a newly created activity with a specific type. + * + * @param type The type of the activity to be created. + * @returns The initialized activity. + */ +- (instancetype)initWithActivityType:(DZNPolyActivityType)type; + +/** + * Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object. + * This method implements the same logic than initWithActivityType: but is just shorter to call. + * + * @param type The type of the activity to be created. + */ ++ (instancetype)activityWithType:(DZNPolyActivityType)type; + +@end diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNWebViewController/DZNWebViewController.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNWebViewController/DZNWebViewController.h index 4558561cf..56362648f 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNWebViewController/DZNWebViewController.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/DZNWebViewController/DZNWebViewController.h @@ -1 +1,75 @@ -../../../DZNWebViewController/Source/Classes/DZNWebViewController.h
\ No newline at end of file +// +// DZNWebViewController.h +// DZNWebViewController +// https://github.com/dzenbot/DZNWebViewController +// +// Created by Ignacio Romero Zurbuchen on 10/25/13. +// Copyright (c) 2014 DZN Labs. All rights reserved. +// Licence: MIT-Licence +// + +#import <UIKit/UIKit.h> + +/** + * Types of supported actions (i.e. Share & Copy link, Add to Reading List, Open in Safari/Chrome/Opera/Dolphin). + */ +typedef NS_OPTIONS(NSUInteger, DZNWebViewControllerActions) { + DZNWebViewControllerActionAll = -1, + DZNWebViewControllerActionNone = 0, + DZNWebViewControllerActionShareLink = (1 << 0), + DZNWebViewControllerActionCopyLink = (1 << 1), + DZNWebViewControllerActionReadLater = (1 << 2), + DZNWebViewControllerActionOpenSafari = (1 << 3), + DZNWebViewControllerActionOpenChrome = (1 << 4), + DZNWebViewControllerActionOpenOperaMini = (1 << 5), + DZNWebViewControllerActionOpenDolphin = (1 << 6) +}; + +/** + * Types of network loading style. + */ +typedef NS_OPTIONS(NSUInteger, DZNWebViewControllerLoadingStyle) { + DZNWebViewControllerLoadingStyleNone, + DZNWebViewControllerLoadingStyleProgressView, + DZNWebViewControllerLoadingStyleActivityIndicator +}; + +/** + * A very simple web browser with useful navigation and exportation tools. + */ +@interface DZNWebViewController : UIViewController + +/** The web view that the controller manages. */ +@property (nonatomic, strong) UIWebView *webView; +/** The URL identifying the location of the content to load. */ +@property (nonatomic, readonly) NSURL *URL; +/** The loading visual style, using a progress bar or a network activity indicator. Default is DZNWebViewControllerLoadingStyleProgressView. */ +@property (nonatomic) DZNWebViewControllerLoadingStyle loadingStyle; +/** The supported actions like sharing and copy link, add to reading list, open in Safari, etc. Default is DZNWebViewControllerActionAll. */ +@property (nonatomic) DZNWebViewControllerActions supportedActions; +/** The toolbar background color. Default is black, translucent. */ +@property (nonatomic, strong) UIColor *toolbarBackgroundColor; +/** The toolbar item's tint color. Default is white. */ +@property (nonatomic, strong) UIColor *toolbarTintColor; +/** The navigation bar's title font. Default uses UINavigation's appearance title text attributes with key NSFontAttributeName. */ +@property (nonatomic, strong) UIFont *titleFont; +/** The navigation bar's title custom font. Default uses UINavigation's appearance title text attributes with key NSForegroundColorAttributeName. */ +@property (nonatomic, strong) UIColor *titleColor; + +/** + * Initializes and returns a newly created webview controller with an initial HTTP URL to be requested as soon as the view appears. + * + * @param URL The HTTP URL to be requested. + * @returns The initialized webview controller. + */ +- (id)initWithURL:(NSURL *)URL; + +/** + * Initializes and returns a newly created webview controller for local HTML navigation. + * + * @param URL The file URL of the main html. + * @returns The initialized webview controller. + */ +- (id)initWithFileURL:(NSURL *)URL; + +@end diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/NJKWebViewProgress/NJKWebViewProgress.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/NJKWebViewProgress/NJKWebViewProgress.h index 532f6eb1b..1770c280a 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/NJKWebViewProgress/NJKWebViewProgress.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/NJKWebViewProgress/NJKWebViewProgress.h @@ -1 +1,35 @@ -../../../NJKWebViewProgress/NJKWebViewProgress/NJKWebViewProgress.h
\ No newline at end of file +// +// NJKWebViewProgress.h +// +// Created by Satoshi Aasano on 4/20/13. +// Copyright (c) 2013 Satoshi Asano. All rights reserved. +// + +#import <Foundation/Foundation.h> + +#undef njk_weak +#if __has_feature(objc_arc_weak) +#define njk_weak weak +#else +#define njk_weak unsafe_unretained +#endif + +extern const float NJKInitialProgressValue; +extern const float NJKInteractiveProgressValue; +extern const float NJKFinalProgressValue; + +typedef void (^NJKWebViewProgressBlock)(float progress); +@protocol NJKWebViewProgressDelegate; +@interface NJKWebViewProgress : NSObject<UIWebViewDelegate> +@property (nonatomic, njk_weak) id<NJKWebViewProgressDelegate>progressDelegate; +@property (nonatomic, njk_weak) id<UIWebViewDelegate>webViewProxyDelegate; +@property (nonatomic, copy) NJKWebViewProgressBlock progressBlock; +@property (nonatomic, readonly) float progress; // 0.0..1.0 + +- (void)reset; +@end + +@protocol NJKWebViewProgressDelegate <NSObject> +- (void)webViewProgress:(NJKWebViewProgress *)webViewProgress updateProgress:(float)progress; +@end + diff --git a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/NJKWebViewProgress/NJKWebViewProgressView.h b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/NJKWebViewProgress/NJKWebViewProgressView.h index 58af12775..0f7a2add2 120000..100644 --- a/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/NJKWebViewProgress/NJKWebViewProgressView.h +++ b/Carthage/Checkouts/DZNEmptyDataSet/Examples/WebBrowser/Pods/Headers/Public/NJKWebViewProgress/NJKWebViewProgressView.h @@ -1 +1,21 @@ -../../../NJKWebViewProgress/NJKWebViewProgress/NJKWebViewProgressView.h
\ No newline at end of file +// +// NJKWebViewProgressView.h +// iOS 7 Style WebView Progress Bar +// +// Created by Satoshi Aasano on 11/16/13. +// Copyright (c) 2013 Satoshi Asano. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface NJKWebViewProgressView : UIView +@property (nonatomic) float progress; + +@property (nonatomic) UIView *progressBarView; +@property (nonatomic) NSTimeInterval barAnimationDuration; // default 0.1 +@property (nonatomic) NSTimeInterval fadeAnimationDuration; // default 0.27 +@property (nonatomic) NSTimeInterval fadeOutDelay; // default 0.1 + +- (void)setProgress:(float)progress animated:(BOOL)animated; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/EARestrictedScrollView/EARestrictedScrollView.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/EARestrictedScrollView/EARestrictedScrollView.h index 050f388ba..37a31a555 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/EARestrictedScrollView/EARestrictedScrollView.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/EARestrictedScrollView/EARestrictedScrollView.h @@ -1 +1,42 @@ -../../../../../EARestrictedScrollView/EARestrictedScrollView.h
\ No newline at end of file +// +// EARestrictedScrollView.h +// +// Copyright (c) 2015-2016 Evgeny Aleksandrov. License: MIT. + +#import <UIKit/UIKit.h> + +@interface EARestrictedScrollView : UIScrollView + +/** + * This property leads to containerView.subviews - all subviews except scroll indicators are stored there. + */ +@property (nonatomic, copy, readonly) NSArray<UIView *> *containedSubviews; + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wproperty-attribute-mismatch" +/** + * When accessing this property with dot-notation - container offset will be used to calculate final value, so you can forget about implemetation details. Also lies in coordinate space of `contentView`. + */ +@property (nonatomic, assign, getter=alignedContentOffset, setter=setAlignedContentOffset:) CGPoint contentOffset; +#pragma GCC diagnostic pop + +/** + * This is the rect property which defines restriction area in coordinate space of `contentView`. Use CGRectZero to reset restriction. + */ +@property (nonatomic, assign) CGRect restrictionArea; + +/** + * Should not be used, since it changes parent contentOffset that is being manipulated by subclass. + * + * @see contentOffset + */ +- (void)setContentOffset:(CGPoint)contentOffset __attribute__((unavailable("use dot notation to access property"))); + +/** + * Should not be used, since it leads to parent contentOffset that is being manipulated by subclass. + * + * @see contentOffset + */ +- (CGPoint)contentOffset __attribute__((unavailable("use dot notation to access property"))); + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta+Snapshots/EXPMatchers+FBSnapshotTest.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta+Snapshots/EXPMatchers+FBSnapshotTest.h index 93356db7f..8392d50cd 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta+Snapshots/EXPMatchers+FBSnapshotTest.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta+Snapshots/EXPMatchers+FBSnapshotTest.h @@ -1 +1,14 @@ -../../../Expecta+Snapshots/EXPMatchers+FBSnapshotTest.h
\ No newline at end of file +#import <Expecta/Expecta.h> +#import "ExpectaObject+FBSnapshotTest.h" + +@interface EXPExpectFBSnapshotTest : NSObject +@end + +/// Set the default folder for image tests to run in +extern void setGlobalReferenceImageDir(char *reference); + +EXPMatcherInterface(haveValidSnapshot, (void)); +EXPMatcherInterface(recordSnapshot, (void)); + +EXPMatcherInterface(haveValidSnapshotNamed, (NSString *snapshot)); +EXPMatcherInterface(recordSnapshotNamed, (NSString *snapshot)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta+Snapshots/ExpectaObject+FBSnapshotTest.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta+Snapshots/ExpectaObject+FBSnapshotTest.h index e3e53b3fa..a3feec3c2 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta+Snapshots/ExpectaObject+FBSnapshotTest.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta+Snapshots/ExpectaObject+FBSnapshotTest.h @@ -1 +1,17 @@ -../../../Expecta+Snapshots/ExpectaObject+FBSnapshotTest.h
\ No newline at end of file +// +// ExpectaObject+FBSnapshotTest.h +// Expecta+Snapshots +// +// Created by John Boiles on 8/3/15. +// Copyright (c) 2015 Expecta+Snapshots All rights reserved. +// + +#import <Expecta/ExpectaObject.h> + +@interface Expecta (FBSnapshotTest) + ++ (void)setUsesDrawViewHierarchyInRect:(BOOL)usesDrawViewHierarchyInRect; + ++ (BOOL)usesDrawViewHierarchyInRect; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPBlockDefinedMatcher.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPBlockDefinedMatcher.h index ebefa87b1..58b128283 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPBlockDefinedMatcher.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPBlockDefinedMatcher.h @@ -1 +1,25 @@ -../../../Expecta/Expecta/EXPBlockDefinedMatcher.h
\ No newline at end of file +// +// EXPRuntimeMatcher.h +// Expecta +// +// Created by Luke Redpath on 26/03/2012. +// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. +// + +#import <Foundation/Foundation.h> +#import "EXPMatcher.h" +#import "EXPDefines.h" + +@interface EXPBlockDefinedMatcher : NSObject <EXPMatcher> { + EXPBoolBlock prerequisiteBlock; + EXPBoolBlock matchBlock; + EXPStringBlock failureMessageForToBlock; + EXPStringBlock failureMessageForNotToBlock; +} + +@property(nonatomic, copy) EXPBoolBlock prerequisiteBlock; +@property(nonatomic, copy) EXPBoolBlock matchBlock; +@property(nonatomic, copy) EXPStringBlock failureMessageForToBlock; +@property(nonatomic, copy) EXPStringBlock failureMessageForNotToBlock; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPDefines.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPDefines.h index 22add0cdc..52af72191 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPDefines.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPDefines.h @@ -1 +1,17 @@ -../../../Expecta/Expecta/EXPDefines.h
\ No newline at end of file +// +// EXPDefines.h +// Expecta +// +// Created by Luke Redpath on 26/03/2012. +// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. +// + +#ifndef Expecta_EXPDefines_h +#define Expecta_EXPDefines_h + +typedef void (^EXPBasicBlock)(); +typedef id (^EXPIdBlock)(); +typedef BOOL (^EXPBoolBlock)(); +typedef NSString *(^EXPStringBlock)(); + +#endif diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPDoubleTuple.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPDoubleTuple.h index 54aa0b5e6..4bd231c57 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPDoubleTuple.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPDoubleTuple.h @@ -1 +1,13 @@ -../../../Expecta/Expecta/EXPDoubleTuple.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +@interface EXPDoubleTuple : NSObject { + double *_values; + size_t _size; +} + +@property (nonatomic, assign) double *values; +@property (nonatomic, assign) size_t size; + +- (instancetype)initWithDoubleValues:(double *)values size:(size_t)size NS_DESIGNATED_INITIALIZER; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPExpect.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPExpect.h index a677bddfc..985c1200d 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPExpect.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPExpect.h @@ -1 +1,45 @@ -../../../Expecta/Expecta/EXPExpect.h
\ No newline at end of file +#import <Foundation/Foundation.h> +#import "EXPMatcher.h" +#import "EXPDefines.h" + +@interface EXPExpect : NSObject { + EXPIdBlock _actualBlock; + id _testCase; + int _lineNumber; + char *_fileName; + BOOL _negative; + BOOL _asynchronous; + NSTimeInterval _timeout; +} + +@property(nonatomic, copy) EXPIdBlock actualBlock; +@property(nonatomic, readonly) id actual; +@property(nonatomic, assign) id testCase; +@property(nonatomic) int lineNumber; +@property(nonatomic) const char *fileName; +@property(nonatomic) BOOL negative; +@property(nonatomic) BOOL asynchronous; +@property(nonatomic) NSTimeInterval timeout; + +@property(nonatomic, readonly) EXPExpect *to; +@property(nonatomic, readonly) EXPExpect *toNot; +@property(nonatomic, readonly) EXPExpect *notTo; +@property(nonatomic, readonly) EXPExpect *will; +@property(nonatomic, readonly) EXPExpect *willNot; +@property(nonatomic, readonly) EXPExpect *(^after)(NSTimeInterval timeInterval); + +- (instancetype)initWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName NS_DESIGNATED_INITIALIZER; ++ (EXPExpect *)expectWithActualBlock:(id)actualBlock testCase:(id)testCase lineNumber:(int)lineNumber fileName:(const char *)fileName; + +- (void)applyMatcher:(id<EXPMatcher>)matcher; +- (void)applyMatcher:(id<EXPMatcher>)matcher to:(NSObject **)actual; + +@end + +@interface EXPDynamicPredicateMatcher : NSObject <EXPMatcher> { + EXPExpect *_expectation; + SEL _selector; +} +- (instancetype)initWithExpectation:(EXPExpect *)expectation selector:(SEL)selector NS_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) void (^dispatch)(void); +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPFloatTuple.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPFloatTuple.h index 2b405694a..ea8ee810b 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPFloatTuple.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPFloatTuple.h @@ -1 +1,13 @@ -../../../Expecta/Expecta/EXPFloatTuple.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +@interface EXPFloatTuple : NSObject { + float *_values; + size_t _size; +} + +@property (nonatomic, assign) float *values; +@property (nonatomic, assign) size_t size; + +- (instancetype)initWithFloatValues:(float *)values size:(size_t)size NS_DESIGNATED_INITIALIZER; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatcher.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatcher.h index 3b20a122c..b207a8426 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatcher.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatcher.h @@ -1 +1,20 @@ -../../../Expecta/Expecta/EXPMatcher.h
\ No newline at end of file +// +// EXPMatcher.h +// Expecta +// +// Created by Luke Redpath on 26/03/2012. +// Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. +// + +#import <Foundation/Foundation.h> + +@protocol EXPMatcher <NSObject> + +- (BOOL)matches:(id)actual; + +@optional +- (BOOL)meetsPrerequesiteFor:(id)actual; +- (NSString *)failureMessageForTo:(id)actual; +- (NSString *)failureMessageForNotTo:(id)actual; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatcherHelpers.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatcherHelpers.h index 697385b07..5780ff632 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatcherHelpers.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatcherHelpers.h @@ -1 +1,4 @@ -../../../Expecta/Expecta/Matchers/EXPMatcherHelpers.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +BOOL EXPIsValuePointer(NSValue *value); +BOOL EXPIsNumberFloat(NSNumber *number); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beCloseTo.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beCloseTo.h index 0eed377cb..f683d6b08 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beCloseTo.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beCloseTo.h @@ -1 +1,7 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beCloseTo.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_beCloseToWithin, (id expected, id within)); +EXPMatcherInterface(beCloseToWithin, (id expected, id within)); + +#define beCloseTo(expected) _beCloseToWithin(EXPObjectify((expected)), nil) +#define beCloseToWithin(expected, range) _beCloseToWithin(EXPObjectify((expected)), EXPObjectify((range))) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beFalsy.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beFalsy.h index 92643c49a..89c8e003e 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beFalsy.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beFalsy.h @@ -1 +1,3 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beFalsy.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(beFalsy, (void)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThan.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThan.h index 1ccc62b4a..a2f9fbac4 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThan.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThan.h @@ -1 +1,6 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beGreaterThan.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_beGreaterThan, (id expected)); +EXPMatcherInterface(beGreaterThan, (id expected)); + +#define beGreaterThan(expected) _beGreaterThan(EXPObjectify((expected))) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h index db5bf966a..3e91c64cd 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h @@ -1 +1,6 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_beGreaterThanOrEqualTo, (id expected)); +EXPMatcherInterface(beGreaterThanOrEqualTo, (id expected)); + +#define beGreaterThanOrEqualTo(expected) _beGreaterThanOrEqualTo(EXPObjectify((expected))) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beIdenticalTo.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beIdenticalTo.h index 6e17ea43e..d13619f84 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beIdenticalTo.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beIdenticalTo.h @@ -1 +1,10 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beIdenticalTo.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_beIdenticalTo, (void *expected)); +EXPMatcherInterface(beIdenticalTo, (void *expected)); // to aid code completion + +#if __has_feature(objc_arc) +#define beIdenticalTo(expected) _beIdenticalTo((__bridge void*)expected) +#else +#define beIdenticalTo(expected) _beIdenticalTo(expected) +#endif diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beInTheRangeOf.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beInTheRangeOf.h index 362d8a7f6..8ea990e23 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beInTheRangeOf.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beInTheRangeOf.h @@ -1 +1,6 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beInTheRangeOf.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)); +EXPMatcherInterface(beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)); + +#define beInTheRangeOf(expectedLowerBound, expectedUpperBound) _beInTheRangeOf(EXPObjectify((expectedLowerBound)), EXPObjectify((expectedUpperBound))) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beInstanceOf.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beInstanceOf.h index 4dd60632f..a8e8175dc 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beInstanceOf.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beInstanceOf.h @@ -1 +1,6 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beInstanceOf.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(beInstanceOf, (Class expected)); +EXPMatcherInterface(beAnInstanceOf, (Class expected)); +EXPMatcherInterface(beMemberOf, (Class expected)); +EXPMatcherInterface(beAMemberOf, (Class expected)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beKindOf.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beKindOf.h index 113c7d372..b8623e0b5 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beKindOf.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beKindOf.h @@ -1 +1,4 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beKindOf.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(beKindOf, (Class expected)); +EXPMatcherInterface(beAKindOf, (Class expected)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beLessThan.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beLessThan.h index 675e86a56..5ed0a24c3 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beLessThan.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beLessThan.h @@ -1 +1,6 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beLessThan.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_beLessThan, (id expected)); +EXPMatcherInterface(beLessThan, (id expected)); + +#define beLessThan(expected) _beLessThan(EXPObjectify((expected))) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beLessThanOrEqualTo.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beLessThanOrEqualTo.h index c16df2f05..2c3134150 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beLessThanOrEqualTo.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beLessThanOrEqualTo.h @@ -1 +1,6 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_beLessThanOrEqualTo, (id expected)); +EXPMatcherInterface(beLessThanOrEqualTo, (id expected)); + +#define beLessThanOrEqualTo(expected) _beLessThanOrEqualTo(EXPObjectify((expected))) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beNil.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beNil.h index 9f65a6c12..6d781620d 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beNil.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beNil.h @@ -1 +1,4 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beNil.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(beNil, (void)); +EXPMatcherInterface(beNull, (void)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beSubclassOf.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beSubclassOf.h index 27aa7bea5..65401c593 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beSubclassOf.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beSubclassOf.h @@ -1 +1,4 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beSubclassOf.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(beSubclassOf, (Class expected)); +EXPMatcherInterface(beASubclassOf, (Class expected)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beSupersetOf.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beSupersetOf.h index ea3f770a1..f9a47ba66 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beSupersetOf.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beSupersetOf.h @@ -1 +1,4 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beSupersetOf.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(beSupersetOf, (id subset)); + diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beTruthy.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beTruthy.h index 192ac764e..1e4e78f9b 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beTruthy.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beTruthy.h @@ -1 +1,3 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beTruthy.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(beTruthy, (void)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beginWith.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beginWith.h index 2efba8fea..07ddd6c2d 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beginWith.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+beginWith.h @@ -1 +1,4 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+beginWith.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(beginWith, (id expected)); +EXPMatcherInterface(startWith, (id expected)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+conformTo.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+conformTo.h index 062fb51d7..efc7b9823 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+conformTo.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+conformTo.h @@ -1 +1,3 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+conformTo.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(conformTo, (Protocol *expected)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+contain.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+contain.h index 3661fe5f3..580314612 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+contain.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+contain.h @@ -1 +1,5 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+contain.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_contain, (id expected)); +EXPMatcherInterface(contain, (id expected)); // to aid code completion +#define contain(expected) _contain(EXPObjectify((expected))) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+endWith.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+endWith.h index 7e6c9cf1c..228cea95d 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+endWith.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+endWith.h @@ -1 +1,3 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+endWith.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(endWith, (id expected)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+equal.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+equal.h index 7bee78866..b4047c0ea 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+equal.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+equal.h @@ -1 +1,5 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+equal.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(_equal, (id expected)); +EXPMatcherInterface(equal, (id expected)); // to aid code completion +#define equal(...) _equal(EXPObjectify((__VA_ARGS__))) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+haveCountOf.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+haveCountOf.h index f46d23adf..2e9aef570 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+haveCountOf.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+haveCountOf.h @@ -1 +1,10 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+haveCountOf.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(haveCountOf, (NSUInteger expected)); +EXPMatcherInterface(haveCount, (NSUInteger expected)); +EXPMatcherInterface(haveACountOf, (NSUInteger expected)); +EXPMatcherInterface(haveLength, (NSUInteger expected)); +EXPMatcherInterface(haveLengthOf, (NSUInteger expected)); +EXPMatcherInterface(haveALengthOf, (NSUInteger expected)); + +#define beEmpty() haveCountOf(0) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+match.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+match.h index 18f995de6..4f0e8e475 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+match.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+match.h @@ -1 +1,3 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+match.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(match, (NSString *expected)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+postNotification.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+postNotification.h index c9422e3e7..cdba4a347 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+postNotification.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+postNotification.h @@ -1 +1,4 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+postNotification.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(postNotification, (id expectedNotification)); +EXPMatcherInterface(notify, (id expectedNotification)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+raise.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+raise.h index 901e04c19..1f7fae02c 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+raise.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+raise.h @@ -1 +1,4 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+raise.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(raise, (NSString *expectedExceptionName)); +#define raiseAny() raise(nil) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+raiseWithReason.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+raiseWithReason.h index 5b063b64e..2cf5a5d24 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+raiseWithReason.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+raiseWithReason.h @@ -1 +1,3 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+raiseWithReason.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(raiseWithReason, (NSString *expectedExceptionName, NSString *expectedReason)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+respondTo.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+respondTo.h index e7a5fad13..279131dd7 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+respondTo.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers+respondTo.h @@ -1 +1,3 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers+respondTo.h
\ No newline at end of file +#import "Expecta.h" + +EXPMatcherInterface(respondTo, (SEL expected)); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers.h index a454dc408..ed6ef85f1 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPMatchers.h @@ -1 +1,25 @@ -../../../Expecta/Expecta/Matchers/EXPMatchers.h
\ No newline at end of file +#import "EXPMatchers+beNil.h" +#import "EXPMatchers+equal.h" +#import "EXPMatchers+beInstanceOf.h" +#import "EXPMatchers+beKindOf.h" +#import "EXPMatchers+beSubclassOf.h" +#import "EXPMatchers+conformTo.h" +#import "EXPMatchers+beTruthy.h" +#import "EXPMatchers+beFalsy.h" +#import "EXPMatchers+contain.h" +#import "EXPMatchers+beSupersetOf.h" +#import "EXPMatchers+haveCountOf.h" +#import "EXPMatchers+beIdenticalTo.h" +#import "EXPMatchers+beGreaterThan.h" +#import "EXPMatchers+beGreaterThanOrEqualTo.h" +#import "EXPMatchers+beLessThan.h" +#import "EXPMatchers+beLessThanOrEqualTo.h" +#import "EXPMatchers+beInTheRangeOf.h" +#import "EXPMatchers+beCloseTo.h" +#import "EXPMatchers+raise.h" +#import "EXPMatchers+raiseWithReason.h" +#import "EXPMatchers+respondTo.h" +#import "EXPMatchers+postNotification.h" +#import "EXPMatchers+beginWith.h" +#import "EXPMatchers+endWith.h" +#import "EXPMatchers+match.h" diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPUnsupportedObject.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPUnsupportedObject.h index 60fae89f1..3ad0561ef 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPUnsupportedObject.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/EXPUnsupportedObject.h @@ -1 +1,11 @@ -../../../Expecta/Expecta/EXPUnsupportedObject.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +@interface EXPUnsupportedObject : NSObject { + NSString *_type; +} + +@property (nonatomic, retain) NSString *type; + +- (instancetype)initWithType:(NSString *)type NS_DESIGNATED_INITIALIZER; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/Expecta.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/Expecta.h index 45ef877d8..066e98837 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/Expecta.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/Expecta.h @@ -1 +1,15 @@ -../../../Expecta/Expecta/Expecta.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +//! Project version number for Expecta. +FOUNDATION_EXPORT double ExpectaVersionNumber; + +//! Project version string for Expecta. +FOUNDATION_EXPORT const unsigned char ExpectaVersionString[]; + +#import <Expecta/ExpectaObject.h> +#import <Expecta/ExpectaSupport.h> +#import <Expecta/EXPMatchers.h> + +// Enable shorthand by default +#define expect(...) EXP_expect((__VA_ARGS__)) +#define failure(...) EXP_failure((__VA_ARGS__)) diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/ExpectaObject.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/ExpectaObject.h index 36a99e13b..e4277a9ae 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/ExpectaObject.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/ExpectaObject.h @@ -1 +1,18 @@ -../../../Expecta/Expecta/ExpectaObject.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +#define EXPObjectify(value) _EXPObjectify(@encode(__typeof__((value))), (value)) +#define EXP_expect(actual) _EXP_expect(self, __LINE__, __FILE__, ^id{ __typeof__((actual)) strongActual = (actual); return EXPObjectify(strongActual); }) +#define EXPMatcherInterface(matcherName, matcherArguments) _EXPMatcherInterface(matcherName, matcherArguments) +#define EXPMatcherImplementationBegin(matcherName, matcherArguments) _EXPMatcherImplementationBegin(matcherName, matcherArguments) +#define EXPMatcherImplementationEnd _EXPMatcherImplementationEnd +#define EXPMatcherAliasImplementation(newMatcherName, oldMatcherName, matcherArguments) _EXPMatcherAliasImplementation(newMatcherName, oldMatcherName, matcherArguments) + +#define EXP_failure(message) EXPFail(self, __LINE__, __FILE__, message) + + +@interface Expecta : NSObject + ++ (NSTimeInterval)asynchronousTestTimeout; ++ (void)setAsynchronousTestTimeout:(NSTimeInterval)timeout; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/ExpectaSupport.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/ExpectaSupport.h index c59d3fc60..28fc5e0e4 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/ExpectaSupport.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/ExpectaSupport.h @@ -1 +1,74 @@ -../../../Expecta/Expecta/ExpectaSupport.h
\ No newline at end of file +#import "EXPExpect.h" +#import "EXPBlockDefinedMatcher.h" + +#ifdef __cplusplus +extern "C" { +#endif + +id _EXPObjectify(const char *type, ...); +EXPExpect *_EXP_expect(id testCase, int lineNumber, const char *fileName, EXPIdBlock actualBlock); + +void EXPFail(id testCase, int lineNumber, const char *fileName, NSString *message); +NSString *EXPDescribeObject(id obj); + +void EXP_prerequisite(EXPBoolBlock block); +void EXP_match(EXPBoolBlock block); +void EXP_failureMessageForTo(EXPStringBlock block); +void EXP_failureMessageForNotTo(EXPStringBlock block); + +#if __has_feature(objc_arc) +#define _EXP_release(x) +#define _EXP_autorelease(x) (x) + +#else +#define _EXP_release(x) [x release] +#define _EXP_autorelease(x) [x autorelease] +#endif + +// workaround for the categories bug: http://developer.apple.com/library/mac/#qa/qa1490/_index.html +#define EXPFixCategoriesBug(name) \ +__attribute__((constructor)) static void EXPFixCategoriesBug##name() {} + +#define _EXPMatcherInterface(matcherName, matcherArguments) \ +@interface EXPExpect (matcherName##Matcher) \ +@property (nonatomic, readonly) void(^ matcherName) matcherArguments; \ +@end + +#define _EXPMatcherImplementationBegin(matcherName, matcherArguments) \ +EXPFixCategoriesBug(EXPMatcher##matcherName##Matcher); \ +@implementation EXPExpect (matcherName##Matcher) \ +@dynamic matcherName;\ +- (void(^) matcherArguments) matcherName { \ + EXPBlockDefinedMatcher *matcher = [[EXPBlockDefinedMatcher alloc] init]; \ + [[[NSThread currentThread] threadDictionary] setObject:matcher forKey:@"EXP_currentMatcher"]; \ + __block id actual = self.actual; \ + __block void (^prerequisite)(EXPBoolBlock block) = ^(EXPBoolBlock block) { EXP_prerequisite(block); }; \ + __block void (^match)(EXPBoolBlock block) = ^(EXPBoolBlock block) { EXP_match(block); }; \ + __block void (^failureMessageForTo)(EXPStringBlock block) = ^(EXPStringBlock block) { EXP_failureMessageForTo(block); }; \ + __block void (^failureMessageForNotTo)(EXPStringBlock block) = ^(EXPStringBlock block) { EXP_failureMessageForNotTo(block); }; \ + prerequisite(nil); match(nil); failureMessageForTo(nil); failureMessageForNotTo(nil); \ + void (^matcherBlock) matcherArguments = [^ matcherArguments { \ + { + +#define _EXPMatcherImplementationEnd \ + } \ + [self applyMatcher:matcher to:&actual]; \ + [[[NSThread currentThread] threadDictionary] removeObjectForKey:@"EXP_currentMatcher"]; \ + } copy]; \ + _EXP_release(matcher); \ + return _EXP_autorelease(matcherBlock); \ +} \ +@end + +#define _EXPMatcherAliasImplementation(newMatcherName, oldMatcherName, matcherArguments) \ +EXPFixCategoriesBug(EXPMatcher##newMatcherName##Matcher); \ +@implementation EXPExpect (newMatcherName##Matcher) \ +@dynamic newMatcherName;\ +- (void(^) matcherArguments) newMatcherName { \ + return [self oldMatcherName]; \ +}\ +@end + +#ifdef __cplusplus +} +#endif diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/NSObject+Expecta.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/NSObject+Expecta.h index 55c3635a6..5920e3115 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/NSObject+Expecta.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/NSObject+Expecta.h @@ -1 +1,10 @@ -../../../Expecta/Expecta/NSObject+Expecta.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +@interface NSObject (Expecta) + +- (void)recordFailureWithDescription:(NSString *)description + inFile:(NSString *)filename + atLine:(NSUInteger)lineNumber + expected:(BOOL)expected; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/NSValue+Expecta.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/NSValue+Expecta.h index ee557b848..e8ff6a4c5 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/NSValue+Expecta.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Expecta/NSValue+Expecta.h @@ -1 +1,7 @@ -../../../Expecta/Expecta/NSValue+Expecta.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +@interface NSValue (Expecta) + +@property (nonatomic) const char *_EXP_objCType; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestCase.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestCase.h index 2925eab14..159a7249e 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestCase.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestCase.h @@ -1 +1,201 @@ -../../../FBSnapshotTestCase/FBSnapshotTestCase/FBSnapshotTestCase.h
\ No newline at end of file +/* + * Copyright (c) 2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import <FBSnapshotTestCase/FBSnapshotTestCasePlatform.h> +#import <FBSnapshotTestCase/FBSnapshotTestController.h> + +#import <QuartzCore/QuartzCore.h> + +#import <UIKit/UIKit.h> + +#import <XCTest/XCTest.h> + +/* + There are three ways of setting reference image directories. + + 1. Set the preprocessor macro FB_REFERENCE_IMAGE_DIR to a double quoted + c-string with the path. + 2. Set an environment variable named FB_REFERENCE_IMAGE_DIR with the path. This + takes precedence over the preprocessor macro to allow for run-time override. + 3. Keep everything unset, which will cause the reference images to be looked up + inside the bundle holding the current test, in the + Resources/ReferenceImages_* directories. + */ +#ifndef FB_REFERENCE_IMAGE_DIR +#define FB_REFERENCE_IMAGE_DIR "" +#endif + +/** + Similar to our much-loved XCTAssert() macros. Use this to perform your test. No need to write an explanation, though. + @param view The view to snapshot + @param identifier An optional identifier, used if there are multiple snapshot tests in a given -test method. + @param suffixes An NSOrderedSet of strings for the different suffixes + @param tolerance The percentage of pixels that can differ and still count as an 'identical' view + */ +#define FBSnapshotVerifyViewWithOptions(view__, identifier__, suffixes__, tolerance__) \ + FBSnapshotVerifyViewOrLayerWithOptions(View, view__, identifier__, suffixes__, tolerance__) + +#define FBSnapshotVerifyView(view__, identifier__) \ + FBSnapshotVerifyViewWithOptions(view__, identifier__, FBSnapshotTestCaseDefaultSuffixes(), 0) + + +/** + Similar to our much-loved XCTAssert() macros. Use this to perform your test. No need to write an explanation, though. + @param layer The layer to snapshot + @param identifier An optional identifier, used if there are multiple snapshot tests in a given -test method. + @param suffixes An NSOrderedSet of strings for the different suffixes + @param tolerance The percentage of pixels that can differ and still count as an 'identical' layer + */ +#define FBSnapshotVerifyLayerWithOptions(layer__, identifier__, suffixes__, tolerance__) \ + FBSnapshotVerifyViewOrLayerWithOptions(Layer, layer__, identifier__, suffixes__, tolerance__) + +#define FBSnapshotVerifyLayer(layer__, identifier__) \ + FBSnapshotVerifyLayerWithOptions(layer__, identifier__, FBSnapshotTestCaseDefaultSuffixes(), 0) + + +#define FBSnapshotVerifyViewOrLayerWithOptions(what__, viewOrLayer__, identifier__, suffixes__, tolerance__) \ +{ \ + NSString *referenceImageDirectory = [self getReferenceImageDirectoryWithDefault:(@ FB_REFERENCE_IMAGE_DIR)]; \ + XCTAssertNotNil(referenceImageDirectory, @"Missing value for referenceImagesDirectory - Set FB_REFERENCE_IMAGE_DIR as Environment variable in your scheme.");\ + XCTAssertTrue((suffixes__.count > 0), @"Suffixes set cannot be empty %@", suffixes__); \ + \ + BOOL testSuccess__ = NO; \ + NSError *error__ = nil; \ + NSMutableArray *errors__ = [NSMutableArray array]; \ + \ + if (self.recordMode) { \ + \ + NSString *referenceImagesDirectory__ = [NSString stringWithFormat:@"%@%@", referenceImageDirectory, suffixes__.firstObject]; \ + BOOL referenceImageSaved__ = [self compareSnapshotOf ## what__ :(viewOrLayer__) referenceImagesDirectory:referenceImagesDirectory__ identifier:(identifier__) tolerance:(tolerance__) error:&error__]; \ + if (!referenceImageSaved__) { \ + [errors__ addObject:error__]; \ + } \ + } else { \ + \ + for (NSString *suffix__ in suffixes__) { \ + NSString *referenceImagesDirectory__ = [NSString stringWithFormat:@"%@%@", referenceImageDirectory, suffix__]; \ + BOOL referenceImageAvailable = [self referenceImageRecordedInDirectory:referenceImagesDirectory__ identifier:(identifier__) error:&error__]; \ + \ + if (referenceImageAvailable) { \ + BOOL comparisonSuccess__ = [self compareSnapshotOf ## what__ :(viewOrLayer__) referenceImagesDirectory:referenceImagesDirectory__ identifier:(identifier__) tolerance:(tolerance__) error:&error__]; \ + [errors__ removeAllObjects]; \ + if (comparisonSuccess__) { \ + testSuccess__ = YES; \ + break; \ + } else { \ + [errors__ addObject:error__]; \ + } \ + } else { \ + [errors__ addObject:error__]; \ + } \ + } \ + } \ + XCTAssertTrue(testSuccess__, @"Snapshot comparison failed: %@", errors__.firstObject); \ + XCTAssertFalse(self.recordMode, @"Test ran in record mode. Reference image is now saved. Disable record mode to perform an actual snapshot comparison!"); \ +} + + +/** + The base class of view snapshotting tests. If you have small UI component, it's often easier to configure it in a test + and compare an image of the view to a reference image that write lots of complex layout-code tests. + + In order to flip the tests in your subclass to record the reference images set @c recordMode to @c YES. + + @attention When recording, the reference image directory should be explicitly + set, otherwise the images may be written to somewhere inside the + simulator directory. + + For example: + @code + - (void)setUp + { + [super setUp]; + self.recordMode = YES; + } + @endcode + */ +@interface FBSnapshotTestCase : XCTestCase + +/** + When YES, the test macros will save reference images, rather than performing an actual test. + */ +@property (readwrite, nonatomic, assign) BOOL recordMode; + +/** + When @c YES appends the name of the device model and OS to the snapshot file name. + The default value is @c NO. + */ +@property (readwrite, nonatomic, assign, getter=isDeviceAgnostic) BOOL deviceAgnostic; + +/** + When YES, renders a snapshot of the complete view hierarchy as visible onscreen. + There are several things that do not work if renderInContext: is used. + - UIVisualEffect #70 + - UIAppearance #91 + - Size Classes #92 + + @attention If the view does't belong to a UIWindow, it will create one and add the view as a subview. + */ +@property (readwrite, nonatomic, assign) BOOL usesDrawViewHierarchyInRect; + +- (void)setUp NS_REQUIRES_SUPER; +- (void)tearDown NS_REQUIRES_SUPER; + +/** + Performs the comparison or records a snapshot of the layer if recordMode is YES. + @param layer The Layer to snapshot + @param referenceImagesDirectory The directory in which reference images are stored. + @param identifier An optional identifier, used if there are multiple snapshot tests in a given -test method. + @param tolerance The percentage difference to still count as identical - 0 mean pixel perfect, 1 means I don't care + @param errorPtr An error to log in an XCTAssert() macro if the method fails (missing reference image, images differ, etc). + @returns YES if the comparison (or saving of the reference image) succeeded. + */ +- (BOOL)compareSnapshotOfLayer:(CALayer *)layer + referenceImagesDirectory:(NSString *)referenceImagesDirectory + identifier:(NSString *)identifier + tolerance:(CGFloat)tolerance + error:(NSError **)errorPtr; + +/** + Performs the comparison or records a snapshot of the view if recordMode is YES. + @param view The view to snapshot + @param referenceImagesDirectory The directory in which reference images are stored. + @param identifier An optional identifier, used if there are multiple snapshot tests in a given -test method. + @param tolerance The percentage difference to still count as identical - 0 mean pixel perfect, 1 means I don't care + @param errorPtr An error to log in an XCTAssert() macro if the method fails (missing reference image, images differ, etc). + @returns YES if the comparison (or saving of the reference image) succeeded. + */ +- (BOOL)compareSnapshotOfView:(UIView *)view + referenceImagesDirectory:(NSString *)referenceImagesDirectory + identifier:(NSString *)identifier + tolerance:(CGFloat)tolerance + error:(NSError **)errorPtr; + +/** + Checks if reference image with identifier based name exists in the reference images directory. + @param referenceImagesDirectory The directory in which reference images are stored. + @param identifier An optional identifier, used if there are multiple snapshot tests in a given -test method. + @param errorPtr An error to log in an XCTAssert() macro if the method fails (missing reference image, images differ, etc). + @returns YES if reference image exists. + */ +- (BOOL)referenceImageRecordedInDirectory:(NSString *)referenceImagesDirectory + identifier:(NSString *)identifier + error:(NSError **)errorPtr; + +/** + Returns the reference image directory. + + Helper function used to implement the assert macros. + + @param dir directory to use if environment variable not specified. Ignored if null or empty. + */ +- (NSString *)getReferenceImageDirectoryWithDefault:(NSString *)dir; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestCasePlatform.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestCasePlatform.h index 6127a30c8..e04acf2f3 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestCasePlatform.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestCasePlatform.h @@ -1 +1,44 @@ -../../../FBSnapshotTestCase/FBSnapshotTestCase/FBSnapshotTestCasePlatform.h
\ No newline at end of file +/* + * Copyright (c) 2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import <Foundation/Foundation.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + Returns a Boolean value that indicates whether the snapshot test is running in 64Bit. + This method is a convenience for creating the suffixes set based on the architecture + that the test is running. + + @returns @c YES if the test is running in 64bit, otherwise @c NO. + */ +BOOL FBSnapshotTestCaseIs64Bit(void); + +/** + Returns a default set of strings that is used to append a suffix based on the architectures. + @warning Do not modify this function, you can create your own and use it with @c FBSnapshotVerifyViewWithOptions() + + @returns An @c NSOrderedSet object containing strings that are appended to the reference images directory. + */ +NSOrderedSet *FBSnapshotTestCaseDefaultSuffixes(void); + +/** + Returns a fully «normalized» file name. + Strips punctuation and spaces and replaces them with @c _. Also appends the device model, running OS and screen size to the file name. + + @returns An @c NSString object containing the passed @c fileName with the device model, OS and screen size appended at the end. + */ +NSString *FBDeviceAgnosticNormalizedFileName(NSString *fileName); + +#ifdef __cplusplus +} +#endif diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestController.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestController.h index 4a7dea130..a0285ad8a 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestController.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/FBSnapshotTestController.h @@ -1 +1,166 @@ -../../../FBSnapshotTestCase/FBSnapshotTestCase/FBSnapshotTestController.h
\ No newline at end of file +/* + * Copyright (c) 2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import <Foundation/Foundation.h> +#import <UIKit/UIKit.h> + +typedef NS_ENUM(NSInteger, FBSnapshotTestControllerErrorCode) { + FBSnapshotTestControllerErrorCodeUnknown, + FBSnapshotTestControllerErrorCodeNeedsRecord, + FBSnapshotTestControllerErrorCodePNGCreationFailed, + FBSnapshotTestControllerErrorCodeImagesDifferentSizes, + FBSnapshotTestControllerErrorCodeImagesDifferent, +}; +/** + Errors returned by the methods of FBSnapshotTestController use this domain. + */ +extern NSString *const FBSnapshotTestControllerErrorDomain; + +/** + Errors returned by the methods of FBSnapshotTestController sometimes contain this key in the `userInfo` dictionary. + */ +extern NSString *const FBReferenceImageFilePathKey; + +/** + Errors returned by the methods of FBSnapshotTestController sometimes contain this key in the `userInfo` dictionary. + */ +extern NSString *const FBReferenceImageKey; + +/** + Errors returned by the methods of FBSnapshotTestController sometimes contain this key in the `userInfo` dictionary. + */ +extern NSString *const FBCapturedImageKey; + +/** + Errors returned by the methods of FBSnapshotTestController sometimes contain this key in the `userInfo` dictionary. + */ +extern NSString *const FBDiffedImageKey; + +/** + Provides the heavy-lifting for FBSnapshotTestCase. It loads and saves images, along with performing the actual pixel- + by-pixel comparison of images. + Instances are initialized with the test class, and directories to read and write to. + */ +@interface FBSnapshotTestController : NSObject + +/** + Record snapshots. + */ +@property (readwrite, nonatomic, assign) BOOL recordMode; + +/** + When @c YES appends the name of the device model and OS to the snapshot file name. + The default value is @c NO. + */ +@property (readwrite, nonatomic, assign, getter=isDeviceAgnostic) BOOL deviceAgnostic; + +/** + Uses drawViewHierarchyInRect:afterScreenUpdates: to draw the image instead of renderInContext: + */ +@property (readwrite, nonatomic, assign) BOOL usesDrawViewHierarchyInRect; + +/** + The directory in which referfence images are stored. + */ +@property (readwrite, nonatomic, copy) NSString *referenceImagesDirectory; + +/** + @param testClass The subclass of FBSnapshotTestCase that is using this controller. + @returns An instance of FBSnapshotTestController. + */ +- (instancetype)initWithTestClass:(Class)testClass; + +/** + Designated initializer. + @param testName The name of the tests. + @returns An instance of FBSnapshotTestController. + */ +- (instancetype)initWithTestName:(NSString *)testName; + +/** + Performs the comparison of the layer. + @param layer The Layer to snapshot. + @param selector The test method being run. + @param identifier An optional identifier, used is there are muliptle snapshot tests in a given -test method. + @param error An error to log in an XCTAssert() macro if the method fails (missing reference image, images differ, etc). + @returns YES if the comparison (or saving of the reference image) succeeded. + */ +- (BOOL)compareSnapshotOfLayer:(CALayer *)layer + selector:(SEL)selector + identifier:(NSString *)identifier + error:(NSError **)errorPtr; + +/** + Performs the comparison of the view. + @param view The view to snapshot. + @param selector The test method being run. + @param identifier An optional identifier, used is there are muliptle snapshot tests in a given -test method. + @param error An error to log in an XCTAssert() macro if the method fails (missing reference image, images differ, etc). + @returns YES if the comparison (or saving of the reference image) succeeded. + */ +- (BOOL)compareSnapshotOfView:(UIView *)view + selector:(SEL)selector + identifier:(NSString *)identifier + error:(NSError **)errorPtr; + +/** + Performs the comparison of a view or layer. + @param view The view or layer to snapshot. + @param selector The test method being run. + @param identifier An optional identifier, used is there are muliptle snapshot tests in a given -test method. + @param tolerance The percentage of pixels that can differ and still be considered 'identical' + @param error An error to log in an XCTAssert() macro if the method fails (missing reference image, images differ, etc). + @returns YES if the comparison (or saving of the reference image) succeeded. + */ +- (BOOL)compareSnapshotOfViewOrLayer:(id)viewOrLayer + selector:(SEL)selector + identifier:(NSString *)identifier + tolerance:(CGFloat)tolerance + error:(NSError **)errorPtr; + +/** + Loads a reference image. + @param selector The test method being run. + @param identifier The optional identifier, used when multiple images are tested in a single -test method. + @param errorPtr An error, if this methods returns nil, the error will be something useful. + @returns An image. + */ +- (UIImage *)referenceImageForSelector:(SEL)selector + identifier:(NSString *)identifier + error:(NSError **)errorPtr; + +/** + Performs a pixel-by-pixel comparison of the two images with an allowable margin of error. + @param referenceImage The reference (correct) image. + @param image The image to test against the reference. + @param tolerance The percentage of pixels that can differ and still be considered 'identical' + @param errorPtr An error that indicates why the comparison failed if it does. + @returns YES if the comparison succeeded and the images are the same(ish). + */ +- (BOOL)compareReferenceImage:(UIImage *)referenceImage + toImage:(UIImage *)image + tolerance:(CGFloat)tolerance + error:(NSError **)errorPtr; + +/** + Saves the reference image and the test image to `failedOutputDirectory`. + @param referenceImage The reference (correct) image. + @param testImage The image to test against the reference. + @param selector The test method being run. + @param identifier The optional identifier, used when multiple images are tested in a single -test method. + @param errorPtr An error that indicates why the comparison failed if it does. + @returns YES if the save succeeded. + */ +- (BOOL)saveFailedReferenceImage:(UIImage *)referenceImage + testImage:(UIImage *)testImage + selector:(SEL)selector + identifier:(NSString *)identifier + error:(NSError **)errorPtr; +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIApplication+StrictKeyWindow.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIApplication+StrictKeyWindow.h index efa5fe0be..eefe11bae 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIApplication+StrictKeyWindow.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIApplication+StrictKeyWindow.h @@ -1 +1,20 @@ -../../../FBSnapshotTestCase/FBSnapshotTestCase/Categories/UIApplication+StrictKeyWindow.h
\ No newline at end of file +/* + * Copyright (c) 2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import <UIKit/UIKit.h> + +@interface UIApplication (StrictKeyWindow) + +/** + @return The receiver's @c keyWindow. Raises an assertion if @c nil. + */ +- (UIWindow *)fb_strictKeyWindow; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Compare.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Compare.h index 2fd266d77..9091d62a2 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Compare.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Compare.h @@ -1 +1,37 @@ -../../../FBSnapshotTestCase/FBSnapshotTestCase/Categories/UIImage+Compare.h
\ No newline at end of file +// +// Created by Gabriel Handford on 3/1/09. +// Copyright 2009-2013. All rights reserved. +// Created by John Boiles on 10/20/11. +// Copyright (c) 2011. All rights reserved +// Modified by Felix Schulze on 2/11/13. +// Copyright 2013. All rights reserved. +// +// 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 <UIKit/UIKit.h> + +@interface UIImage (Compare) + +- (BOOL)fb_compareWithImage:(UIImage *)image tolerance:(CGFloat)tolerance; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Diff.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Diff.h index 2ecee67cc..a0863f303 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Diff.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Diff.h @@ -1 +1,37 @@ -../../../FBSnapshotTestCase/FBSnapshotTestCase/Categories/UIImage+Diff.h
\ No newline at end of file +// +// Created by Gabriel Handford on 3/1/09. +// Copyright 2009-2013. All rights reserved. +// Created by John Boiles on 10/20/11. +// Copyright (c) 2011. All rights reserved +// Modified by Felix Schulze on 2/11/13. +// Copyright 2013. All rights reserved. +// +// 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 <UIKit/UIKit.h> + +@interface UIImage (Diff) + +- (UIImage *)fb_diffWithImage:(UIImage *)image; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Snapshot.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Snapshot.h index 577a4cb8d..b0d5b26b2 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Snapshot.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/FBSnapshotTestCase/UIImage+Snapshot.h @@ -1 +1,24 @@ -../../../FBSnapshotTestCase/FBSnapshotTestCase/Categories/UIImage+Snapshot.h
\ No newline at end of file +/* + * Copyright (c) 2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import <UIKit/UIKit.h> + +@interface UIImage (Snapshot) + +/// Uses renderInContext: to get a snapshot of the layer. ++ (UIImage *)fb_imageForLayer:(CALayer *)layer; + +/// Uses renderInContext: to get a snapshot of the view layer. ++ (UIImage *)fb_imageForViewLayer:(UIView *)view; + +/// Uses drawViewHierarchyInRect: to get a snapshot of the view and adds the view into a window if needed. ++ (UIImage *)fb_imageForView:(UIView *)view; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTCallSite.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTCallSite.h index dbb535a60..adcd3b0a1 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTCallSite.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTCallSite.h @@ -1 +1,12 @@ -../../../Specta/Specta/Specta/SPTCallSite.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +@interface SPTCallSite : NSObject + +@property (nonatomic, copy, readonly) NSString *file; +@property (nonatomic, readonly) NSUInteger line; + ++ (instancetype)callSiteWithFile:(NSString *)file line:(NSUInteger)line; + +- (instancetype)initWithFile:(NSString *)file line:(NSUInteger)line; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTCompiledExample.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTCompiledExample.h index 659770480..adb3aaa43 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTCompiledExample.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTCompiledExample.h @@ -1 +1,17 @@ -../../../Specta/Specta/Specta/SPTCompiledExample.h
\ No newline at end of file +#import <Foundation/Foundation.h> +#import "SpectaTypes.h" + +@interface SPTCompiledExample : NSObject + +@property (nonatomic, copy) NSString *name; +@property (nonatomic, copy) NSString *testCaseName; +@property (nonatomic, copy) SPTSpecBlock block; + +@property (nonatomic) BOOL pending; +@property (nonatomic, getter=isFocused) BOOL focused; + +@property (nonatomic) SEL testMethodSelector; + +- (id)initWithName:(NSString *)name testCaseName:(NSString *)testCaseName block:(SPTSpecBlock)block pending:(BOOL)pending focused:(BOOL)focused; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExample.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExample.h index 79a18d4c5..849aacbcc 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExample.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExample.h @@ -1 +1,17 @@ -../../../Specta/Specta/Specta/SPTExample.h
\ No newline at end of file +#import <Foundation/Foundation.h> +#import "SpectaTypes.h" + +@class SPTCallSite; + +@interface SPTExample : NSObject + +@property (nonatomic, copy) NSString *name; +@property (nonatomic, retain) SPTCallSite *callSite; +@property (nonatomic, copy) SPTVoidBlock block; + +@property (nonatomic) BOOL pending; +@property (nonatomic, getter=isFocused) BOOL focused; + +- (id)initWithName:(NSString *)name callSite:(SPTCallSite *)callSite focused:(BOOL)focused block:(SPTVoidBlock)block; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExampleGroup.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExampleGroup.h index 1effac57b..dce3db62a 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExampleGroup.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExampleGroup.h @@ -1 +1,36 @@ -../../../Specta/Specta/Specta/SPTExampleGroup.h
\ No newline at end of file +#import <Foundation/Foundation.h> +#import <XCTest/XCTest.h> +#import "SpectaTypes.h" + +@class SPTExample; +@class SPTCallSite; + +@interface SPTExampleGroup : NSObject + +@property (nonatomic, copy) NSString *name; +@property (nonatomic, weak) SPTExampleGroup *root; +@property (nonatomic, weak) SPTExampleGroup *parent; +@property (nonatomic, strong) NSMutableArray *children; +@property (nonatomic, strong) NSMutableArray *beforeAllArray; +@property (nonatomic, strong) NSMutableArray *afterAllArray; +@property (nonatomic, strong) NSMutableArray *beforeEachArray; +@property (nonatomic, strong) NSMutableArray *afterEachArray; +@property (nonatomic, strong) NSMutableDictionary *sharedExamples; +@property (nonatomic) unsigned int exampleCount; +@property (nonatomic) unsigned int ranExampleCount; +@property (nonatomic) unsigned int pendingExampleCount; +@property (nonatomic, getter=isFocused) BOOL focused; + +- (id)initWithName:(NSString *)name parent:(SPTExampleGroup *)parent root:(SPTExampleGroup *)root; + +- (SPTExampleGroup *)addExampleGroupWithName:(NSString *)name focused:(BOOL)focused; +- (SPTExample *)addExampleWithName:(NSString *)name callSite:(SPTCallSite *)callSite focused:(BOOL)focused block:(SPTVoidBlock)block; + +- (void)addBeforeAllBlock:(SPTVoidBlock)block; +- (void)addAfterAllBlock:(SPTVoidBlock)block; +- (void)addBeforeEachBlock:(SPTVoidBlock)block; +- (void)addAfterEachBlock:(SPTVoidBlock)block; + +- (NSArray *)compileExamplesWithStack:(NSArray *)stack; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExcludeGlobalBeforeAfterEach.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExcludeGlobalBeforeAfterEach.h index 64df73423..9581f0bc7 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExcludeGlobalBeforeAfterEach.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTExcludeGlobalBeforeAfterEach.h @@ -1 +1,10 @@ -../../../Specta/Specta/Specta/SPTExcludeGlobalBeforeAfterEach.h
\ No newline at end of file +/* + * Copyright (c) 2015 Specta Team. All rights reserved. + */ +#import <Foundation/Foundation.h> + +// This protocol was used for blacklisting classes for global beforeEach and afterEach blocks. +// Now, instead, classes are whitelisted by implementing the SPTGlobalBeforeAfterEach protocol. +__deprecated_msg("Please whitelist classes instead with the SPTGlobalBeforeAfterEach protocol") +@protocol SPTExcludeGlobalBeforeAfterEach <NSObject> +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTGlobalBeforeAfterEach.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTGlobalBeforeAfterEach.h index 7f83b65ff..490359ddf 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTGlobalBeforeAfterEach.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTGlobalBeforeAfterEach.h @@ -1 +1,15 @@ -../../../Specta/Specta/Specta/SPTGlobalBeforeAfterEach.h
\ No newline at end of file +/* + * Copyright (c) 2015 Specta Team. All rights reserved. + */ +#import <Foundation/Foundation.h> + +// This protocol is used for whitelisting classes for global beforeEach and afterEach blocks. +// If you want a class to participate in those just add this protocol to a category and it will be +// included. +@protocol SPTGlobalBeforeAfterEach <NSObject> + +@optional ++ (void)beforeEach; ++ (void)afterEach; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTSharedExampleGroups.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTSharedExampleGroups.h index 579d360e6..090acba79 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTSharedExampleGroups.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTSharedExampleGroups.h @@ -1 +1,17 @@ -../../../Specta/Specta/Specta/SPTSharedExampleGroups.h
\ No newline at end of file +#import <XCTest/XCTest.h> +#import <Specta/XCTestCase+Specta.h> +#import <Specta/SpectaTypes.h> + +@class _XCTestCaseImplementation; + +@class SPTExampleGroup; + +@interface SPTSharedExampleGroups : XCTestCase + ++ (void)addSharedExampleGroupWithName:(NSString *)name block:(SPTDictionaryBlock)block exampleGroup:(SPTExampleGroup *)exampleGroup; ++ (SPTDictionaryBlock)sharedExampleGroupWithName:(NSString *)name exampleGroup:(SPTExampleGroup *)exampleGroup; + +- (void)sharedExampleGroups; + +@end + diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTSpec.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTSpec.h index 3b1679ae8..ada4ea2d7 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTSpec.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTSpec.h @@ -1 +1,28 @@ -../../../Specta/Specta/Specta/SPTSpec.h
\ No newline at end of file +#import <XCTest/XCTest.h> +#import <Specta/XCTestCase+Specta.h> + +@class + SPTTestSuite +, SPTCompiledExample +; + +@interface SPTSpec : XCTestCase + +@property (strong) XCTestCaseRun *spt_run; +@property (nonatomic) BOOL spt_pending; +@property (nonatomic) BOOL spt_skipped; + ++ (BOOL)spt_isDisabled; ++ (void)spt_setDisabled:(BOOL)disabled; ++ (BOOL)spt_focusedExamplesExist; ++ (SEL)spt_convertToTestMethod:(SPTCompiledExample *)example; ++ (SPTTestSuite *)spt_testSuite; ++ (void)spt_setCurrentTestSuite; ++ (void)spt_unsetCurrentTestSuite; ++ (void)spt_setCurrentTestSuiteFileName:(NSString *)fileName lineNumber:(NSUInteger)lineNumber; + +- (void)spec; +- (BOOL)spt_shouldRunExample:(SPTCompiledExample *)example; +- (void)spt_runExample:(SPTCompiledExample *)example; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTTestSuite.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTTestSuite.h index 2f607e468..9bd90162d 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTTestSuite.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SPTTestSuite.h @@ -1 +1,21 @@ -../../../Specta/Specta/Specta/SPTTestSuite.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +@class + SPTExample +, SPTExampleGroup +; + +@interface SPTTestSuite : NSObject + +@property (nonatomic, strong) SPTExampleGroup *rootGroup; +@property (nonatomic, strong) NSMutableArray *groupStack; +@property (nonatomic, strong) NSArray *compiledExamples; +@property (nonatomic, copy) NSString *fileName; +@property (nonatomic) NSUInteger lineNumber; +@property (nonatomic, getter = isDisabled) BOOL disabled; +@property (nonatomic) BOOL hasFocusedExamples; + +- (SPTExampleGroup *)currentGroup; +- (void)compile; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/Specta.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/Specta.h index 111c968e9..dda17f915 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/Specta.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/Specta.h @@ -1 +1,14 @@ -../../../Specta/Specta/Specta/Specta.h
\ No newline at end of file +#import <Foundation/Foundation.h> +#import <XCTest/XCTest.h> + +//! Project version number for Specta. +FOUNDATION_EXPORT double SpectaVersionNumber; + +//! Project version string for Specta. +FOUNDATION_EXPORT const unsigned char SpectaVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import <Specta/PublicHeader.h> + +#import <Specta/SpectaDSL.h> +#import <Specta/SPTSpec.h> +#import <Specta/SPTSharedExampleGroups.h> diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaDSL.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaDSL.h index fd1ad3756..284d4f540 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaDSL.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaDSL.h @@ -1 +1,90 @@ -../../../Specta/Specta/Specta/SpectaDSL.h
\ No newline at end of file +#import <XCTest/XCTest.h> + +#define SpecBegin(name) _SPTSpecBegin(name, __FILE__, __LINE__) +#define SpecEnd _SPTSpecEnd + +#define SharedExamplesBegin(name) _SPTSharedExampleGroupsBegin(name) +#define SharedExamplesEnd _SPTSharedExampleGroupsEnd +#define SharedExampleGroupsBegin(name) _SPTSharedExampleGroupsBegin(name) +#define SharedExampleGroupsEnd _SPTSharedExampleGroupsEnd + +typedef void (^DoneCallback)(void); + +OBJC_EXTERN void describe(NSString *name, void (^block)()); +OBJC_EXTERN void fdescribe(NSString *name, void (^block)()); + +OBJC_EXTERN void context(NSString *name, void (^block)()); +OBJC_EXTERN void fcontext(NSString *name, void (^block)()); + +OBJC_EXTERN void it(NSString *name, void (^block)()); +OBJC_EXTERN void fit(NSString *name, void (^block)()); + +OBJC_EXTERN void example(NSString *name, void (^block)()); +OBJC_EXTERN void fexample(NSString *name, void (^block)()); + +OBJC_EXTERN void specify(NSString *name, void (^block)()); +OBJC_EXTERN void fspecify(NSString *name, void (^block)()); + +#define pending(...) spt_pending_(__VA_ARGS__, nil) +#define xdescribe(...) spt_pending_(__VA_ARGS__, nil) +#define xcontext(...) spt_pending_(__VA_ARGS__, nil) +#define xexample(...) spt_pending_(__VA_ARGS__, nil) +#define xit(...) spt_pending_(__VA_ARGS__, nil) +#define xspecify(...) spt_pending_(__VA_ARGS__, nil) + +OBJC_EXTERN void beforeAll(void (^block)()); +OBJC_EXTERN void afterAll(void (^block)()); + +OBJC_EXTERN void beforeEach(void (^block)()); +OBJC_EXTERN void afterEach(void (^block)()); + +OBJC_EXTERN void before(void (^block)()); +OBJC_EXTERN void after(void (^block)()); + +OBJC_EXTERN void sharedExamplesFor(NSString *name, void (^block)(NSDictionary *data)); +OBJC_EXTERN void sharedExamples(NSString *name, void (^block)(NSDictionary *data)); + +#define itShouldBehaveLike(...) spt_itShouldBehaveLike_(@(__FILE__), __LINE__, __VA_ARGS__) +#define itBehavesLike(...) spt_itShouldBehaveLike_(@(__FILE__), __LINE__, __VA_ARGS__) + +OBJC_EXTERN void waitUntil(void (^block)(DoneCallback done)); +/** + * Runs the @c block and waits until the @c done block is called or the + * @c timeout has passed. + * + * @param timeout timeout for this @c block only; does not affect the global + * timeout, as @c setAsyncSpecTimeout() does. + * @param ^block runs test code + */ +OBJC_EXTERN void waitUntilTimeout(NSTimeInterval timeout, void (^block)(DoneCallback done)); + +OBJC_EXTERN void setAsyncSpecTimeout(NSTimeInterval timeout); + +// ---------------------------------------------------------------------------- + +#define _SPTSpecBegin(name, file, line) \ +@interface name##Spec : SPTSpec \ +@end \ +@implementation name##Spec \ +- (void)spec { \ + [[self class] spt_setCurrentTestSuiteFileName:(@(file)) lineNumber:(line)]; + +#define _SPTSpecEnd \ +} \ +@end + +#define _SPTSharedExampleGroupsBegin(name) \ +@interface name##SharedExampleGroups : SPTSharedExampleGroups \ +@end \ +@implementation name##SharedExampleGroups \ +- (void)sharedExampleGroups { + +#define _SPTSharedExampleGroupsEnd \ +} \ +@end + +OBJC_EXTERN void spt_it_(NSString *name, NSString *fileName, NSUInteger lineNumber, void (^block)()); +OBJC_EXTERN void spt_fit_(NSString *name, NSString *fileName, NSUInteger lineNumber, void (^block)()); +OBJC_EXTERN void spt_pending_(NSString *name, ...); +OBJC_EXTERN void spt_itShouldBehaveLike_(NSString *fileName, NSUInteger lineNumber, NSString *name, id dictionaryOrBlock); +OBJC_EXTERN void spt_itShouldBehaveLike_block(NSString *fileName, NSUInteger lineNumber, NSString *name, NSDictionary *(^block)()); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaTypes.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaTypes.h index 9428b1324..f1f0ae3ea 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaTypes.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaTypes.h @@ -1 +1,5 @@ -../../../Specta/Specta/Specta/SpectaTypes.h
\ No newline at end of file +@class SPTSpec; + +typedef void (^SPTVoidBlock)(); +typedef void (^SPTSpecBlock)(SPTSpec *spec); +typedef void (^SPTDictionaryBlock)(NSDictionary *dictionary); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaUtility.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaUtility.h index 576248091..a3a8f071f 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaUtility.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/SpectaUtility.h @@ -1 +1,18 @@ -../../../Specta/Specta/Specta/SpectaUtility.h
\ No newline at end of file +#import <Foundation/Foundation.h> + +extern NSString * const spt_kCurrentTestSuiteKey; +extern NSString * const spt_kCurrentSpecKey; + +#define SPTCurrentTestSuite [[NSThread mainThread] threadDictionary][spt_kCurrentTestSuiteKey] +#define SPTCurrentSpec [[NSThread mainThread] threadDictionary][spt_kCurrentSpecKey] +#define SPTCurrentGroup [SPTCurrentTestSuite currentGroup] +#define SPTGroupStack [SPTCurrentTestSuite groupStack] + +#define SPTReturnUnlessBlockOrNil(block) if ((block) && !SPTIsBlock((block))) return; +#define SPTIsBlock(obj) [(obj) isKindOfClass:NSClassFromString(@"NSBlock")] + +BOOL spt_isSpecClass(Class aClass); +NSString *spt_underscorize(NSString *string); +NSArray *spt_map(NSArray *array, id (^block)(id obj, NSUInteger idx)); +NSArray *spt_shuffle(NSArray *array); +unsigned int spt_seed(); diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/XCTest+Private.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/XCTest+Private.h index bb4a8e026..c88fcc9ff 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/XCTest+Private.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/XCTest+Private.h @@ -1 +1,41 @@ -../../../Specta/Specta/Specta/XCTest+Private.h
\ No newline at end of file +#import <XCTest/XCTest.h> + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 90000 || __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 + +@interface XCTestObservationCenter (SPTTestSuspention) + +- (void)_suspendObservationForBlock:(void (^)(void))block; + +@end + +#else + +@interface XCTestObservationCenter : NSObject + ++ (id)sharedObservationCenter; +- (void)_suspendObservationForBlock:(void (^)(void))block; + +@end + +@protocol XCTestObservation <NSObject> +@end + + +#endif + +@interface _XCTestDriverTestObserver : NSObject <XCTestObservation> + +- (void)stopObserving; +- (void)startObserving; + +@end + +@interface _XCTestCaseImplementation : NSObject +@end + +@interface XCTestCase () + +- (_XCTestCaseImplementation *)internalImplementation; +- (void)_recordUnexpectedFailureWithDescription:(NSString *)description exception:(NSException *)exception; + +@end diff --git a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/XCTestCase+Specta.h b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/XCTestCase+Specta.h index 95f58cccd..9ca8f8ab1 120000..100644 --- a/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/XCTestCase+Specta.h +++ b/Carthage/Checkouts/EARestrictedScrollView/Example/Pods/Headers/Private/Specta/XCTestCase+Specta.h @@ -1 +1,7 @@ -../../../Specta/Specta/Specta/XCTestCase+Specta.h
\ No newline at end of file +#import <XCTest/XCTest.h> + +@interface XCTestCase (Specta) + +- (void)spt_handleException:(NSException *)exception; + +@end diff --git a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/CocoaLumberjack b/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/CocoaLumberjack Binary files differindex b2487fd62..7f7e06d03 120000..100755 --- a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/CocoaLumberjack +++ b/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/CocoaLumberjack diff --git a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Headers b/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Headers deleted file mode 120000 index a177d2a6b..000000000 --- a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Headers
\ No newline at end of file diff --git a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Modules b/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Modules deleted file mode 120000 index 5736f3186..000000000 --- a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Modules +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Modules
\ No newline at end of file diff --git a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Resources b/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Resources deleted file mode 120000 index 953ee36f3..000000000 --- a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Resources +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Resources
\ No newline at end of file diff --git a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Versions/Current b/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Versions/Current deleted file mode 120000 index 8c7e5a667..000000000 --- a/Carthage/Checkouts/SVGKit/3rd-party-frameworks/CocoaLumberjack-2.2.0/Mac/CocoaLumberjack.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -A
\ No newline at end of file diff --git a/Carthage/Checkouts/realm-cocoa/Realm/ObjectStore/.dockerignore b/Carthage/Checkouts/realm-cocoa/Realm/ObjectStore/.dockerignore index 3e4e48b0b..81a24da69 120000..100644 --- a/Carthage/Checkouts/realm-cocoa/Realm/ObjectStore/.dockerignore +++ b/Carthage/Checkouts/realm-cocoa/Realm/ObjectStore/.dockerignore @@ -1 +1,32 @@ -.gitignore
\ No newline at end of file +# CMake +.ninja_deps +.ninja_log +CMakeCache.txt +CMakeFiles/ +Makefile +build.ninja +cmake_install.cmake +rules.ninja +CMakeScripts/ +realm-object-store.xcodeproj/ + +# Build products +src/librealm-object-store.a +tests/tests +*.build/ +Debug/ +Release/ +RelWithDebInfo/ +MinSizeRel/ + +# IntelliJ +.idea/ + +# Visual Studio +/.vs + +# Linters +compile_commands.json + +# vim +*.swp diff --git a/Carthage/Checkouts/realm-cocoa/RealmSwift/RealmSwift-Info.plist b/Carthage/Checkouts/realm-cocoa/RealmSwift/RealmSwift-Info.plist index cbed921ca..270ffda8d 120000..100644 --- a/Carthage/Checkouts/realm-cocoa/RealmSwift/RealmSwift-Info.plist +++ b/Carthage/Checkouts/realm-cocoa/RealmSwift/RealmSwift-Info.plist @@ -1 +1,30 @@ -../Realm/Realm-Info.plist
\ No newline at end of file +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIconFile</key> + <string></string> + <key>CFBundleIdentifier</key> + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundlePackageType</key> + <string>FMWK</string> + <key>CFBundleShortVersionString</key> + <string>3.17.1</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>3.17.1</string> + <key>NSHumanReadableCopyright</key> + <string>Copyright © 2014 Realm. All rights reserved.</string> + <key>NSPrincipalClass</key> + <string></string> +</dict> +</plist> diff --git a/Carthage/Checkouts/realm-cocoa/RealmSwift/Tests/RealmSwiftTests-Info.plist b/Carthage/Checkouts/realm-cocoa/RealmSwift/Tests/RealmSwiftTests-Info.plist index 4bf7f0af0..169b6f710 120000..100644 --- a/Carthage/Checkouts/realm-cocoa/RealmSwift/Tests/RealmSwiftTests-Info.plist +++ b/Carthage/Checkouts/realm-cocoa/RealmSwift/Tests/RealmSwiftTests-Info.plist @@ -1 +1,22 @@ -../../Realm/Tests/RealmTests-Info.plist
\ No newline at end of file +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>en</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIdentifier</key> + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundlePackageType</key> + <string>BNDL</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>1</string> +</dict> +</plist> |