TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2016 |
SPMSupports SPM | ✗ |
Maintained by Josh Minzner.
Add RCAnalytics as a dependency
target 'MyAppTargetHere' do
use_frameworks!
pod "RCAnalytics", "~> 0.2.0"
end
Install Dependencies
$> pod install
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
Reelcontent, Inc., [email protected]
RCAnalytics is available under the MIT license. See the LICENSE file for more info.