Skip to content

Commit b41816d

Browse files
author
Adlai Holler
authored
Standardize Dependency Flags for PINRemoteImage, IGListKit (facebookarchive#3244)
* no message * Go further * Make the symbols public so that apps actually build * Move ASAvailability into the umbrella header * Remove duplicate define * Put the file back where it was in the list * Revert "Put the file back where it was in the list" This reverts commit 6a80c15.
1 parent 873ae64 commit b41816d

22 files changed

Lines changed: 11 additions & 50 deletions

AsyncDisplayKit.podspec

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,12 @@ Pod::Spec.new do |spec|
4444
end
4545

4646
spec.subspec 'PINRemoteImage' do |pin|
47-
# Note: The core.prefix_header_file includes setup of PIN_REMOTE_IMAGE, so the line below could be removed.
48-
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
4947
pin.dependency 'PINRemoteImage/iOS', '= 3.0.0-beta.8'
5048
pin.dependency 'PINRemoteImage/PINCache'
5149
pin.dependency 'AsyncDisplayKit/Core'
5250
end
5351

5452
spec.subspec 'IGListKit' do |igl|
55-
# Note: The core.prefix_header_file includes setup of IG_LIST_KIT, so the line below could be removed.
56-
igl.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) IG_LIST_KIT=1' }
5753
igl.dependency 'IGListKit', '2.1.0'
5854
igl.dependency 'AsyncDisplayKit/Core'
5955
end

BUCK

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ asyncdisplaykit_library(
8888
for name in ['AsyncDisplayKit', 'AsyncDisplayKit-PINRemoteImage']:
8989
asyncdisplaykit_library(
9090
name = name,
91-
additional_preprocessor_flags = ['-DPIN_REMOTE_IMAGE=1'],
9291
deps = [
9392
'//Pods/PINRemoteImage:PINRemoteImage-PINCache',
9493
],

Source/ASCollectionView.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
//
1010

1111
#import <AsyncDisplayKit/ASAssert.h>
12-
#import <AsyncDisplayKit/ASAvailability.h>
1312
#import <AsyncDisplayKit/ASBatchFetching.h>
1413
#import <AsyncDisplayKit/ASDelegateProxy.h>
1514
#import <AsyncDisplayKit/ASCellNode+Internal.h>

Source/ASDisplayNode+Beta.h

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

11-
#import <AsyncDisplayKit/ASAvailability.h>
1211
#import <AsyncDisplayKit/ASDisplayNode.h>
1312
#import <AsyncDisplayKit/ASLayoutRangeType.h>
1413
#import <AsyncDisplayKit/ASEventLog.h>

Source/ASDisplayNode+Yoga.mm

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

9-
#import <AsyncDisplayKit/ASAvailability.h>
109

1110
#if YOGA /* YOGA */
1211

Source/ASMultiplexImageNode.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#import <AsyncDisplayKit/ASMultiplexImageNode.h>
1212
#import <AssetsLibrary/AssetsLibrary.h>
1313

14-
#import <AsyncDisplayKit/ASAvailability.h>
1514
#import <AsyncDisplayKit/ASDisplayNode+FrameworkSubclasses.h>
1615
#import <AsyncDisplayKit/ASDisplayNodeExtras.h>
1716
#import <AsyncDisplayKit/ASPhotosFrameworkImageRequest.h>

Source/ASTableView.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#import <AsyncDisplayKit/_ASDisplayLayer.h>
1515
#import <AsyncDisplayKit/_ASHierarchyChangeSet.h>
1616
#import <AsyncDisplayKit/ASAssert.h>
17-
#import <AsyncDisplayKit/ASAvailability.h>
1817
#import <AsyncDisplayKit/ASBatchFetching.h>
1918
#import <AsyncDisplayKit/ASCellNode+Internal.h>
2019
#import <AsyncDisplayKit/ASCollectionElement.h>

Source/ASViewController.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#import <AsyncDisplayKit/ASViewController.h>
1414
#import <AsyncDisplayKit/ASAssert.h>
15-
#import <AsyncDisplayKit/ASAvailability.h>
1615
#import <AsyncDisplayKit/ASDisplayNode+FrameworkPrivate.h>
1716
#import <AsyncDisplayKit/ASLayout.h>
1817
#import <AsyncDisplayKit/ASTraitCollection.h>

Source/AsyncDisplayKit-Prefix.pch

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,4 @@
88
#import <Foundation/Foundation.h>
99
#endif
1010

11-
// Some build systems (Cocoapods, Buck, Bazel, etc) will define these flags manually if the functionality
12-
// is needed by the app. Carthage in particular, or if a user forgets to set the build flag, benefit from
13-
// checking if each flag is not defined and then setting it to whether or not the header is accessible.
14-
15-
#ifndef PIN_REMOTE_IMAGE
16-
// For Carthage or manual builds, this will define PIN_REMOTE_IMAGE if the header is available in the
17-
// search path e.g. they've dragged in the framework (technically this will not be able to detect if
18-
// a user does not include the framework in the link binary with build step).
19-
#define PIN_REMOTE_IMAGE __has_include(<PINRemoteImage/PINRemoteImage.h>)
20-
#endif
21-
22-
#ifndef IG_LIST_KIT
23-
#define IG_LIST_KIT __has_include(<IGListKit/IGListKit.h>)
24-
25-
/**
26-
* For IGListKit versions < 3.0, you have to use IGListCollectionView.
27-
* For 3.0 and later, that class is removed and you use UICollectionView.
28-
*/
29-
#define IG_LIST_COLLECTION_VIEW __has_include(<IGListKit/IGListCollectionView.h>)
30-
#endif
11+
#import <AsyncDisplayKit/ASAvailability.h>

Source/AsyncDisplayKit.h

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

11+
#import <AsyncDisplayKit/ASAvailability.h>
1112
#import <AsyncDisplayKit/ASDisplayNode.h>
1213
#import <AsyncDisplayKit/ASDisplayNode+Convenience.h>
1314
#import <AsyncDisplayKit/ASDisplayNodeExtras.h>
@@ -81,7 +82,6 @@
8182
#import <AsyncDisplayKit/ASDisplayNode+Beta.h>
8283
#import <AsyncDisplayKit/ASTextNode+Beta.h>
8384
#import <AsyncDisplayKit/ASTextNodeTypes.h>
84-
#import <AsyncDisplayKit/ASAvailability.h>
8585
#import <AsyncDisplayKit/ASBlockTypes.h>
8686
#import <AsyncDisplayKit/ASContextTransitioning.h>
8787
#import <AsyncDisplayKit/ASControlNode+Subclasses.h>

0 commit comments

Comments
 (0)