forked from stannie/swift-jwt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SwiftJWT.podspec
34 lines (28 loc) · 1.17 KB
/
SwiftJWT.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
Pod::Spec.new do |s|
s.name = "SwiftJWT"
s.version = "0.5"
s.summary = "a JSON Web Token implementation in Swift on iOS & OSX"
s.homepage = "git://github.com/stannie/swift-jwt"
s.license = { :type => "MIT", :file => 'LICENSE' }
s.authors = { "Stan P. van de Burgt" => "stan@vandeburgt.com" }
s.social_media_url = 'https://twitter.com/stannie'
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
# s.source = { :git => "git://github.com/stannie/swift-jwt.git", :tag => s.version}
s.source = { :git => "git://github.com/stannie/swift-jwt.git", :branch => "master"}
s.requires_arc = true
# also needs CommonCrypto
# see http://stackoverflow.com/questions/25248598/importing-commoncrypto-in-a-swift-framework
# (answer by stephencelis) on how to import
# s.frameworks = "CommonCrypto"
s.subspec 'Core' do |core|
core.source_files = "JWT/JWT/**/*.{swift,h}"
# exclude ed25519 code
core.exclude_files = "**/JWTNaCl.swift"
end
s.subspec 'with-ed25519' do |ed25519|
ed25519.source_files = "JWT/JWT/**/*.{swift,h}"
# needed only for the JWTNaCl sub class
s.dependency "Sodium", "~> 0.1"
end
end