mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-23 23:51:06 +01:00
use .package(path:) for local package dependencies to resolve Xcode 14 errors.
This commit is contained in:
parent
3a9e3c8050
commit
f52276f9a1
@ -1,6 +1,29 @@
|
|||||||
// swift-tools-version:5.3
|
// swift-tools-version:5.3
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
|
var dependencies: [Package.Dependency] = [
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSCore.git", .upToNextMajor(from: "1.0.0")),
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")),
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSParser.git", .upToNextMajor(from: "2.0.2")),
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSWeb.git", .upToNextMajor(from: "1.0.0")),
|
||||||
|
]
|
||||||
|
|
||||||
|
#if swift(>=5.6)
|
||||||
|
dependencies.append(contentsOf: [
|
||||||
|
.package(path: "../Articles"),
|
||||||
|
.package(path: "../ArticlesDatabase"),
|
||||||
|
.package(path: "../Secrets"),
|
||||||
|
.package(path: "../SyncDatabase"),
|
||||||
|
])
|
||||||
|
#else
|
||||||
|
dependencies.append(contentsOf: [
|
||||||
|
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
||||||
|
.package(url: "../ArticlesDatabase", .upToNextMajor(from: "1.0.0")),
|
||||||
|
.package(url: "../Secrets", .upToNextMajor(from: "1.0.0")),
|
||||||
|
.package(url: "../SyncDatabase", .upToNextMajor(from: "1.0.0")),
|
||||||
|
])
|
||||||
|
#endif
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "Account",
|
name: "Account",
|
||||||
platforms: [.macOS(SupportedPlatform.MacOSVersion.v10_15), .iOS(SupportedPlatform.IOSVersion.v13)],
|
platforms: [.macOS(SupportedPlatform.MacOSVersion.v10_15), .iOS(SupportedPlatform.IOSVersion.v13)],
|
||||||
@ -10,16 +33,7 @@ let package = Package(
|
|||||||
type: .dynamic,
|
type: .dynamic,
|
||||||
targets: ["Account"]),
|
targets: ["Account"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: dependencies,
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSCore.git", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSParser.git", .upToNextMajor(from: "2.0.2")),
|
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSWeb.git", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "../ArticlesDatabase", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "../Secrets", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "../SyncDatabase", .upToNextMajor(from: "1.0.0")),
|
|
||||||
],
|
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "Account",
|
name: "Account",
|
||||||
|
@ -3,6 +3,22 @@
|
|||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
|
var dependencies: [Package.Dependency] = [
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSCore.git", .upToNextMajor(from: "1.0.0")),
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")),
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSParser.git", .upToNextMajor(from: "2.0.2")),
|
||||||
|
]
|
||||||
|
|
||||||
|
#if swift(>=5.6)
|
||||||
|
dependencies.append(contentsOf: [
|
||||||
|
.package(path: "../Articles"),
|
||||||
|
])
|
||||||
|
#else
|
||||||
|
dependencies.append(contentsOf: [
|
||||||
|
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
||||||
|
])
|
||||||
|
#endif
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "ArticlesDatabase",
|
name: "ArticlesDatabase",
|
||||||
platforms: [.macOS(SupportedPlatform.MacOSVersion.v10_15), .iOS(SupportedPlatform.IOSVersion.v13)],
|
platforms: [.macOS(SupportedPlatform.MacOSVersion.v10_15), .iOS(SupportedPlatform.IOSVersion.v13)],
|
||||||
@ -12,12 +28,7 @@ let package = Package(
|
|||||||
type: .dynamic,
|
type: .dynamic,
|
||||||
targets: ["ArticlesDatabase"]),
|
targets: ["ArticlesDatabase"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: dependencies,
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSCore.git", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSParser.git", .upToNextMajor(from: "2.0.2")),
|
|
||||||
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
|
||||||
],
|
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "ArticlesDatabase",
|
name: "ArticlesDatabase",
|
||||||
|
@ -1,6 +1,21 @@
|
|||||||
// swift-tools-version:5.3
|
// swift-tools-version:5.3
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
|
var dependencies: [Package.Dependency] = [
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSCore.git", .upToNextMajor(from: "1.0.0")),
|
||||||
|
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")),
|
||||||
|
]
|
||||||
|
|
||||||
|
#if swift(>=5.6)
|
||||||
|
dependencies.append(contentsOf: [
|
||||||
|
.package(path: "../Articles"),
|
||||||
|
])
|
||||||
|
#else
|
||||||
|
dependencies.append(contentsOf: [
|
||||||
|
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
||||||
|
])
|
||||||
|
#endif
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "SyncDatabase",
|
name: "SyncDatabase",
|
||||||
platforms: [.macOS(SupportedPlatform.MacOSVersion.v10_15), .iOS(SupportedPlatform.IOSVersion.v13)],
|
platforms: [.macOS(SupportedPlatform.MacOSVersion.v10_15), .iOS(SupportedPlatform.IOSVersion.v13)],
|
||||||
@ -10,11 +25,7 @@ let package = Package(
|
|||||||
type: .dynamic,
|
type: .dynamic,
|
||||||
targets: ["SyncDatabase"]),
|
targets: ["SyncDatabase"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: dependencies,
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSCore.git", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "https://github.com/Ranchero-Software/RSDatabase.git", .upToNextMajor(from: "1.0.0")),
|
|
||||||
.package(url: "../Articles", .upToNextMajor(from: "1.0.0")),
|
|
||||||
],
|
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "SyncDatabase",
|
name: "SyncDatabase",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user