Skip to content

Commit a3e7853

Browse files
committed
Add package flags to perform stricter build checks
1 parent 9b479c0 commit a3e7853

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

Package.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ let package = Package(
2323
.target(
2424
name: "SwiftUIKit",
2525
dependencies: [],
26-
resources: [.process("Resources")]
26+
resources: [.process("Resources")],
27+
swiftSettings: [
28+
// Enable library evolution
29+
.unsafeFlags(["-enable-library-evolution"]),
30+
31+
// Additional strict checks
32+
// .unsafeFlags(["-warnings-as-errors"]),
33+
// .unsafeFlags(["-strict-concurrency=complete"])
34+
]
2735
),
2836
.testTarget(
2937
name: "SwiftUIKitTests",

RELEASE_NOTES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ SwiftUIKit makes its best effort to honor semver, but breaking changes can occur
44

55

66

7+
## 5.8.1
8+
9+
This version enables Swift package flags to catch more errors.
10+
11+
This makes it easier to prepare SwiftUIKit for framework usage.
12+
13+
14+
715
## 5.8
816

917
### 💡 Adjustment

Sources/SwiftUIKit/Files/DirectoryObservable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// https://medium.com/over-engineering/monitoring-a-folder-for-changes-in-ios-dc3f8614f902
1010
//
1111

12+
import Combine
1213
import SwiftUI
1314

1415
/// This class can observe file system changes for a folder.

Sources/SwiftUIKit/_Deprecated/Navigation/NavigationContext.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Copyright © 2023-2025 Daniel Saidi. All rights reserved.
77
//
88

9+
import Combine
910
import SwiftUI
1011

1112
@available(*, deprecated, message: "This has been moved to https://github.com/danielsaidi/PresentationKit")

0 commit comments

Comments
 (0)