-
Notifications
You must be signed in to change notification settings - Fork 17
/
Argon2Swift.podspec
113 lines (92 loc) · 4.79 KB
/
Argon2Swift.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#
# Be sure to run `pod spec lint Argon2Swift.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |spec|
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# These will help people to find your library, and whilst it
# can feel like a chore to fill in it's definitely to your advantage. The
# summary should be tweet-length, and the description more in depth.
#
spec.name = "Argon2Swift"
spec.version = "1.0.4"
spec.summary = "A Swift wrapper around the Argon2 reference implementation."
spec.swift_version = "5.0"
spec.description = <<-DESC
A Swift wrapper around the Argon2 Reference implementation, built for simplicity and ease
DESC
spec.homepage = "https://github.com/tmthecoder/Argon2Swift.git"
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Licensing your code is important. See https://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'.
#
spec.license = { :type => "MIT", :file => "LICENSE" }
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# 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.
#
spec.author = { "Tejas Mehta" => "tmthecoder@gmail.com" }
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the location from where the source should be retrieved.
# Supports git, hg, bzr, svn and HTTP.
#
spec.source = { git: "https://github.com/tmthecoder/Argon2Swift.git", :tag => spec.version, submodules: true }
# ――― 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.
#
spec.ios.deployment_target = "9.0"
spec.osx.deployment_target = "10.9"
spec.watchos.deployment_target = "2.0"
spec.tvos.deployment_target = "9.0"
spec.preserve_paths = 'Sources/Modules', 'Sources/Argon2', 'Sources/Argon2/include/**/*.h'
# spec.header_mappings_dir = 'Sources/Argon2/include'
spec.requires_arc = true
spec.private_header_files =
'Sources/Argon2/include/argon2.h',
'Sources/Argon2/src/core.h',
'Sources/Argon2/src/thread.h',
'Sources/Argon2/src/encoding.h',
'Sources/Argon2/src/blamka-round-ref.h',
'Sources/Argon2/src/blake2.h',
'Sources/Argon2/src/blake2-impl.h'
spec.source_files =
'Sources/Swift/*.swift',
'Sources/Argon2Swift.h',
'Sources/Argon2/src/argon2.c',
'Sources/Argon2/src/core.{c,h}',
'Sources/Argon2/src/thread.{c,h}',
'Sources/Argon2/src/encoding.{c,h}',
'Sources/Argon2/src/blake2/blake2.h',
'Sources/Argon2/src/blake2/blake2b.c',
'Sources/Argon2/src/blake2/blake2-impl.h',
'Sources/Argon2/include/**/*.h',
'Sources/Argon2/src/ref.c',
'Sources/Argon2/src/blake2/blamka-round-ref.h'
spec.public_header_files = 'Sources/Argon2Swift.h'
spec.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
'SWIFT_INCLUDE_PATHS[sdk=*]' => '$(PODS_TARGET_SRCROOT)/Sources/Modules $(PODS_TARGET_SRCROOT)/Sources/Argon2 $(PODS_TARGET_SRCROOT)/Sources/Argon2/include',
'HEADER_SEARCH_PATHS[sdk=*]' => '$(PODS_TARGET_SRCROOT)/Sources/Modules'
}
spec.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'Tests/**/*.swift'
test_spec.platform = :ios, :osx, :tvos
test_spec.ios.deployment_target = "9.0"
test_spec.osx.deployment_target = "10.9"
test_spec.tvos.deployment_target = "9.0"
end
end