Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Crashes module to SPM Manifest #2048

Merged
merged 4 commits into from
May 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AppCenterCrashes/AppCenterCrashes/include/MSAbstractLog.h
1 change: 1 addition & 0 deletions AppCenterCrashes/AppCenterCrashes/include/MSCrashes.h
1 change: 1 addition & 0 deletions AppCenterCrashes/AppCenterCrashes/include/MSErrorReport.h
1 change: 1 addition & 0 deletions AppCenterCrashes/AppCenterCrashes/include/MSService.h
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### App Center

* **[Improvement]** Use namespaced `NSUserDefaults` keys with the **MSAppCenter** prefix for all the keys set by the SDK. Fixed a few keys missing namespace.
* **[Feature]** Swift Package Manager support for Core and Analytics modules.
* **[Feature]** Swift Package Manager support for Analytics and Crashes modules.

___

Expand Down
21 changes: 20 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ let package = Package(
products: [
.library(
name: "AppCenterAnalytics",
targets: ["AppCenterAnalytics"])
targets: ["AppCenterAnalytics"]),
.library(
name: "AppCenterCrashes",
targets: ["AppCenterCrashes"])
],
dependencies: [
.package(url: "https://github.com/microsoft/plcrashreporter.git", .branch("feature/spm")),
],
targets: [
.target(
Expand Down Expand Up @@ -52,6 +56,21 @@ let package = Package(
.linkedFramework("UIKit", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("AppKit", .when(platforms: [.macOS])),
]
),
.target(
name: "AppCenterCrashes",
dependencies: ["AppCenter", "CrashReporter"],
path: "AppCenterCrashes/AppCenterCrashes",
exclude: ["Support"],
cSettings: [
.headerSearchPath("**"),
.headerSearchPath("../../AppCenter/AppCenter/**"),
],
linkerSettings: [
.linkedFramework("Foundation"),
.linkedFramework("UIKit", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("AppKit", .when(platforms: [.macOS])),
]
)
]
)