Skip to content

Commit

Permalink
Updated 2.1.9 to iOS SDK 1.9.1 and Android SDK 1.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysharm committed Apr 11, 2017
1 parent 73f8850 commit 8796d78
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
Binary file modified Plugins/Android/testfairy-sdk.jar
Binary file not shown.
31 changes: 27 additions & 4 deletions Plugins/iOS/TestFairy.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define TF_DEPRECATED(x) __attribute__ ((deprecated(x)))

@interface TestFairy: NSObject

/**
Expand Down Expand Up @@ -93,7 +95,7 @@
*
* @param correlationId Id for the current session
*/
+ (void)setCorrelationId:(NSString *)correlationId;
+ (void)setCorrelationId:(NSString *)correlationId TF_DEPRECATED("Please refer to setUser:");

/**
* Sets a correlation identifier for this session. This value can
Expand All @@ -103,7 +105,7 @@
*
* @param correlationId Id for the current session
*/
+ (void)identify:(NSString *)correlationId;
+ (void)identify:(NSString *)correlationId TF_DEPRECATED("Please refer to setAttribute: and setUser:");

/**
* Sets a correlation identifier for this session. This value can
Expand All @@ -114,7 +116,7 @@
* @param correlationId Id for the current session
* @param traits Attributes and custom attributes to be associated with this session
*/
+ (void)identify:(NSString *)correlationId traits:(NSDictionary *)traits;
+ (void)identify:(NSString *)correlationId traits:(NSDictionary *)traits TF_DEPRECATED("Please refer to setAttribute:");

/**
* Pauses the current session. This method stops recoding of
Expand Down Expand Up @@ -163,6 +165,27 @@
* as well, if started.
*/
+ (void)stop;

/**
* Records a session level attribute which can be looked up via web dashboard.
*
* @param name The name of the attribute. Cannot be nil.
* @param value The value associated with the attribute. Cannot be nil.
* @return YES if successfully set attribute value, NO if failed with error in log.
*
* @note The SDK limits you to storing 64 named attributes. Adding more than 64 will fail and return NO.
*/
+ (BOOL)setAttribute:(NSString *)key withValue:(NSString *)value;

/**
* Records a user identified as an attribute. We recommend passing values such as
* email, phone number, or user id that your app may use.
*
* @param userId The identifying user. Cannot be nil.
*
*/
+ (void)setUserId:(NSString *)userId;

@end

#if __cplusplus
Expand Down Expand Up @@ -203,4 +226,4 @@ extern NSString *const TestFairyDidShakeDevice;
extern NSString *const TestFairyWillProvideFeedback;
extern NSString *const TestFairyDidCancelFeedback;
extern NSString *const TestFairyDidSendFeedback;

extern NSString *const TestFairyDidSendFeedback;
Binary file modified Plugins/iOS/libTestFairy.a
Binary file not shown.

0 comments on commit 8796d78

Please sign in to comment.