Integration
Swift Package Manager
- File > Add Package Dependencies...
- Where it says
Search or Enter Package URL, enterhttps://github.com/PayMitto/paymitto-ios.git - Next to
Dependency Rule, selectExactand enter11.0.0 - Click
Add Package - Select the appropriate target
- Click
Add Package
OR
- Add the dependency to
Package.swift
// swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "PayMittoHost", products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: "PayMittoHost", targets: ["PayMittoHost"] ), ], dependencies: [ .package( url: "https://github.com/PayMitto/paymitto-ios.git", .exact("11.0.0") ) ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. // Targets can depend on other targets in this package and products from dependencies. .target( name: "PayMittoHost", dependencies: [ product(name: "PayMittoSDK", package: "paymitto-ios") ] ), .testTarget( name: "PayMittoHostTests", dependencies: ["PayMittoHost"] ), ] ) - File > Packages > Resolve Package Versions
CocoaPods
-
Add the dependency to
Podfile# Uncomment the next line to define a global platform for your project # platform :ios, '16.0' target 'PayMittoHost' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! # Pods for PayMittoHost pod 'PayMittoSDK', :git => 'https://github.com/PayMitto/paymitto-ios.git', :tag => '11.0.0' target 'PayMittoHostTests' do inherit! :search_paths # Pods for testing end target 'PayMittoHostUITests' do # Pods for testing end end -
pod install
