diff --git a/Repro.embeddedframework/Repro.framework/Headers/RPREventProperties.h b/Repro.embeddedframework/Repro.framework/Headers/RPREventProperties.h new file mode 100644 index 0000000..e688853 --- /dev/null +++ b/Repro.embeddedframework/Repro.framework/Headers/RPREventProperties.h @@ -0,0 +1,90 @@ +// +// Repro iOS SDK +// +// Copyright (c) 2014 Repro Inc. All rights reserved. +// + +@interface RPRViewContentProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentName; +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRSearchProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite, copy) NSString *contentID; +@property (nonatomic, readwrite, copy) NSString *searchString; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRAddToCartProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentName; +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRAddToWishlistProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentName; +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite, copy) NSString *contentID; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRInitiateCheckoutProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentName; +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite, copy) NSString *contentID; +@property (nonatomic, readwrite) NSInteger numItems; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRAddPaymentInfoProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite, copy) NSString *contentID; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRPurchaseProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentName; +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite) NSInteger numItems; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRShareProperties : NSObject +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite, copy) NSString *contentID; +@property (nonatomic, readwrite, copy) NSString *contentName; +@property (nonatomic, readwrite, copy) NSString *serviceName; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRLeadProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentName; +@property (nonatomic, readwrite, copy) NSString *contentCategory; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end + +@interface RPRCompleteRegistrationProperties : NSObject +@property (nonatomic, readwrite) double value; +@property (nonatomic, readwrite, copy) NSString *currency; +@property (nonatomic, readwrite, copy) NSString *contentName; +@property (nonatomic, readwrite, copy) NSString *status; +@property (nonatomic, readwrite, copy) NSDictionary *extras; +@end diff --git a/Repro.embeddedframework/Repro.framework/Headers/Repro.h b/Repro.embeddedframework/Repro.framework/Headers/Repro.h index 5ce096c..dc198fb 100644 --- a/Repro.embeddedframework/Repro.framework/Headers/Repro.h +++ b/Repro.embeddedframework/Repro.framework/Headers/Repro.h @@ -1,12 +1,11 @@ // -// Repro.h -// Repro +// Repro iOS SDK // -// Created by Masahiro Hayashi on 9/17/14. // Copyright (c) 2014 Repro Inc. All rights reserved. // #import +#import "RPREventProperties.h" //! Project version number for Repro. FOUNDATION_EXPORT double ReproVersionNumber; @@ -40,6 +39,18 @@ typedef NS_ENUM(NSInteger, RPRLogLevel) { + (void)track:(NSString*)name properties:(NSDictionary*)properties; + (void)startWebViewTracking:(id)delegate; +// Standard event tracking ++ (void)trackViewContent:(NSString *)contentID properties:(RPRViewContentProperties *)properties; ++ (void)trackSearch:(RPRSearchProperties *)properties; ++ (void)trackAddToCart:(NSString *)contentID properties:(RPRAddToCartProperties *)properties; ++ (void)trackAddToWishlist:(RPRAddToWishlistProperties *)properties; ++ (void)trackInitiateCheckout:(RPRInitiateCheckoutProperties *)properties; ++ (void)trackAddPaymentInfo:(RPRAddPaymentInfoProperties *)properties; ++ (void)trackPurchase:(NSString *)contentID properties:(RPRPurchaseProperties *)properties; ++ (void)trackShare:(RPRShareProperties *)properties; ++ (void)trackCompleteRegistration:(RPRCompleteRegistrationProperties *)properties; ++ (void)trackLead:(RPRLeadProperties *)properties; + // Recording + (void)startRecording; + (void)stopRecording; diff --git a/Repro.embeddedframework/Repro.framework/Info.plist b/Repro.embeddedframework/Repro.framework/Info.plist index 061b5c7..99ecc1d 100644 Binary files a/Repro.embeddedframework/Repro.framework/Info.plist and b/Repro.embeddedframework/Repro.framework/Info.plist differ diff --git a/Repro.embeddedframework/Repro.framework/Repro b/Repro.embeddedframework/Repro.framework/Repro index 09c3bc6..084cb1e 100644 Binary files a/Repro.embeddedframework/Repro.framework/Repro and b/Repro.embeddedframework/Repro.framework/Repro differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/Info.plist b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/Info.plist index 2f62338..9061724 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/Info.plist and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/Info.plist differ diff --git a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist index 2f62338..9061724 100644 Binary files a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist and b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist differ