Fix some package paths. Treat warnings as errors in all local modules.

This commit is contained in:
Brent Simmons 2024-11-09 09:44:22 -08:00
parent e2b76c1e08
commit 2b76968391
5 changed files with 58 additions and 49 deletions

View File

@ -3,28 +3,28 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "Account", name: "Account",
platforms: [.macOS(.v14), .iOS(.v17)], platforms: [.macOS(.v14), .iOS(.v17)],
products: [ products: [
.library( .library(
name: "Account", name: "Account",
type: .dynamic, type: .dynamic,
targets: ["Account"]), targets: ["Account"]),
], ],
dependencies: [ dependencies: [
.package(path: "../RSWeb"), .package(path: "../RSWeb"),
.package(path: "../Articles"), .package(path: "../Articles"),
.package(path: "../ArticlesDatabase"), .package(path: "../ArticlesDatabase"),
.package(path: "../Secrets"), .package(path: "../Secrets"),
.package(path: "../SyncDatabase"), .package(path: "../SyncDatabase"),
.package(path: "../RSCore"), .package(path: "../RSCore"),
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")), .package(path: "../RSDatabase"),
.package(url: "https://github.com/Ranchero-Software/RSParser.git", .upToNextMajor(from: "2.0.2")), .package(path: "../RSParser"),
], ],
targets: [ targets: [
.target( .target(
name: "Account", name: "Account",
dependencies: [ dependencies: [
"RSCore", "RSCore",
"RSDatabase", "RSDatabase",
"RSParser", "RSParser",
@ -33,12 +33,14 @@ let package = Package(
"ArticlesDatabase", "ArticlesDatabase",
"Secrets", "Secrets",
"SyncDatabase", "SyncDatabase",
]), ],
.testTarget( swiftSettings: [.unsafeFlags(["-warnings-as-errors"])]
name: "AccountTests", ),
dependencies: ["Account"], .testTarget(
name: "AccountTests",
dependencies: ["Account"],
resources: [ resources: [
.copy("JSON"), .copy("JSON"),
]), ]),
] ]
) )

View File

@ -3,22 +3,24 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "Articles", name: "Articles",
platforms: [.macOS(.v14), .iOS(.v17)], platforms: [.macOS(.v14), .iOS(.v17)],
products: [ products: [
.library( .library(
name: "Articles", name: "Articles",
type: .dynamic, type: .dynamic,
targets: ["Articles"]), targets: ["Articles"]),
], ],
dependencies: [ dependencies: [
.package(path: "../RSCore"), .package(path: "../RSCore"),
], ],
targets: [ targets: [
.target( .target(
name: "Articles", name: "Articles",
dependencies: [ dependencies: [
"RSCore" "RSCore"
]), ],
swiftSettings: [.unsafeFlags(["-warnings-as-errors"])]
),
] ]
) )

View File

@ -12,8 +12,8 @@ let package = Package(
targets: ["ArticlesDatabase"]), targets: ["ArticlesDatabase"]),
], ],
dependencies: [ dependencies: [
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")), .package(path: "../RSDatabase"),
.package(url: "https://github.com/Ranchero-Software/RSParser.git", .upToNextMajor(from: "2.0.2")), .package(path: "../RSParser"),
.package(path: "../RSCore"), .package(path: "../RSCore"),
.package(path: "../Articles"), .package(path: "../Articles"),
], ],
@ -25,6 +25,8 @@ let package = Package(
"RSDatabase", "RSDatabase",
"RSParser", "RSParser",
"Articles", "Articles",
]), ],
swiftSettings: [.unsafeFlags(["-warnings-as-errors"])]
),
] ]
) )

View File

@ -3,20 +3,21 @@
import PackageDescription import PackageDescription
let package = Package( let package = Package(
name: "Secrets", name: "Secrets",
platforms: [.macOS(.v14), .iOS(.v17)], platforms: [.macOS(.v14), .iOS(.v17)],
products: [ products: [
.library( .library(
name: "Secrets", name: "Secrets",
type: .dynamic, type: .dynamic,
targets: ["Secrets"] targets: ["Secrets"]
) )
], ],
dependencies: [], dependencies: [],
targets: [ targets: [
.target( .target(
name: "Secrets", name: "Secrets",
dependencies: [] dependencies: [],
) swiftSettings: [.unsafeFlags(["-warnings-as-errors"])]
] )
]
) )

View File

@ -14,7 +14,7 @@ let package = Package(
dependencies: [ dependencies: [
.package(path: "../RSCore"), .package(path: "../RSCore"),
.package(path: "../Articles"), .package(path: "../Articles"),
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")), .package(path: "../RSDatabase.git"),
], ],
targets: [ targets: [
.target( .target(
@ -23,6 +23,8 @@ let package = Package(
"RSCore", "RSCore",
"RSDatabase", "RSDatabase",
"Articles", "Articles",
]), ],
swiftSettings: [.unsafeFlags(["-warnings-as-errors"])]
),
] ]
) )