Skip to content

Commit

Permalink
Add explicit TextStory version
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Nov 21, 2023
1 parent b498785 commit f6faed6
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
// swift-tools-version:5.5
// swift-tools-version: 5.8

import PackageDescription

let settings: [SwiftSetting] = [
// .unsafeFlags(["-Xfrontend", "-strict-concurrency=complete"])
]

let package = Package(
name: "TextFormation",
platforms: [.macOS(.v10_15), .iOS(.v13)],
products: [
.library(name: "TextFormation", targets: ["TextFormation"]),
],
dependencies: [
.package(url: "https://github.com/ChimeHQ/TextStory", from: "0.8.0")
.package(url: "https://github.com/ChimeHQ/TextStory", "0.8.0"..."0.8.0")
],
targets: [
.target(name: "TextFormation", dependencies: ["TextStory"], swiftSettings: settings),
.testTarget(name: "TextFormationTests", dependencies: ["TextFormation"], swiftSettings: settings),
.target(name: "TextFormation", dependencies: ["TextStory"]),
.testTarget(name: "TextFormationTests", dependencies: ["TextFormation"]),
]
)

let swiftSettings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency")
]

for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(contentsOf: swiftSettings)
target.swiftSettings = settings
}

0 comments on commit f6faed6

Please sign in to comment.