Skip to content

Conversation

@guidomb
Copy link

@guidomb guidomb commented Dec 28, 2016

This is first attempt to add support for CocoaPods. It is currently not working because CocoaPods requires a valid semver number (and a corresponding git tag) as the library version.

This is based on #305 and should be merged after that PR is merged.

@emilsjolander @dshahidehpour Please check if the author information in the YogaKit.podspec file is correct.

Once this PR is merged in order for people to actually be able to install this using CocoaPods, the pod must be published to CocoaPods' trunk. Which requires to have an account. For more information check https://guides.cocoapods.org/making/getting-setup-with-trunk.html.

Also keep in mind that every time you make a new release you need to update the version property inside YogaKit.podspec and publish a new version to trunk.

This was referenced Dec 28, 2016
spec.homepage = 'https://facebook.github.io/yoga/'
spec.authors = {
'Emil Sjölander' => '[email protected]',
'Dustin Shahidehpour' => '[email protected]'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Emil Sjölander' => '[email protected]',
'Dustin Shahidehpour' => '[email protected]'
}
spec.summary = 'Yoga is a cross-platform layout engine which implements Flexbox.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YogaKit is a view layout library which is powered by Yoga, a layout engine which implements Flexbox.

Copy link
Author

@guidomb guidomb Dec 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've copied pasted that description from the one that appears in Yoga's GitHub repository. Should I change it anyways?


@property (strong, nonatomic) UIWindow *window;


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: delete

* LICENSE-examples file in the root directory of this source tree.
*/

#import "AppDelegate.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to regenerate this? Let's revert this.

Copy link
Contributor

@d16r d16r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guidomb, this is amazing! I left a few comments.

@guidomb
Copy link
Author

guidomb commented Dec 28, 2016

@dshahidehpour You made some comments in files that are originally part of @hartbit PR, #305 . For some reason I could not make hartbit/carthage-support as the target branch for this PR (GitHub did not show @hartbit's fork as an option and I couldn't fork his repo because I've already had a fork of yoga). I think those suggestion should be addressed in #305. Sorry for the extra work in the review process

@hartbit
Copy link
Contributor

hartbit commented Dec 28, 2016

@guidomb but as you improved on my PR, wouldn't it be better to rename this PR Cocoapods + Carthage support and fix everything here?

@guidomb
Copy link
Author

guidomb commented Dec 28, 2016

@hartbit If you agree with that, sure. In that case I would suggest closing the other PR and focus on trying to fix the buck build and the comments suggested by @dshahidehpour here.

@guidomb guidomb changed the title Cocoapods support Carthage and Cocoapods support Dec 28, 2016
@guidomb guidomb changed the title Carthage and Cocoapods support Carthage and CocoaPods support Dec 28, 2016
@d16r
Copy link
Contributor

d16r commented Jan 9, 2017

@guidomb Any update on this? The changes to add swift support have landed, so, you probably won't run into as many (if any) rebase problems.

@guidomb
Copy link
Author

guidomb commented Jan 9, 2017

@dshahidehpour Sorry, I've been on vacations the last week. Cool that #322 has been merged!!! I'll try to get this working tomorrow. I'll let you know if I had any issues.

Have you defined a version number that should be used in the CocoaPods podspec file?

@emilsjolander
Copy link
Contributor

@guidomb No defined a version yet. I'll do that tomorrow! Thanks for reminding me. Will most likely be version 1.0.0 but i'll have to discuss it with some others.

@emilsjolander
Copy link
Contributor

@guidomb lets wait on #328 to merge this.

@guidomb
Copy link
Author

guidomb commented Jan 10, 2017

OK, I was about to start working on it. I'll subscribe to #328 and get back to this once that one is merged. Thanks for letting me know!

@d16r
Copy link
Contributor

d16r commented Jan 18, 2017

@guidomb #328 is going to be closed momentarily, any chance we could start on this again? @emilsjolander can help with the versioning :)

@guidomb
Copy link
Author

guidomb commented Jan 18, 2017

I'll try to work on this tomorrow. Will #328 be merged into master?

@d16r
Copy link
Contributor

d16r commented Jan 18, 2017

yeahp!

@guidomb guidomb mentioned this pull request Jan 23, 2017
8 tasks
@guidomb
Copy link
Author

guidomb commented Jan 23, 2017

I've made a new PR to address this -> #352

@guidomb guidomb closed this Jan 23, 2017
facebook-github-bot pushed a commit that referenced this pull request Jan 27, 2017
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants