Add Carthage & CocoaPods support. #352
1
YogaKit/.swift-version
Normal file
1
YogaKit/.swift-version
Normal file
@@ -0,0 +1 @@
|
||||
3.0.2
|
@@ -16,7 +16,17 @@ Pod::Spec.new do |spec|
|
||||
spec.documentation_url = 'https://facebook.github.io/yoga/docs/getting-started/'
|
||||
spec.source = { :git => 'https://github.com/facebook/yoga.git', :tag => "v#{spec.version}" }
|
||||
spec.platform = :ios
|
||||
|
||||
spec.source_files = './YogaKit/*.m', '../yoga/*.c'
|
||||
spec.public_header_files = './YogaKit/YogaKit.h', './YogaKit/YGLayout.h', './YogaKit/UIView+Yoga.h', '../yoga/YGEnums.h'
|
||||
spec.private_header_files = '../yoga/*.h', './YogaKit/YGLayout+Private.h'
|
||||
spec.source_files = 'YogaKit/*.{h,m}', 'lib/*.{h,c}'
|
||||
spec.public_header_files = [
|
||||
'YogaKit/YogaKit.h',
|
||||
'YogaKit/YGLayout.h',
|
||||
'YogaKit/UIView+Yoga.h',
|
||||
'lib/YGEnums.h',
|
||||
'lib/YGMacros.h'
|
||||
]
|
||||
spec.private_header_files = [
|
||||
'YogaKit/YGLayout+Private.h',
|
||||
'lib/YGNodeList.h',
|
||||
'lib/Yoga.h'
|
||||
]
|
||||
end
|
||||
|
1
YogaKit/lib
Symbolic link
1
YogaKit/lib
Symbolic link
@@ -0,0 +1 @@
|
||||
../yoga
|
Reference in New Issue
Block a user
Why is this only targeting iOS, shouldn’t the core library be able to build for all platforms? (So minus the UIView stuff.)
While the core library could technically build on all platforms, I plan to send a PR soon with an NSView extension. I guess we could all platforms then.
Gotcha.
So then I guess my assumption that this podspec was somehow also tied to React Native’s podspec using this is incorrect. /cc @javache