Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit a2cf2a8

Browse files
author
Scott Goodson
committed
Overhaul header files / includes to eliminate circular references that Xcode 7 is angry about.
1 parent 89f9fc5 commit a2cf2a8

28 files changed

Lines changed: 46 additions & 37 deletions

AsyncDisplayKit/ASButtonNode.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* of patent rights can be found in the PATENTS file in the same directory.
77
*/
88

9-
#import <AsyncDisplayKit/AsyncDisplayKit.h>
9+
#import <AsyncDisplayKit/ASTextNode.h>
10+
#import <AsyncDisplayKit/ASImageNode.h>
1011

1112
typedef enum : NSUInteger {
1213
ASButtonStateNormal,

AsyncDisplayKit/ASButtonNode.mm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
*/
88

99
#import "ASButtonNode.h"
10-
11-
#import <AsyncDisplayKit/ASThread.h>
10+
#import "ASStackLayoutSpec.h"
11+
#import "ASThread.h"
12+
#import "ASDisplayNode+Subclasses.h"
1213

1314
@interface ASButtonNode ()
1415
{

AsyncDisplayKit/ASCollectionView.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#import "ASAssert.h"
1010
#import "ASBatchFetching.h"
1111
#import "ASDelegateProxy.h"
12-
#import "ASCollectionView.h"
1312
#import "ASCollectionNode.h"
1413
#import "ASCollectionDataController.h"
1514
#import "ASCollectionViewLayoutController.h"

AsyncDisplayKit/ASControlNode+Subclasses.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* of patent rights can be found in the PATENTS file in the same directory.
77
*/
88

9-
#import <AsyncDisplayKit/ASControlNode.h>
9+
#import "ASControlNode.h"
1010

1111
NS_ASSUME_NONNULL_BEGIN
1212

AsyncDisplayKit/ASDisplayNode.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* of patent rights can be found in the PATENTS file in the same directory.
77
*/
88

9-
#import "ASDisplayNode.h"
109
#import "ASDisplayNodeInternal.h"
1110
#import "ASDisplayNode+Subclasses.h"
1211
#import "ASDisplayNode+FrameworkPrivate.h"
@@ -49,6 +48,9 @@ - (void)_staticInitialize;
4948
#define TIME_SCOPED(outVar)
5049
#endif
5150

51+
@interface ASDisplayNode () <_ASDisplayLayerDelegate>
52+
@end
53+
5254
@implementation ASDisplayNode
5355

5456
// these dynamic properties all defined in ASLayoutOptionsPrivate.m

AsyncDisplayKit/ASMapNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* of patent rights can be found in the PATENTS file in the same directory.
77
*/
88

9-
#import <AsyncDisplayKit/AsyncDisplayKit.h>
9+
#import <AsyncDisplayKit/ASImageNode.h>
1010
#import <MapKit/MapKit.h>
1111

1212
NS_ASSUME_NONNULL_BEGIN

AsyncDisplayKit/ASMapNode.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*/
88

99
#import "ASMapNode.h"
10+
#import <AsyncDisplayKit/ASDisplayNode+Subclasses.h>
11+
#import <AsyncDisplayKit/ASDisplayNodeExtras.h>
1012
#import <AsyncDisplayKit/ASInsetLayoutSpec.h>
1113
#import <AsyncDisplayKit/ASCenterLayoutSpec.h>
1214
#import <AsyncDisplayKit/ASThread.h>

AsyncDisplayKit/ASPagerNode.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
#import "ASPagerNode.h"
1010
#import "ASDelegateProxy.h"
11-
12-
#import <AsyncDisplayKit/AsyncDisplayKit.h>
11+
#import "ASDisplayNode+Subclasses.h"
1312

1413
@interface ASPagerNode () <ASCollectionDataSource, ASCollectionViewDelegateFlowLayout, ASDelegateProxyInterceptor> {
1514
UICollectionViewFlowLayout *_flowLayout;

AsyncDisplayKit/ASTableNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2015 Facebook. All rights reserved.
77
//
88

9-
#import <AsyncDisplayKit/AsyncDisplayKit.h>
9+
#import <AsyncDisplayKit/ASTableView.h>
1010

1111
/**
1212
* ASTableNode is a node based class that wraps an ASTableView. It can be used

AsyncDisplayKit/ASTableNode.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
// Copyright © 2015 Facebook. All rights reserved.
77
//
88

9+
#import "ASFlowLayoutController.h"
910
#import "ASTableNode.h"
11+
#import "ASDisplayNode+Subclasses.h"
1012

1113
@interface _ASTablePendingState : NSObject
1214
@property (weak, nonatomic) id <ASTableDelegate> delegate;

0 commit comments

Comments
 (0)