RCAnalytics 0.2.0

RCAnalytics 0.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jul 2016
SPMSupports SPM

Maintained by Josh Minzner.



  • By
  • Reelcontent, Inc.

RCAnalytics

Installation

Install RCAnalytics

  1. Add RCAnalytics as a dependency

    target 'MyAppTargetHere' do
        use_frameworks!
    
        pod "RCAnalytics", "~> 0.2.0"
    end
  2. Install Dependencies

    $> pod install

Usage

  1. Get your product ID from the Reelcontent Showcase platform
  2. Initialize RCAnalytics when your app launches:

    In Swift:

    import UIKit;
    import RCAnalytics;
    
    @UIApplicationMain
    class AppDelegate: UIResponder, UIApplicationDelegate {
        // called after your app launches
        func application(
            application: UIApplication,
            didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?
        ) -> Bool {
            RCAnalytics.create("your-product-id-here").launch(); // Launch RCAnalytics
            return true;
        }
    }

    In Objective-C:

    #import "AppDelegate.h"
    #import <Foundation/Foundation.h>
    @import RCAnalytics;
    
    @implementation AppDelegate
        // called after your app launches
        -(BOOL)
            application:(UIApplication *)application
            didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
        {
            [[RCAnalytics create:@"your-product-id-here"] launch]; // Launch RCAnalytics
            return YES;
        }
    @end

Author

Reelcontent, Inc., [email protected]

License

RCAnalytics is available under the MIT license. See the LICENSE file for more info.