Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 1.6 KB

SDK-Integration.md

File metadata and controls

66 lines (52 loc) · 1.6 KB

SDK Integration

Requirements

Swift Package Manager

Add https://github.com/wultra/mtoken-sdk-ios repository as a package in Xcode UI and add WultraMobileTokenSDK library as a dependency.

Alternatively, you can add the dependency manually. For example:

// swift-tools-version:5.7
import PackageDescription
let package = Package(
    name: "YourLibrary",
    platforms: [
        .iOS(.v12)
    ],
    products: [
        .library(
            name: "YourLibrary",
            targets: ["YourLibrary"]
        ),
    ],
    dependencies: [
        .package(url: "https://github.com/wultra/mtoken-sdk-ios.git", .from("1.12.0"))
    ],
    targets: [
        .target(
            name: "YourLibrary",
            dependencies: ["WultraMobileTokenSDK"]
        )
    ]
)

Cocoapods

Add the following dependencies to your Podfile:

pod 'WultraMobileTokenSDK/Operations'
pod 'WultraMobileTokenSDK/Push'
pod 'WultraMobileTokenSDK/Inbox'

Note: If you want to use only operations, you can omit the Push dependency and inbox dependency.

Guaranteed PowerAuth Compatibility

WMT SDK PowerAuth SDK
1.12.x 1.9.x
1.8.x - 1.11.x 1.8.x
1.6.x - 1.7.x 1.7.x
1.3.x - 1.5.x 1.6.x
1.0.x - 1.2.x 1.5.x

Xcode Compatibility

We recommend using Xcode version 16.0 or newer.