Skip to content

Commit f530c90

Browse files
authored
Relax minimum macOS requirement to 10.15 (#63)
### Motivation Reduce deployment target by 3 versions to gain more adoption. ### Modifications - Reduced deployment targets by 3 versions - Modified `client.Package.x` and `server.Package.x` files to reflect new deployment targets - Modified documentation to reflect new deployment targets ### Result Deployment target will be reduced by 3 versions and documentation will reflect such changes. ### Resolves - Resolves #62 ### Related PRs - Paired with apple/swift-openapi-runtime#18 --------- Co-authored-by: andrewelliott <>
1 parent 688b089 commit f530c90

13 files changed

+14
-14
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import PackageDescription
1717
let package = Package(
1818
name: "swift-openapi-generator",
1919
platforms: [
20-
.macOS(.v13)
20+
.macOS(.v10_15)
2121
],
2222
products: [
2323
.executable(name: "swift-openapi-generator", targets: ["swift-openapi-generator"]),
@@ -61,7 +61,7 @@ let package = Package(
6161
),
6262

6363
// Tests-only: Runtime library linked by generated code
64-
.package(url: "https://github.com/apple/swift-openapi-runtime", .upToNextMinor(from: "0.1.1")),
64+
.package(url: "https://github.com/apple/swift-openapi-runtime", .upToNextMinor(from: "0.1.3")),
6565

6666
// Build and preview docs
6767
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The generated code, runtime library, and transports are supported on more platfo
4141
| Component | macOS | Linux | iOS | tvOS | watchOS |
4242
| -: | :-: | :-: | :-: | :-: | :-: |
4343
| Generator plugin and CLI | ✅ 13+ |||||
44-
| Generated code, runtime, transports |13+ ||16+ |16+ |9+ |
44+
| Generated code, runtime, transports |10.15+ ||13+ |13+ |6+ |
4545

4646
## Documentation
4747

Sources/swift-openapi-generator/Documentation.docc/Swift-OpenAPI-Generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The generated code, runtime library, and transports are supported on more platfo
5353
| Component | macOS | Linux | iOS | tvOS | watchOS |
5454
| -: | :-: | :-: | :-: | :-: | :-: |
5555
| Generator plugin and CLI | ✅ 13+ |||||
56-
| Generated code, runtime, transports |13+ ||16+ |16+ |9+ |
56+
| Generated code, runtime, transports |10.15+ ||13+ |13+ |6+ |
5757

5858
## Topics
5959

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/client.Package.1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingServiceClient",
66
platforms: [
7-
.macOS(.v13), .iOS(.v16), .tvOS(.v16), .watchOS(.v9),
7+
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
88
],
99
targets: [
1010
.executableTarget(

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/client.Package.2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingServiceClient",
66
platforms: [
7-
.macOS(.v13), .iOS(.v16), .tvOS(.v16), .watchOS(.v9),
7+
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
88
],
99
dependencies: [
1010
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/client.Package.3.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingServiceClient",
66
platforms: [
7-
.macOS(.v13), .iOS(.v16), .tvOS(.v16), .watchOS(.v9),
7+
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
88
],
99
dependencies: [
1010
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/client.Package.4.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingServiceClient",
66
platforms: [
7-
.macOS(.v13), .iOS(.v16), .tvOS(.v16), .watchOS(.v9),
7+
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
88
],
99
dependencies: [
1010
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/client.Package.5.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingServiceClient",
66
platforms: [
7-
.macOS(.v13), .iOS(.v16), .tvOS(.v16), .watchOS(.v9),
7+
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
88
],
99
dependencies: [
1010
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/server.Package.1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingService",
66
platforms: [
7-
.macOS(.v13)
7+
.macOS(.v10_15)
88
],
99
targets: [
1010
.executableTarget(

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/server.Package.2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingService",
66
platforms: [
7-
.macOS(.v13)
7+
.macOS(.v10_15)
88
],
99
dependencies: [
1010
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/server.Package.3.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingService",
66
platforms: [
7-
.macOS(.v13)
7+
.macOS(.v10_15)
88
],
99
dependencies: [
1010
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/server.Package.4.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingService",
66
platforms: [
7-
.macOS(.v13)
7+
.macOS(.v10_15)
88
],
99
dependencies: [
1010
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),

Sources/swift-openapi-generator/Documentation.docc/Tutorials/_Resources/server.Package.5.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "GreetingService",
66
platforms: [
7-
.macOS(.v13)
7+
.macOS(.v10_15)
88
],
99
dependencies: [
1010
.package(url: "https://github.com/apple/swift-openapi-generator", .upToNextMinor(from: "0.1.0")),

0 commit comments

Comments
 (0)