RavingFansSDK
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
RavingFansSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'RavingFansSDK'
Changes
- Adjusted to Swift 4.
- Class name changed from
FTSAnalytics
toRFAnalytics
. - Endpoint upgraded to HTTPS, it is no longer required to add an
NSAppTransportSecurity
exemption. - Code is now open source under MIT license, feel free to fork and PR.
- Published to Cocoapods, integration is now easy.
Integration
- Import RavingFans™ module to your
AppDelegate
class -
import RavingFansSDK // swift
@import RavingFansSDK // objc
- Upon
applicationDidBecomeActive:
, report that session has started:
RavingFans.sessionStarted("yourAppKey") // swift
[RavingFans sessionStartedWithAppKey:@"yourAppKey"]; // objc
- On
applicationWillResignActive:
, report that session has ended:
RavingFans.sessionEnded() // swift
[RavingFans sessionEnded]; // objc
That's it.
License
RavingFansSDK is available under the MIT license. See the LICENSE file for more info.