Skip to content

Commit 898f0c8

Browse files
committed
Add podspec
1 parent 44f4b7a commit 898f0c8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

JSONWebToken.podspec

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = 'JSONWebToken'
3+
spec.version = '3.0.0'
4+
spec.summary = 'Swift library for JSON Web Tokens (JWT).'
5+
spec.homepage = 'https://github.com/kylef/JSONWebToken.swift'
6+
spec.license = { :type => 'BSD', :file => 'LICENSE' }
7+
spec.author = { 'Kyle Fuller' => '[email protected]' }
8+
spec.source = { :git => 'https://github.com/kylef/JSONWebToken.swift.git' }
9+
spec.source_files = 'Sources/JWT/*.swift', 'Build-Phases/common-crypto.sh'
10+
spec.ios.deployment_target = '8.0'
11+
spec.osx.deployment_target = '10.9'
12+
spec.tvos.deployment_target = '9.0'
13+
spec.watchos.deployment_target = '2.0'
14+
spec.requires_arc = true
15+
spec.module_name = 'JWT'
16+
spec.exclude_files = ['Sources/JWT/HMACCryptoSwift.swift']
17+
18+
spec.swift_version = '4.0'
19+
20+
if ARGV.include?('lint')
21+
spec.pod_target_xcconfig = {
22+
'SWIFT_INCLUDE_PATHS' => Dir.pwd,
23+
}
24+
else
25+
spec.pod_target_xcconfig = {
26+
'SWIFT_INCLUDE_PATHS' => '$(PODS_ROOT)/JSONWebToken/',
27+
}
28+
end
29+
30+
spec.preserve_paths = 'Build-Phases/*.sh'
31+
spec.script_phase = { :name => 'CommonCrypto', :script => 'sh $SRCROOT/JSONWebToken/Build-Phases/common-crypto.sh', :execution_position => :before_compile }
32+
end

0 commit comments

Comments
 (0)