Integration

Options for including the ReadyRemit iOS SDK in a native iOS Application

Swift Package Manager

  1. File > Add Package Dependencies...
  2. Where it says Search or Enter Package URL, enter https://github.com/BrightwellPayments/readyremit-sdk-ios.git
  3. Next to Dependency Rule, select Branch and enter 10.0.0
  4. Click Add Package
  5. Select the appropriate target
  6. Click Add Package

OR

  1. 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"]
            ),
        ]
    )
  2. File > Packages > Resolve Package Versions

CocoaPods

  1. 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
  2. pod install

What’s Next