Installation

Gini Health SDK can either be installed by using Swift Package Manager or by manually dragging the required files to your project.

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, adding GiniHealthSDK as a dependency is as easy as adding it to the dependencies value of your Package.swift

dependencies: [
    .package(url: "https://github.com/gini/health-sdk-ios.git", .exact("1.5.0"))
]

In case that you want to use the certificate pinning in the library, add GiniHealthAPILibraryPinning:

dependencies: [
    .package(url: "https://github.com/gini/health-sdk-pinning-ios.git", .exact("1.5.0"))
]

Manually

If you prefer not to use a dependency management tool, you can integrate the Gini Health SDK into your project manually. To do so drop the GiniHealthSDK (classes and assets) folder into your project as well as its dependant libraries like GiniHealthAPILibrary and add the files to your target.

For manual installation GiniHealthSDKPinning you need to copy the sources and assets of its dependencies:

You can find the list of dependencies here.

Xcode will automatically check your project for swift files and will create an autogenerated import header for you. Use this header in an Objective-C project by adding

#import "YourProjectName-Swift.h"

to your implementation or header files. Note that spaces in your project name result in underscores. So Your Project becomes Your_Project-Swift.h.