diff --git a/Example/ReproExample/ReproExample/AppDelegate.m b/Example/ReproExample/ReproExample/AppDelegate.m index 9b6ecb2..a1e2063 100644 --- a/Example/ReproExample/ReproExample/AppDelegate.m +++ b/Example/ReproExample/ReproExample/AppDelegate.m @@ -23,8 +23,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( [Repro setup:@"YOUR_APP_TOKEN"]; [Repro setUserID:@"USER_ID"]; - [Repro enableCrashReporting]; - [Repro startRecording]; return YES; } diff --git a/Repro.embeddedframework/Repro.framework/Headers/RPRUserProfileGender.h b/Repro.embeddedframework/Repro.framework/Headers/RPRUserProfileGender.h index 4aa79f6..afa798b 100644 --- a/Repro.embeddedframework/Repro.framework/Headers/RPRUserProfileGender.h +++ b/Repro.embeddedframework/Repro.framework/Headers/RPRUserProfileGender.h @@ -5,7 +5,8 @@ // typedef NS_ENUM(NSInteger, RPRUserProfileGender) { - RPRUserProfileGenderOther = 0, - RPRUserProfileGenderMale, - RPRUserProfileGenderFemale + RPRUserProfileGenderOther NS_SWIFT_NAME(other) = 0, + RPRUserProfileGenderMale NS_SWIFT_NAME(male), + RPRUserProfileGenderFemale NS_SWIFT_NAME(female) }; + diff --git a/Repro.embeddedframework/Repro.framework/Headers/Repro.h b/Repro.embeddedframework/Repro.framework/Headers/Repro.h index a869f5c..d1ef0e6 100644 --- a/Repro.embeddedframework/Repro.framework/Headers/Repro.h +++ b/Repro.embeddedframework/Repro.framework/Headers/Repro.h @@ -15,78 +15,113 @@ FOUNDATION_EXPORT double ReproVersionNumber; FOUNDATION_EXPORT const unsigned char ReproVersionString[]; typedef NS_ENUM(NSInteger, RPRLogLevel) { - RPRLogLevelDebug, - RPRLogLevelInfo, - RPRLogLevelWarn, - RPRLogLevelError, - RPRLogLevelNone + RPRLogLevelDebug NS_SWIFT_NAME(debug), + RPRLogLevelInfo NS_SWIFT_NAME(info), + RPRLogLevelWarn NS_SWIFT_NAME(warn), + RPRLogLevelError NS_SWIFT_NAME(error), + RPRLogLevelNone NS_SWIFT_NAME(none) }; @interface Repro : NSObject // Session (Initialization) -+ (void)setup:(NSString *)token; ++ (void)setup:(nonnull NSString *)token +NS_SWIFT_NAME(setup(token:)); + // OptIn / OptOut -+ (void)optIn:(BOOL)endUserOptedIn; ++ (void)optIn:(BOOL)endUserOptedIn +NS_SWIFT_NAME(optIn(endUserOptedIn:)); + // User profile -+ (void)setUserID:(NSString *)userID; -+ (NSString *)getUserID; -+ (NSString *)getDeviceID; -+ (void)setStringUserProfile:(NSString*)value forKey:(NSString*)key; -+ (void)setIntUserProfile:(NSInteger)value forKey:(NSString*)key; -+ (void)setDoubleUserProfile:(double)value forKey:(NSString*)key; -+ (void)setDateUserProfile:(NSDate*)value forKey:(NSString*)key; -+ (void)setUserGender:(RPRUserProfileGender)value; -+ (void)setUserEmailAddress:(NSString*)value; ++ (void)setUserID:(nonnull NSString *)userID +NS_SWIFT_NAME(set(userID:)); + ++ (nonnull NSString *)getUserID +NS_SWIFT_NAME(userID()); + ++ (nullable NSString *)getDeviceID +NS_SWIFT_NAME(deviceID()); + ++ (void)setStringUserProfile:(nonnull NSString *)value forKey:(nonnull NSString *)key +NS_SWIFT_NAME(setUserProfile(stringValue:forKey:)); + ++ (void)setIntUserProfile:(NSInteger)value forKey:(nonnull NSString *)key +NS_SWIFT_NAME(setUserProfile(integerValue:forKey:)); + ++ (void)setDoubleUserProfile:(double)value forKey:(nonnull NSString *)key +NS_SWIFT_NAME(setUserProfile(doubleValue:forKey:)); + ++ (void)setDateUserProfile:(nonnull NSDate *)value forKey:(nonnull NSString *)key +NS_SWIFT_NAME(setUserProfile(dateValue:forKey:)); + ++ (void)setUserGender:(RPRUserProfileGender)value +NS_SWIFT_NAME(setUserProfile(gender:)); + ++ (void)setUserEmailAddress:(nonnull NSString *)value +NS_SWIFT_NAME(setUserProfile(emailAddress:)); + // Event tracking -+ (void)track:(NSString*)name properties:(NSDictionary*)properties; -+ (void)startWebViewTracking:(id)delegate; ++ (void)track:(nonnull NSString *)name properties:(nullable NSDictionary *)properties +NS_SWIFT_NAME(track(event:properties:)); + ++ (void)startWebViewTracking:(nonnull id)delegate +NS_SWIFT_NAME(startWebViewTracking(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 value:(double)value currency:(NSString*)currency properties:(RPRPurchaseProperties *)properties; -+ (void)trackShare:(RPRShareProperties *)properties; -+ (void)trackCompleteRegistration:(RPRCompleteRegistrationProperties *)properties; -+ (void)trackLead:(RPRLeadProperties *)properties; - -// Recording -+ (void)forceCaptureOnMainThread; -+ (void)startRecording; -+ (void)stopRecording; -+ (void)pauseRecording; -+ (void)resumeRecording; -+ (void)enableRecordingWhileViewAnimations; -+ (void)disableRecordingWhileViewAnimations; - -// Masking -+ (void)mask:(UIView *)view; -+ (void)unmask:(UIView *)view; -+ (void)maskWithRect:(CGRect)rect key:(NSString*)key; -+ (void)unmaskForKey:(NSString*)key; - -// Crash reporting -+ (void)enableCrashReporting __attribute__ ((deprecated)); ++ (void)trackViewContent:(nonnull NSString *)contentID properties:(nullable RPRViewContentProperties *)properties +NS_SWIFT_NAME(trackViewContentEvent(contentID:properties:)); + ++ (void)trackSearch:(nullable RPRSearchProperties *)properties +NS_SWIFT_NAME(trackSearchEvent(properties:)); + ++ (void)trackAddToCart:(nonnull NSString *)contentID properties:(nullable RPRAddToCartProperties *)properties +NS_SWIFT_NAME(trackAddToCartEvent(contentID:properties:)); + ++ (void)trackAddToWishlist:(nullable RPRAddToWishlistProperties *)properties +NS_SWIFT_NAME(trackAddToWishlistEvent(properties:)); + ++ (void)trackInitiateCheckout:(nullable RPRInitiateCheckoutProperties *)properties +NS_SWIFT_NAME(trackInitiateCheckoutEvent(properties:)); + ++ (void)trackAddPaymentInfo:(nullable RPRAddPaymentInfoProperties *)properties +NS_SWIFT_NAME(trackAddPaymentInfoEvent(properties:)); + ++ (void)trackPurchase:(nonnull NSString *)contentID value:(double)value currency:(nonnull NSString *)currency properties:(nullable RPRPurchaseProperties *)properties +NS_SWIFT_NAME(trackPurchaseEvent(contentID:value:currency:properties:)); + ++ (void)trackShare:(nullable RPRShareProperties *)properties +NS_SWIFT_NAME(trackShareEvent(properties:)); + ++ (void)trackCompleteRegistration:(nullable RPRCompleteRegistrationProperties *)properties +NS_SWIFT_NAME(trackCompleteRegistrationEvent(properties:)); + ++ (void)trackLead:(nullable RPRLeadProperties *)properties +NS_SWIFT_NAME(trackLeadEvent(properties:)); + // Log -+ (void)setLogLevel:(RPRLogLevel)level; ++ (void)setLogLevel:(RPRLogLevel)level +NS_SWIFT_NAME(set(logLevel:)); + // Push Notification -+ (void)setPushDeviceToken:(NSData *)pushDeviceToken; -+ (void)setPushDeviceTokenString:(NSString *)pushDeviceToken; ++ (void)setPushDeviceToken:(nonnull NSData *)pushDeviceToken +NS_SWIFT_NAME(setPushDeviceToken(data:)); + ++ (void)setPushDeviceTokenString:(nonnull NSString *)pushDeviceToken +NS_SWIFT_NAME(setPushDeviceToken(string:)); + // In App Message -+ (void)disableInAppMessageOnActive; -+ (void)showInAppMessage; ++ (void)disableInAppMessageOnActive +NS_SWIFT_NAME(disableInAppMessageOnActive()); + ++ (void)showInAppMessage +NS_SWIFT_NAME(showInAppMessage()); -// Integrations -+ (void)integrateRtoaster:(NSString *)accountID; @end diff --git a/Repro.embeddedframework/Repro.framework/Info.plist b/Repro.embeddedframework/Repro.framework/Info.plist index 3bfb9fe..2e1e969 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 796f122..d9f3e75 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 8484e07..d6b35ed 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 8484e07..d6b35ed 100644 Binary files a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist and b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist differ