Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

flurry/FlurrySwiftPackage

Repository files navigation

Flurry SDK - Swift Package

Table of Contents

Installation

Note: The Flurry Swift Package requires XCode 12 or higher and Swift 5.3 or higher

To add Flurry to your app with Swift Package Manager start in XCode with:

  1. File -> Swift Packages -> Add Package Dependency

OR

  1. On the Build Phases screen -> Choose "Link Binary With Libraries" -> Click "+" -> Choose "Add Other" -> Choose "Add Package Dependency"

  1. Enter the following repo in the url section: https://github.com/flurry/FlurrySwiftPackage/

  1. You should see the following:

Choose the version option to get the latest version. 11.1.0 is currently the only version available as a swift package.

  1. Click "Next" and the following page should appear:

  1. Choose the Packages needed for your project.

*Note: Flurry Analytics is required to use FlurryAds, FlurryConfig and FlurryMessaging.

  1. The Flurry Analytics Swift Package requires the System Configuration framework (SystemConfiguration.framework).

a. On the Build Phases page, under "Link Binary With Libraries", click on "+" and add "SystemConfiguration.framework"

  1. If you are using Objective C proceed with the integration instructions here:

https://developer.yahoo.com/flurry/docs/integrateflurry/ios/#initialize-flurry

  1. A bridging header is no longer required when using Flurry's Swift Package. You can import Flurry_iOS_SDK as documented here: https://gist.github.com/flurrydev/d3351c757b41944d04609038439d4992#file-initializeflurrylongform-swift