diff --git a/AsyncDisplayKit.podspec b/AsyncDisplayKit.podspec index 68b44be4a2..b2592d0ae6 100644 --- a/AsyncDisplayKit.podspec +++ b/AsyncDisplayKit.podspec @@ -7,8 +7,6 @@ Pod::Spec.new do |spec| spec.summary = 'Smooth asynchronous user interfaces for iOS apps.' spec.source = { :git => 'https://github.com/facebook/AsyncDisplayKit.git', :tag => '1.9.8' } - spec.dependency 'PINRemoteImage/iOS', '>= 3.0.0-beta.2' - spec.documentation_url = 'http://asyncdisplaykit.org/appledoc/' spec.frameworks = 'AssetsLibrary' @@ -60,7 +58,6 @@ Pod::Spec.new do |spec| end spec.subspec 'PINRemoteImage' do |pin| - pin.xcconfig = { "FRAMEWORK_SEARCH_PATHS" => "$(PODS_ROOT)/PINRemoteImage"} pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' } pin.dependency 'PINRemoteImage/iOS', '>= 3.0.0-beta.2' pin.dependency 'AsyncDisplayKit/Core' diff --git a/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.h b/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.h index 78d51d7980..4b788ca020 100644 --- a/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.h +++ b/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.h @@ -6,6 +6,8 @@ // Copyright © 2016 Facebook. All rights reserved. // +#if PIN_REMOTE_IMAGE + #import #import "ASImageProtocols.h" #import @@ -21,3 +23,5 @@ NS_ASSUME_NONNULL_BEGIN @end NS_ASSUME_NONNULL_END + +#endif diff --git a/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m b/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m index ee78b0e7b6..4ace07c87b 100644 --- a/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m +++ b/AsyncDisplayKit/Details/ASPINRemoteImageDownloader.m @@ -6,7 +6,7 @@ // Copyright © 2016 Facebook. All rights reserved. // -#ifdef PIN_REMOTE_IMAGE +#if PIN_REMOTE_IMAGE #import "ASPINRemoteImageDownloader.h" #import "ASAssert.h"