forked from google/GTMAppAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GTMAppAuth.podspec
66 lines (55 loc) · 2.09 KB
/
GTMAppAuth.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
Pod::Spec.new do |s|
s.name = 'GTMAppAuth'
s.version = '4.0.0'
s.swift_version = '4.0'
s.summary = 'Authorize GTM Session Fetcher requests with AppAuth via GTMAppAuth'
s.description = <<-DESC
GTMAppAuth enables you to use AppAuth with the Google Toolbox for Mac - Session
Fetcher and Google APIs Client Library for Objective-C For REST libraries by
providing an implementation of GTMFetcherAuthorizationProtocol for authorizing
requests with AppAuth.
DESC
s.homepage = 'https://github.com/google/GTMAppAuth'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.author = 'Google LLC'
s.source = { :git => 'https://github.com/google/GTMAppAuth.git', :tag => s.version }
s.prefix_header_file = false
s.source_files = 'GTMAppAuth/Sources/**/*.swift'
ios_deployment_target = '10.0'
osx_deployment_target = '10.12'
tvos_deployment_target = '10.0'
watchos_deployment_target = '6.0'
s.ios.deployment_target = ios_deployment_target
s.osx.deployment_target = osx_deployment_target
s.tvos.deployment_target = tvos_deployment_target
s.watchos.deployment_target = watchos_deployment_target
s.framework = 'Security'
s.dependency 'GTMSessionFetcher/Core', '>= 2.1', '< 4.0'
s.dependency 'AppAuth/Core', '~> 1.6'
s.test_spec 'unit' do |unit_tests|
unit_tests.platforms = {
:ios => ios_deployment_target,
:osx => osx_deployment_target,
:tvos => tvos_deployment_target,
}
unit_tests.source_files = [
'GTMAppAuth/Tests/Unit/**/*.swift',
'GTMAppAuth/Tests/Helpers/**/*.swift',
]
unit_tests.dependency 'AppAuth/Core'
unit_tests.requires_app_host = true
end
s.test_spec 'objc-api-integration' do |api_tests|
api_tests.platforms = {
:ios => ios_deployment_target,
:osx => osx_deployment_target,
:tvos => tvos_deployment_target,
}
api_tests.source_files = [
'GTMAppAuth/Tests/ObjCIntegration/**/*.m',
'GTMAppAuth/Tests/Helpers/**/*.swift',
]
api_tests.dependency 'AppAuth/Core'
api_tests.requires_app_host = true
end
end