Make SyncDatabase and Secrets both compatible with Swift strict concurrency checking.

This commit is contained in:
Brent Simmons 2024-02-27 22:32:55 -08:00
parent 93ae6ee2bb
commit dc6ebf7226
3 changed files with 19 additions and 12 deletions

View File

@ -1,4 +1,4 @@
// swift-tools-version:5.3
// swift-tools-version:5.9
import PackageDescription
let package = Package(
@ -15,7 +15,10 @@ let package = Package(
targets: [
.target(
name: "Secrets",
dependencies: []
)
dependencies: [],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
)
]
)

View File

@ -10,7 +10,7 @@ import Foundation
public struct CredentialsManager {
private static var keychainGroup: String? = {
private static let keychainGroup: String? = {
guard let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as? String else {
return nil
}

View File

@ -1,4 +1,4 @@
// swift-tools-version:5.3
// swift-tools-version:5.9
import PackageDescription
var dependencies: [Package.Dependency] = [
@ -25,14 +25,18 @@ let package = Package(
type: .dynamic,
targets: ["SyncDatabase"]),
],
dependencies: dependencies,
targets: [
.target(
name: "SyncDatabase",
dependencies: [
dependencies: dependencies,
targets: [
.target(
name: "SyncDatabase",
dependencies: [
"RSCore",
"RSDatabase",
"Articles",
]),
]
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
)
]
)