From 9ca13b1facfbdabb5cc383899e72b3cfc95747b2 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 3 Jan 2013 17:08:26 -0500 Subject: Upgraded TestFlight SDK to v1.2 --- Classes/Cart_CollectAppDelegate.m | 6 ++- TestFlight.h | 88 ++++++++++++++++++++++++++++++++------ libTestFlight.a | Bin 2364564 -> 3950664 bytes 3 files changed, 80 insertions(+), 14 deletions(-) diff --git a/Classes/Cart_CollectAppDelegate.m b/Classes/Cart_CollectAppDelegate.m index 5444a12..3dbb3eb 100755 --- a/Classes/Cart_CollectAppDelegate.m +++ b/Classes/Cart_CollectAppDelegate.m @@ -46,7 +46,11 @@ - (void) applicationDidFinishLaunching:(UIApplication*)application { // REMOVE THIS LINE FOR RELEASE BUILDS - [TestFlight takeOff:@"66a3925c85c93e7628c14d167ff6c1b7_MjM4MTEyMDExLTA4LTE3IDEzOjEyOjQ4Ljg2NDE2OQ"]; +#define TESTING 1 +#ifdef TESTING + [TestFlight takeOff:@"561e1293-c250-48c8-ae8a-6fa5e906f934"]; + [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]]; +#endif [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; diff --git a/TestFlight.h b/TestFlight.h index d2efd60..1c464c3 100644 --- a/TestFlight.h +++ b/TestFlight.h @@ -2,42 +2,104 @@ // TestFlight.h // libTestFlight // -// Created by Colin Humber on 8/25/10. -// Copyright 2010 23 Divide Apps. All rights reserved. +// Created by Jonathan Janzen on 06/11/11. +// Copyright 2011 TestFlight. All rights reserved. #import +#define TESTFLIGHT_SDK_VERSION @"1.2" +#undef TFLog +#if __cplusplus +extern "C" { +#endif + void TFLog(NSString *format, ...); + void TFLogv(NSString *format, va_list arg_list); +#if __cplusplus +} +#endif + +/** + * TestFlight object + * All methods are class level + */ @interface TestFlight : NSObject { - + } /** - Add custom environment information - If you want to track a user name from your application you can add it here + * Add custom environment information + * If you want to track custom information such as a user name from your application you can add it here + * + * @param information A string containing the environment you are storing + * @param key The key to store the information with */ + (void)addCustomEnvironmentInformation:(NSString *)information forKey:(NSString*)key; + /** - Starts a TestFlight session + * Starts a TestFlight session using the Application Token for this Application + * + * @param applicationToken Will be the application token for the current application. + * The token for this application can be retrieved by going to https://testflightapp.com/dashboard/applications/ + * selecting this application from the list then selecting SDK. */ -+ (void)takeOff:(NSString *)teamToken; + ++ (void)takeOff:(NSString *)applicationToken; /** - Sets custom options - Option Accepted Values Description - reinstallCrashHandlers [NSNumber numberWithBool:YES] Reinstalls crash handlers, to be used if a third party - library installs crash handlers overtop of the TestFlight Crash Handlers + * Sets custom options + * + * @param options NSDictionary containing the options you want to set available options are described below + * + * Option Accepted Values Description + * reinstallCrashHandlers [ NSNumber numberWithBool:YES ] Reinstalls crash handlers, to be used if a third party + * library installs crash handlers overtop of the TestFlight Crash Handlers + * logToConsole [ NSNumber numberWithBool:YES ] YES - default, sends log statements to Apple System Log and TestFlight log + * NO - sends log statements to TestFlight log only + * logToSTDERR [ NSNumber numberWithBool:YES ] YES - default, sends log statements to STDERR when debugger is attached + * NO - sends log statements to TestFlight log only + * sendLogOnlyOnCrash [ NSNumber numberWithBool:YES ] NO - default, sends logs to TestFlight at the end of every session + * YES - sends logs statements to TestFlight only if there was a crash + * attachBacktraceToFeedback [ NSNumber numberWithBool:YES ] NO - default, feedback is sent exactly as the user enters it + * YES - attaches the current backtrace, with symbols, to the feedback. + * disableInAppUpdates [ NSNumber numberWithBool:YES ] NO - default, in application updates are allowed + * YES - the in application update screen will not be displayed */ + (void)setOptions:(NSDictionary*)options; /** - Track when a user has passed a checkpoint after the flight has taken off. Eg. passed level 1, posted high score + * Track when a user has passed a checkpoint after the flight has taken off. Eg. passed level 1, posted high score + * + * @param checkpointName The name of the checkpoint, this should be a static string */ + (void)passCheckpoint:(NSString *)checkpointName; /** - Opens a feeback window that is not attached to a checkpoint + * Opens a feedback window that is not attached to a checkpoint */ + (void)openFeedbackView; +/** + * Submits custom feedback to the site. Sends the data in feedback to the site. This is to be used as the method to submit + * feedback from custom feedback forms. + * + * @param feedback Your users feedback, method does nothing if feedback is nil + */ ++ (void)submitFeedback:(NSString*)feedback; + +/** + * Sets the Device Identifier. (* Must be called before takeOff: *) + * The SDK no longer obtains the device unique identifier. This method should only be used during testing so that you can + * identify a testers test data with them. If you do not provide the identifier you will still see all session data, with checkpoints + * and logs, but the data will be anonymized. + * It is recommended that you only use this method during testing. We also recommended that you wrap this method with a pre-processor + * directive that is only active for non-app store builds. + * #ifndef RELEASE + * [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]]; + * #endif + * + * @param deviceIdentifer The current devices device identifier + */ ++ (void)setDeviceIdentifier:(NSString*)deviceIdentifer; + @end diff --git a/libTestFlight.a b/libTestFlight.a index ee82b4e..51d1b17 100644 Binary files a/libTestFlight.a and b/libTestFlight.a differ -- cgit 1.4.1