Integration
Options for including the ReadyRemit iOS SDK in a native iOS Application
Swift Package Manager
- File > Add Package Dependencies...
- Where it says
Search or Enter Package URL, enterhttps://github.com/BrightwellPayments/readyremit-sdk-ios.git - Next to
Dependency Rule, selectBranchand enter10.0.0 - Click
Add Package - Select the appropriate target
- Click
Add Package
OR
- Add the dependency to
Package.swift// swift-tools-version: 5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "ReadyRemitHost", products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: "ReadyRemitHost", targets: ["ReadyRemitHost"] ), ], dependencies: [ .package( url: "https://github.com/BrightwellPayments/readyremit-sdk-ios.git", .branch("10.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: "ReadyRemitHost", dependencies: [ product(name: "ReadyRemitSDK", package: "readyremit-sdk-ios") ] ), .testTarget( name: "ReadyRemitHostTests", dependencies: ["ReadyRemitHost"] ), ] ) - 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 'ReadyRemitHost' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! # Pods for ReadyRemitHost pod 'ReadyRemitSDK', :git => 'https://github.com/BrightwellPayments/readyremit-sdk-ios.git', :branch => '10.0.0' target 'ReadyRemitHostTests' do inherit! :search_paths # Pods for testing end target 'ReadyRemitHostUITests' do # Pods for testing end end pod install
Updated 5 months ago
What’s Next
