Page Properties | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
Overview
You can install Gini Bank SDK either by using Swift Package Manager or by , manually dragging the required XCFrameworks to your project, or using Cocoapods.
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Swift Package Manager
To install Gini Bank SDK, follow these steps:
...
In project settings, find package dependencies, and click +.
...
Swift Package Manager
The Swift Package Manager is a tool for managing the distribution of Swift code. Once you have your Swift package set up, add GiniBankSDK
as a dependency and add it to the dependencies value of your Package.swift
:
Code Block | ||
---|---|---|
| ||
dependencies: [ .package(url: "https://github.com/gini/bank-sdk-ios.git |
...
In Dependency rule, select Exact version and type “3.0.0-beta04”.
...
Import the Gini Bank SDK with import GiniBankSDK
.
...
", .exact("3.7.0"))
] |
Available from iOS 12.
In case you want to use the certificate pinning in the library, follow these steps:
...
In project settings, find package dependencies, and click +.
...
add GiniBankSDKPinning
:
Code Block | ||
---|---|---|
| ||
dependencies: [ .package(url: "https://github.com/gini/bank-sdk-pinning-ios.git |
...
In Dependency rule, select Exact version and type “3.0.0-beta04”.
...
Import the Gini Bank SDK with import GiniBankSDKPinning
.
", .exact("3.7.0"))
] |
...
XCFrameworks
If you prefer not to use a dependency management tool, you can integrate the Gini Bank SDK into your project manually by adding the following frameworks to your project:
GiniBankSDKGiniBankAPILibrary.xcframework
GiniCaptureSDK.xcframework
GiniBankAPILibraryGiniBankSDK.xcframework
.
In case you want to use the certificate pinning, add the following frameworks:
GiniBankSDKGiniBankAPILibrary.xcframework
GiniBankSDKPinningGiniBankAPILibraryPinning.xcframework
GiniCaptureSDK.xcframework
GiniCaptureSDKPinning.xcframework
GiniBankAPILibraryGiniBankSDK.xcframework
GiniBankAPILibraryPinningGiniBankSDKPinning.xcframework
TrustKit.xcframework
The latest version of the frameworks is available on GitHub.
...
Cocoapods
The Gini Bank SDK provides integration with your iOS project using CocoaPods. CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects.
To add the SDK to your project using Cocoapods follow the next steps:
Open your project in Xcode.
Create or edit your
Podfile
. If you don't have aPodfile
yet, create one in your project's root directory. Check the Using CocoaPods guide.Add the Gini Bank SDK pod with the desired version:
Code Block | ||
---|---|---|
| ||
target 'YourApp' do source 'https://github.com/gini/gini-podspecs' pod 'GiniBankSDK', '~> 3.0.0' # Replace with the desired version end |
Install the pod. Run the following command in the terminal:
Code Block |
---|
pod install |
Open the
.xcworkspace
file. From now on, use the.xcworkspace
file instead of the.xcodeproj
file.
The latest version of the Gini podspecs is available on GitHub.