From 56bb6b317e12e5d6664003729207cd1b0dc44aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20Aks=C3=BCt?= Date: Sat, 5 Feb 2022 14:09:49 +0100 Subject: [PATCH 1/3] SPM support has been added. - `Package.swift` file has been created & configured. --- Package.swift | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Package.swift diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..58f1ada --- /dev/null +++ b/Package.swift @@ -0,0 +1,24 @@ +// swift-tools-version: 5.4 + +import PackageDescription + + let package = Package( + name: "opentracing", + platforms: [ + .iOS(.v8), + .macOS(.v10_15) + ], + products: [ + .library( + name: "opentracing", + targets: ["opentracing"] + ) + ], + targets: [ + .target( + name: "opentracing", + path: "Pod/Classes", + publicHeadersPath: "" + ) + ] + ) From 9d877ce291c1cb3cd42a71298d2354b15acff7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20Aks=C3=BCt?= Date: Sat, 5 Feb 2022 14:15:36 +0100 Subject: [PATCH 2/3] SPM installation guide has been written in Readme file. - Readme file updated with SPM installation guide. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index f74916c..234573d 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,18 @@ Use [CocoaPods](https://guides.cocoapods.org/using/getting-started.html)! ```ruby pod "opentracing" ``` + +### Install with Swift Package Manager + + The [Swift Package Manager](https://www.swift.org/package-manager/) is a tool for managing the distribution of Swift code. + + Add the following to your `Package.swift` file: + ``` + dependencies: [ + .package(url: "https://github.com/opentracing/opentracing-objc.git", .branch("master")) + ] + ``` + And then build your project + ``` + $ swift build + ``` From 5a540e5c20b13212991a3d18327cb5f2c1dd5424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20Aks=C3=BCt?= Date: Sun, 6 Feb 2022 14:05:21 +0100 Subject: [PATCH 3/3] Readme file SPM installation guide title has been modified. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 234573d..645946a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Use [CocoaPods](https://guides.cocoapods.org/using/getting-started.html)! pod "opentracing" ``` -### Install with Swift Package Manager +## Installation (Swift Package Manager) The [Swift Package Manager](https://www.swift.org/package-manager/) is a tool for managing the distribution of Swift code.