Skip to content

Commit dd6fe64

Browse files
authored
Merge pull request #12 from GoodRequest/feature/swift6
task: Swift 6 support
2 parents 0db99c0 + 1a940a0 commit dd6fe64

27 files changed

Lines changed: 882 additions & 443 deletions

File tree

GoodExtensions-iOS/GoodExtensions-iOS.xcodeproj/project.pbxproj

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
5D740E8029B0BACE00975B8C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D740E7F29B0BACE00975B8C /* AppDelegate.swift */; };
1111
5D740E8B29B0BACF00975B8C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5D740E8A29B0BACF00975B8C /* Assets.xcassets */; };
1212
5D740E8E29B0BACF00975B8C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D740E8C29B0BACF00975B8C /* LaunchScreen.storyboard */; };
13-
5D740E9B29B0BB4900975B8C /* GoodCombineExtensions in Frameworks */ = {isa = PBXBuildFile; productRef = 5D740E9A29B0BB4900975B8C /* GoodCombineExtensions */; };
1413
5D740E9D29B0BB4900975B8C /* GoodExtensions in Frameworks */ = {isa = PBXBuildFile; productRef = 5D740E9C29B0BB4900975B8C /* GoodExtensions */; };
15-
5D740E9F29B0BB4900975B8C /* GoodStructs in Frameworks */ = {isa = PBXBuildFile; productRef = 5D740E9E29B0BB4900975B8C /* GoodStructs */; };
1614
/* End PBXBuildFile section */
1715

1816
/* Begin PBXFileReference section */
@@ -29,9 +27,7 @@
2927
isa = PBXFrameworksBuildPhase;
3028
buildActionMask = 2147483647;
3129
files = (
32-
5D740E9B29B0BB4900975B8C /* GoodCombineExtensions in Frameworks */,
3330
5D740E9D29B0BB4900975B8C /* GoodExtensions in Frameworks */,
34-
5D740E9F29B0BB4900975B8C /* GoodStructs in Frameworks */,
3531
);
3632
runOnlyForDeploymentPostprocessing = 0;
3733
};
@@ -99,9 +95,7 @@
9995
);
10096
name = "GoodExtensions-iOS";
10197
packageProductDependencies = (
102-
5D740E9A29B0BB4900975B8C /* GoodCombineExtensions */,
10398
5D740E9C29B0BB4900975B8C /* GoodExtensions */,
104-
5D740E9E29B0BB4900975B8C /* GoodStructs */,
10599
);
106100
productName = "GoodExtensions-iOS";
107101
productReference = 5D740E7C29B0BACE00975B8C /* GoodExtensions-iOS.app */;
@@ -312,7 +306,7 @@
312306
PRODUCT_BUNDLE_IDENTIFIER = "com.goodrequest.GoodExtensions-iOS";
313307
PRODUCT_NAME = "$(TARGET_NAME)";
314308
SWIFT_EMIT_LOC_STRINGS = YES;
315-
SWIFT_VERSION = 5.0;
309+
SWIFT_VERSION = 6.0;
316310
TARGETED_DEVICE_FAMILY = "1,2";
317311
};
318312
name = Debug;
@@ -340,7 +334,7 @@
340334
PRODUCT_BUNDLE_IDENTIFIER = "com.goodrequest.GoodExtensions-iOS";
341335
PRODUCT_NAME = "$(TARGET_NAME)";
342336
SWIFT_EMIT_LOC_STRINGS = YES;
343-
SWIFT_VERSION = 5.0;
337+
SWIFT_VERSION = 6.0;
344338
TARGETED_DEVICE_FAMILY = "1,2";
345339
};
346340
name = Release;
@@ -369,18 +363,10 @@
369363
/* End XCConfigurationList section */
370364

