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

Commit

Permalink
Add Core subspec. Add all mandatory files to the Core subspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Matthischke committed Apr 13, 2016
1 parent 364013a commit 75e5171
Showing 1 changed file with 30 additions and 28 deletions.
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
Expand Down

0 comments on commit 75e5171

Please sign in to comment.