Skip to content

Commit

Permalink
release: 1.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Repro Bot committed Dec 11, 2015
1 parent b822d0b commit e47716c
Show file tree
Hide file tree
Showing 40 changed files with 48 additions and 31 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 1 addition & 4 deletions Repro.embeddedframework/Repro.framework/Headers/Repro.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//

#import <UIKit/UIKit.h>
#import "RPRUser.h"

//! Project version number for Repro.
FOUNDATION_EXPORT double ReproVersionNumber;
Expand Down Expand Up @@ -52,9 +51,6 @@ typedef NS_ENUM(NSInteger, RPRLogLevel) {
// Crash reporting
+ (void)enableCrashReporting;

// Usability Testing
+ (void)enableUsabilityTesting;

// Log
+ (void)setLogLevel:(RPRLogLevel)level;

Expand All @@ -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
Binary file modified Repro.embeddedframework/Repro.framework/Info.plist
Binary file not shown.
Binary file modified Repro.embeddedframework/Repro.framework/Repro
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
32 changes: 16 additions & 16 deletions cpp/ReproCpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,47 @@
#ifndef __REPRO_CPP_H__
#define __REPRO_CPP_H__

#include <string>
#include <map>

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<std::string, std::string> &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

26 changes: 15 additions & 11 deletions cpp/ReproCpp.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string, std::string> &profile) {
std::map<std::string, std::string>::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];
}
Expand All @@ -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];
Expand Down

0 comments on commit e47716c

Please sign in to comment.