371365
/* Begin XCSwiftPackageProductDependency section */
372-
5D740E9A29B0BB4900975B8C /* GoodCombineExtensions */ = {
373-
isa = XCSwiftPackageProductDependency;
374-
productName = GoodCombineExtensions;
375-
};
376366
5D740E9C29B0BB4900975B8C /* GoodExtensions */ = {
377367
isa = XCSwiftPackageProductDependency;
378368
productName = GoodExtensions;
379369
};
380-
5D740E9E29B0BB4900975B8C /* GoodStructs */ = {
381-
isa = XCSwiftPackageProductDependency;
382-
productName = GoodStructs;
383-
};
384370
/* End XCSwiftPackageProductDependency section */
385371
};
386372
rootObject = 5D740E7429B0BACE00975B8C /* Project object */;

GoodExtensions-iOS/GoodExtensions-iOS.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GoodExtensions-iOS/GoodExtensions-iOS/AppDelegate.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
// Created by Andrej Jasso on 02/03/2023.
66
//
77

8-
import UIKit
98
import Combine
109
import GoodExtensions
11-
import GoodStructs
12-
import GoodCombineExtensions
10+
import UIKit
1311

1412
@main
1513
class AppDelegate: UIResponder, UIApplicationDelegate {

Package.resolved

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.9
1+
// swift-tools-version:6.0
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -30,29 +30,37 @@ let package = Package(
3030
],
3131
dependencies: [
3232
.package(url: "https://github.com/CombineCommunity/CombineExt.git", from: "1.0.0"),
33-
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.2")
33+
.package(url: "https://github.com/apple/swift-syntax.git", from: "600.0.0-latest")
3434
],
3535
targets: [
3636
.target(
3737
name: "GoodExtensions",
3838
dependencies: ["GoodStructs"],
39-
path: "./Sources/GoodExtensions"
39+
path: "./Sources/GoodExtensions",
40+
swiftSettings: [.swiftLanguageMode(.v6)]
4041
),
4142
.target(
4243
name: "GoodAsyncExtensions",
4344
dependencies: [
4445
.product(name: "CombineExt", package: "CombineExt")
45-
]
46+
],
47+
swiftSettings: [.swiftLanguageMode(.v6)]
4648
),
4749
.target(
4850
name: "GoodStructs",
4951
dependencies: [],
50-
path: "./Sources/GoodStructs"
52+
path: "./Sources/GoodStructs",
53+
swiftSettings: [.swiftLanguageMode(.v6)]
5154
),
5255
.target(
5356
name: "GoodMacros",
5457
dependencies: ["MacroCollection"],
55-
path: "./Sources/GoodMacros"
58+
path: "./Sources/GoodMacros",
59+
swiftSettings: [
60+
.swiftLanguageMode(.v6),
61+
.enableUpcomingFeature("BodyMacros"),
62+
.enableExperimentalFeature("BodyMacros")
63+
]
5664
),
5765
.macro(
5866
name: "MacroCollection",
@@ -69,15 +77,30 @@ let package = Package(
6977
[
7078
.copy("Resources/EmptyElement.json"),
7179
.copy("Resources/ArrayNil.json")
72-
]
80+
],
81+
swiftSettings: [.swiftLanguageMode(.v6)]
7382
),
7483
.testTarget(
7584
name: "GoodStructsTests",
76-
dependencies: ["GoodStructs"]
85+
dependencies: ["GoodStructs"],
86+
swiftSettings: [.swiftLanguageMode(.v6)]
7787
),
7888
.testTarget(
7989
name: "GoodAsyncExtensionsTests",
80-
dependencies: ["GoodAsyncExtensions"]
90+
dependencies: ["GoodAsyncExtensions"],
91+
swiftSettings: [.swiftLanguageMode(.v6)]
92+
),
93+
.testTarget(
94+
name: "GoodMacrosTests",
95+
dependencies: [
96+
"GoodMacros",
97+
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
98+
],
99+
swiftSettings: [
100+
.swiftLanguageMode(.v6),
101+
.enableUpcomingFeature("BodyMacros"),
102+
.enableExperimentalFeature("BodyMacros")
103+
]
81104
)
82105
]
83106
)

0 commit comments

Comments
 (0)