summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xClasses/Cart_CollectAppDelegate.m6
-rw-r--r--TestFlight.h88
-rw-r--r--libTestFlight.abin2364564 -> 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 @@
46- (void) applicationDidFinishLaunching:(UIApplication*)application 46- (void) applicationDidFinishLaunching:(UIApplication*)application
47{ 47{
48 // REMOVE THIS LINE FOR RELEASE BUILDS 48 // REMOVE THIS LINE FOR RELEASE BUILDS
49 [TestFlight takeOff:@"66a3925c85c93e7628c14d167ff6c1b7_MjM4MTEyMDExLTA4LTE3IDEzOjEyOjQ4Ljg2NDE2OQ"]; 49#define TESTING 1
50#ifdef TESTING
51 [TestFlight takeOff:@"561e1293-c250-48c8-ae8a-6fa5e906f934"];
52 [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
53#endif
50 54
51 [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; 55 [[UIApplication sharedApplication] setIdleTimerDisabled:YES];
52 56
diff --git a/TestFlight.h b/TestFlight.h index d2efd60..1c464c3 100644 --- a/TestFlight.h +++ b/TestFlight.h
@@ -2,42 +2,104 @@
2// TestFlight.h 2// TestFlight.h
3// libTestFlight 3// libTestFlight
4// 4//
5// Created by Colin Humber on 8/25/10. 5// Created by Jonathan Janzen on 06/11/11.
6// Copyright 2010 23 Divide Apps. All rights reserved. 6// Copyright 2011 TestFlight. All rights reserved.
7 7
8#import <Foundation/Foundation.h> 8#import <Foundation/Foundation.h>
9#define TESTFLIGHT_SDK_VERSION @"1.2"
10#undef TFLog
9 11
12#if __cplusplus
13extern "C" {
14#endif
15 void TFLog(NSString *format, ...);
16 void TFLogv(NSString *format, va_list arg_list);
17#if __cplusplus
18}
19#endif
20
21/**
22 * TestFlight object
23 * All methods are class level
24 */
10@interface TestFlight : NSObject { 25@interface TestFlight : NSObject {
11 26
12} 27}
13 28
14/** 29/**
15 Add custom environment information 30 * Add custom environment information
16 If you want to track a user name from your application you can add it here 31 * If you want to track custom information such as a user name from your application you can add it here
32 *
33 * @param information A string containing the environment you are storing
34 * @param key The key to store the information with
17 */ 35 */
18+ (void)addCustomEnvironmentInformation:(NSString *)information forKey:(NSString*)key; 36+ (void)addCustomEnvironmentInformation:(NSString *)information forKey:(NSString*)key;
19 37
38
20/** 39/**
21 Starts a TestFlight session 40 * Starts a TestFlight session using the Application Token for this Application
41 *
42 * @param applicationToken Will be the application token for the current application.
43 * The token for this application can be retrieved by going to https://testflightapp.com/dashboard/applications/
44 * selecting this application from the list then selecting SDK.
22 */ 45 */
23+ (void)takeOff:(NSString *)teamToken; 46
47+ (void)takeOff:(NSString *)applicationToken;
24 48
25/** 49/**
26 Sets custom options 50 * Sets custom options
27 Option Accepted Values Description 51 *
28 reinstallCrashHandlers [NSNumber numberWithBool:YES] Reinstalls crash handlers, to be used if a third party 52 * @param options NSDictionary containing the options you want to set available options are described below
29 library installs crash handlers overtop of the TestFlight Crash Handlers 53 *
54 * Option Accepted Values Description
55 * reinstallCrashHandlers [ NSNumber numberWithBool:YES ] Reinstalls crash handlers, to be used if a third party
56 * library installs crash handlers overtop of the TestFlight Crash Handlers
57 * logToConsole [ NSNumber numberWithBool:YES ] YES - default, sends log statements to Apple System Log and TestFlight log
58 * NO - sends log statements to TestFlight log only
59 * logToSTDERR [ NSNumber numberWithBool:YES ] YES - default, sends log statements to STDERR when debugger is attached
60 * NO - sends log statements to TestFlight log only
61 * sendLogOnlyOnCrash [ NSNumber numberWithBool:YES ] NO - default, sends logs to TestFlight at the end of every session
62 * YES - sends logs statements to TestFlight only if there was a crash
63 * attachBacktraceToFeedback [ NSNumber numberWithBool:YES ] NO - default, feedback is sent exactly as the user enters it
64 * YES - attaches the current backtrace, with symbols, to the feedback.
65 * disableInAppUpdates [ NSNumber numberWithBool:YES ] NO - default, in application updates are allowed
66 * YES - the in application update screen will not be displayed
30 */ 67 */
31+ (void)setOptions:(NSDictionary*)options; 68+ (void)setOptions:(NSDictionary*)options;
32 69
33/** 70/**
34 Track when a user has passed a checkpoint after the flight has taken off. Eg. passed level 1, posted high score 71 * Track when a user has passed a checkpoint after the flight has taken off. Eg. passed level 1, posted high score
72 *
73 * @param checkpointName The name of the checkpoint, this should be a static string
35 */ 74 */
36+ (void)passCheckpoint:(NSString *)checkpointName; 75+ (void)passCheckpoint:(NSString *)checkpointName;
37 76
38/** 77/**
39 Opens a feeback window that is not attached to a checkpoint 78 * Opens a feedback window that is not attached to a checkpoint
40 */ 79 */
41+ (void)openFeedbackView; 80+ (void)openFeedbackView;
42 81
82/**
83 * Submits custom feedback to the site. Sends the data in feedback to the site. This is to be used as the method to submit
84 * feedback from custom feedback forms.
85 *
86 * @param feedback Your users feedback, method does nothing if feedback is nil
87 */
88+ (void)submitFeedback:(NSString*)feedback;
89
90/**
91 * Sets the Device Identifier. (* Must be called before takeOff: *)
92 * The SDK no longer obtains the device unique identifier. This method should only be used during testing so that you can
93 * identify a testers test data with them. If you do not provide the identifier you will still see all session data, with checkpoints
94 * and logs, but the data will be anonymized.
95 * It is recommended that you only use this method during testing. We also recommended that you wrap this method with a pre-processor
96 * directive that is only active for non-app store builds.
97 * #ifndef RELEASE
98 * [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
99 * #endif
100 *
101 * @param deviceIdentifer The current devices device identifier
102 */
103+ (void)setDeviceIdentifier:(NSString*)deviceIdentifer;
104
43@end 105@end
diff --git a/libTestFlight.a b/libTestFlight.a index ee82b4e..51d1b17 100644 --- a/libTestFlight.a +++ b/libTestFlight.a
Binary files differ