diff --git a/LICENSE b/LICENSE index e949792..0111eb5 100644 --- a/LICENSE +++ b/LICENSE @@ -10,9 +10,4 @@ This product includes a part of 'Mixpanel iOS SDK' (https://github.com/mixpanel/ ---------------------------------------------------------------- -This product includes 'AFNetworking' (https://github.com/AFNetworking/AFNetworking), which is released under the following license(s): - MIT - ----------------------------------------------------------------- - All other components of this product are: Copyright (c) 2015 Repro, Inc. All rights reserved. diff --git a/Repro.embeddedframework/Repro.framework/Headers/Repro.h b/Repro.embeddedframework/Repro.framework/Headers/Repro.h index 573b2a8..5ce096c 100644 --- a/Repro.embeddedframework/Repro.framework/Headers/Repro.h +++ b/Repro.embeddedframework/Repro.framework/Headers/Repro.h @@ -32,7 +32,7 @@ typedef NS_ENUM(NSInteger, RPRLogLevel) { + (NSString *)getUserID; + (NSString *)getDeviceID; + (void)setStringUserProfile:(NSString*)value forKey:(NSString*)key; -+ (void)setIntUserProfile:(int)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; diff --git a/Repro.embeddedframework/Repro.framework/Info.plist b/Repro.embeddedframework/Repro.framework/Info.plist index 8113b09..2d92480 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 890c55c..055ef0f 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 60cc501..29e95ad 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 60cc501..29e95ad 100644 Binary files a/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist and b/Repro.embeddedframework/Resources/ReproSDKResources.bundle/Info.plist differ diff --git a/cpp/ReproCpp.h b/cpp/ReproCpp.h deleted file mode 100644 index 381e775..0000000 --- a/cpp/ReproCpp.h +++ /dev/null @@ -1,53 +0,0 @@ -// -// ReproCpp.h -// -// Created by jollyjoester_pro on 10/31/14. -// Copyright (c) 2014 Repro Inc. All rights reserved. -// - -#ifndef __REPRO_CPP_H__ -#define __REPRO_CPP_H__ - -#include -#include -#include - -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 Profile - static void setUserID(const char* userId); - static const char* getUserID(); - static const char* getDeviceID(); - static void setStringUserProfile(const char* key, const char* value); - static void setIntUserProfile(const char* key, int value); - static void setDoubleUserProfile(const char* key, double value); - static void setDateUserProfile(const char* key, std::time_t value); - - // Event Tracking - static void track(const char*eventName); - static void trackWithProperties(const char* eventName, const char* jsonDictionary); - - // In App Message - static void disableInAppMessageOnActive(); - static void showInAppMessage(); -}; - -#endif diff --git a/cpp/ReproCpp.mm b/cpp/ReproCpp.mm deleted file mode 100644 index 6a71909..0000000 --- a/cpp/ReproCpp.mm +++ /dev/null @@ -1,125 +0,0 @@ -// -// ReproCpp.mm -// -// Created by jollyjoester_pro on 10/31/14. -// Copyright (c) 2014 Repro Inc. All rights reserved. -// - -#include "ReproCpp.h" -#import - -static NSString* convertCStringToNSString(const char* string) { - if (string) { - return [NSString stringWithUTF8String:string]; - } else { - return @""; - } -} - -static const char* convertNSStringToCString(NSString* string) { - if (string) { - const char* src = [string UTF8String]; - char* dst = (char*)malloc(strlen(src) + 1); - strcpy(dst, src); - return dst; - } else { - return ""; - } -} - -static NSDictionary* convertCStringJSONToNSDictionary(const char* string) { - if (string) { - NSString* json = convertCStringToNSString(string); - NSData* data = [json dataUsingEncoding:NSUTF8StringEncoding]; - return [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil]; - } else { - return nil; - } -} - -void ReproCpp::setup(const char* token) { - [Repro setup:convertCStringToNSString(token)]; -} - -void ReproCpp::setLogLevel(const char* logLevel) { - if ([convertCStringToNSString(logLevel) isEqualToString:@"Debug"]) { - [Repro setLogLevel:RPRLogLevelDebug]; - } else if ([convertCStringToNSString(logLevel) isEqualToString:@"Info"]) { - [Repro setLogLevel:RPRLogLevelInfo]; - } else if ([convertCStringToNSString(logLevel) isEqualToString:@"Warn"]) { - [Repro setLogLevel:RPRLogLevelWarn]; - } else if ([convertCStringToNSString(logLevel) isEqualToString:@"Error"]) { - [Repro setLogLevel:RPRLogLevelError]; - } else if ([convertCStringToNSString(logLevel) isEqualToString:@"None"]) { - [Repro setLogLevel:RPRLogLevelNone]; - } -} - -void ReproCpp::startRecording() { - [Repro startRecording]; -} - -void ReproCpp::stopRecording() { - [Repro stopRecording]; -} - -void ReproCpp::pauseRecording() { - [Repro pauseRecording]; -} - -void ReproCpp::resumeRecording() { - [Repro resumeRecording]; -} - -void ReproCpp::maskWithRect(float x, float y, float width, float height, const char* key) { - [Repro maskWithRect:CGRectMake(x,y,width,height) key:convertCStringToNSString(key)]; -} - -void ReproCpp::unmaskWithRect(const char* key) { - [Repro unmaskForKey:convertCStringToNSString(key)]; -} - -void ReproCpp::setUserID(const char* userId) { - [Repro setUserID:convertCStringToNSString(userId)]; -} - -const char* ReproCpp::getUserID() { - return convertNSStringToCString([Repro getUserID]); -} - -const char* ReproCpp::getDeviceID() { - return convertNSStringToCString([Repro getDeviceID]); -} - -void ReproCpp::setStringUserProfile(const char* key, const char* value) { - [Repro setStringUserProfile:convertCStringToNSString(value) forKey:convertCStringToNSString(key)]; -} - -void ReproCpp::setIntUserProfile(const char* key, int value) { - [Repro setIntUserProfile:value forKey:convertCStringToNSString(key)]; -} - -void ReproCpp::setDoubleUserProfile(const char* key, double value) { - [Repro setDoubleUserProfile:value forKey:convertCStringToNSString(key)]; -} - -void ReproCpp::setDateUserProfile(const char* key, std::time_t value) { - [Repro setDateUserProfile:[NSDate dateWithTimeIntervalSince1970:value] forKey:convertCStringToNSString(key)]; -} - -void ReproCpp::track(const char* eventName) { - [Repro track:convertCStringToNSString(eventName) properties:nil]; -} - -void ReproCpp::trackWithProperties(const char* eventName, const char* jsonDictionary) { - [Repro track:convertCStringToNSString(eventName) properties:convertCStringJSONToNSDictionary(jsonDictionary)]; -} - -// In App Message -void ReproCpp::disableInAppMessageOnActive() { - [Repro disableInAppMessageOnActive]; -} - -void ReproCpp::showInAppMessage() { - [Repro showInAppMessage]; -}