1
+ require_relative ( 'version' )
2
+
1
3
Pod ::Spec . new do |s |
2
4
s . name = 'Development'
3
5
s . version = '0.1.0'
@@ -7,14 +9,14 @@ Pod::Spec.new do |s|
7
9
s . author = 'Square'
8
10
s . source = { :git => 'https://github.com/square/workflow-swift.git' , :tag => "v#{ s . version } " }
9
11
10
- s . ios . deployment_target = '11.0'
11
- s . swift_version = '5.0'
12
+ s . ios . deployment_target = WORKFLOW_IOS_DEPLOYMENT_TARGET
13
+ s . swift_version = WORKFLOW_SWIFT_VERSION
12
14
s . dependency 'Workflow'
13
15
s . dependency 'WorkflowUI'
14
16
s . dependency 'WorkflowReactiveSwift'
15
17
s . dependency 'WorkflowRxSwift'
16
- # s.dependency 'WorkflowCombine' # TODO: Disabled because app specs cannot increase the deployment target of the root
17
- # s.dependency 'WorkflowConcurrency' # TODO: Disabled because app specs cannot increase the deployment target of the root
18
+ s . dependency 'WorkflowCombine'
19
+ s . dependency 'WorkflowConcurrency'
18
20
s . dependency 'ViewEnvironment'
19
21
20
22
s . source_files = 'Samples/Dummy.swift'
@@ -45,17 +47,14 @@ Pod::Spec.new do |s|
45
47
test_spec . source_files = 'WorkflowTesting/Tests/**/*.swift'
46
48
end
47
49
48
- # TODO: Disabled because app specs cannot increase the deployment target of the root
49
- # To use, increase the deployment target of this spec to 13.0 or higher
50
- #
51
- # s.app_spec 'SampleSwiftUIApp' do |app_spec|
52
- # app_spec.ios.deployment_target = '13.0'
53
- # app_spec.dependency 'WorkflowSwiftUI'
54
- # app_spec.pod_target_xcconfig = {
55
- # 'IFNFOPLIST_FILE' => '${PODS_ROOT}/../Samples/SampleSwiftUIApp/SampleSwiftUIApp/Configuration/Info.plist'
56
- # }
57
- # app_spec.source_files = 'SampleSwiftUIApp/SampleSwiftUIApp/**/*.swift'
58
- # end
50
+ s . app_spec 'SampleSwiftUIApp' do |app_spec |
51
+ app_spec . ios . deployment_target = WORKFLOW_IOS_DEPLOYMENT_TARGET
52
+ app_spec . dependency 'WorkflowSwiftUI'
53
+ app_spec . pod_target_xcconfig = {
54
+ 'IFNFOPLIST_FILE' => '${PODS_ROOT}/../Samples/SampleSwiftUIApp/SampleSwiftUIApp/Configuration/Info.plist'
55
+ }
56
+ app_spec . source_files = 'Samples/SampleSwiftUIApp/SampleSwiftUIApp/**/*.swift'
57
+ end
59
58
60
59
s . app_spec 'SampleTicTacToe' do |app_spec |
61
60
app_spec . source_files = 'Samples/TicTacToe/Sources/**/*.swift'
@@ -146,48 +145,46 @@ Pod::Spec.new do |s|
146
145
test_spec . dependency 'WorkflowRxSwiftTesting'
147
146
end
148
147
149
- # TODO: Disabled because app specs cannot increase the deployment target of the root
150
- # To use, increase the deployment target of this spec to 13.0 or higher
151
- # s.app_spec 'WorkflowCombineSampleApp' do |app_spec|
152
- # app_spec.source_files = 'Samples/WorkflowCombineSampleApp/WorkflowCombineSampleApp/**/*.swift'
153
- # end
154
- #
155
- # s.test_spec 'WorkflowCombineSampleAppTests' do |test_spec|
156
- # test_spec.dependency 'Development/WorkflowCombineSampleApp'
157
- # test_spec.dependency 'WorkflowTesting'
158
- # test_spec.requires_app_host = true
159
- # test_spec.app_host_name = 'Development/WorkflowCombineSampleApp'
160
- # test_spec.source_files = 'Samples/WorkflowCombineSampleApp/WorkflowCombineSampleAppUnitTests/**/*.swift'
161
- # end
162
-
163
- # s.test_spec 'WorkflowCombineTests' do |test_spec|
164
- # test_spec.requires_app_host = true
165
- # test_spec.source_files = 'WorkflowCombine/Tests/**/*.swift'
166
- # test_spec.framework = 'XCTest'
167
- # test_spec.dependency 'WorkflowTesting'
168
- # test_spec.dependency 'WorkflowCombineTesting'
169
- # end
170
-
171
- # s.test_spec 'WorkflowCombineTestingTests' do |test_spec|
172
- # test_spec.requires_app_host = true
173
- # test_spec.source_files = 'WorkflowCombine/TestingTests/**/*.swift'
174
- # test_spec.framework = 'XCTest'
175
- # test_spec.dependency 'WorkflowTesting'
176
- # test_spec.dependency 'WorkflowCombineTesting'
177
- # end
148
+ s . app_spec 'WorkflowCombineSampleApp' do |app_spec |
149
+ app_spec . source_files = 'Samples/WorkflowCombineSampleApp/WorkflowCombineSampleApp/**/*.swift'
150
+ end
151
+
152
+ s . test_spec 'WorkflowCombineSampleAppTests' do |test_spec |
153
+ test_spec . dependency 'Development/WorkflowCombineSampleApp'
154
+ test_spec . dependency 'WorkflowTesting'
155
+ test_spec . requires_app_host = true
156
+ test_spec . app_host_name = 'Development/WorkflowCombineSampleApp'
157
+ test_spec . source_files = 'Samples/WorkflowCombineSampleApp/WorkflowCombineSampleAppUnitTests/**/*.swift'
158
+ end
159
+
160
+ s . test_spec 'WorkflowCombineTests' do |test_spec |
161
+ test_spec . requires_app_host = true
162
+ test_spec . source_files = 'WorkflowCombine/Tests/**/*.swift'
163
+ test_spec . framework = 'XCTest'
164
+ test_spec . dependency 'WorkflowTesting'
165
+ test_spec . dependency 'WorkflowCombineTesting'
166
+ end
167
+
168
+ s . test_spec 'WorkflowCombineTestingTests' do |test_spec |
169
+ test_spec . requires_app_host = true
170
+ test_spec . source_files = 'WorkflowCombine/TestingTests/**/*.swift'
171
+ test_spec . framework = 'XCTest'
172
+ test_spec . dependency 'WorkflowTesting'
173
+ test_spec . dependency 'WorkflowCombineTesting'
174
+ end
178
175
179
- # s.test_spec 'WorkflowConcurrencyTests' do |test_spec|
180
- # test_spec.requires_app_host = true
181
- # test_spec.source_files = 'WorkflowConcurrency/Tests/**/*.swift'
182
- # test_spec.framework = 'XCTest'
183
- # test_spec.dependency 'WorkflowTesting'
184
- # end
176
+ s . test_spec 'WorkflowConcurrencyTests' do |test_spec |
177
+ test_spec . requires_app_host = true
178
+ test_spec . source_files = 'WorkflowConcurrency/Tests/**/*.swift'
179
+ test_spec . framework = 'XCTest'
180
+ test_spec . dependency 'WorkflowTesting'
181
+ end
185
182
186
- # s.test_spec 'WorkflowConcurrencyTestingTests' do |test_spec|
187
- # test_spec.requires_app_host = true
188
- # test_spec.source_files = 'WorkflowConcurrency/TestingTests/**/*.swift'
189
- # test_spec.framework = 'XCTest'
190
- # test_spec.dependency 'WorkflowTesting'
191
- # test_spec.dependency 'WorkflowConcurrencyTesting'
192
- # end
183
+ s . test_spec 'WorkflowConcurrencyTestingTests' do |test_spec |
184
+ test_spec . requires_app_host = true
185
+ test_spec . source_files = 'WorkflowConcurrency/TestingTests/**/*.swift'
186
+ test_spec . framework = 'XCTest'
187
+ test_spec . dependency 'WorkflowTesting'
188
+ test_spec . dependency 'WorkflowConcurrencyTesting'
189
+ end
193
190
end
0 commit comments