forked from nlohmann/json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nlohmann_json.podspec
54 lines (39 loc) · 1.79 KB
/
nlohmann_json.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Below is copied from existing podspec in official cocoapods repo, with added
# platform support for macOS and tvOS.
# ---- Original podspec begins here
# upgrades how to:
# 1. update s.version
# 2. run `pod spec lint nlohmann_json.podspec`
# 3. register a session with cocoapods
# 4. run `pod trunk push ./`
# see cocoapods documentation http://docs.cocoapods.org/specification.html for
# more details.
Pod::Spec.new do |s|
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
s.name = "nlohmann_json"
s.version = "3.9.1"
s.summary = "JSON for Modern C++"
# CocoaPods strips indentation for description
s.description = <<-DESC
JSON library for modern c++, it can read & write JSON. If you know how to
use std::vector or std::map, you are already set.
DESC
s.homepage = "https://github.com/nlohmann/json"
s.screenshots = "https://raw.githubusercontent.com/nlohmann/json/master/doc/json.gif"
license_text = File.read("LICENSE.MIT")
# cocoapods checks extension and expects it to be a txt. so instead
# we read the file and pass it in as text.
s.license = { :type => "MIT", :text => license_text }
s.authors = {
"Niels Lohmann" => "[email protected]"
}
s.platform = :ios, "8.0"
# Below is where it is changed for firebase.
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.7"
s.tvos.deployment_target = "9.0"
# Firebase change ends here.
s.source = { :git => "https://github.com/nlohmann/json.git", :tag => "v#{s.version}" }
s.source_files = "single_include/**/*.hpp"
s.public_header_files = "single_include/nlohmann/json.hpp"
end