Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated TestFlight for the 1.0 SDK

Leave TestFlight enabled even in production builds
Send UDID to TestFlight only in DEBUG builds
  • Loading branch information...
commit f5dbab6e7ab8f4a513b06cc132c308cf9ee7465b 1 parent 41c40a6
@thuss thuss authored
View
4 AnalyticsKitTestFlightProvider.m
@@ -14,6 +14,10 @@ @implementation AnalyticsKitTestFlightProvider
-(id<AnalyticsKitProvider>)initWithAPIKey:(NSString *)testFlightKey {
self = [super init];
if (self) {
+ #ifdef DEBUG
+ // Since Apple no longer allows UDID, TestFlight recommends sending it only in DEBUG builds
+ [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
+ #endif
[TestFlight takeOff:testFlightKey];
}
return self;
View
29 providers/TestFlight/TestFlight.h
@@ -6,7 +6,7 @@
// Copyright 2011 TestFlight. All rights reserved.
#import <Foundation/Foundation.h>
-#define TESTFLIGHT_SDK_VERSION @"0.8.2"
+#define TESTFLIGHT_SDK_VERSION @"1.0"
#undef TFLog
#if __cplusplus
@@ -51,7 +51,9 @@ extern "C" {
* 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
- * sendLogOnlyOnCrash [ NSNumber numberWithBool:YES ] NO - default, sends logs to TestFlight at the end of every session
+ * 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
*/
+ (void)setOptions:(NSDictionary*)options;
@@ -68,4 +70,27 @@ extern "C" {
*/
+ (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.
+ * 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 deviceIdentifier The current devices device identifier
+ */
++ (void)setDeviceIdentifier:(NSString*)deviceIdentifer;
+
@end
View
BIN  providers/TestFlight/libTestFlight.a
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.