forked from openid/AppAuth-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppAuth.podspec
81 lines (64 loc) · 3.29 KB
/
AppAuth.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
Pod::Spec.new do |s|
s.name = "AppAuth"
s.version = "1.7.5"
s.summary = "AppAuth for iOS and macOS is a client SDK for communicating with OAuth 2.0 and OpenID Connect providers."
s.description = <<-DESC
AppAuth for iOS and macOS is a client SDK for communicating with [OAuth 2.0]
(https://tools.ietf.org/html/rfc6749) and [OpenID Connect]
(http://openid.net/specs/openid-connect-core-1_0.html) providers. It strives to
directly map the requests and responses of those specifications, while following
the idiomatic style of the implementation language. In addition to mapping the
raw protocol flows, convenience methods are available to assist with common
tasks like performing an action with fresh tokens.
It follows the OAuth 2.0 for Native Apps best current practice
([RFC 8252](https://tools.ietf.org/html/rfc8252)).
DESC
s.homepage = "https://openid.github.io/AppAuth-iOS"
s.license = "Apache License, Version 2.0"
s.authors = { "William Denniss" => "[email protected]",
"Steven E Wright" => "[email protected]",
"Julien Bodet" => "[email protected]"
}
# Note: While watchOS and tvOS are specified here, only iOS and macOS have
# UI implementations of the authorization service. You can use the
# classes of AppAuth with tokens on watchOS and tvOS, but currently the
# library won't help you obtain authorization grants on those platforms.
ios_deployment_target = "9.0"
osx_deployment_target = "10.12"
s.ios.deployment_target = ios_deployment_target
s.osx.deployment_target = osx_deployment_target
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
s.source = { :git => "https://github.com/openid/AppAuth-iOS.git", :tag => s.version }
s.requires_arc = true
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
}
# Subspec for the core AppAuth library classes only, suitable for extensions.
s.subspec 'Core' do |core|
core.source_files = "Sources/AppAuthCore.h", "Sources/AppAuthCore/*.{h,m}"
core.resource_bundles = {
"AppAuthCore_Privacy" => ["Sources/AppAuthCore/Resources/PrivacyInfo.xcprivacy"]
}
end
# Subspec for the full AppAuth library, including platform-dependent external user agents.
s.subspec 'ExternalUserAgent' do |externalUserAgent|
externalUserAgent.dependency 'AppAuth/Core'
externalUserAgent.source_files = "Sources/AppAuth.h", "Sources/AppAuth/*.{h,m}"
# iOS
externalUserAgent.ios.source_files = "Sources/AppAuth/iOS/**/*.{h,m}"
externalUserAgent.ios.deployment_target = ios_deployment_target
externalUserAgent.ios.frameworks = "SafariServices"
externalUserAgent.ios.weak_frameworks = "AuthenticationServices"
# macOS
externalUserAgent.osx.source_files = "Sources/AppAuth/macOS/**/*.{h,m}"
externalUserAgent.osx.deployment_target = osx_deployment_target
externalUserAgent.osx.weak_frameworks = "AuthenticationServices"
end
# Subspec for the full AppAuth library, including platform-dependent external user agents.
s.subspec 'TV' do |tv|
tv.source_files = "Sources/AppAuthTV.h", "Sources/AppAuthTV/*.{h,m}"
tv.dependency 'AppAuth/Core'
end
s.default_subspecs = 'Core', 'ExternalUserAgent'
end