From c951ad7c7baf613d6926365111c5dcbe4881eda0 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Fri, 23 Mar 2018 05:31:44 -0700 Subject: [PATCH] Push Yoga 1.8.0 to cocoapods 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 --- Yoga.podspec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Yoga.podspec b/Yoga.podspec index 1f096861..e56fa27b 100644 --- a/Yoga.podspec +++ b/Yoga.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |spec| spec.name = 'Yoga' - spec.version = '1.7.0' + spec.version = '1.8.0' spec.license = { :type => 'MIT', :file => "LICENSE" } - spec.homepage = 'https://facebook.github.io/yoga/' - spec.documentation_url = 'https://facebook.github.io/yoga/docs/api/c/' + 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.' @@ -11,9 +11,9 @@ Pod::Spec.new do |spec| spec.authors = 'Facebook' spec.source = { :git => 'https://github.com/facebook/yoga.git', - :tag => '1.7.0', + :tag => '1.8.0', } - + spec.osx.deployment_target = '10.13' spec.module_name = 'yoga' spec.requires_arc = false spec.compiler_flags = [ @@ -25,4 +25,6 @@ Pod::Spec.new do |spec| '-fPIC' ] spec.source_files = 'yoga/**/*.{c,h,cpp}' + spec.public_header_files = 'yoga/{Yoga,YGEnums,YGMacros}.h' + end