mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-13 09:50:17 +00:00
Overhaul header files / includes to eliminate circular references that Xcode 7 is angry about.
This commit is contained in:
parent
89f9fc551f
commit
a2cf2a88e6
@ -6,7 +6,8 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import <AsyncDisplayKit/AsyncDisplayKit.h>
|
#import <AsyncDisplayKit/ASTextNode.h>
|
||||||
|
#import <AsyncDisplayKit/ASImageNode.h>
|
||||||
|
|
||||||
typedef enum : NSUInteger {
|
typedef enum : NSUInteger {
|
||||||
ASButtonStateNormal,
|
ASButtonStateNormal,
|
||||||
|
|||||||
@ -7,8 +7,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#import "ASButtonNode.h"
|
#import "ASButtonNode.h"
|
||||||
|
#import "ASStackLayoutSpec.h"
|
||||||
#import <AsyncDisplayKit/ASThread.h>
|
#import "ASThread.h"
|
||||||
|
#import "ASDisplayNode+Subclasses.h"
|
||||||
|
|
||||||
@interface ASButtonNode ()
|
@interface ASButtonNode ()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,7 +9,6 @@
|
|||||||
#import "ASAssert.h"
|
#import "ASAssert.h"
|
||||||
#import "ASBatchFetching.h"
|
#import "ASBatchFetching.h"
|
||||||
#import "ASDelegateProxy.h"
|
#import "ASDelegateProxy.h"
|
||||||
#import "ASCollectionView.h"
|
|
||||||
#import "ASCollectionNode.h"
|
#import "ASCollectionNode.h"
|
||||||
#import "ASCollectionDataController.h"
|
#import "ASCollectionDataController.h"
|
||||||
#import "ASCollectionViewLayoutController.h"
|
#import "ASCollectionViewLayoutController.h"
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import <AsyncDisplayKit/ASControlNode.h>
|
#import "ASControlNode.h"
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,6 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "ASDisplayNode.h"
|
|
||||||
#import "ASDisplayNodeInternal.h"
|
#import "ASDisplayNodeInternal.h"
|
||||||
#import "ASDisplayNode+Subclasses.h"
|
#import "ASDisplayNode+Subclasses.h"
|
||||||
#import "ASDisplayNode+FrameworkPrivate.h"
|
#import "ASDisplayNode+FrameworkPrivate.h"
|
||||||
@ -49,6 +48,9 @@
|
|||||||
#define TIME_SCOPED(outVar)
|
#define TIME_SCOPED(outVar)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@interface ASDisplayNode () <_ASDisplayLayerDelegate>
|
||||||
|
@end
|
||||||
|
|
||||||
@implementation ASDisplayNode
|
@implementation ASDisplayNode
|
||||||
|
|
||||||
// these dynamic properties all defined in ASLayoutOptionsPrivate.m
|
// these dynamic properties all defined in ASLayoutOptionsPrivate.m
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import <AsyncDisplayKit/AsyncDisplayKit.h>
|
#import <AsyncDisplayKit/ASImageNode.h>
|
||||||
#import <MapKit/MapKit.h>
|
#import <MapKit/MapKit.h>
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|||||||
@ -7,6 +7,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#import "ASMapNode.h"
|
#import "ASMapNode.h"
|
||||||
|
#import <AsyncDisplayKit/ASDisplayNode+Subclasses.h>
|
||||||
|
#import <AsyncDisplayKit/ASDisplayNodeExtras.h>
|
||||||
#import <AsyncDisplayKit/ASInsetLayoutSpec.h>
|
#import <AsyncDisplayKit/ASInsetLayoutSpec.h>
|
||||||
#import <AsyncDisplayKit/ASCenterLayoutSpec.h>
|
#import <AsyncDisplayKit/ASCenterLayoutSpec.h>
|
||||||
#import <AsyncDisplayKit/ASThread.h>
|
#import <AsyncDisplayKit/ASThread.h>
|
||||||
|
|||||||
@ -8,8 +8,7 @@
|
|||||||
|
|
||||||
#import "ASPagerNode.h"
|
#import "ASPagerNode.h"
|
||||||
#import "ASDelegateProxy.h"
|
#import "ASDelegateProxy.h"
|
||||||
|
#import "ASDisplayNode+Subclasses.h"
|
||||||
#import <AsyncDisplayKit/AsyncDisplayKit.h>
|
|
||||||
|
|
||||||
@interface ASPagerNode () <ASCollectionDataSource, ASCollectionViewDelegateFlowLayout, ASDelegateProxyInterceptor> {
|
@interface ASPagerNode () <ASCollectionDataSource, ASCollectionViewDelegateFlowLayout, ASDelegateProxyInterceptor> {
|
||||||
UICollectionViewFlowLayout *_flowLayout;
|
UICollectionViewFlowLayout *_flowLayout;
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
// Copyright © 2015 Facebook. All rights reserved.
|
// Copyright © 2015 Facebook. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <AsyncDisplayKit/AsyncDisplayKit.h>
|
#import <AsyncDisplayKit/ASTableView.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ASTableNode is a node based class that wraps an ASTableView. It can be used
|
* ASTableNode is a node based class that wraps an ASTableView. It can be used
|
||||||
|
|||||||
@ -6,7 +6,9 @@
|
|||||||
// Copyright © 2015 Facebook. All rights reserved.
|
// Copyright © 2015 Facebook. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#import "ASFlowLayoutController.h"
|
||||||
#import "ASTableNode.h"
|
#import "ASTableNode.h"
|
||||||
|
#import "ASDisplayNode+Subclasses.h"
|
||||||
|
|
||||||
@interface _ASTablePendingState : NSObject
|
@interface _ASTablePendingState : NSObject
|
||||||
@property (weak, nonatomic) id <ASTableDelegate> delegate;
|
@property (weak, nonatomic) id <ASTableDelegate> delegate;
|
||||||
|
|||||||
@ -6,9 +6,7 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "ASTableView.h"
|
|
||||||
#import "ASTableViewInternal.h"
|
#import "ASTableViewInternal.h"
|
||||||
#import "ASTableNode.h"
|
|
||||||
|
|
||||||
#import "ASAssert.h"
|
#import "ASAssert.h"
|
||||||
#import "ASBatchFetching.h"
|
#import "ASBatchFetching.h"
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
// Copyright (c) 2015 Facebook. All rights reserved.
|
// Copyright (c) 2015 Facebook. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "ASTableView.h"
|
#import "ASTableNode.h"
|
||||||
|
|
||||||
@class ASDataController;
|
@class ASDataController;
|
||||||
|
|
||||||
|
|||||||
@ -52,8 +52,6 @@
|
|||||||
#import <AsyncDisplayKit/_ASAsyncTransaction.h>
|
#import <AsyncDisplayKit/_ASAsyncTransaction.h>
|
||||||
#import <AsyncDisplayKit/_ASAsyncTransactionContainer+Private.h>
|
#import <AsyncDisplayKit/_ASAsyncTransactionContainer+Private.h>
|
||||||
#import <AsyncDisplayKit/_ASAsyncTransactionGroup.h>
|
#import <AsyncDisplayKit/_ASAsyncTransactionGroup.h>
|
||||||
#import <AsyncDisplayKit/_ASDisplayLayer.h>
|
|
||||||
#import <AsyncDisplayKit/_ASDisplayView.h>
|
|
||||||
#import <AsyncDisplayKit/ASAvailability.h>
|
#import <AsyncDisplayKit/ASAvailability.h>
|
||||||
#import <AsyncDisplayKit/ASCollectionViewLayoutController.h>
|
#import <AsyncDisplayKit/ASCollectionViewLayoutController.h>
|
||||||
#import <AsyncDisplayKit/ASControlNode+Subclasses.h>
|
#import <AsyncDisplayKit/ASControlNode+Subclasses.h>
|
||||||
|
|||||||
@ -9,7 +9,6 @@
|
|||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
#import "ASCollectionViewFlowLayoutInspector.h"
|
#import "ASCollectionViewFlowLayoutInspector.h"
|
||||||
|
|
||||||
#import "ASCollectionView.h"
|
#import "ASCollectionView.h"
|
||||||
#import "ASAssert.h"
|
#import "ASAssert.h"
|
||||||
#import "ASEqualityHelpers.h"
|
#import "ASEqualityHelpers.h"
|
||||||
|
|||||||
@ -6,7 +6,10 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "ASDataController.h"
|
#ifndef ASDataControllerSubclasses_Included
|
||||||
|
#define ASDataControllerSubclasses_Included
|
||||||
|
|
||||||
|
//#import "ASDataController.h"
|
||||||
|
|
||||||
@interface ASDataController (Subclasses)
|
@interface ASDataController (Subclasses)
|
||||||
|
|
||||||
@ -157,3 +160,5 @@
|
|||||||
- (void)willMoveSection:(NSInteger)section toSection:(NSInteger)newSection;
|
- (void)willMoveSection:(NSInteger)section toSection:(NSInteger)newSection;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@ -6,19 +6,21 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef ASDataController_Included
|
||||||
|
#define ASDataController_Included
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#import <AsyncDisplayKit/ASDealloc2MainObject.h>
|
#import <AsyncDisplayKit/ASDealloc2MainObject.h>
|
||||||
#import <AsyncDisplayKit/ASDimension.h>
|
#import <AsyncDisplayKit/ASDimension.h>
|
||||||
#import "ASFlowLayoutController.h"
|
#import <AsyncDisplayKit/ASFlowLayoutController.h>
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@class ASCellNode;
|
@class ASCellNode;
|
||||||
@class ASDataController;
|
@class ASDataController;
|
||||||
|
|
||||||
FOUNDATION_EXPORT NSString * const ASDataControllerRowNodeKind;
|
|
||||||
|
|
||||||
typedef NSUInteger ASDataControllerAnimationOptions;
|
typedef NSUInteger ASDataControllerAnimationOptions;
|
||||||
|
FOUNDATION_EXPORT NSString * const ASDataControllerRowNodeKind;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Data source for data controller
|
Data source for data controller
|
||||||
@ -192,3 +194,5 @@ typedef NSUInteger ASDataControllerAnimationOptions;
|
|||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
#import <AsyncDisplayKit/ASCellNode.h>
|
#import <AsyncDisplayKit/ASCellNode.h>
|
||||||
#import <AsyncDisplayKit/ASDataController.h>
|
#import <AsyncDisplayKit/ASDataController.h>
|
||||||
#import <AsyncDisplayKit/ASFlowLayoutController.h>
|
|
||||||
#import <AsyncDisplayKit/ASLayoutController.h>
|
#import <AsyncDisplayKit/ASLayoutController.h>
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
#import <CoreGraphics/CoreGraphics.h>
|
#import <CoreGraphics/CoreGraphics.h>
|
||||||
|
|
||||||
#import "ASBaseDefines.h"
|
#import "ASBaseDefines.h"
|
||||||
|
|||||||
@ -9,7 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <AsyncDisplayKit/ASLayoutSpec.h>
|
#import <AsyncDisplayKit/ASStaticLayoutable.h>
|
||||||
|
#import <AsyncDisplayKit/ASStackLayoutable.h>
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "ASLayoutSpec.h"
|
#import "ASLayoutOptionsPrivate.h"
|
||||||
|
|
||||||
#import "ASAssert.h"
|
#import "ASAssert.h"
|
||||||
#import "ASBaseDefines.h"
|
#import "ASBaseDefines.h"
|
||||||
@ -16,7 +16,6 @@
|
|||||||
#import "ASInternalHelpers.h"
|
#import "ASInternalHelpers.h"
|
||||||
#import "ASLayout.h"
|
#import "ASLayout.h"
|
||||||
#import "ASLayoutOptions.h"
|
#import "ASLayoutOptions.h"
|
||||||
#import "ASLayoutOptionsPrivate.h"
|
|
||||||
#import "ASThread.h"
|
#import "ASThread.h"
|
||||||
|
|
||||||
#import <objc/runtime.h>
|
#import <objc/runtime.h>
|
||||||
|
|||||||
@ -8,8 +8,6 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "ASStackLayoutSpec.h"
|
|
||||||
|
|
||||||
#import <numeric>
|
#import <numeric>
|
||||||
#import <vector>
|
#import <vector>
|
||||||
|
|
||||||
@ -19,7 +17,6 @@
|
|||||||
#import "ASLayoutSpecUtilities.h"
|
#import "ASLayoutSpecUtilities.h"
|
||||||
#import "ASStackBaselinePositionedLayout.h"
|
#import "ASStackBaselinePositionedLayout.h"
|
||||||
#import "ASStackLayoutSpecUtilities.h"
|
#import "ASStackLayoutSpecUtilities.h"
|
||||||
#import "ASStackPositionedLayout.h"
|
|
||||||
#import "ASStackUnpositionedLayout.h"
|
#import "ASStackUnpositionedLayout.h"
|
||||||
#import "ASThread.h"
|
#import "ASThread.h"
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,6 @@
|
|||||||
#import "ASLayoutOptions.h"
|
#import "ASLayoutOptions.h"
|
||||||
#import "ASInternalHelpers.h"
|
#import "ASInternalHelpers.h"
|
||||||
#import "ASLayout.h"
|
#import "ASLayout.h"
|
||||||
#import "ASStaticLayoutable.h"
|
|
||||||
|
|
||||||
@implementation ASStaticLayoutSpec
|
@implementation ASStaticLayoutSpec
|
||||||
|
|
||||||
|
|||||||
@ -6,9 +6,6 @@
|
|||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "ASThread.h"
|
|
||||||
|
|
||||||
|
|
||||||
@interface ASBasicImageDownloaderContext : NSObject
|
@interface ASBasicImageDownloaderContext : NSObject
|
||||||
|
|
||||||
+ (ASBasicImageDownloaderContext *)contextForURL:(NSURL *)URL;
|
+ (ASBasicImageDownloaderContext *)contextForURL:(NSURL *)URL;
|
||||||
|
|||||||
@ -8,10 +8,14 @@
|
|||||||
|
|
||||||
#import "_ASCoreAnimationExtras.h"
|
#import "_ASCoreAnimationExtras.h"
|
||||||
#import "_ASAsyncTransaction.h"
|
#import "_ASAsyncTransaction.h"
|
||||||
|
#import "_ASDisplayLayer.h"
|
||||||
#import "ASAssert.h"
|
#import "ASAssert.h"
|
||||||
#import "ASDisplayNodeInternal.h"
|
#import "ASDisplayNodeInternal.h"
|
||||||
#import "ASDisplayNode+FrameworkPrivate.h"
|
#import "ASDisplayNode+FrameworkPrivate.h"
|
||||||
|
|
||||||
|
@interface ASDisplayNode () <_ASDisplayLayerDelegate>
|
||||||
|
@end
|
||||||
|
|
||||||
@implementation ASDisplayNode (AsyncDisplay)
|
@implementation ASDisplayNode (AsyncDisplay)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -11,7 +11,6 @@
|
|||||||
// These methods must never be called or overridden by other classes.
|
// These methods must never be called or overridden by other classes.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "_ASDisplayLayer.h"
|
|
||||||
#import "_AS-objc-internal.h"
|
#import "_AS-objc-internal.h"
|
||||||
#import "ASDisplayNodeExtraIvars.h"
|
#import "ASDisplayNodeExtraIvars.h"
|
||||||
#import "ASDisplayNode.h"
|
#import "ASDisplayNode.h"
|
||||||
@ -52,7 +51,7 @@ typedef NS_OPTIONS(NSUInteger, ASHierarchyState)
|
|||||||
ASHierarchyStateTransitioningSupernodes = 1 << 2
|
ASHierarchyStateTransitioningSupernodes = 1 << 2
|
||||||
};
|
};
|
||||||
|
|
||||||
@interface ASDisplayNode () <_ASDisplayLayerDelegate>
|
@interface ASDisplayNode ()
|
||||||
{
|
{
|
||||||
@protected
|
@protected
|
||||||
ASInterfaceState _interfaceState;
|
ASInterfaceState _interfaceState;
|
||||||
|
|||||||
@ -11,7 +11,6 @@
|
|||||||
// These methods must never be called or overridden by other classes.
|
// These methods must never be called or overridden by other classes.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "_ASDisplayLayer.h"
|
|
||||||
#import "_AS-objc-internal.h"
|
#import "_AS-objc-internal.h"
|
||||||
#import "ASDisplayNodeExtraIvars.h"
|
#import "ASDisplayNodeExtraIvars.h"
|
||||||
#import "ASDisplayNode.h"
|
#import "ASDisplayNode.h"
|
||||||
@ -19,6 +18,9 @@
|
|||||||
#import "ASThread.h"
|
#import "ASThread.h"
|
||||||
#import "ASLayoutOptions.h"
|
#import "ASLayoutOptions.h"
|
||||||
|
|
||||||
|
@protocol _ASDisplayLayerDelegate;
|
||||||
|
@class _ASDisplayLayer;
|
||||||
|
|
||||||
BOOL ASDisplayNodeSubclassOverridesSelector(Class subclass, SEL selector);
|
BOOL ASDisplayNodeSubclassOverridesSelector(Class subclass, SEL selector);
|
||||||
void ASDisplayNodeRespectThreadAffinityOfNode(ASDisplayNode *node, void (^block)());
|
void ASDisplayNodeRespectThreadAffinityOfNode(ASDisplayNode *node, void (^block)());
|
||||||
|
|
||||||
@ -39,7 +41,7 @@ typedef NS_OPTIONS(NSUInteger, ASDisplayNodeMethodOverrides)
|
|||||||
|
|
||||||
#define TIME_DISPLAYNODE_OPS (DEBUG || PROFILE)
|
#define TIME_DISPLAYNODE_OPS (DEBUG || PROFILE)
|
||||||
|
|
||||||
@interface ASDisplayNode () <_ASDisplayLayerDelegate>
|
@interface ASDisplayNode ()
|
||||||
{
|
{
|
||||||
@protected
|
@protected
|
||||||
// Protects access to _view, _layer, _pendingViewState, _subnodes, _supernode, and other properties which are accessed from multiple threads.
|
// Protects access to _view, _layer, _pendingViewState, _subnodes, _supernode, and other properties which are accessed from multiple threads.
|
||||||
|
|||||||
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
#import "ASLayout.h"
|
#import "ASLayout.h"
|
||||||
#import "ASDimension.h"
|
#import "ASDimension.h"
|
||||||
#import "ASStackLayoutSpec.h"
|
|
||||||
#import "ASStackUnpositionedLayout.h"
|
#import "ASStackUnpositionedLayout.h"
|
||||||
|
|
||||||
/** Represents a set of laid out and positioned stack layout children. */
|
/** Represents a set of laid out and positioned stack layout children. */
|
||||||
|
|||||||
@ -7,7 +7,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import "ASDataController.h"
|
#import <AsyncDisplayKit/ASInternalHelpers.h>
|
||||||
|
|
||||||
|
typedef NSUInteger ASDataControllerAnimationOptions;
|
||||||
|
|
||||||
typedef NS_ENUM(NSInteger, _ASHierarchyChangeType) {
|
typedef NS_ENUM(NSInteger, _ASHierarchyChangeType) {
|
||||||
_ASHierarchyChangeTypeReload,
|
_ASHierarchyChangeTypeReload,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user