Skip to content
This repository was 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 all commits
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
60 changes: 31 additions & 29 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,10 +55,10 @@ 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
# Include optional PINRemoteImage module
spec.default_subspec = 'PINRemoteImage'

spec.social_media_url = 'https://twitter.com/fbOpenSource'
Expand Down