Setup
What's included
The library package includes the following:
- Requirements
- Link frameworks manually
Debug(xcframework)Release(xcframework)
- Link frameworks through cocopads
Requirements
- Xcode 14.0+
- Swift 5.1
Framework linking
This section describes how to link frameworks manually or through CocoaPods.
Manual dependency
The libraries are distributed as xcframework and must be embedded and
signed with the client app.
Use the following links to download frameworks manually:
Release frameworks: https://firstlight.jfrog.io/artifactory/fl-ios-sdk-local Debug frameworks : https://firstlight.jfrog.io/artifactory/fl-ios-sdk-debug-local
Build settings
For Xcode 14, the libraries are archived with bitcode disabled for iOS and
enabled for tvOS. Add the build setting ENABLE_BITCODE=NO for iOS targets
in your client app.
Through CocoaPods
This section describes how to install and use the iOS library with CocoaPods.
Prerequisites
Complete these steps before installing the library:
-
Install the cocoapods-art plugin:
gem install cocoapods-art -
Create a
.netrcfile in your home directory with your JFrog credentials. Note that the password is the API key.machine firstlight.jfrog.io
login <USERNAME>
password <PASSWORD> -
Add an Artifactory repository to your local machine:
pod repo-art add fl-ios-sdk-local "https://firstlight.jfrog.io/artifactory/api/pods/fl-ios-sdk-local" -
Add the following snippet to the top of your Podfile:
plugin 'cocoapods-art', :sources => [
'fl-ios-sdk-local'
]
pod 'Firstlight/FLFoundation'
pod 'Firstlight/FLPlayerInterface'
pod 'Firstlight/FLPlatformCore'
pod 'Firstlight/FLContentAuthorizer'
pod 'Firstlight/FLPlayer'
pod 'Firstlight/FLPlatformPlayer'
Resolve dependencies
Run the following command to install dependencies:
pod install
Synchronize the cocoapods-art plugin's repositories with Artifactory
The cocoapods-art plugin doesn't automatically update its index when you run
client commands such as pod install. To keep your plugin's index
synchronized with your CocoaPods repository, run the following command:
pod repo-art update fl-ios-sdk-local
You can consume the latest library version only after updating the index.
Additional dependencies (as required)
Include the following dependencies in your Podfile as required for your customized solution.
- Yospace SSAI player
pod 'Firstlight/FLAdvertisingYospace'
- GoogleIMA CSAI/SSAI player
pod 'Firstlight/FLAdvertisingGoogleIMA'
- Bookmark integration
pod 'Firstlight/FLBookmarks'
- Heartbeat integration
pod 'Firstlight/FLHeartbeat'
- StreamConcurrency integration
pod 'Firstlight/FLStreamConcurrency
- Favorites integration
pod 'Firstlight/FLFavorites'
- AdvertisingGooglePAL
pod 'Firstlight/FLAdvertisingGooglePAL'
- Analytics integration
pod 'Firstlight/FLAnalytics'
- StreamTimeline integration
pod 'Firstlight/FLStreamTimeline'
Add dependencies to debug the framework
To debug the framework, complete the following steps:
-
Add an Artifactory repository to your local machine:
pod repo-art add fl-ios-sdk-debug-local "https://firstlight.jfrog.io/artifactory/api/pods/fl-ios-sdk-debug-local" -
Add the following snippet to the top of your Podfile:
plugin 'cocoapods-art', :sources => [
'fl-ios-sdk-debug-local'
]
pod 'Firstlight_debug/FLFoundation'
pod 'Firstlight_debug/FLPlayerInterface'
pod 'Firstlight_debug/FLPlatformCore'
pod 'Firstlight_debug/FLContentAuthorizer'
pod 'Firstlight_debug/FLPlayer'
pod 'Firstlight_debug/FLPlatformPlayer'
You can add additional dependencies to the Podfile in the same way.