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

[AsyncDisplayKit Build / Cocoapods] Add Core subspec that excludes PINRemoteImage etc. #1522

Merged
merged 2 commits into from
Apr 14, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 30 additions & 28 deletions AsyncDisplayKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,39 @@ Pod::Spec.new do |spec|

spec.documentation_url = 'http://asyncdisplaykit.org/appledoc/'

spec.public_header_files = [
'AsyncDisplayKit/*.h',
'AsyncDisplayKit/Details/**/*.h',
'AsyncDisplayKit/Layout/*.h',
'Base/*.h',
'AsyncDisplayKit/TextKit/ASTextNodeTypes.h',
'AsyncDisplayKit/TextKit/ASTextKitComponents.h'
]

spec.source_files = [
'AsyncDisplayKit/**/*.{h,m,mm}',
'Base/*.{h,m}',

# Most TextKit components are not public because the C++ content
# in the headers will cause build errors when using
# `use_frameworks!` on 0.39.0 & Swift 2.1.
# See https://github.com/facebook/AsyncDisplayKit/issues/1153
'AsyncDisplayKit/TextKit/*.h',
]

spec.frameworks = 'AssetsLibrary'
spec.weak_frameworks = 'Photos','MapKit'

# ASDealloc2MainObject must be compiled with MRR
spec.requires_arc = true
spec.exclude_files = [
'AsyncDisplayKit/Details/ASDealloc2MainObject.h',
'AsyncDisplayKit/Details/ASDealloc2MainObject.m',
]

#Subspecs
# Subspecs
spec.subspec 'Core' do |core|
core.public_header_files = [
'AsyncDisplayKit/*.h',
'AsyncDisplayKit/Details/**/*.h',
'AsyncDisplayKit/Layout/*.h',
'Base/*.h',
'AsyncDisplayKit/TextKit/ASTextNodeTypes.h',
'AsyncDisplayKit/TextKit/ASTextKitComponents.h'
]

# ASDealloc2MainObject must be compiled with MRR
core.exclude_files = [
'AsyncDisplayKit/Private/_AS-objc-internal.h',
'AsyncDisplayKit/Details/ASDealloc2MainObject.h',
'AsyncDisplayKit/Details/ASDealloc2MainObject.m',
]
core.source_files = [
'AsyncDisplayKit/**/*.{h,m,mm}',
'Base/*.{h,m}',

# Most TextKit components are not public because the C++ content
# in the headers will cause build errors when using
# `use_frameworks!` on 0.39.0 & Swift 2.1.
# See https://github.com/facebook/AsyncDisplayKit/issues/1153
'AsyncDisplayKit/TextKit/*.h',
]
core.dependency 'AsyncDisplayKit/ASDealloc2MainObject'
end

spec.subspec 'ASDealloc2MainObject' do |mrr|
mrr.requires_arc = false
Expand All @@ -53,7 +55,7 @@ Pod::Spec.new do |spec|
spec.subspec 'PINRemoteImage' do |pin|
pin.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_REMOTE_IMAGE=1' }
pin.dependency 'PINRemoteImage/iOS', '>= 2.1.2'
pin.dependency 'AsyncDisplayKit/ASDealloc2MainObject'
pin.dependency 'AsyncDisplayKit/Core'
end

# Include optional FLAnimatedImage module
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind changing this to PINRemoteImage in the comment?

Expand Down