Skip to content

Commit e88b8ab

Browse files
committed
Update min sdks when Combine is used
1 parent 5de112f commit e88b8ab

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

modules/openapi-generator/src/main/resources/swift5/Package.swift.mustache

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ import PackageDescription
55
let package = Package(
66
name: "{{projectName}}",
77
platforms: [
8+
{{#useCombine}}
9+
.iOS(.v13),
10+
.macOS(.v10_15),
11+
.tvOS(.v13),
12+
.watchOS(.v6),
13+
{{/useCombine}}
14+
{{^useCombine}}
815
.iOS(.v9),
916
.macOS(.v10_11),
1017
.tvOS(.v9),
1118
.watchOS(.v3),
19+
{{/useCombine}}
1220
],
1321
products: [
1422
// Products define the executables and libraries produced by a package, and make them visible to other packages.

modules/openapi-generator/src/main/resources/swift5/Podspec.mustache

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
Pod::Spec.new do |s|
22
s.name = '{{projectName}}'{{#projectDescription}}
33
s.summary = '{{projectDescription}}'{{/projectDescription}}
4+
{{#useCombine}}
5+
s.ios.deployment_target = '13.0'
6+
s.osx.deployment_target = '10.15'
7+
s.tvos.deployment_target = '13.0'
8+
s.watchos.deployment_target = '6.0'
9+
{{/useCombine}}
10+
{{^useCombine}}
411
s.ios.deployment_target = '9.0'
512
s.osx.deployment_target = '10.11'
613
s.tvos.deployment_target = '9.0'
714
s.watchos.deployment_target = '3.0'
15+
{{/useCombine}}
816
s.version = '{{#podVersion}}{{podVersion}}{{/podVersion}}{{^podVersion}}{{#apiInfo}}{{version}}{{/apiInfo}}{{^apiInfo}}}0.0.1{{/apiInfo}}{{/podVersion}}'
917
s.source = {{#podSource}}{{& podSource}}{{/podSource}}{{^podSource}}{ :git => '[email protected]:OpenAPITools/openapi-generator.git', :tag => 'v{{#apiInfo}}{{version}}{{/apiInfo}}{{^apiInfo}}}0.0.1{{/apiInfo}}' }{{/podSource}}
1018
{{#podAuthors}}

0 commit comments

Comments
 (0)