Adding via Cocoapods

This section outlines how to integrate the Hurree SDK into your application code via Cocoapods.

The Hurree SDK is available in both Swift3 and Swift4 versions.

To clone / download the Hurree SDK

In your project pod file, add the following in the appropriate frameworks section:

Swift 3:

pod 'hurree-swift3-sdk', '1.5.1'

You can find more information here.

Swift 4:

pod 'hurree-swift4-sdk', '1.2.1'

You can find more information here.

Run the pod install command from the project directory, and then open the project via the pod workspace shortcut as directed. (You may need to refresh your pod trunk if the above libraries and versions are not found - run pod setup).

You should now be able to import and use methods from the Hurree SDK. You can verify this by incorporating an import statement into one of your files:

import HurreeSDK

If all is well, the library will be found and you can avail of it's methods, as outlined in the Methods and Arguments section.


let analytics = AnalyticsSingleton.sharedInstance()

    app_group_key: YOUR_APP_KEY,
    uniqueUserID: UserId.text! as AnyObject ,
    deviceTokenString: deviceToken as AnyObject,
    timerValue: Constants.TIMER_VALUE_SECONDS as AnyObject

If you need more guidance, you can refer to the iOS sample application which provides a complete integration overview of how to use the included framework.

results matching ""

    No results matching ""