Update install.md with detailed Swift instructions

This commit is contained in:
Daniel
2023-06-18 16:00:01 +02:00
committed by GitHub
parent 63c8c9f9bd
commit 814cdd6b84

View File

@@ -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 '<YourApp' do
use_frameworks!
pod 'BreezSDK'
end
```
## React Native
@@ -42,4 +74,4 @@ Currently c# is built from source only. Please visit the [sdk-bindings](https://
## rust
Currently rust is still not accessible via cargo and is needed to be built from source. Please visit the [sdk-core](https://github.com/breez/breez-sdk/tree/main/libs/sdk-core) project for instructions.
Currently rust is still not accessible via cargo and is needed to be built from source. Please visit the [sdk-core](https://github.com/breez/breez-sdk/tree/main/libs/sdk-core) project for instructions.