@@ -15,10 +15,15 @@ Shared library for iOS SDK data transport needs.
15
15
:tag => 'DataTransport-' + s . version . to_s
16
16
}
17
17
18
- s . ios . deployment_target = '9.0'
19
- s . osx . deployment_target = '10.12'
20
- s . tvos . deployment_target = '10.0'
21
- s . watchos . deployment_target = '6.0'
18
+ ios_deployment_target = '9.0'
19
+ osx_deployment_target = '10.12'
20
+ tvos_deployment_target = '10.0'
21
+ watchos_deployment_target = '6.0'
22
+
23
+ s . ios . deployment_target = ios_deployment_target
24
+ s . osx . deployment_target = osx_deployment_target
25
+ s . tvos . deployment_target = tvos_deployment_target
26
+ s . watchos . deployment_target = watchos_deployment_target
22
27
23
28
# To develop or run the tests, >= 1.8.0 must be installed.
24
29
s . cocoapods_version = '>= 1.4.0'
@@ -55,7 +60,7 @@ Shared library for iOS SDK data transport needs.
55
60
# Test app specs
56
61
if ENV [ 'GDT_DEV' ] && ENV [ 'GDT_DEV' ] == '1' then
57
62
s . app_spec 'TestApp' do |app_spec |
58
- app_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
63
+ app_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
59
64
app_spec . source_files = [
60
65
'GoogleDataTransport/GDTTestApp/*.swift' ,
61
66
'GoogleDataTransport/GDTCORLibrary/Internal/GDTCORRegistrar.h' ,
@@ -80,22 +85,22 @@ Shared library for iOS SDK data transport needs.
80
85
81
86
# Unit test specs
82
87
s . test_spec 'Tests-Unit' do |test_spec |
83
- test_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
88
+ test_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
84
89
test_spec . requires_app_host = false
85
90
test_spec . source_files = [ 'GoogleDataTransport/GDTCORTests/Unit/**/*.{h,m}' ] + common_test_sources
86
91
test_spec . pod_target_xcconfig = header_search_paths
87
92
end
88
93
89
94
s . test_spec 'Tests-Lifecycle' do |test_spec |
90
- test_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
95
+ test_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
91
96
test_spec . requires_app_host = false
92
97
test_spec . source_files = [ 'GoogleDataTransport/GDTCORTests/Lifecycle/**/*.{h,m}' ] + common_test_sources
93
98
test_spec . pod_target_xcconfig = header_search_paths
94
99
end
95
100
96
101
# Integration test specs
97
102
s . test_spec 'Tests-Integration' do |test_spec |
98
- test_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
103
+ test_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
99
104
test_spec . requires_app_host = false
100
105
test_spec . source_files = [ 'GoogleDataTransport/GDTCORTests/Integration/**/*.{h,m}' ] + common_test_sources
101
106
test_spec . pod_target_xcconfig = header_search_paths
@@ -105,7 +110,7 @@ Shared library for iOS SDK data transport needs.
105
110
# Monkey test specs TODO(mikehaney24): Uncomment when travis is running >= cocoapods-1.8.0
106
111
if ENV [ 'GDT_DEV' ] && ENV [ 'GDT_DEV' ] == '1' then
107
112
s . test_spec 'Tests-Monkey' do |test_spec |
108
- test_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
113
+ test_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
109
114
test_spec . requires_app_host = true
110
115
test_spec . app_host_name = 'GoogleDataTransport/TestApp'
111
116
test_spec . dependency 'GoogleDataTransport/TestApp'
@@ -119,7 +124,7 @@ Shared library for iOS SDK data transport needs.
119
124
# CCT Tests follow
120
125
if ENV [ 'GDT_DEV' ] && ENV [ 'GDT_DEV' ] == '1' then
121
126
s . app_spec 'CCTTestApp' do |app_spec |
122
- app_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
127
+ app_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
123
128
app_spec . source_files = 'GoogleDataTransport/GDTCCTTestApp/**/*.swift'
124
129
app_spec . ios . resources = [ 'GoogleDataTransport/GDTCCTTestApp/ios/*.storyboard' ]
125
130
app_spec . macos . resources = [ 'GoogleDataTransport/GDTCCTTestApp/macos/*.storyboard' ]
@@ -137,7 +142,7 @@ Shared library for iOS SDK data transport needs.
137
142
138
143
# Test specs
139
144
s . test_spec 'CCT-Tests-Unit' do |test_spec |
140
- test_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
145
+ test_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
141
146
test_spec . requires_app_host = false
142
147
test_spec . source_files = [ 'GoogleDataTransport/GDTCCTTests/Unit/**/*.{h,m}' ] + common_cct_test_sources + common_test_sources
143
148
test_spec . resources = [ 'GoogleDataTransport/GDTCCTTests/Data/**/*' ]
@@ -146,7 +151,7 @@ Shared library for iOS SDK data transport needs.
146
151
end
147
152
148
153
s . test_spec 'CCT-Tests-Integration' do |test_spec |
149
- test_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
154
+ test_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
150
155
test_spec . requires_app_host = false
151
156
test_spec . source_files = [ 'GoogleDataTransport/GDTCCTTests/Integration/**/*.{h,m}' ] + common_cct_test_sources
152
157
test_spec . resources = [ 'GoogleDataTransport/GDTCCTTests/Data/**/*' ]
@@ -156,7 +161,7 @@ Shared library for iOS SDK data transport needs.
156
161
# Monkey test specs, only enabled for development.
157
162
if ENV [ 'GDT_DEV' ] && ENV [ 'GDT_DEV' ] == '1' then
158
163
s . test_spec 'CCT-Tests-Monkey' do |test_spec |
159
- test_spec . platforms = { :ios => '8.0' , :osx => '10.11' , :tvos => '10.0' }
164
+ test_spec . platforms = { :ios => ios_deployment_target , :osx => osx_deployment_target , :tvos => tvos_deployment_target }
160
165
test_spec . requires_app_host = true
161
166
test_spec . app_host_name = 'GoogleDataTransport/CCTTestApp'
162
167
test_spec . dependency 'GoogleDataTransport/CCTTestApp'
0 commit comments