Skip to content

Commit

Permalink
Merge pull request #29 from WideSpectrumComputing/master
Browse files Browse the repository at this point in the history
updated SDK SPM package manifest
  • Loading branch information
akornich authored Feb 11, 2021
2 parents b84dc1b + e7b4d9e commit 066f327
Showing 1 changed file with 95 additions and 61 deletions.
156 changes: 95 additions & 61 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,31 @@ let package = Package(
.library(
name: "RollbarDeploys",
targets: ["RollbarDeploys"]),
// .library(
// name: "RollbarNotifier",
// targets: ["RollbarNotifier"]),
.library(
name: "RollbarNotifier",
targets: ["RollbarNotifier"]),
.library(
name: "RollbarKSCrash",
targets: ["RollbarKSCrash"]),
.library(
name: "RollbarPLCrashReporter",
targets: ["RollbarPLCrashReporter"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(name:"RollbarCommon",
path: "RollbarCommon"
),
.package(name:"KSCrash",
url: "https://github.com/kstenerud/KSCrash.git",
Package.Dependency.Requirement.branch("master")
),
.package(name:"PLCrashReporter",
url: "https://github.com/microsoft/plcrashreporter.git",
Package.Dependency.Requirement.branch("master")
),
],
// dependencies: [
// // Dependencies declare other packages that this package depends on.
// // .package(url: /* package url */, from: "1.0.0"),
// .package(path: "RollbarCommon"),
// ],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
Expand All @@ -43,22 +59,22 @@ let package = Package(
.headerSearchPath("RollbarCommon/Sources/RollbarCommon/**"),
]
),
.testTarget(
name: "RollbarCommonTests",
dependencies: ["RollbarCommon"],
path: "RollbarCommon/Tests/RollbarCommonTests",
cSettings: [
.headerSearchPath("RollbarCommon/Tests/RollbarCommonTests/**"),
]
),
.testTarget(
name: "RollbarCommonTests-ObjC",
dependencies: ["RollbarCommon"],
path: "RollbarCommon/Tests/RollbarCommonTests-ObjC",
cSettings: [
.headerSearchPath("RollbarCommon/Tests/RollbarCommonTests-ObjC/**"),
]
),
// .testTarget(
// name: "RollbarCommonTests",
// dependencies: ["RollbarCommon"],
// path: "RollbarCommon/Tests/RollbarCommonTests",
// cSettings: [
// .headerSearchPath("RollbarCommon/Tests/RollbarCommonTests/**"),
// ]
// ),
// .testTarget(
// name: "RollbarCommonTests-ObjC",
// dependencies: ["RollbarCommon"],
// path: "RollbarCommon/Tests/RollbarCommonTests-ObjC",
// cSettings: [
// .headerSearchPath("RollbarCommon/Tests/RollbarCommonTests-ObjC/**"),
// ]
// ),

.target(
name: "RollbarDeploys",
Expand All @@ -69,50 +85,68 @@ let package = Package(
.headerSearchPath("RollbarDeploys/Sources/RollbarDeploys/**"),
]
),
.testTarget(
name: "RollbarDeploysTests",
dependencies: ["RollbarDeploys"],
path: "RollbarDeploys/Tests/RollbarDeploysTests",
// .testTarget(
// name: "RollbarDeploysTests",
// dependencies: ["RollbarDeploys"],
// path: "RollbarDeploys/Tests/RollbarDeploysTests",
// cSettings: [
// .headerSearchPath("RollbarDeploys/Tests/RollbarDeploysTests/**"),
// ]
// ),
// .testTarget(
// name: "RollbarDeploysTests-ObjC",
// dependencies: ["RollbarDeploys"],
// path: "RollbarDeploys/Tests/RollbarDeploysTests-ObjC",
// cSettings: [
// .headerSearchPath("RollbarDeploys/Tests/RollbarDeploysTests-ObjC/**"),
// ]
// ),


.target(
name: "RollbarNotifier",
dependencies: ["RollbarCommon",],
path: "RollbarNotifier/Sources/RollbarNotifier",
publicHeadersPath: "include",
cSettings: [
.headerSearchPath("RollbarNotifier/Sources/RollbarNotifier/**"),
]
),
// .testTarget(
// name: "RollbarNotifierTests",
// dependencies: ["RollbarNotifier"],
// path: "RollbarNotifier/Sources/RollbarNotifierTests",
// cSettings: [
// .headerSearchPath("RollbarNotifier/Tests/RollbarNotifierTests/**"),
// ]
// ),
// .testTarget(
// name: "RollbarNotifierTests-ObjC",
// dependencies: ["RollbarNotifier"],
// path: "RollbarNotifier/Sources/RollbarNotifierTests-ObjC",
// cSettings: [
// .headerSearchPath("RollbarNotifier/Tests/RollbarNotifierTests-ObjC/**"),
// ]
// ),

.target(
name: "RollbarKSCrash",
dependencies: ["RollbarCommon", "KSCrash"],
publicHeadersPath: "include",
cSettings: [
.headerSearchPath("RollbarDeploys/Tests/RollbarDeploysTests/**"),
.headerSearchPath("RollbarKSCrash/Sources/RollbarKSCrash/**"),
]
),
.testTarget(
name: "RollbarDeploysTests-ObjC",
dependencies: ["RollbarDeploys"],
path: "RollbarDeploys/Tests/RollbarDeploysTests-ObjC",

.target(
name: "RollbarPLCrashReporter",
dependencies: ["RollbarCommon", .product(name: "CrashReporter", package: "PLCrashReporter")],
publicHeadersPath: "include",
cSettings: [
.headerSearchPath("RollbarDeploys/Tests/RollbarDeploysTests-ObjC/**"),
.headerSearchPath("RollbarPLCrashReporter/Sources/RollbarPLCrashReporter/**"),
]
),


// .target(
// name: "RollbarNotifier",
// dependencies: ["RollbarCommon",],
// path: "RollbarNotifier/Sources/RollbarNotifier",
// publicHeadersPath: "include",
// cSettings: [
// .headerSearchPath("RollbarNotifier/Sources/RollbarNotifier/**"),
// ]
// ),
// .testTarget(
// name: "RollbarNotifierTests",
// dependencies: ["RollbarNotifier"],
// path: "RollbarNotifier/Sources/RollbarNotifierTests",
// cSettings: [
// .headerSearchPath("RollbarNotifier/Tests/RollbarNotifierTests/**"),
// ]
// ),
// .testTarget(
// name: "RollbarNotifierTests-ObjC",
// dependencies: ["RollbarNotifier"],
// path: "RollbarNotifier/Sources/RollbarNotifierTests-ObjC",
// cSettings: [
// .headerSearchPath("RollbarNotifier/Tests/RollbarNotifierTests-ObjC/**"),
// ]
// ),

],
swiftLanguageVersions: [
SwiftVersion.v4,
Expand Down

0 comments on commit 066f327

Please sign in to comment.