Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have CocoaPods read some values from package.json #6576

Closed
wants to merge 2 commits into from

Conversation

nevir
Copy link
Contributor

@nevir nevir commented Mar 22, 2016

Allows you to keep versions, descriptions in sync

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @vjeux, @greis and @a2 to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Mar 22, 2016
@facebook-github-bot
Copy link
Contributor

@nevir updated the pull request.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@nevir updated the pull request.

Allows you to keep versions, descriptions in sync
@facebook-github-bot
Copy link
Contributor

@nevir updated the pull request.

Pod::Spec.new do |s|
s.name = "React"
s.version = "0.0.1-master"
s.summary = "Build high quality mobile apps using React."
s.version = package['version'].start_with?('0.0.0') ? '0.0.1-master' : package['version']
Copy link
Contributor

Choose a reason for hiding this comment

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

We very recently changed (or plan to change) package.json to be version "1000.0.0" in master, so just package['version'] should suffice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still not in master FYI - but SGTM!

@ide
Copy link
Contributor

ide commented Mar 22, 2016

Thanks, this looks great and should simplify maintenance.

@facebook-github-bot
Copy link
Contributor

@nevir updated the pull request.

@greis
Copy link
Contributor

greis commented Mar 23, 2016

The version in the podspec file needs to be greater than 0. See this PR #6381. Is there a problem if the version specified on the package.json changes to 0.0.1-master instead of 0.0.0-master?

@nevir
Copy link
Contributor Author

nevir commented Mar 23, 2016

See #6576 (comment); if we still want that behavior, though, I can drop the 2nd commit

@ide
Copy link
Contributor

ide commented Mar 29, 2016

#5556 has landed (bumps version to 1000.0.0 in master), let's give this a shot

@ide
Copy link
Contributor

ide commented Mar 29, 2016

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in 97d15f7 Mar 29, 2016
zebulgar pushed a commit to nightingale/react-native that referenced this pull request Jun 18, 2016
Summary:Allows you to keep versions, descriptions in sync
Closes facebook#6576

Differential Revision: D3110926

fb-gh-sync-id: 7f1a2071feff5918e09f6c252ff9770f2f53130f
fbshipit-source-id: 7f1a2071feff5918e09f6c252ff9770f2f53130f
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants