Installation
We provide SDKs for developing projects in: NodeJS, Go, React Native (Android and iOS), Web projects, Kotlin for Android, and Swift for iOS.
Obtaining Credentials
To obtain the necessary credentials for accessing the Sodot JFrog Artifactory repository, use our guide here.
Minimum Requirements for Installation
- iOS target version 14.0 or higher (i.e.
platforms: [.iOS(.v14)]) - Swift 5.10 or higher
Swift
To use the Sodot Swift SDK in your Swift project, follow these installation steps:
-
Follow the instructions in the Obtaining Credentials section to obtain your credentials and log into the JFrog Artifactory repository.
-
Add the following dependency to your
Package.swiftfile:
dependencies: [
.package(
id: "sodot.SodotSdk",
from: "1.7.0")
],
- Set it as a dependency for your target:
.target(
name: "YourTargetName",
dependencies: [
.product(name: "SodotSdk", package: "sodot.SodotSdk")
]
)
- Fetch the package dependencies by running the following command in your terminal:
swift package resolve
Usage
After installation, you can import the SDK classes in your Swift code by importing the package:
import SodotSdk
You can now start generating keys and signing. Refer to the Getting Started guide for next steps.