forked from auth0/Auth0.swift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Auth0.podspec
107 lines (97 loc) · 3.6 KB
/
Auth0.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
web_auth_files = [
'Auth0/ObjectiveC/A0ChallengeGenerator.h',
'Auth0/ObjectiveC/A0ChallengeGenerator.m',
'Auth0/ObjectiveC/A0RSA.h',
'Auth0/ObjectiveC/A0RSA.m',
'Auth0/ObjectiveC/A0SHA.h',
'Auth0/ObjectiveC/A0SHA.m',
'Auth0/A0SimpleKeychain+RSAPublicKey.swift',
'Auth0/Array+Encode.swift',
'Auth0/AuthCancelable.swift',
'Auth0/AuthProvider.swift',
'Auth0/AuthSession.swift',
'Auth0/AuthTransaction.swift',
'Auth0/AuthenticationServicesSession.swift',
'Auth0/AuthenticationServicesSessionCallback.swift',
'Auth0/BaseAuthTransaction.swift',
'Auth0/BaseWebAuth.swift',
'Auth0/BioAuthentication.swift',
'Auth0/ClaimValidators.swift',
'Auth0/IDTokenSignatureValidator.swift',
'Auth0/IDTokenValidator.swift',
'Auth0/IDTokenValidatorContext.swift',
'Auth0/JWK+RSA.swift',
'Auth0/JWT+Header.swift',
'Auth0/JWTAlgorithm.swift',
'Auth0/NativeAuth.swift',
'Auth0/NSURLComponents+OAuth2.swift',
'Auth0/OAuth2Grant.swift',
'Auth0/ResponseType.swift',
'Auth0/SessionCallbackTransaction.swift',
'Auth0/SessionTransaction.swift',
'Auth0/TransactionStore.swift',
'Auth0/WebAuthenticatable.swift',
'Auth0/WebAuthError.swift',
'Auth0/_ObjectiveWebAuth.swift'
]
ios_files = [
'Auth0/ControllerModalPresenter.swift',
'Auth0/MobileWebAuth.swift',
'Auth0/SafariSession.swift',
'Auth0/SilentSafariViewController.swift',
'Auth0/UIApplication+Shared.swift'
]
macos_files = [
'Auth0/DesktopWebAuth.swift',
'Auth0/NSApplication+Shared.swift'
]
excluded_files = [
*web_auth_files,
*ios_files,
*macos_files
]
Pod::Spec.new do |s|
s.name = 'Auth0'
s.version = '1.36.0'
s.summary = "Swift toolkit for Auth0 API"
s.description = <<-DESC
Auth0 API toolkit written in Swift for iOS, watchOS, tvOS & macOS apps
DESC
s.homepage = 'https://github.com/auth0/Auth0.swift'
s.license = 'MIT'
s.authors = { "Auth0" => "[email protected]" }, { "Hernan Zalazar" => "[email protected]" }, { "Martin Walsh" => "[email protected]" }
s.source = { :git => 'https://github.com/auth0/Auth0.swift.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/auth0'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.requires_arc = true
s.ios.source_files = 'Auth0/*.{swift,h,m}', 'Auth0/ObjectiveC/*.{h,m}'
s.ios.frameworks = 'UIKit', 'SafariServices', 'LocalAuthentication'
s.ios.weak_framework = 'AuthenticationServices'
s.ios.dependency 'SimpleKeychain'
s.ios.dependency 'JWTDecode', '~> 2.0'
s.ios.exclude_files = macos_files
s.ios.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'WEB_AUTH_PLATFORM',
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) WEB_AUTH_PLATFORM=1'
}
s.osx.source_files = 'Auth0/*.{swift,h,m}', 'Auth0/ObjectiveC/*.{h,m}'
s.osx.exclude_files = ios_files
s.osx.dependency 'SimpleKeychain'
s.osx.dependency 'JWTDecode', '~> 2.0'
s.osx.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'WEB_AUTH_PLATFORM',
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) WEB_AUTH_PLATFORM=1'
}
s.watchos.source_files = 'Auth0/*.swift'
s.watchos.exclude_files = excluded_files
s.watchos.dependency 'SimpleKeychain'
s.watchos.dependency 'JWTDecode', '~> 2.0'
s.tvos.source_files = 'Auth0/*.swift'
s.tvos.exclude_files = excluded_files
s.tvos.dependency 'SimpleKeychain'
s.tvos.dependency 'JWTDecode', '~> 2.0'
s.swift_versions = ['4.0', '4.1', '4.2', '5.0', '5.1', '5.2', '5.3', '5.4']
end