Revision control

Copy as Markdown

// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "BrowserKit",
platforms: [
.iOS(.v15),
.macOS(.v10_14)
],
products: [
.library(
name: "SiteImageView",
targets: ["SiteImageView"]),
.library(
name: "Common",
targets: ["Common"]),
.library(
name: "TabDataStore",
targets: ["TabDataStore"]),
.library(
name: "Redux",
targets: ["Redux"]),
.library(
name: "ComponentLibrary",
targets: ["ComponentLibrary"]),
.library(
name: "WebEngine",
targets: ["WebEngine"]),
.library(
name: "ToolbarKit",
targets: ["ToolbarKit"]),
.library(
name: "ContentBlockingGenerator",
targets: ["ContentBlockingGenerator"]),
.executable(
name: "ExecutableContentBlockingGenerator",
targets: ["ExecutableContentBlockingGenerator"]),
],
dependencies: [
.package(
branch: "master"),
.package(
exact: "7.11.0"),
.package(
exact: "7.1.1"),
.package(
exact: "2.0.0"),
.package(
exact: "8.21.0"),
branch: "master")
],
targets: [
.target(
name: "ComponentLibrary",
dependencies: ["Common"],
swiftSettings: [.unsafeFlags(["-enable-testing"])]),
.testTarget(
name: "ComponentLibraryTests",
dependencies: ["ComponentLibrary"]),
.target(
name: "SiteImageView",
dependencies: ["Fuzi", "Kingfisher", "Common"],
swiftSettings: [.unsafeFlags(["-enable-testing"])]),
.testTarget(
name: "SiteImageViewTests",
dependencies: ["SiteImageView"]),
.target(
name: "Common",
dependencies: ["Dip",
"SwiftyBeaver",
.product(name: "Sentry", package: "sentry-cocoa")],
swiftSettings: [.unsafeFlags(["-enable-testing"])]),
.testTarget(
name: "CommonTests",
dependencies: ["Common"]),
.target(
name: "TabDataStore",
dependencies: ["Common"],
swiftSettings: [.unsafeFlags(["-enable-testing"])]),
.testTarget(
name: "TabDataStoreTests",
dependencies: ["TabDataStore"]),
.target(
name: "Redux",
dependencies: ["Common"],
swiftSettings: [.unsafeFlags(["-enable-testing"])]),
.testTarget(
name: "ReduxTests",
dependencies: ["Redux"]),
.target(
name: "WebEngine",
dependencies: ["Common",
.product(name: "GCDWebServers", package: "GCDWebServer")],
swiftSettings: [.unsafeFlags(["-enable-testing"])]),
.testTarget(
name: "WebEngineTests",
dependencies: ["WebEngine"]),
.target(
name: "ToolbarKit",
dependencies: ["Common"],
swiftSettings: [.unsafeFlags(["-enable-testing"])]),
.testTarget(
name: "ToolbarKitTests",
dependencies: ["ToolbarKit"]),
.target(
name: "ContentBlockingGenerator",
swiftSettings: [.unsafeFlags(["-enable-testing"])]),
.testTarget(
name: "ContentBlockingGeneratorTests",
dependencies: ["ContentBlockingGenerator"]),
.executableTarget(
name: "ExecutableContentBlockingGenerator",
dependencies: ["ContentBlockingGenerator"]),
]
)