updated podspec description & other parameters, and removed guide comments
This commit is contained in:
parent
5a2349f06a
commit
0f71e7acfe
@ -1,89 +1,51 @@
|
|||||||
#
|
# upgrades how to:
|
||||||
# Be sure to run `pod spec lint nlohmann_json.podspec' to ensure this is a
|
# 1. update s.version
|
||||||
# valid spec and to remove all comments including this before submitting the spec.
|
# 2. run `pod spec lint nlohmann_json.podspec`
|
||||||
#
|
# 3. register a session with cocoapods
|
||||||
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
|
# 4. run `pod trunk push ./`
|
||||||
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
|
|
||||||
#
|
|
||||||
|
|
||||||
|
# see cocoapods documentation http://docs.cocoapods.org/specification.html for
|
||||||
|
# more details.
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
|
|
||||||
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
||||||
s.name = "nlohmann_json"
|
s.name = "nlohmann_json"
|
||||||
s.version = "3.1.2"
|
s.version = "3.1.2"
|
||||||
s.summary = "JSON reader & writer for C++ optimized for ease of use and modern C++14"
|
s.summary = "JSON for Modern C++"
|
||||||
|
|
||||||
|
|
||||||
# CocoaPods strips indentation for description
|
# CocoaPods strips indentation for description
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
JSON library for c++, it can read & write, uses C++14 features to have
|
JSON library for modern c++, it can read & write JSON. If you know how to
|
||||||
modern syntax.
|
use std::vector or std::map, you are already set.
|
||||||
DESC
|
DESC
|
||||||
|
|
||||||
s.homepage = "https://github.com/nlohmann/json"
|
s.homepage = "https://github.com/nlohmann/json"
|
||||||
s.screenshots = "https://raw.githubusercontent.com/nlohmann/json/master/doc/json.gif"
|
s.screenshots = "https://raw.githubusercontent.com/nlohmann/json/master/doc/json.gif"
|
||||||
|
|
||||||
|
|
||||||
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
|
||||||
#
|
|
||||||
# Licensing your code is important. See http://choosealicense.com for more info.
|
|
||||||
# CocoaPods will detect a license file if there is a named LICENSE*
|
|
||||||
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
|
|
||||||
#
|
|
||||||
|
|
||||||
license_text = File.read("LICENSE.MIT")
|
license_text = File.read("LICENSE.MIT")
|
||||||
# cocoapods checks extension and expects it to be a txt. so instead
|
# cocoapods checks extension and expects it to be a txt. so instead
|
||||||
# we read the file and pass it in as text.
|
# we read the file and pass it in as text.
|
||||||
s.license = { :type => "MIT", :text => license_text }
|
s.license = { :type => "MIT", :text => license_text }
|
||||||
|
|
||||||
|
|
||||||
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
s.authors = {
|
||||||
#
|
"Niels Lohmann" => "mail@nlohmann.me"
|
||||||
# Specify the authors of the library, with email addresses. Email addresses
|
|
||||||
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
|
|
||||||
# accepts just a name if you'd rather not provide an email address.
|
|
||||||
#
|
|
||||||
# Specify a social_media_url where others can refer to, for example a twitter
|
|
||||||
# profile URL.
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
s.authors = {
|
|
||||||
"Niels Lohmann" => "nosend@respectmyprivacy.com"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
|
||||||
#
|
|
||||||
# If this Pod runs only on iOS or OS X, then specify the platform and
|
|
||||||
# the deployment target. You can optionally include the target after the platform.
|
|
||||||
#
|
|
||||||
|
|
||||||
s.platform = :ios, "8.0"
|
s.platform = :ios, "8.0"
|
||||||
|
|
||||||
# When using multiple platforms
|
# When using multiple platforms. I haven't tested integration with other
|
||||||
|
# platforms. Theoretically it should just work without problem.
|
||||||
# s.ios.deployment_target = "8.0"
|
# s.ios.deployment_target = "8.0"
|
||||||
# s.osx.deployment_target = "10.7"
|
# s.osx.deployment_target = "10.7"
|
||||||
# s.watchos.deployment_target = "2.0"
|
# s.watchos.deployment_target = "2.0"
|
||||||
# s.tvos.deployment_target = "9.0"
|
# s.tvos.deployment_target = "9.0"
|
||||||
|
|
||||||
|
|
||||||
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
|
||||||
#
|
|
||||||
# Specify the location from where the source should be retrieved.
|
|
||||||
# Supports git, hg, bzr, svn and HTTP.
|
|
||||||
#
|
|
||||||
|
|
||||||
s.source = { :git => "https://github.com/nlohmann/json.git", :tag => "v#{s.version}" }
|
s.source = { :git => "https://github.com/nlohmann/json.git", :tag => "v#{s.version}" }
|
||||||
|
|
||||||
|
s.source_files = "single_include/**/*.hpp"
|
||||||
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
|
|
||||||
#
|
|
||||||
# CocoaPods is smart about how it includes source code. For source files
|
|
||||||
# giving a folder will include any swift, h, m, mm, c & cpp files.
|
|
||||||
# For header files it will include any header in the folder.
|
|
||||||
# Not including the public_header_files will make all headers public.
|
|
||||||
#
|
|
||||||
|
|
||||||
s.source_files = "single_include/**/*.hpp"
|
|
||||||
s.public_header_files = "single_include/nlohmann/json.hpp"
|
s.public_header_files = "single_include/nlohmann/json.hpp"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user