This repository contains build scripts that helps prepare PowerAuth mobile SDK for integration with Swift Package Manager. The repository also contains
Package.swift file describing an actual PowerAuth mobile SDK releases for SPM.
The PowerAuth mobile SDK doesn't support Swift Package Manager directly. Instead of this, you have to add this repository as a package source. So add
https://github.com/wultra/powerauth-mobile-sdk-spm repository as a package in Xcode UI and add
PowerAuthCore libraries as a dependency.
Alternatively, you can add the dependency manually. For example:
// swift-tools-version:5.3 import PackageDescription let package = Package( name: "YourLibrary", platforms: [ .iOS(.v9), .tvOS(.v9) ], products: [ .library( name: "YourLibrary", targets: ["YourLibrary"]), ], dependencies: [ .package(name: "PowerAuth2", url: "https://github.com/wultra/powerauth-mobile-sdk-spm.git", .upToNextMinor(from: "1.6.2")), .package(name: "PowerAuthCore", url: "https://github.com/wultra/powerauth-mobile-sdk-spm.git", .upToNextMinor(from: "1.6.2")), ], targets: [ .target( name: "YourLibrary", dependencies: ["PowerAuth2", "PowerAuthCore"]) ] )
jqcommand, required by
The main deployment script that do the following tasks:
The usage of the script is simple, just specify a version of PowerAuth mobile SDK to prepare for SPM. For example:
$ ./deploy.sh 1.6.2
The build script is useful in case that you need to manually prepare XCFrameworks for manual library integration. The script does the following tasks:
The usage of the script is simple, just specify a version of PowerAuth mobile SDK to build. For example:
$ ./build.sh 1.6.2
The result is stored in
The following support scripts are also present in the repository in
config.sh- contains shared configuration for all scripts in this repository.
clone.sh- allows clone PowerAuth mobile SDK at a specific version.
common-functions.sh- a script with common functions, shared across various projects at Wultra.
github-client.sh- github REST API client implementing release and release assets management.
|Last commit: 1 week ago|
This is a special release reserved for snapshot builds from development branches. Use
snapshots/develop branch to use builds from this release.