Skip to content

Commit 7df6037

Browse files
Guido Marucci Blasfacebook-github-bot
authored andcommitted
CocoaPods support.
Summary: This supersedes #309 and #305. This is still a **work-in-progress.** **TODO** - [x] Create Xcode project that builds an iOS framework - [x] Fix failing tests on Xcode - [ ] Make `pod lib lint` pass and make sure YogaKit can be included using CocoaPods - [ ] Add `pod lib lint` to .travis.yml - [x] Migrate to travis osx image with Xcode 8.2 **FOLLOW-UP** - [ ] Make YogaKitSample use framework built by new Xcode project. - [ ] Make Travis to upload prebuilt versions of the framework. More [here](https://github.com/Carthage/Carthage#use-travis-ci-to-upload-your-tagged-prebuild-frameworks) - [ ] Upgrade github/jekyll docs about installation using Cocoapods/Carthage Closes #352 Reviewed By: emilsjolander Differential Revision: D4471950 Pulled By: dshahidehpour fbshipit-source-id: 8f30c69f9a487b26aa2e5f3b66841334b01b0ab1
1 parent 7fa4adb commit 7df6037

File tree

8 files changed

+33
-2
lines changed

8 files changed

+33
-2
lines changed

YogaKit/.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.2

YogaKit/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ COMPILER_FLAGS = [
3030
apple_library(
3131
name = 'YogaKit',
3232
compiler_flags = COMPILER_FLAGS,
33-
srcs = glob(['*.m']),
34-
exported_headers = glob(['*.h']),
33+
srcs = glob(['Source/**/*.m']),
34+
exported_headers = glob(['Source/**/*.h']),
3535
frameworks = [
3636
'$SDKROOT/System/Library/Frameworks/Foundation.framework',
3737
'$SDKROOT/System/Library/Frameworks/UIKit.framework',

YogaKit/YogaKit.podspec

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = 'YogaKit'
3+
spec.version = '1.0.0'
4+
spec.license = { :type => 'BSD-3-Clause', :file => '../LICENSE' }
5+
spec.homepage = 'https://facebook.github.io/yoga'
6+
spec.authors = {
7+
'Emil Sjölander' => '[email protected]',
8+
'Dustin Shahidehpour' => '[email protected]'
9+
}
10+
11+
spec.summary = 'Yoga is a cross-platform layout engine which implements Flexbox.'
12+
spec.description = <<-DESC
13+
Yoga is a cross-platform layout engine which implements Flexbox.
14+
It enables maximum collaboration within your team by implementing an API familiar to
15+
many designers and opening it up to developers across different platforms.
16+
DESC
17+
18+
spec.documentation_url = 'https://facebook.github.io/yoga/docs/getting-started/'
19+
spec.source = {
20+
:git => 'https://github.com/facebook/yoga.git',
21+
:tag => 'v2017.01.23.00'
22+
}
23+
spec.platform = :ios
24+
25+
spec.dependency 'Yoga', '~> 1.0'
26+
spec.source_files = 'Source/*.{h,m}',
27+
spec.public_header_files = 'Source/{YGLayout,UIView+Yoga}.h'
28+
spec.private_header_files = 'Source/YGLayout+Private.h'
29+
30+
end

0 commit comments

Comments
 (0)