From 814cdd6b84be07a4a4babffbe617d3ce93289d6d Mon Sep 17 00:00:00 2001 From: Daniel <111755602+cnixbtc@users.noreply.github.com> Date: Sun, 18 Jun 2023 16:00:01 +0200 Subject: [PATCH 1/2] Update install.md with detailed Swift instructions --- src/guide/install.md | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/src/guide/install.md b/src/guide/install.md index ec1f936..08c6daf 100644 --- a/src/guide/install.md +++ b/src/guide/install.md @@ -22,7 +22,39 @@ dependencies { ## iOS -We recommend using our official Swift package: [breez/breez-sdk-swift](https://github.com/breez/breez-sdk-swift). +We support integration via the [Swift Package Manager](https://www.swift.org/package-manager/) and via [CocoaPods](https://cocoapods.org/). +See [breez/breez-sdk-swift](https://github.com/breez/breez-sdk-swift) for more information. + +### Swift Package Manager + +#### Installation via Xcode + +Via `File > Add Packages...`, add + +``` +https://github.com/breez/breez-sdk-swift.git +``` + +as a package dependency in Xcode. + +#### Installation via Swift Package Manifest + +Add the following to the dependencies array of your `Package.swift`: + +``` swift +.package(url: "https://github.com/breez/breez-sdk-swift.git", from: "0.0.4"), +``` + +### CocoaPods + +Add the Breez SDK to your `Podfile` like so: + +``` ruby +target ' Date: Tue, 4 Jul 2023 00:37:24 +0200 Subject: [PATCH 2/2] Make example version agnostic --- src/guide/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/install.md b/src/guide/install.md index 08c6daf..2309544 100644 --- a/src/guide/install.md +++ b/src/guide/install.md @@ -42,7 +42,7 @@ as a package dependency in Xcode. Add the following to the dependencies array of your `Package.swift`: ``` swift -.package(url: "https://github.com/breez/breez-sdk-swift.git", from: "0.0.4"), +.package(url: "https://github.com/breez/breez-sdk-swift.git", from: ""), ``` ### CocoaPods