diff --git a/CHANGELOG.md b/CHANGELOG.md index 054e24a..1d9cbac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +# 1.4.9 (2015/12/12) + +## Enhancements + +- Supports landscape mode for in-app message +- Enables to use large size image for in-app message +- Adds user profile api for c++ app + +## Bug Fixes + +- Enables to use Japanese texts in CTA of in-app message + +## Deprecated + +- Usability Testing is deprecated + # 1.4.0 (2015/11/30) ## User Profiles diff --git a/Repro.embeddedframework/Repro.framework/Headers/Repro.h b/Repro.embeddedframework/Repro.framework/Headers/Repro.h index 2b3a7c4..23c3f74 100644 --- a/Repro.embeddedframework/Repro.framework/Headers/Repro.h +++ b/Repro.embeddedframework/Repro.framework/Headers/Repro.h @@ -7,7 +7,6 @@ // #import -#import "RPRUser.h" //! Project version number for Repro. FOUNDATION_EXPORT double ReproVersionNumber; @@ -52,9 +51,6 @@ typedef NS_ENUM(NSInteger, RPRLogLevel) { // Crash reporting + (void)enableCrashReporting; -// Usability Testing -+ (void)enableUsabilityTesting; - // Log + (void)setLogLevel:(RPRLogLevel)level; @@ -70,6 +66,7 @@ typedef NS_ENUM(NSInteger, RPRLogLevel) { + (void)integrateRtoaster:(NSString *)accountID; // Deprecated ++ (void)enableUsabilityTesting __attribute__ ((deprecated)); + (void)survey:(NSError**)error __attribute__ ((deprecated)); @end diff --git a/Repro.embeddedframework/Repro.framework/Info.plist b/Repro.embeddedframework/Repro.framework/Info.plist index 6bf57f7..503a82e 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 e801acd..1f1c77d 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 e6ea191..7fa11d4 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/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects-8.0+.nib index fce3bec..7f12e2b 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/runtime.nib index b9502a3..c9c5cc7 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~ipad.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects-8.0+.nib index ca5fa30..6dc45c7 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/runtime.nib index 1154cd2..1a8cfbc 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRButtonCell~iphone.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects-8.0+.nib index f01bb89..c8f433c 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/runtime.nib index c1bfd6e..54de569 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~ipad.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects-8.0+.nib index edbd303..a0133ce 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/runtime.nib index 3f74fa9..eba7866 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRChoiceCell~iphone.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects-8.0+.nib index 783c5bc..72b543d 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/runtime.nib index 5f8c2c5..2f2c8d5 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~ipad.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects-8.0+.nib index 0b9179b..f3f4e40 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/runtime.nib index 534decc..f83d27d 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRListCell~iphone.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/Info.plist b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/Info.plist index 27ca213..907d9bc 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/Info.plist and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/Info.plist differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerLandscape.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerLandscape.nib new file mode 100644 index 0000000..d222245 Binary files /dev/null and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerLandscape.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerPortrait.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerPortrait.nib new file mode 100644 index 0000000..9ea3da2 Binary files /dev/null and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/RPRNotificationViewControllerPortrait.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/oKx-jP-mhN-view-cDr-1k-YIa.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/oKx-jP-mhN-view-cDr-1k-YIa.nib new file mode 100644 index 0000000..6810713 Binary files /dev/null and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/oKx-jP-mhN-view-cDr-1k-YIa.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/puo-Hy-QiQ-view-Wch-Xc-Avw.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/puo-Hy-QiQ-view-Wch-Xc-Avw.nib index d9b0043..bb1a92f 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/puo-Hy-QiQ-view-Wch-Xc-Avw.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRNotification.storyboardc/puo-Hy-QiQ-view-Wch-Xc-Avw.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects-8.0+.nib index 982e60a..d573810 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/runtime.nib index f978e00..93b9411 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~ipad.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects-8.0+.nib index 8b075c2..892d0f0 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/runtime.nib index 3c75fbc..6c1123b 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestGuideViewController~iphone.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects-8.0+.nib index 310ce49..29bc102 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/runtime.nib index 5c57ece..0019a78 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~ipad.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects-8.0+.nib index 72a0317..dee837c 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/runtime.nib index bb00935..f619516 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTestSubmitViewController~iphone.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects-8.0+.nib index 7279694..783d458 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/runtime.nib index 57c0e2e..1fb586c 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~ipad.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects-8.0+.nib index 945725f..5e9edc1 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/runtime.nib index ed1282d..08441c9 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextCell~iphone.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects-8.0+.nib index 20f1cd8..ae883a1 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/runtime.nib index c058b00..eaa30b4 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~ipad.nib/runtime.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects-8.0+.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects-8.0+.nib index e5943fd..6d5a969 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects-8.0+.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/objects-8.0+.nib differ diff --git a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/runtime.nib b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/runtime.nib index 0a8b0cc..15314bc 100644 Binary files a/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/runtime.nib and b/Repro.embeddedframework/Repro.framework/ReproSDKResources.bundle/RPRTextFieldCell~iphone.nib/runtime.nib differ diff --git a/cpp/ReproCpp.h b/cpp/ReproCpp.h index 727f06a..c07fcee 100644 --- a/cpp/ReproCpp.h +++ b/cpp/ReproCpp.h @@ -8,47 +8,47 @@ #ifndef __REPRO_CPP_H__ #define __REPRO_CPP_H__ +#include +#include + +using std::string; +using std::map; + class ReproCpp { - + public: // Setup static void setup(const char* token); - + // Log Level static void setLogLevel(const char* logLevel); - + // Screen Recording static void startRecording(); static void stopRecording(); static void pauseRecording(); static void resumeRecording(); - + // UIView Masking static void maskWithRect(float x, float y, float width, float height, const char* key); static void unmaskWithRect(const char* key); - // User ID + // User Profile static void setUserID(const char* userId); - - // Track Events + static void setUserProfile(const char* key, const char* value); + static void setUserProfile(const std::map &profile); + + // Event Tracking static void track(const char*eventName); static void trackWithProperties(const char* eventName, const char* jsonDictionary); - + // Crash Reporting static void enableCrashReporting(); - - // Survey - static void survey(); - // Usablity Testing - static void enableUsabilityTesting(); - // In App Message static void disableInAppMessageOnActive(); static void showInAppMessage(); - }; #endif - diff --git a/cpp/ReproCpp.mm b/cpp/ReproCpp.mm index 5283e0d..0a6ef62 100644 --- a/cpp/ReproCpp.mm +++ b/cpp/ReproCpp.mm @@ -72,6 +72,21 @@ [Repro setUserID:convertCStringToNSString(userId)]; } +void ReproCpp::setUserProfile(const char* key, const char* value) { + [Repro setUserProfile:convertCStringToNSString(value) forKey:convertCStringToNSString(key)]; +} + +void ReproCpp::setUserProfile(const std::map &profile) { + std::map::const_iterator iter; + NSMutableDictionary *dict = nil; + for (iter = profile.begin(); iter != profile.end(); iter++) { + NSString *key = [NSString stringWithUTF8String:iter->first.c_str()]; + NSString *value = [NSString stringWithUTF8String:iter->second.c_str()]; + dict[key] = value; + } + [Repro setUserProfile:[NSDictionary dictionaryWithDictionary:dict]]; +} + void ReproCpp::track(const char* eventName) { [Repro track:convertCStringToNSString(eventName) properties:nil]; } @@ -84,17 +99,6 @@ [Repro enableCrashReporting]; } -// Survey -void ReproCpp::survey() { - NSError *error = nil; - [Repro survey:&error]; -} - -// Usablity Testing -void ReproCpp::enableUsabilityTesting() { - [Repro enableUsabilityTesting]; -} - // In App Message void ReproCpp::disableInAppMessageOnActive() { [Repro disableInAppMessageOnActive];