Summary: Podspec to push yoga 1.8.0 to cocoapods. There is an issue with cocoapods and it fails to lint those projects with C++ in its header, which is the case with yoga too. Follow this thread https://github.com/CocoaPods/CocoaPods/issues/5152. To make the lint pass, one would have to change `app_target_helper.rb` cocoapod source file in the local machine. Follow my [gist](https://gist.github.com/priteshrnandgaonkar/dcca9639a3bc0a3b9adecae3a2b3b0c4). I am able to pass the lint, but not able to push the pod in cocoapods as I am not the admin. @[759512522:emilsj], please push it on Cocoapods or give me permission. Podspec now also exposes public header explicitly. Reviewed By: gkassabli Differential Revision: D7375018 fbshipit-source-id: 4e82e1c0b6340c3f8d3b8a96ecadbcb711d4bcd8
31 lines
1022 B
Ruby
31 lines
1022 B
Ruby
Pod::Spec.new do |spec|
|
|
spec.name = 'Yoga'
|
|
spec.version = '1.8.0'
|
|
spec.license = { :type => 'MIT', :file => "LICENSE" }
|
|
spec.homepage = 'https://yogalayout.com/'
|
|
spec.documentation_url = 'https://yogalayout.com/docs'
|
|
|
|
spec.summary = 'Yoga is a cross-platform layout engine which implements Flexbox.'
|
|
spec.description = 'Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar with, and opening it up to developers across different platforms.'
|
|
|
|
spec.authors = 'Facebook'
|
|
spec.source = {
|
|
:git => 'https://github.com/facebook/yoga.git',
|
|
:tag => '1.8.0',
|
|
}
|
|
spec.osx.deployment_target = '10.13'
|
|
spec.module_name = 'yoga'
|
|
spec.requires_arc = false
|
|
spec.compiler_flags = [
|
|
'-fno-omit-frame-pointer',
|
|
'-fexceptions',
|
|
'-Wall',
|
|
'-Werror',
|
|
'-std=c++1y',
|
|
'-fPIC'
|
|
]
|
|
spec.source_files = 'yoga/**/*.{c,h,cpp}'
|
|
spec.public_header_files = 'yoga/{Yoga,YGEnums,YGMacros}.h'
|
|
|
|
end
|