Skip to content

Commit

Permalink
Updated 2.17.0 to iOS SDK 1.19.0 and Android SDK 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysharm committed Jan 31, 2019
1 parent d77cf4d commit 43b0457
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions ios/TestFairy.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,63 @@

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

@protocol TestFairySessionStateDelegate <NSObject>
@optional
/**
* Callback when a session has successfully started on TestFairy.
*/
- (void)sessionStarted;

/**
* Callback when a session failed to started. Could be because the recording
* is set to off, session limit has reached, request rejected or other reasons.
*/
- (void)sessionFailed;

/**
* Callback when session length has reached. For example, if your session
* is set to maximum of 10 minutes, you will get a callback if such a limit
* was reached. You can start a new session if you wish to do so.
*
* @param secondsFromStartSession
*/
- (void)sessionLengthReached:(float)secondsFromStartSession;

/**
* Callback when session recording stopped. Could be because session length
* reached the limit, stop() was called, app moved to background for too long,
* or similar reason.
*/
- (void)sessionStopped;

/**
* Callback when there is an update available. Either this method is called,
* or noAutoUpdateAvailable() is called.
*
* @param url
*/
- (void)autoUpdateAvailable:(NSString *)url;

/**
* Callback when a user was presented for a request of an auto-update, and
* then clicked "Yes".
*/
- (void)autoUpdateDownloadStarted;

/**
* Callback when a user was displayed with a dialog asking if they would like to upgrade,
* and they clicked "No".
*/
- (void)autoUpdateDismissed;

/**
* Callback when session start was requested and there was no auto update
* available. In this case, the user will not be displayed with a dialog box. Note
* that sessionFailed() could still be called.
*/
- (void)noAutoUpdateAvailable;
@end

@interface TestFairy: NSObject

/**
Expand Down Expand Up @@ -328,6 +385,8 @@
*/
+ (void)getDistributionStatus:(NSString *)appToken callback:(void(^)(NSDictionary<NSString *, NSString *> *, NSError*))callaback;

+ (void)setSessionStateDelegate:(id<TestFairySessionStateDelegate>)delegate;

@end

#if __cplusplus
Expand Down
Binary file modified ios/libTestFairy.a
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-testfairy",
"version": "2.16.1",
"version": "2.17.0",
"description": "TestFairy for React Native",
"author": "Gil Megidish",
"main": "./index.js",
Expand Down

0 comments on commit 43b0457

Please sign in to comment.