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

cocoapods integration #1150

Closed
wants to merge 5 commits into from
Closed

cocoapods integration #1150

wants to merge 5 commits into from

Conversation

graph
Copy link

@graph graph commented Jun 27, 2018

adds cocoapods integration so it can be used as a pod. See issue #1148

@nlohmann
Copy link
Owner

Is it possible to put the source files in a different directory?

@graph
Copy link
Author

graph commented Jun 27, 2018

yes where do you want the dummy source files to be?

@graph
Copy link
Author

graph commented Jun 27, 2018

interesting dummy files aren't needed. I was using an older version of cocoapods. It seems cocoapods linter is passing with just header only.

# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
s.name = "nlohmann_json"
s.version = "3.1.2"
s.summary = "JSON reader & writer for C++ optimized for ease of use and modern C++14"
Copy link
Owner

Choose a reason for hiding this comment

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

That's not really the summary of the library. Please use "JSON for Modern C++" or something. And the library also supports C++11.


# CocoaPods strips indentation for description
s.description = <<-DESC
JSON library for c++, it can read & write, uses C++14 features to have
Copy link
Owner

Choose a reason for hiding this comment

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

See previous comment.



s.authors = {
"Niels Lohmann" => "nosend@respectmyprivacy.com"
Copy link
Owner

Choose a reason for hiding this comment

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

My email address is mail@nlohmann.me.

# the deployment target. You can optionally include the target after the platform.
#

s.platform = :ios, "8.0"
Copy link
Owner

Choose a reason for hiding this comment

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

macOS should also be fine, right?

Copy link
Author

Choose a reason for hiding this comment

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

I only tested iOS, theoretically it should be fine on macOS, watch and all other platforms. I don't want to add untested platforms.

@nlohmann nlohmann mentioned this pull request Jun 28, 2018
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0f71e7a on graph:cocoapods into 396a914 on nlohmann:develop.

@graph graph closed this Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants