diff --git a/AsyncDisplayKit.xcodeproj/project.pbxproj b/AsyncDisplayKit.xcodeproj/project.pbxproj index 3adb0378fc..660e89e877 100644 --- a/AsyncDisplayKit.xcodeproj/project.pbxproj +++ b/AsyncDisplayKit.xcodeproj/project.pbxproj @@ -1572,7 +1572,6 @@ 058D0A01195D050800B7D73C /* Private */ = { isa = PBXGroup; children = ( - 69C4CAF51DA3147000B1EC9B /* ASLayoutElementStylePrivate.h */, 058D0A03195D050800B7D73C /* _ASCoreAnimationExtras.h */, 058D0A04195D050800B7D73C /* _ASCoreAnimationExtras.mm */, AC026B6D1BD57DBF00BBC17E /* _ASHierarchyChangeSet.h */, @@ -2781,6 +2780,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = AsyncDisplayKit/module.modulemap; MTL_ENABLE_DEBUG_INFO = YES; + OTHER_CFLAGS = "-DMINIMAL_ASDK=1"; PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = AsyncDisplayKit; PROVISIONING_PROFILE_SPECIFIER = X834Q8SBVP/; @@ -2815,6 +2815,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = AsyncDisplayKit/module.modulemap; MTL_ENABLE_DEBUG_INFO = NO; + OTHER_CFLAGS = "-DMINIMAL_ASDK=1"; PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = AsyncDisplayKit; PROVISIONING_PROFILE_SPECIFIER = X834Q8SBVP/; @@ -2952,6 +2953,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = AsyncDisplayKit/module.modulemap; MTL_ENABLE_DEBUG_INFO = NO; + OTHER_CFLAGS = "-DMINIMAL_ASDK=1"; PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = AsyncDisplayKit; PROVISIONING_PROFILE_SPECIFIER = X834Q8SBVP/; diff --git a/AsyncDisplayKit/ASCellNode+Internal.h b/AsyncDisplayKit/ASCellNode+Internal.h index 99066aa123..861db5333b 100644 --- a/AsyncDisplayKit/ASCellNode+Internal.h +++ b/AsyncDisplayKit/ASCellNode+Internal.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASCellNode.h" NS_ASSUME_NONNULL_BEGIN @@ -68,3 +70,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASCellNode.h b/AsyncDisplayKit/ASCellNode.h index 0a6ccf3fb3..ed9d1a4ea5 100644 --- a/AsyncDisplayKit/ASCellNode.h +++ b/AsyncDisplayKit/ASCellNode.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import NS_ASSUME_NONNULL_BEGIN @@ -201,3 +203,5 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) { @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASCellNode.mm b/AsyncDisplayKit/ASCellNode.mm index 84c81b6bf6..747e73d675 100644 --- a/AsyncDisplayKit/ASCellNode.mm +++ b/AsyncDisplayKit/ASCellNode.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASCellNode+Internal.h" #import "ASEqualityHelpers.h" @@ -468,3 +470,5 @@ static const CGFloat kASTextCellNodeDefaultVerticalPadding = 11.0f; } @end + +#endif diff --git a/AsyncDisplayKit/ASCollectionNode+Beta.h b/AsyncDisplayKit/ASCollectionNode+Beta.h index d1476c0baf..233d0c95f9 100644 --- a/AsyncDisplayKit/ASCollectionNode+Beta.h +++ b/AsyncDisplayKit/ASCollectionNode+Beta.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASCollectionNode.h" @protocol ASCollectionViewLayoutFacilitatorProtocol; @@ -26,3 +28,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASCollectionNode.h b/AsyncDisplayKit/ASCollectionNode.h index ef6e5e9c2a..fdb6b3a6c5 100644 --- a/AsyncDisplayKit/ASCollectionNode.h +++ b/AsyncDisplayKit/ASCollectionNode.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import #import @@ -691,3 +693,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASCollectionNode.mm b/AsyncDisplayKit/ASCollectionNode.mm index fb92d555a0..8a077be8e7 100644 --- a/AsyncDisplayKit/ASCollectionNode.mm +++ b/AsyncDisplayKit/ASCollectionNode.mm @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASCollectionInternal.h" #import "ASCollectionViewLayoutFacilitatorProtocol.h" #import "ASCollectionNode.h" @@ -588,3 +590,5 @@ ASEnvironmentCollectionTableSetEnvironmentState(_environmentStateLock) } @end + +#endif diff --git a/AsyncDisplayKit/ASCollectionView.h b/AsyncDisplayKit/ASCollectionView.h index 1f6fb93c8d..580e0ef4ce 100644 --- a/AsyncDisplayKit/ASCollectionView.h +++ b/AsyncDisplayKit/ASCollectionView.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import @@ -441,3 +443,5 @@ ASDISPLAYNODE_DEPRECATED_MSG("Renamed to ASCollectionDelegate.") @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASCollectionView.mm b/AsyncDisplayKit/ASCollectionView.mm index 8efed4eff7..26aa101d39 100644 --- a/AsyncDisplayKit/ASCollectionView.mm +++ b/AsyncDisplayKit/ASCollectionView.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASAssert.h" #import "ASAvailability.h" #import "ASBatchFetching.h" @@ -1749,3 +1751,5 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell"; #endif @end + +#endif diff --git a/AsyncDisplayKit/ASCollectionViewLayoutFacilitatorProtocol.h b/AsyncDisplayKit/ASCollectionViewLayoutFacilitatorProtocol.h index 7bd3261763..57cdd538a5 100644 --- a/AsyncDisplayKit/ASCollectionViewLayoutFacilitatorProtocol.h +++ b/AsyncDisplayKit/ASCollectionViewLayoutFacilitatorProtocol.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #pragma once /** @@ -42,3 +44,5 @@ - (void)collectionViewWillPerformBatchUpdates; @end + +#endif diff --git a/AsyncDisplayKit/ASCollectionViewProtocols.h b/AsyncDisplayKit/ASCollectionViewProtocols.h index 793d697744..3f1982a5c7 100644 --- a/AsyncDisplayKit/ASCollectionViewProtocols.h +++ b/AsyncDisplayKit/ASCollectionViewProtocols.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + NS_ASSUME_NONNULL_BEGIN /** @@ -58,3 +60,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASDisplayNode.mm b/AsyncDisplayKit/ASDisplayNode.mm index 862fd18dfc..2e9bf5b4f1 100644 --- a/AsyncDisplayKit/ASDisplayNode.mm +++ b/AsyncDisplayKit/ASDisplayNode.mm @@ -3492,11 +3492,13 @@ static const char *ASDisplayNodeDrawingPriorityKey = "ASDrawingPriority"; [result addObject:@{ @"frame" : [NSValue valueWithCGRect:_pendingViewState.frame] }]; } +#ifndef MINIMAL_ASDK // Check supernode so that if we are cell node we don't find self. ASCellNode *cellNode = ASDisplayNodeFindFirstSupernodeOfClass([self _deallocSafeSupernode], [ASCellNode class]); if (cellNode != nil) { [result addObject:@{ @"cellNode" : ASObjectDescriptionMakeTiny(cellNode) }]; } +#endif [result addObject:@{ @"interfaceState" : NSStringFromASInterfaceState(self.interfaceState)} ]; diff --git a/AsyncDisplayKit/ASMapNode.h b/AsyncDisplayKit/ASMapNode.h index 1d9b96c7be..81120062b7 100644 --- a/AsyncDisplayKit/ASMapNode.h +++ b/AsyncDisplayKit/ASMapNode.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #if TARGET_OS_IOS #import @@ -81,3 +83,5 @@ typedef NS_OPTIONS(NSUInteger, ASMapNodeShowAnnotationsOptions) NS_ASSUME_NONNULL_END #endif + +#endif diff --git a/AsyncDisplayKit/ASMapNode.mm b/AsyncDisplayKit/ASMapNode.mm index d188223159..5b347d7c81 100644 --- a/AsyncDisplayKit/ASMapNode.mm +++ b/AsyncDisplayKit/ASMapNode.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #if TARGET_OS_IOS #import "ASMapNode.h" @@ -428,3 +430,5 @@ } @end #endif + +#endif diff --git a/AsyncDisplayKit/ASMultiplexImageNode.h b/AsyncDisplayKit/ASMultiplexImageNode.h index 147bbb6b6e..03dd3e6941 100644 --- a/AsyncDisplayKit/ASMultiplexImageNode.h +++ b/AsyncDisplayKit/ASMultiplexImageNode.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #if TARGET_OS_IOS #import @@ -278,3 +280,5 @@ didFinishDownloadingImageWithIdentifier:(ASImageIdentifier)imageIdentifier NS_ASSUME_NONNULL_END #endif + +#endif diff --git a/AsyncDisplayKit/ASMultiplexImageNode.mm b/AsyncDisplayKit/ASMultiplexImageNode.mm index 011071fe62..55512148e6 100644 --- a/AsyncDisplayKit/ASMultiplexImageNode.mm +++ b/AsyncDisplayKit/ASMultiplexImageNode.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #if TARGET_OS_IOS #import "ASMultiplexImageNode.h" @@ -897,3 +899,5 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent #endif #endif + +#endif diff --git a/AsyncDisplayKit/ASNavigationController.h b/AsyncDisplayKit/ASNavigationController.h index 03f18d068f..4d0206fb55 100644 --- a/AsyncDisplayKit/ASNavigationController.h +++ b/AsyncDisplayKit/ASNavigationController.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import "ASVisibilityProtocols.h" @@ -31,3 +33,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASNavigationController.m b/AsyncDisplayKit/ASNavigationController.m index 79ae3f4232..be93788e18 100644 --- a/AsyncDisplayKit/ASNavigationController.m +++ b/AsyncDisplayKit/ASNavigationController.m @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASNavigationController.h" @implementation ASNavigationController @@ -98,3 +100,5 @@ ASVisibilityDepthImplementation; } @end + +#endif diff --git a/AsyncDisplayKit/ASNetworkImageNode.h b/AsyncDisplayKit/ASNetworkImageNode.h index dddc0c426c..9d2e22390a 100644 --- a/AsyncDisplayKit/ASNetworkImageNode.h +++ b/AsyncDisplayKit/ASNetworkImageNode.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import @@ -143,3 +145,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASNetworkImageNode.mm b/AsyncDisplayKit/ASNetworkImageNode.mm index 8a989c5c8d..9d1da0e40a 100755 --- a/AsyncDisplayKit/ASNetworkImageNode.mm +++ b/AsyncDisplayKit/ASNetworkImageNode.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASNetworkImageNode.h" #import "ASBasicImageDownloader.h" @@ -594,3 +596,5 @@ static const CGSize kMinReleaseImageOnBackgroundSize = {20.0, 20.0}; } @end + +#endif diff --git a/AsyncDisplayKit/ASPagerFlowLayout.h b/AsyncDisplayKit/ASPagerFlowLayout.h index af5344e16a..a73cf9b0fc 100644 --- a/AsyncDisplayKit/ASPagerFlowLayout.h +++ b/AsyncDisplayKit/ASPagerFlowLayout.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import NS_ASSUME_NONNULL_BEGIN @@ -19,3 +21,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASPagerFlowLayout.m b/AsyncDisplayKit/ASPagerFlowLayout.m index c958b084d5..264a13fa40 100644 --- a/AsyncDisplayKit/ASPagerFlowLayout.m +++ b/AsyncDisplayKit/ASPagerFlowLayout.m @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASPagerFlowLayout.h" @interface ASPagerFlowLayout () { @@ -91,3 +93,5 @@ } @end + +#endif diff --git a/AsyncDisplayKit/ASPagerNode.h b/AsyncDisplayKit/ASPagerNode.h index 1bb790a192..3c2a895aea 100644 --- a/AsyncDisplayKit/ASPagerNode.h +++ b/AsyncDisplayKit/ASPagerNode.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import @@ -124,3 +126,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASPagerNode.m b/AsyncDisplayKit/ASPagerNode.m index 4e8db5d654..836f932223 100644 --- a/AsyncDisplayKit/ASPagerNode.m +++ b/AsyncDisplayKit/ASPagerNode.m @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASPagerNode.h" #import "ASDelegateProxy.h" #import "ASDisplayNode+Subclasses.h" @@ -209,3 +211,5 @@ } @end + +#endif diff --git a/AsyncDisplayKit/ASScrollNode.h b/AsyncDisplayKit/ASScrollNode.h index 00faced970..93978d122a 100644 --- a/AsyncDisplayKit/ASScrollNode.h +++ b/AsyncDisplayKit/ASScrollNode.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import @@ -27,3 +29,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASScrollNode.m b/AsyncDisplayKit/ASScrollNode.m index aed6d8379e..8df09827db 100644 --- a/AsyncDisplayKit/ASScrollNode.m +++ b/AsyncDisplayKit/ASScrollNode.m @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASScrollNode.h" #import "_ASDisplayLayer.h" @@ -34,3 +36,5 @@ } @end + +#endif diff --git a/AsyncDisplayKit/ASTabBarController.h b/AsyncDisplayKit/ASTabBarController.h index 04c35d73b8..f9a46b86a5 100644 --- a/AsyncDisplayKit/ASTabBarController.h +++ b/AsyncDisplayKit/ASTabBarController.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import "ASVisibilityProtocols.h" @@ -29,3 +31,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASTabBarController.m b/AsyncDisplayKit/ASTabBarController.m index 8a82ff11b1..62c9703649 100644 --- a/AsyncDisplayKit/ASTabBarController.m +++ b/AsyncDisplayKit/ASTabBarController.m @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASTabBarController.h" @implementation ASTabBarController @@ -78,3 +80,5 @@ ASVisibilityDepthImplementation; } @end + +#endif diff --git a/AsyncDisplayKit/ASTableNode.h b/AsyncDisplayKit/ASTableNode.h index 019a910953..e2d93309cb 100644 --- a/AsyncDisplayKit/ASTableNode.h +++ b/AsyncDisplayKit/ASTableNode.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import #import @@ -655,3 +657,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASTableNode.mm b/AsyncDisplayKit/ASTableNode.mm index 9a48a4a291..74881c170e 100644 --- a/AsyncDisplayKit/ASTableNode.mm +++ b/AsyncDisplayKit/ASTableNode.mm @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASTableNode.h" #import "ASTableViewInternal.h" #import "ASEnvironmentInternal.h" @@ -604,3 +606,5 @@ ASEnvironmentCollectionTableSetEnvironmentState(_environmentStateLock) } @end + +#endif diff --git a/AsyncDisplayKit/ASTableView.h b/AsyncDisplayKit/ASTableView.h index b932edc873..7f1c43c3fa 100644 --- a/AsyncDisplayKit/ASTableView.h +++ b/AsyncDisplayKit/ASTableView.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import #import @@ -244,3 +246,5 @@ ASDISPLAYNODE_DEPRECATED_MSG("Renamed to ASTableDelegate.") @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASTableView.mm b/AsyncDisplayKit/ASTableView.mm index ba6b303810..e5cb5e657f 100644 --- a/AsyncDisplayKit/ASTableView.mm +++ b/AsyncDisplayKit/ASTableView.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASTableViewInternal.h" #import "ASAssert.h" @@ -1695,3 +1697,5 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell"; } @end + +#endif diff --git a/AsyncDisplayKit/ASTableViewInternal.h b/AsyncDisplayKit/ASTableViewInternal.h index 2dc5533090..9e36c020bb 100644 --- a/AsyncDisplayKit/ASTableViewInternal.h +++ b/AsyncDisplayKit/ASTableViewInternal.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import @class ASDataController; @@ -65,3 +67,5 @@ - (CGFloat)sectionIndexWidth; @end + +#endif diff --git a/AsyncDisplayKit/ASTableViewProtocols.h b/AsyncDisplayKit/ASTableViewProtocols.h index 00719dea26..ef75d8e719 100644 --- a/AsyncDisplayKit/ASTableViewProtocols.h +++ b/AsyncDisplayKit/ASTableViewProtocols.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + NS_ASSUME_NONNULL_BEGIN /** @@ -92,3 +94,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASVideoNode.h b/AsyncDisplayKit/ASVideoNode.h index 501380a10d..9784c71369 100644 --- a/AsyncDisplayKit/ASVideoNode.h +++ b/AsyncDisplayKit/ASVideoNode.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #if TARGET_OS_IOS #import #import @@ -154,3 +156,4 @@ NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END #endif +#endif diff --git a/AsyncDisplayKit/ASVideoNode.mm b/AsyncDisplayKit/ASVideoNode.mm index 9dc4d22077..59d68495a3 100644 --- a/AsyncDisplayKit/ASVideoNode.mm +++ b/AsyncDisplayKit/ASVideoNode.mm @@ -7,6 +7,9 @@ // 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. // + +#ifndef MINIMAL_ASDK + #if TARGET_OS_IOS #import #import "ASDisplayNodeInternal.h" @@ -796,3 +799,5 @@ static NSString * const kRate = @"rate"; @end #endif + +#endif diff --git a/AsyncDisplayKit/ASVideoPlayerNode.h b/AsyncDisplayKit/ASVideoPlayerNode.h index 2af9f4b9f0..ad3e4f59e0 100644 --- a/AsyncDisplayKit/ASVideoPlayerNode.h +++ b/AsyncDisplayKit/ASVideoPlayerNode.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #if TARGET_OS_IOS #import //#import @@ -200,3 +202,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END #endif + +#endif diff --git a/AsyncDisplayKit/ASVideoPlayerNode.mm b/AsyncDisplayKit/ASVideoPlayerNode.mm index 5c26ddec3e..bcb1bfeb79 100644 --- a/AsyncDisplayKit/ASVideoPlayerNode.mm +++ b/AsyncDisplayKit/ASVideoPlayerNode.mm @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASVideoPlayerNode.h" #import "ASDefaultPlaybackButton.h" #import "ASDisplayNodeInternal.h" @@ -924,3 +926,5 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext; } @end + +#endif diff --git a/AsyncDisplayKit/ASViewController.h b/AsyncDisplayKit/ASViewController.h index 28d77399c0..1420af98d7 100644 --- a/AsyncDisplayKit/ASViewController.h +++ b/AsyncDisplayKit/ASViewController.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import #import @@ -97,3 +99,5 @@ typedef ASTraitCollection * _Nonnull (^ASDisplayTraitsForTraitWindowSizeBlock)(C @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/ASViewController.mm b/AsyncDisplayKit/ASViewController.mm index e3def4c26d..2a4c922889 100644 --- a/AsyncDisplayKit/ASViewController.mm +++ b/AsyncDisplayKit/ASViewController.mm @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASViewController.h" #import "ASAssert.h" #import "ASAvailability.h" @@ -337,3 +339,5 @@ ASVisibilityDepthImplementation; } @end + +#endif diff --git a/AsyncDisplayKit/AsyncDisplayKit+Debug.h b/AsyncDisplayKit/AsyncDisplayKit+Debug.h index 3610d4ecd6..f468d8b5e7 100644 --- a/AsyncDisplayKit/AsyncDisplayKit+Debug.h +++ b/AsyncDisplayKit/AsyncDisplayKit+Debug.h @@ -52,6 +52,7 @@ NS_ASSUME_NONNULL_BEGIN @end +#ifndef MINIMAL_ASDK @interface ASRangeController (Debugging) /** @@ -75,5 +76,6 @@ NS_ASSUME_NONNULL_BEGIN interfaceState:(ASInterfaceState)interfaceState; @end +#endif NS_ASSUME_NONNULL_END diff --git a/AsyncDisplayKit/AsyncDisplayKit+Debug.m b/AsyncDisplayKit/AsyncDisplayKit+Debug.m index c12f16f3e0..417dacc637 100644 --- a/AsyncDisplayKit/AsyncDisplayKit+Debug.m +++ b/AsyncDisplayKit/AsyncDisplayKit+Debug.m @@ -207,6 +207,8 @@ static BOOL __enableHitTestDebug = NO; #pragma mark - ASRangeController (Debugging) +#ifndef MINIMAL_ASDK + @interface _ASRangeDebugOverlayView : UIView + (instancetype)sharedInstance; @@ -752,3 +754,5 @@ static BOOL __shouldShowRangeDebugOverlay = NO; } @end + +#endif diff --git a/AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.h b/AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.h index 69bae8c6b9..8e0602911e 100644 --- a/AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.h +++ b/AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.h @@ -6,6 +6,8 @@ // Copyright © 2016 Facebook. All rights reserved. // +#ifndef MINIMAL_ASDK + #import typedef NS_ENUM(NSInteger, ASLayoutElementPropertyType) { @@ -26,3 +28,4 @@ typedef NS_ENUM(NSInteger, ASLayoutElementPropertyType) { @end +#endif diff --git a/AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.m b/AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.m index ab5f191f2d..a026ff0fbb 100644 --- a/AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.m +++ b/AsyncDisplayKit/Debug/ASLayoutElementInspectorCell.m @@ -6,6 +6,8 @@ // Copyright © 2016 Facebook. All rights reserved. // +#ifndef MINIMAL_ASDK + #import "ASLayoutElementInspectorCell.h" #import @@ -567,3 +569,4 @@ __weak static ASLayoutElementInspectorCell *__currentlyOpenedCell = nil; @end +#endif diff --git a/AsyncDisplayKit/Debug/ASLayoutElementInspectorNode.m b/AsyncDisplayKit/Debug/ASLayoutElementInspectorNode.m index 58be55813a..4178716a7e 100644 --- a/AsyncDisplayKit/Debug/ASLayoutElementInspectorNode.m +++ b/AsyncDisplayKit/Debug/ASLayoutElementInspectorNode.m @@ -7,17 +7,26 @@ // #import "ASLayoutElementInspectorNode.h" + +#ifndef MINIMAL_ASDK #import "ASLayoutElementInspectorCell.h" +#endif + #import "ASDisplayNode+Beta.h" #import "ASLayoutSpec+Debug.h" #import -@interface ASLayoutElementInspectorNode () +@interface ASLayoutElementInspectorNode () +#ifndef MINIMAL_ASDK + +#endif @end @implementation ASLayoutElementInspectorNode { +#ifndef MINIMAL_ASDK ASTableNode *_tableNode; +#endif } #pragma mark - class methods @@ -39,11 +48,13 @@ self = [super init]; if (self) { +#ifndef MINIMAL_ASDK _tableNode = [[ASTableNode alloc] init]; _tableNode.delegate = self; _tableNode.dataSource = self; [self addSubnode:_tableNode]; // required because of manual layout +#endif } return self; } @@ -51,16 +62,20 @@ - (void)didLoad { [super didLoad]; +#ifndef MINIMAL_ASDK _tableNode.view.backgroundColor = [UIColor colorWithRed:40/255.0 green:43/255.0 blue:53/255.0 alpha:1]; _tableNode.view.separatorStyle = UITableViewCellSeparatorStyleNone; _tableNode.view.allowsSelection = NO; _tableNode.view.sectionHeaderHeight = 40; +#endif } - (void)layout { [super layout]; +#ifndef MINIMAL_ASDK _tableNode.frame = self.bounds; +#endif } #pragma mark - intstance methods @@ -69,11 +84,14 @@ if (_layoutElementToEdit != layoutElementToEdit) { _layoutElementToEdit = layoutElementToEdit; } +#ifndef MINIMAL_ASDK [_tableNode reloadData]; +#endif } #pragma mark - ASTableDataSource +#ifndef MINIMAL_ASDK - (ASCellNode *)tableView:(ASTableView *)tableView nodeForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.section == 0) { @@ -119,6 +137,8 @@ return headerTitle; } +#endif + //- (ASLayoutSpec *)layoutSpecThatFits:(ASSizeRange)constrainedSize //{ // // navigate layout hierarchy diff --git a/AsyncDisplayKit/Details/ASBasicImageDownloader.h b/AsyncDisplayKit/Details/ASBasicImageDownloader.h index b4c268fe72..87343cf759 100644 --- a/AsyncDisplayKit/Details/ASBasicImageDownloader.h +++ b/AsyncDisplayKit/Details/ASBasicImageDownloader.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import NS_ASSUME_NONNULL_BEGIN @@ -33,3 +35,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASBasicImageDownloader.mm b/AsyncDisplayKit/Details/ASBasicImageDownloader.mm index 16a9ee4b8d..571bb4959b 100644 --- a/AsyncDisplayKit/Details/ASBasicImageDownloader.mm +++ b/AsyncDisplayKit/Details/ASBasicImageDownloader.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASBasicImageDownloader.h" #import @@ -314,3 +316,5 @@ static const char *kContextKey = NSStringFromClass(ASBasicImageDownloaderContext } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASBatchContext.h b/AsyncDisplayKit/Details/ASBatchContext.h index 4e281a0277..2b90d1e15b 100644 --- a/AsyncDisplayKit/Details/ASBatchContext.h +++ b/AsyncDisplayKit/Details/ASBatchContext.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import NS_ASSUME_NONNULL_BEGIN @@ -64,3 +66,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASBatchContext.mm b/AsyncDisplayKit/Details/ASBatchContext.mm index 94c148a804..dab1f46ad4 100644 --- a/AsyncDisplayKit/Details/ASBatchContext.mm +++ b/AsyncDisplayKit/Details/ASBatchContext.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASBatchContext.h" #import "ASThread.h" @@ -68,3 +70,5 @@ typedef NS_ENUM(NSInteger, ASBatchContextState) { } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASChangeSetDataController.h b/AsyncDisplayKit/Details/ASChangeSetDataController.h index fa24b28ae2..49df1dc24d 100644 --- a/AsyncDisplayKit/Details/ASChangeSetDataController.h +++ b/AsyncDisplayKit/Details/ASChangeSetDataController.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import /** @@ -25,3 +27,5 @@ @interface ASChangeSetDataController : ASDataController @end + +#endif diff --git a/AsyncDisplayKit/Details/ASChangeSetDataController.mm b/AsyncDisplayKit/Details/ASChangeSetDataController.mm index 10ae0f28d0..864f295a4b 100644 --- a/AsyncDisplayKit/Details/ASChangeSetDataController.mm +++ b/AsyncDisplayKit/Details/ASChangeSetDataController.mm @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASChangeSetDataController.h" #import "_ASHierarchyChangeSet.h" #import "ASAssert.h" @@ -193,3 +195,5 @@ } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionDataController.h b/AsyncDisplayKit/Details/ASCollectionDataController.h index 74c08ec413..1916cd7a55 100644 --- a/AsyncDisplayKit/Details/ASCollectionDataController.h +++ b/AsyncDisplayKit/Details/ASCollectionDataController.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import @@ -52,3 +54,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionDataController.mm b/AsyncDisplayKit/Details/ASCollectionDataController.mm index bdbdd9801f..b2e92d1758 100644 --- a/AsyncDisplayKit/Details/ASCollectionDataController.mm +++ b/AsyncDisplayKit/Details/ASCollectionDataController.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASCollectionDataController.h" #import "ASAssert.h" @@ -340,3 +342,5 @@ } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionInternal.h b/AsyncDisplayKit/Details/ASCollectionInternal.h index 814f51d3b9..3eb7f02ada 100644 --- a/AsyncDisplayKit/Details/ASCollectionInternal.h +++ b/AsyncDisplayKit/Details/ASCollectionInternal.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import NS_ASSUME_NONNULL_BEGIN @@ -51,3 +53,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.h b/AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.h index 52df1ee1d4..60818128bf 100644 --- a/AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.h +++ b/AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #pragma once #include "ASCollectionViewLayoutInspector.h" @@ -27,3 +29,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.m b/AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.m index 5c49d17ea2..ae053bc803 100644 --- a/AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.m +++ b/AsyncDisplayKit/Details/ASCollectionViewFlowLayoutInspector.m @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASCollectionViewFlowLayoutInspector.h" #import "ASCollectionView.h" #import "ASAssert.h" @@ -160,3 +162,5 @@ } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionViewLayoutController.h b/AsyncDisplayKit/Details/ASCollectionViewLayoutController.h index 4f2457e697..2ce0f4d66b 100644 --- a/AsyncDisplayKit/Details/ASCollectionViewLayoutController.h +++ b/AsyncDisplayKit/Details/ASCollectionViewLayoutController.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import @@ -22,3 +24,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionViewLayoutController.mm b/AsyncDisplayKit/Details/ASCollectionViewLayoutController.mm index d2db393f25..cb4b6f77bf 100644 --- a/AsyncDisplayKit/Details/ASCollectionViewLayoutController.mm +++ b/AsyncDisplayKit/Details/ASCollectionViewLayoutController.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASCollectionViewLayoutController.h" #import "ASAssert.h" @@ -75,3 +77,5 @@ typedef struct ASRangeGeometry ASRangeGeometry; } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.h b/AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.h index 5b8c901218..6f2a2cb541 100644 --- a/AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.h +++ b/AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.h @@ -6,6 +6,8 @@ // Copyright © 2016 Facebook. All rights reserved. // +#ifndef MINIMAL_ASDK + #import #import #import @@ -81,3 +83,5 @@ extern ASSizeRange NodeConstrainedSizeForScrollDirection(ASCollectionView *colle @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.m b/AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.m index 960619b464..3bedc6578a 100644 --- a/AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.m +++ b/AsyncDisplayKit/Details/ASCollectionViewLayoutInspector.m @@ -6,6 +6,8 @@ // Copyright © 2016 Facebook. All rights reserved. // +#ifndef MINIMAL_ASDK + #import "ASCollectionViewLayoutInspector.h" #import "ASCollectionView.h" @@ -92,3 +94,5 @@ ASSizeRange NodeConstrainedSizeForScrollDirection(ASCollectionView *collectionVi } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASDataController.mm b/AsyncDisplayKit/Details/ASDataController.mm index db4a499b2d..261cc62efa 100644 --- a/AsyncDisplayKit/Details/ASDataController.mm +++ b/AsyncDisplayKit/Details/ASDataController.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASDataController.h" #import "ASAssert.h" @@ -1082,3 +1084,5 @@ static volatile int64_t _totalMeasuredNodes = 0; @end #endif + +#endif diff --git a/AsyncDisplayKit/Details/ASFlowLayoutController.h b/AsyncDisplayKit/Details/ASFlowLayoutController.h index de87c11f4e..d1a618493f 100644 --- a/AsyncDisplayKit/Details/ASFlowLayoutController.h +++ b/AsyncDisplayKit/Details/ASFlowLayoutController.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import @@ -40,3 +42,5 @@ typedef NS_ENUM(NSUInteger, ASFlowLayoutDirection) { @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASFlowLayoutController.mm b/AsyncDisplayKit/Details/ASFlowLayoutController.mm index 15dcbfcc26..a96c0e6815 100644 --- a/AsyncDisplayKit/Details/ASFlowLayoutController.mm +++ b/AsyncDisplayKit/Details/ASFlowLayoutController.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASFlowLayoutController.h" #import "ASAssert.h" #import "ASDisplayNode.h" @@ -207,3 +209,5 @@ } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASIndexedNodeContext.mm b/AsyncDisplayKit/Details/ASIndexedNodeContext.mm index 15020eecb1..e0a86d5181 100644 --- a/AsyncDisplayKit/Details/ASIndexedNodeContext.mm +++ b/AsyncDisplayKit/Details/ASIndexedNodeContext.mm @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASIndexedNodeContext.h" #import "ASEnvironmentInternal.h" #import "ASCellNode+Internal.h" @@ -81,3 +83,5 @@ } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.h b/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.h index a2833cde90..9d8d5fecff 100644 --- a/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.h +++ b/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #if PIN_REMOTE_IMAGE #import @@ -56,3 +58,5 @@ NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END #endif + +#endif diff --git a/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m b/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m index 956ff138bf..52762c3f02 100644 --- a/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m +++ b/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #if PIN_REMOTE_IMAGE #import "ASPINRemoteImageDownloader.h" @@ -301,3 +303,5 @@ static ASPINRemoteImageDownloader *sharedDownloader = nil; @end #endif + +#endif diff --git a/AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.h b/AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.h index 72b45ea561..50e42eac78 100644 --- a/AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.h +++ b/AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.h @@ -9,6 +9,9 @@ // 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. // + +#ifndef MINIMAL_ASDK + #if TARGET_OS_IOS #import #import @@ -69,3 +72,5 @@ extern NSString *const ASPhotosURLScheme; // NS_ASSUME_NONNULL_END #endif + +#endif diff --git a/AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.m b/AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.m index aac715563c..0fc8a67692 100644 --- a/AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.m +++ b/AsyncDisplayKit/Details/ASPhotosFrameworkImageRequest.m @@ -9,6 +9,9 @@ // 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. // + +#ifndef MINIMAL_ASDK + #if TARGET_OS_IOS #import "ASPhotosFrameworkImageRequest.h" #import "ASBaseDefines.h" @@ -164,3 +167,5 @@ static NSString *const _ASPhotosURLQueryKeyCropHeight = @"crop_h"; @end #endif + +#endif diff --git a/AsyncDisplayKit/Details/ASRangeController.h b/AsyncDisplayKit/Details/ASRangeController.h index 5d3ebc9484..1434b716a0 100644 --- a/AsyncDisplayKit/Details/ASRangeController.h +++ b/AsyncDisplayKit/Details/ASRangeController.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import #import @@ -236,3 +238,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASRangeController.mm b/AsyncDisplayKit/Details/ASRangeController.mm index 2da5de760a..14438a8116 100644 --- a/AsyncDisplayKit/Details/ASRangeController.mm +++ b/AsyncDisplayKit/Details/ASRangeController.mm @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASRangeController.h" #import "ASAssert.h" @@ -635,3 +637,5 @@ static ASLayoutRangeMode __rangeModeForMemoryWarnings = ASLayoutRangeModeVisible } @end + +#endif diff --git a/AsyncDisplayKit/Details/ASRangeControllerUpdateRangeProtocol+Beta.h b/AsyncDisplayKit/Details/ASRangeControllerUpdateRangeProtocol+Beta.h index 13f03b3e12..59765bb9e4 100644 --- a/AsyncDisplayKit/Details/ASRangeControllerUpdateRangeProtocol+Beta.h +++ b/AsyncDisplayKit/Details/ASRangeControllerUpdateRangeProtocol+Beta.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import @protocol ASRangeControllerUpdateRangeProtocol @@ -19,3 +21,5 @@ - (void)updateCurrentRangeWithMode:(ASLayoutRangeMode)rangeMode; @end + +#endif diff --git a/AsyncDisplayKit/Details/ASSectionContext.h b/AsyncDisplayKit/Details/ASSectionContext.h index ad444b8808..c89176e3bd 100644 --- a/AsyncDisplayKit/Details/ASSectionContext.h +++ b/AsyncDisplayKit/Details/ASSectionContext.h @@ -10,6 +10,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + @class ASCollectionView; @protocol ASSectionContext @@ -21,3 +23,5 @@ @property (nonatomic, weak, nullable) ASCollectionView *collectionView; @end + +#endif diff --git a/AsyncDisplayKit/Private/ASBatchFetching.h b/AsyncDisplayKit/Private/ASBatchFetching.h index 2f9b8bbed8..8ede3218bd 100644 --- a/AsyncDisplayKit/Private/ASBatchFetching.h +++ b/AsyncDisplayKit/Private/ASBatchFetching.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import #import "ASBatchContext.h" @@ -55,3 +57,5 @@ extern BOOL ASDisplayShouldFetchBatchForContext(ASBatchContext *context, CGFloat leadingScreens); ASDISPLAYNODE_EXTERN_C_END + +#endif diff --git a/AsyncDisplayKit/Private/ASBatchFetching.m b/AsyncDisplayKit/Private/ASBatchFetching.m index 0dd7cda675..269288046c 100644 --- a/AsyncDisplayKit/Private/ASBatchFetching.m +++ b/AsyncDisplayKit/Private/ASBatchFetching.m @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #import "ASBatchFetching.h" BOOL ASDisplayShouldFetchBatchForScrollView(UIScrollView *scrollView, ASScrollDirection scrollDirection, CGPoint contentOffset) @@ -67,3 +69,5 @@ BOOL ASDisplayShouldFetchBatchForContext(ASBatchContext *context, return hasSmallContent || remainingDistance <= triggerDistance; } + +#endif diff --git a/AsyncDisplayKit/Private/ASCollectionView+Undeprecated.h b/AsyncDisplayKit/Private/ASCollectionView+Undeprecated.h index 44683e8359..d8d45bd11c 100644 --- a/AsyncDisplayKit/Private/ASCollectionView+Undeprecated.h +++ b/AsyncDisplayKit/Private/ASCollectionView+Undeprecated.h @@ -6,6 +6,8 @@ // Copyright © 2016 Facebook. All rights reserved. // +#ifndef MINIMAL_ASDK + #import NS_ASSUME_NONNULL_BEGIN @@ -300,3 +302,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Private/ASDataController+Subclasses.h b/AsyncDisplayKit/Private/ASDataController+Subclasses.h index 2012460f21..405ce2d4b4 100644 --- a/AsyncDisplayKit/Private/ASDataController+Subclasses.h +++ b/AsyncDisplayKit/Private/ASDataController+Subclasses.h @@ -8,6 +8,8 @@ // of patent rights can be found in the PATENTS file in the same directory. // +#ifndef MINIMAL_ASDK + #pragma once #import @@ -196,3 +198,5 @@ typedef void (^ASDataControllerCompletionBlock)(NSArray *nodes, NS - (void)willDeleteRowsAtIndexPaths:(NSArray *)indexPaths; @end + +#endif