Skip to content

ETOSPHERES-Labs/etopay-sdk-quickstart-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETOPay SDK Quickstart for Swift

ci

The ETOPay SDK for swift is hosted as a Swift Package in the @ETOSPHERES-Labs/etopay-sdk-swift repository.

We provide binaries for the following platforms:

  • aarch64-apple-ios: targets 64-bit ARM processors for iOS devices like iPhones and iPads.
  • x86_64-apple-ios: for 64-bit Intel processors for iOS simulators.
  • aarch64-apple-ios-sim: for 64-bit ARM processors running iOS simulators, typically used on Apple Silicon Macs.
  • aarch64-apple-darwin: for 64-bit ARM processors on macOS systems (eg. M1).
  • x86_64-apple-darwin: for 64-bit Intel processors on macOS systems.

Using the Swift Package Manager, simply provide the path to the GitHub repository and select which version to use. Add the repository as a dependency in your Package.swift file:

import PackageDescription

let package = Package(
    name: "program",
    dependencies: [
        // follow a released version (a tag)
        .package(url: "https://github.com/ETOSPHERES-Labs/etopay-sdk-swift", from: "0.16.1")
        // alternatively you can follow the nightly snapshot releases
        .package(url: "https://github.com/ETOSPHERES-Labs/etopay-sdk-swift", revision: "nightly")
    ],
    targets: [
        .executableTarget(
            name: "main",
            dependencies: [
                .product(name: "ETOPaySdk", package: "etopay-sdk-swift")
            ]),
    ]
)

The ETOPaySdk module will then be available for import in your project.

Using XCode

In XCode, go to File -> Add Package Dependencies. In the top right search box, enter the url of the GitHub repository (https://github.com/ETOSPHERES-Labs/etopay-sdk-swift) and select the ETOPay SDK when it appears in the list. Select Add Package and follow the on-screen instructions.

Minimum Supported Version

  • swift-tools - 5.8
  • swiftlang- swiftlang-6.0.3
  • iOS - 13

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages