diff --git a/.travis.yml b/.travis.yml index 2272602..775fa0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,8 @@ install: - appc ti config android.sdkPath $ANDROID_HOME - appc ti config android.ndkPath ${PWD}/android-ndk-r17c script: -- ANDROID_SDK_VERSION=1.11.0 -- IOS_VERSION=1.24.3 +- ANDROID_SDK_VERSION=1.11.34 +- IOS_VERSION=1.26.9 - TITANIUM_VERSION=${TRAVIS_TAG:-2.26.0} - echo "Creating ti.testfairy version ${TITANIUM_VERSION}" - 'sed -i "" "s/^version:.*/version: ${TITANIUM_VERSION}/g" android/manifest' diff --git a/android/lib/testfairy-sdk.jar b/android/lib/testfairy-sdk.jar index 8581f8b..bc21d28 100644 Binary files a/android/lib/testfairy-sdk.jar and b/android/lib/testfairy-sdk.jar differ diff --git a/android/manifest b/android/manifest index 1f225cf..9654d53 100644 --- a/android/manifest +++ b/android/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version:2.30.0 +version:2.38.0 apiversion: 4 architectures: arm64-v8a armeabi-v7a x86 description: This is the official TestFairy Titanium Module for Android, providing support for the TestFairy SDK. diff --git a/ios/TestFairySDK/TestFairy.h b/ios/TestFairySDK/TestFairy.h index 038d72a..0ee7dc7 100644 --- a/ios/TestFairySDK/TestFairy.h +++ b/ios/TestFairySDK/TestFairy.h @@ -223,6 +223,16 @@ */ + (void)addEvent:(NSString *)name; +/** + * Adds a new user interaction to the timeline. Can be used by non-native UI frameworks to report + * user interactions such as clicks, long-clicks and double clicks. + * + * @param kind Kind of interaction to add [button pressed = 1, button long pressed = 8, button double tapped = 9] + * @param label Text content of the clicked view + * @param info (Optional) Extra meta data, accepted keys are "accessibilityLabel", "accessibilityIdentifier", "accessibilityHint" and "className" + */ ++ (void)addUserInteraction:(int)kind label:(NSString *)label info:(NSDictionary *)info; + /** * Sets a correlation identifier for this session. This value can * be looked up via web dashboard. For example, setting correlation @@ -279,11 +289,15 @@ + (NSString *)sessionUrl; /** - * Takes a screenshot. - * + * Takes a screenshot and sends it to TestFairy */ + (void)takeScreenshot; +/** + * Takes a screenshot. Can return nil. + */ ++ (void)takeScreenshot:(void(^)(UIImage *))callback; + /** * Adds a screenshot to the current moment in session. * Overrides the current screen recording system @@ -392,7 +406,13 @@ * Values for fps must be between 0.1 and 2.0. Value will be rounded to * the nearest frame. */ -+ (void)enableVideo:(NSString *)policy quality:(NSString *)quality framesPerSecond:(float)fps; ++ (void)enableVideo:(NSString *)policy quality:(NSString *)quality framesPerSecond:(float)fps TF_DEPRECATED("Please refer to enableVideo:"); + +/** + * Enables the ability to capture video recording regardless of build settings. + * Valid values for policy include "always" and "wifi" + */ ++ (void)enableVideo:(NSString *)policy; /** * Disables the ability to capture video recording. Must be @@ -446,7 +466,7 @@ * Customize the feedback form * * Accepted dictionary values: @{ - * @"defaultText": , + * @"defaultText": @"Default feedback text", * @"isEmailMandatory": @NO|@YES, * @"isEmailVisible": @NO|@YES * } @@ -500,9 +520,13 @@ + (void)setSessionStateDelegate:(id)delegate; /** - * Call this function to log your network events. + * Log network calls to TestFairy. */ + (void)addNetwork:(NSURLSessionTask *)task error:(NSError *)error; + +/** + * Log network calls to TestFairy + */ + (void)addNetwork:(NSURL *)url method:(NSString *)method code:(int)code @@ -511,6 +535,10 @@ requestSize:(long)requestSize responseSize:(long)responseSize errorMessage:(NSString*)error; + +/** + * Log network calls to TestFairy, include request and response payloads. + */ + (void)addNetwork:(NSURL *)url method:(NSString *)method code:(int)code diff --git a/ios/TestFairySDK/libTestFairy.a b/ios/TestFairySDK/libTestFairy.a index cd5eae6..9343be2 100644 Binary files a/ios/TestFairySDK/libTestFairy.a and b/ios/TestFairySDK/libTestFairy.a differ diff --git a/ios/manifest b/ios/manifest index 0b14009..3107b82 100644 --- a/ios/manifest +++ b/ios/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version:2.30.0 +version:2.38.0 apiversion: 2 architectures: armv7 arm64 i386 x86_64 description: This is the official TestFairy Titanium Module for iOS, providing support for the TestFairy SDK.