Skip to content

Commit f5a0682

Browse files
authored
Merge pull request #11 from MFB-Technologies-Inc/strict-concurrency
Strict concurrency
2 parents ee02af2 + 903e208 commit f5a0682

32 files changed

+50
-35
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
environment: default
2929
strategy:
3030
matrix:
31-
xcode: ['14.2', '14.3']
32-
# Swift: 5.7 , 5.8
31+
xcode: ['14.3', '15.0']
32+
# Swift: 5.8 , 5.9
3333
steps:
3434
- uses: actions/checkout@v3
3535
- name: Select Xcode ${{ matrix.xcode }}

.swiftformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--extensionacl on-declarations
22
--redundanttype explicit
3-
--swiftversion 5.7
3+
--swiftversion 5.8
44
--maxwidth 120
55
--header "{file}\nArgumentEncoding\n\nCopyright © {year} MFB Technologies, Inc. All rights reserved.\n\nThis source code is licensed under the MIT license found in the\nLICENSE file in the root directory of this source tree."
66
--allman false

Examples/Sources/SwiftCommand/RunCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RunCommand.swift
22
// ArgumentEncoding
33
//
4-
// Copyright © 2023 MFB Technologies, Inc. All rights reserved.
4+
// Copyright © 2024 MFB Technologies, Inc. All rights reserved.
55
//
66
// This source code is licensed under the MIT license found in the
77
// LICENSE file in the root directory of this source tree.

Examples/Sources/SwiftCommand/SwiftCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SwiftCommand.swift
22
// ArgumentEncoding
33
//
4-
// Copyright © 2023 MFB Technologies, Inc. All rights reserved.
4+
// Copyright © 2024 MFB Technologies, Inc. All rights reserved.
55
//
66
// This source code is licensed under the MIT license found in the
77
// LICENSE file in the root directory of this source tree.

Examples/Sources/SwiftCommand/TestCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// TestCommand.swift
22
// ArgumentEncoding
33
//
4-
// Copyright © 2023 MFB Technologies, Inc. All rights reserved.
4+
// Copyright © 2024 MFB Technologies, Inc. All rights reserved.
55
//
66
// This source code is licensed under the MIT license found in the
77
// LICENSE file in the root directory of this source tree.

Examples/Sources/SwiftCommand/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// main.swift
22
// ArgumentEncoding
33
//
4-
// Copyright © 2023 MFB Technologies, Inc. All rights reserved.
4+
// Copyright © 2024 MFB Technologies, Inc. All rights reserved.
55
//
66
// This source code is licensed under the MIT license found in the
77
// LICENSE file in the root directory of this source tree.

Package.swift

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.7
1+
// swift-tools-version: 5.8
22

33
import PackageDescription
44

@@ -16,13 +16,15 @@ let package = Package(
1616
name: "ArgumentEncoding",
1717
dependencies: [
1818
.dependencies,
19-
]
19+
],
20+
swiftSettings: .swiftSix
2021
),
2122
.testTarget(
2223
name: "ArgumentEncodingTests",
2324
dependencies: [
2425
"ArgumentEncoding",
25-
]
26+
],
27+
swiftSettings: .swiftSix
2628
),
2729
]
2830
)
@@ -39,3 +41,16 @@ extension Package.Dependency {
3941
extension Target.Dependency {
4042
static let dependencies: Self = .product(name: "Dependencies", package: "swift-dependencies")
4143
}
44+
45+
extension [SwiftSetting] {
46+
static let swiftSix: Self = [
47+
.enableUpcomingFeature("BareSlashRegexLiterals"),
48+
.enableUpcomingFeature("ConciseMagicFile"),
49+
.enableUpcomingFeature("DeprecateApplicationMain"),
50+
.enableUpcomingFeature("DisableOutwardActorInference"),
51+
.enableUpcomingFeature("ForwardTrailingClosures"),
52+
.enableUpcomingFeature("ImportObjcForwardDeclarations"),
53+
.enableUpcomingFeature("InternalImportsByDefault"),
54+
.enableUpcomingFeature("StrictConcurrency"),
55+
]
56+
}

Sources/ArgumentEncoding/ArgumentGroup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ArgumentGroup.swift
22
// ArgumentEncoding
33
//
4-
// Copyright © 2023 MFB Technologies, Inc. All rights reserved.
4+
// Copyright © 2024 MFB Technologies, Inc. All rights reserved.
55
//
66
// This source code is licensed under the MIT license found in the
77
// LICENSE file in the root directory of this source tree.

Sources/ArgumentEncoding/CaseConverter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// CaseConverter.swift
22
// ArgumentEncoding
33
//
4-
// Copyright © 2023 MFB Technologies, Inc. All rights reserved.
4+
// Copyright © 2024 MFB Technologies, Inc. All rights reserved.
55
//
66
// This source code is licensed under the MIT license found in the
77
// LICENSE file in the root directory of this source tree.

Sources/ArgumentEncoding/Command.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Command.swift
22
// ArgumentEncoding
33
//
4-
// Copyright © 2023 MFB Technologies, Inc. All rights reserved.
4+
// Copyright © 2024 MFB Technologies, Inc. All rights reserved.
55
//
66
// This source code is licensed under the MIT license found in the
77
// LICENSE file in the root directory of this source tree.

0 commit comments

Comments
 (0)