removed TestFlight and added Crashlytics
This commit is contained in:
parent
d5b93ee583
commit
473409c49f
24 changed files with 270 additions and 621 deletions
1
Frameworks/Crashlytics.framework/Crashlytics
vendored
Symbolic link
1
Frameworks/Crashlytics.framework/Crashlytics
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
Versions/Current/Crashlytics
|
1
Frameworks/Crashlytics.framework/Headers
vendored
Symbolic link
1
Frameworks/Crashlytics.framework/Headers
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
Versions/Current/Headers
|
1
Frameworks/Crashlytics.framework/Resources
vendored
Symbolic link
1
Frameworks/Crashlytics.framework/Resources
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
Versions/Current/Resources
|
BIN
Frameworks/Crashlytics.framework/Versions/A/Crashlytics
vendored
Normal file
BIN
Frameworks/Crashlytics.framework/Versions/A/Crashlytics
vendored
Normal file
Binary file not shown.
192
Frameworks/Crashlytics.framework/Versions/A/Headers/Crashlytics.h
vendored
Normal file
192
Frameworks/Crashlytics.framework/Versions/A/Headers/Crashlytics.h
vendored
Normal file
|
@ -0,0 +1,192 @@
|
|||
//
|
||||
// Crashlytics.h
|
||||
// Crashlytics
|
||||
//
|
||||
// Copyright 2012 Crashlytics, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/**
|
||||
*
|
||||
* The CLS_LOG macro provides as easy way to gather more information in your log messages that are
|
||||
* sent with your crash data. CLS_LOG prepends your custom log message with the function name and
|
||||
* line number where the macro was used. If your app was built with the DEBUG preprocessor macro
|
||||
* defined CLS_LOG uses the CLSNSLog function which forwards your log message to NSLog and CLSLog.
|
||||
* If the DEBUG preprocessor macro is not defined CLS_LOG uses CLSLog only.
|
||||
*
|
||||
* Example output:
|
||||
* -[AppDelegate login:] line 134 $ login start
|
||||
*
|
||||
* If you would like to change this macro, create a new header file, unset our define and then define
|
||||
* your own version. Make sure this new header file is imported after the Crashlytics header file.
|
||||
*
|
||||
* #undef CLS_LOG
|
||||
* #define CLS_LOG(__FORMAT__, ...) CLSNSLog...
|
||||
*
|
||||
**/
|
||||
#ifdef DEBUG
|
||||
#define CLS_LOG(__FORMAT__, ...) CLSNSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
#else
|
||||
#define CLS_LOG(__FORMAT__, ...) CLSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
/**
|
||||
*
|
||||
* Add logging that will be sent with your crash data. This logging will not show up in the system.log
|
||||
* and will only be visible in your Crashlytics dashboard.
|
||||
*
|
||||
**/
|
||||
OBJC_EXTERN void CLSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
|
||||
|
||||
/**
|
||||
*
|
||||
* Add logging that will be sent with your crash data. This logging will show up in the system.log
|
||||
* and your Crashlytics dashboard. It is not recommended for Release builds.
|
||||
*
|
||||
**/
|
||||
OBJC_EXTERN void CLSNSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
|
||||
|
||||
@protocol CrashlyticsDelegate;
|
||||
|
||||
@interface Crashlytics : NSObject
|
||||
|
||||
@property (nonatomic, readonly, copy) NSString *apiKey;
|
||||
@property (nonatomic, readonly, copy) NSString *version;
|
||||
@property (nonatomic, assign) BOOL debugMode;
|
||||
|
||||
@property (nonatomic, assign) NSObject <CrashlyticsDelegate> *delegate;
|
||||
|
||||
/**
|
||||
*
|
||||
* The recommended way to install Crashlytics into your application is to place a call
|
||||
* to +startWithAPIKey: in your -application:didFinishLaunchingWithOptions: method.
|
||||
*
|
||||
* This delay defaults to 1 second in order to generally give the application time to
|
||||
* fully finish launching.
|
||||
*
|
||||
**/
|
||||
+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey;
|
||||
+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey afterDelay:(NSTimeInterval)delay;
|
||||
|
||||
/**
|
||||
*
|
||||
* If you need the functionality provided by the CrashlyticsDelegate protocol, you can use
|
||||
* these convenience methods to activate the framework and set the delegate in one call.
|
||||
*
|
||||
**/
|
||||
+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(NSObject <CrashlyticsDelegate> *)delegate;
|
||||
+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(NSObject <CrashlyticsDelegate> *)delegate afterDelay:(NSTimeInterval)delay;
|
||||
|
||||
/**
|
||||
*
|
||||
* Access the singleton Crashlytics instance.
|
||||
*
|
||||
**/
|
||||
+ (Crashlytics *)sharedInstance;
|
||||
|
||||
/**
|
||||
*
|
||||
* The easiest way to cause a crash - great for testing!
|
||||
*
|
||||
**/
|
||||
- (void)crash;
|
||||
|
||||
/**
|
||||
*
|
||||
* Many of our customers have requested the ability to tie crashes to specific end-users of their
|
||||
* application in order to facilitate responses to support requests or permit the ability to reach
|
||||
* out for more information. We allow you to specify up to three separate values for display within
|
||||
* the Crashlytics UI - but please be mindful of your end-user's privacy.
|
||||
*
|
||||
* We recommend specifying a user identifier - an arbitrary string that ties an end-user to a record
|
||||
* in your system. This could be a database id, hash, or other value that is meaningless to a
|
||||
* third-party observer but can be indexed and queried by you.
|
||||
*
|
||||
* Optionally, you may also specify the end-user's name or username, as well as email address if you
|
||||
* do not have a system that works well with obscured identifiers.
|
||||
*
|
||||
* Pursuant to our EULA, this data is transferred securely throughout our system and we will not
|
||||
* disseminate end-user data unless required to by law. That said, if you choose to provide end-user
|
||||
* contact information, we strongly recommend that you disclose this in your application's privacy
|
||||
* policy. Data privacy is of our utmost concern.
|
||||
*
|
||||
**/
|
||||
- (void)setUserIdentifier:(NSString *)identifier;
|
||||
- (void)setUserName:(NSString *)name;
|
||||
- (void)setUserEmail:(NSString *)email;
|
||||
|
||||
+ (void)setUserIdentifier:(NSString *)identifier;
|
||||
+ (void)setUserName:(NSString *)name;
|
||||
+ (void)setUserEmail:(NSString *)email;
|
||||
|
||||
/**
|
||||
*
|
||||
* Set a value for a key to be associated with your crash data.
|
||||
*
|
||||
**/
|
||||
- (void)setObjectValue:(id)value forKey:(NSString *)key;
|
||||
- (void)setIntValue:(int)value forKey:(NSString *)key;
|
||||
- (void)setBoolValue:(BOOL)value forKey:(NSString *)key;
|
||||
- (void)setFloatValue:(float)value forKey:(NSString *)key;
|
||||
|
||||
+ (void)setObjectValue:(id)value forKey:(NSString *)key;
|
||||
+ (void)setIntValue:(int)value forKey:(NSString *)key;
|
||||
+ (void)setBoolValue:(BOOL)value forKey:(NSString *)key;
|
||||
+ (void)setFloatValue:(float)value forKey:(NSString *)key;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
* The CLSCrashReport protocol exposes methods that you can call on crash report objects passed
|
||||
* to delegate methods. If you want these values or the entire object to stay in memory retain
|
||||
* them or copy them.
|
||||
**/
|
||||
@protocol CLSCrashReport <NSObject>
|
||||
@required
|
||||
|
||||
/**
|
||||
* Returns the session identifier for the crash report.
|
||||
**/
|
||||
- (NSString *)identifier;
|
||||
|
||||
/**
|
||||
* Returns the custom key value data for the crash report.
|
||||
**/
|
||||
- (NSDictionary *)customKeys;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
*
|
||||
* The CrashlyticsDelegate protocol provides a mechanism for your application to take
|
||||
* action on events that occur in the Crashlytics crash reporting system. You can make
|
||||
* use of these calls by assigning an object to the Crashlytics' delegate property directly,
|
||||
* or through the convenience startWithAPIKey:delegate:... methods.
|
||||
*
|
||||
**/
|
||||
@protocol CrashlyticsDelegate <NSObject>
|
||||
@optional
|
||||
|
||||
/**
|
||||
*
|
||||
* Called once a Crashlytics instance has determined that the last execution of the
|
||||
* application ended in a crash. This is called some time after the crash reporting
|
||||
* process has begun. If you have specified a delay in one of the
|
||||
* startWithAPIKey:... calls, this will take at least that long to be invoked.
|
||||
*
|
||||
**/
|
||||
- (void)crashlyticsDidDetectCrashDuringPreviousExecution:(Crashlytics *)crashlytics;
|
||||
|
||||
/**
|
||||
*
|
||||
* Just like crashlyticsDidDetectCrashDuringPreviousExecution this delegate method is
|
||||
* called once a Crashlytics instance has determined that the last execution of the
|
||||
* application ended in a crash. A CLSCrashReport is passed back that contains data about
|
||||
* the last crash report that was generated. See the CLSCrashReport protocol for method details.
|
||||
* This method is called after crashlyticsDidDetectCrashDuringPreviousExecution.
|
||||
*
|
||||
**/
|
||||
- (void)crashlytics:(Crashlytics *)crashlytics didDetectCrashDuringPreviousExecution:(id <CLSCrashReport>)crash;
|
||||
|
||||
@end
|
30
Frameworks/Crashlytics.framework/Versions/A/Resources/Info.plist
vendored
Normal file
30
Frameworks/Crashlytics.framework/Versions/A/Resources/Info.plist
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>Crashlytics</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.crashlytics.ios</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Crashlytics</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.0.7</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>iPhoneOS</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>0200.07.00</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>iphoneos</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>4.0</string>
|
||||
</dict>
|
||||
</plist>
|
1
Frameworks/Crashlytics.framework/Versions/Current
vendored
Symbolic link
1
Frameworks/Crashlytics.framework/Versions/Current
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
A
|
BIN
Frameworks/Crashlytics.framework/run
vendored
Executable file
BIN
Frameworks/Crashlytics.framework/run
vendored
Executable file
Binary file not shown.
|
@ -1,229 +0,0 @@
|
|||
##Introduction
|
||||
|
||||
The TestFlight SDK allows you to track how beta testers are testing your application. Out of the box we track simple usage information, such as which tester is using your application, their device model/OS, how long they used the application, logs of their test session, and automatic recording of any crashes they encounter.
|
||||
|
||||
To get the most out of the SDK we have provided the Checkpoint API.
|
||||
|
||||
The Checkpoint API is used to help you track exactly how your testers are using your application. Curious about which users passed level 5 in your game, or posted their high score to Twitter, or found that obscure feature? With a single line of code you can finally gather all this information. Wondering how many times your app has crashed? Wondering who your power testers are? We've got you covered. See more information on the Checkpoint API in section 4.
|
||||
|
||||
Alongside the Checkpoint API is the Questions interface. The Questions interface is managed on a per build basis on the TestFlight website. Find out more about the Questions Interface in section 6.
|
||||
|
||||
For more detailed debugging we have a remote logging solution. Find out more about our logging system with TFLog in the Remote Logging section.
|
||||
|
||||
|
||||
##Considerations
|
||||
|
||||
Information gathered by the SDK is sent to the website in real time. When an application is put into the background (iOS 4.x) or terminated (iOS 3.x) we try to send the finalizing information for the session during the time allowed for finalizing the application. Should all of the data not get sent the remaining data will be sent the next time the application is launched. As such, to get the most out of the SDK we recommend your application support iOS 4.0 and higher.
|
||||
|
||||
This SDK can be run from both the iPhone Simulator and Device and has been tested using Xcode 4.0.
|
||||
|
||||
|
||||
##Integration
|
||||
|
||||
1. Add the files to your project: File -> Add Files to " "
|
||||
1. Find and select the folder that contains the SDK
|
||||
2. Make sure that "Copy items into destination folder (if needed)" is checked
|
||||
3. Set Folders to "Create groups for any added folders"
|
||||
4. Select all targets that you want to add the SDK to
|
||||
2. Verify that libTestFlight.a has been added to the Link Binary With Libraries Build Phase for the targets you want to use the SDK with
|
||||
1. Select your Project in the Project Navigator
|
||||
2. Select the target you want to enable the SDK for
|
||||
3. Select the Build Phases tab
|
||||
4. Open the Link Binary With Libraries Phase
|
||||
5. If libTestFlight.a is not listed, drag and drop the library from your Project Navigator to the Link Binary With Libraries area
|
||||
6. Repeat Steps 2 - 5 until all targets you want to use the SDK with have the SDK linked
|
||||
3. Add libz to your Link Binary With Libraries Build Phase
|
||||
1. Select your Project in the Project Navigator
|
||||
2. Select the target you want to enable the SDK for
|
||||
3. Select the Build Phases tab
|
||||
4. Open the Link Binary With Libraries Phase
|
||||
5. Click the + to add a new library
|
||||
6. Find libz.dylib in the list and add it
|
||||
7. Repeat Steps 2 - 6 until all targets you want to use the SDK with have libz.dylib
|
||||
|
||||
4. In your Application Delegate:
|
||||
1. Import TestFlight: `#import "TestFlight.h"`
|
||||
|
||||
***NOTE:*** Rather than importing `TestFlight.h` in every file you may add the above line into you pre-compiled header (`<projectname>_Prefix.pch`) file inside of the
|
||||
|
||||
|
||||
#ifdef __OBJC__
|
||||
|
||||
|
||||
section. This will give you access to the SDK across all files.
|
||||
|
||||
2. Get your Application Token which you can find at [http://testflightapp.com/dashboard/applications/](http://testflightapp.com/dashboard/applications/) select the application you are using from the list choose the SDK option and the application token for this application will be there. To ensure that your testers do not show up as anonymous place the call to setDeviceIdentifer before calling takeOff. Remove #define TESTING 1 before building your release build for the App Store.
|
||||
|
||||
3. Launch TestFlight with your Application Token
|
||||
|
||||
-(BOOL)application:(UIApplication *)application
|
||||
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
// start of your application:didFinishLaunchingWithOptions
|
||||
// ...
|
||||
#define TESTING 1
|
||||
#ifdef TESTING
|
||||
[TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
|
||||
#endif
|
||||
[TestFlight takeOff:@"Insert your Application Token here"];
|
||||
// The rest of your application:didFinishLaunchingWithOptions method
|
||||
// ...
|
||||
}
|
||||
|
||||
4. To report crashes to you we install our own uncaught exception handler. If you are not currently using an exception handler of your own then all you need to do is go to the next step. If you currently use an Exception Handler, or you use another framework that does please go to the section on advanced exception handling.
|
||||
|
||||
5. To enable the best crash reporting possible we recommend setting the following project build settings in Xcode to NO for all targets that you want to have live crash reporting for. You can find build settings by opening the Project Navigator (default command+1 or command+shift+j) then clicking on the project you are configuring (usually the first selection in the list). From there you can choose to either change the global project settings or settings on an individual project basis. All settings below are in the Deployment Section.
|
||||
|
||||
1. Deployment Post Processing
|
||||
2. Strip Debug Symbols During Copy
|
||||
3. Strip Linked Product
|
||||
|
||||
##Beta Testing and Release Differentiation
|
||||
|
||||
In order to provide more information about your testers while beta testing you will need to provide the device's unique identifier. This identifier is not something that the SDK will collect from the device and we do not recommend using this in production. To send the device identifier to us put the following code **before your call to takeOff**.
|
||||
|
||||
#define TESTING 1
|
||||
#ifdef TESTING
|
||||
[TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
|
||||
#endif
|
||||
|
||||
This will allow you to have the best possible information during testing, but disable getting and sending of the device unique identifier when you release your application. When it is time to release simply comment out #define TESTING 1. If you decide to not include the device's unique identifier during your testing phase TestFlight will still collect all of the information that you send but it may be anonymized.
|
||||
|
||||
|
||||
##Checkpoint API
|
||||
|
||||
When a tester does something you care about in your app you can pass a checkpoint. For example completing a level, adding a todo item, etc. The checkpoint progress is used to provide insight into how your testers are testing your apps. The passed checkpoints are also attached to crashes, which can help when creating steps to replicate.
|
||||
|
||||
`[TestFlight passCheckpoint:@"CHECKPOINT_NAME"];` Use `passCheckpoint:` to track when a user performs certain tasks in your application. This can be useful for making sure testers are hitting all parts of your application, as well as tracking which testers are being thorough.
|
||||
|
||||
##Feedback API
|
||||
|
||||
To launch unguided feedback call the openFeedbackView method. We recommend that you call this from a GUI element.
|
||||
|
||||
-(IBAction)launchFeedback {
|
||||
[TestFlight openFeedbackView];
|
||||
}
|
||||
|
||||
If you want to create your own feedback form you can use the submitCustomFeedback method to submit the feedback that the user has entered.
|
||||
|
||||
-(IBAction)submitFeedbackPressed:(id)sender {
|
||||
NSString *feedback = [self getUserFeedback];
|
||||
[TestFlight submitFeedback:feedback];
|
||||
}
|
||||
|
||||
The above sample assumes that [self getUserFeedback] is implemented such that it obtains the users feedback from the GUI element you have created and that submitFeedbackPressed is the action for your submit button.
|
||||
|
||||
Once users have submitted feedback from inside of the application you can view it in the feedback area of your build page.
|
||||
|
||||
|
||||
##Upload your build
|
||||
|
||||
After you have integrated the SDK into your application you need to upload your build to TestFlight. You can upload from your dashboard or or using the Upload API, full documentation at [https://testflightapp.com/api/doc/](https://testflightapp.com/api/doc/)
|
||||
|
||||
##Questions Interface
|
||||
|
||||
In order to ask a question, you'll need to associate it with a checkpoint. Make sure your checkpoints are initialized by running your app and hitting them all yourself before you start adding questions.
|
||||
|
||||
There are three question types available: Yes/No, Multiple Choice, and Long Answer.
|
||||
|
||||
To create questions, visit your builds Questions page and click on 'Add Question'. If you choose Multiple Choice, you'll need to enter a list of possible answers for your testers to choose from — otherwise, you'll only need to enter your question's, well, question. If your build has no questions, you can also choose to migrate questions from another build (because seriously — who wants to do all that typing again)?
|
||||
|
||||
After restarting your application on an approved device, when you pass the checkpoint associated with your questions a TestFlight modal question form will appear on the screen asking the beta tester to answer your question.
|
||||
|
||||
After you upload a new build to TestFlight you will need to associate questions once again. However if your checkpoints and questions have remained the same you can choose "copy questions from an older build" and choose which build to copy the questions from.
|
||||
|
||||
##View the results
|
||||
|
||||
As testers install your build and start to test it you will see their session data on the web on the build report page for the build you've uploaded.
|
||||
|
||||
##Advanced Exception Handling
|
||||
|
||||
An uncaught exception means that your application is in an unknown state and there is not much that you can do but try and exit gracefully. Our SDK does its best to get the data we collect in this situation to you while it is crashing, but it is designed in such a way that the important act of saving the data occurs in as safe way a way as possible before trying to send anything. If you do use uncaught exception or signal handlers install your handlers before calling `takeOff`. Our SDK will then call your handler while ours is running. For example:
|
||||
|
||||
/*
|
||||
My Apps Custom uncaught exception catcher, we do special stuff here, and TestFlight takes care of the rest
|
||||
*/
|
||||
void HandleExceptions(NSException *exception) {
|
||||
NSLog(@"This is where we save the application data during a exception");
|
||||
// Save application data on crash
|
||||
}
|
||||
/*
|
||||
My Apps Custom signal catcher, we do special stuff here, and TestFlight takes care of the rest
|
||||
*/
|
||||
void SignalHandler(int sig) {
|
||||
NSLog(@"This is where we save the application data during a signal");
|
||||
// Save application data on crash
|
||||
}
|
||||
|
||||
-(BOOL)application:(UIApplication *)application
|
||||
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
// installs HandleExceptions as the Uncaught Exception Handler
|
||||
NSSetUncaughtExceptionHandler(&HandleExceptions);
|
||||
// create the signal action structure
|
||||
struct sigaction newSignalAction;
|
||||
// initialize the signal action structure
|
||||
memset(&newSignalAction, 0, sizeof(newSignalAction));
|
||||
// set SignalHandler as the handler in the signal action structure
|
||||
newSignalAction.sa_handler = &SignalHandler;
|
||||
// set SignalHandler as the handlers for SIGABRT, SIGILL and SIGBUS
|
||||
sigaction(SIGABRT, &newSignalAction, NULL);
|
||||
sigaction(SIGILL, &newSignalAction, NULL);
|
||||
sigaction(SIGBUS, &newSignalAction, NULL);
|
||||
// Call takeOff after install your own unhandled exception and signal handlers
|
||||
[TestFlight takeOff:@"Insert your Application Token here"];
|
||||
// continue with your application initialization
|
||||
}
|
||||
|
||||
You do not need to add the above code if your application does not use exception handling already.
|
||||
|
||||
##Remote Logging
|
||||
|
||||
To perform remote logging you can use the TFLog method which logs in a few different methods described below. In order to make the transition from NSLog to TFLog easy we have used the same method signature for TFLog as NSLog. You can easily switch over to TFLog by adding the following macro to your header
|
||||
|
||||
#define NSLog TFLog
|
||||
|
||||
That will do a switch from NSLog to TFLog, if you want more information, such as file name and line number you can use a macro like
|
||||
|
||||
#define NSLog(__FORMAT__, ...) TFLog((@"%s [Line %d] " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
|
||||
Which will produce output that looks like
|
||||
|
||||
-[HTFCheckpointsController showYesNoQuestion:] [Line 45] Pressed YES/NO
|
||||
|
||||
We have implemented three different loggers.
|
||||
|
||||
1. TestFlight logger
|
||||
2. Apple System Log logger
|
||||
3. STDERR logger
|
||||
|
||||
Each of the loggers log asynchronously and all TFLog calls are non blocking. The TestFlight logger writes its data to a file which is then sent to our servers on Session End events. The Apple System Logger sends its messages to the Apple System Log and are viewable using the Organizer in Xcode when the device is attached to your computer. The ASL logger can be disabled by turning it off in your TestFlight options
|
||||
|
||||
[TestFlight setOptions:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:@"logToConsole"]];
|
||||
|
||||
The default option is YES.
|
||||
|
||||
The STDERR logger sends log messages to STDERR so that you can see your log statements while debugging. The STDERR logger is only active when a debugger is attached to your application. If you do not wish to use the STDERR logger you can disable it by turning it off in your TestFlight options
|
||||
|
||||
[TestFlight setOptions:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:@"logToSTDERR"]];
|
||||
|
||||
The default option is YES.
|
||||
|
||||
## Advanced Remote Logging
|
||||
|
||||
For most users we expect using TFLog to provide all of the logging functionality that they need. For the occasion where you need to provide a wrapper around TFLog we provide
|
||||
|
||||
void TFLogv(NSString *format, va_list arg_list);
|
||||
|
||||
Using TFLogv you can have your method that accepts a variable number of arguments that then passes that format and argument list to TFLog.
|
||||
|
||||
|
||||
##iOS3
|
||||
|
||||
We now require that anyone who is writing an application that supports iOS3 add the System.framework as an optional link. In order to provide a better shutdown experience we send any large log files to our servers in the background. To add System.framework as an optional link:
|
||||
|
||||
1. Select your Project in the Project Navigator
|
||||
2. Select the target you want to enable the SDK for
|
||||
3. Select the Build Phases tab
|
||||
4. Open the Link Binary With Libraries Phase
|
||||
5. Click the + to add a new library
|
||||
6. Find libSystem.dylib in the list and add it
|
||||
7. To the right of libSystem.dylib in the Link Binary With Libraries pane change "Required" to "Optional"
|
|
@ -1,105 +0,0 @@
|
|||
//
|
||||
// TestFlight.h
|
||||
// libTestFlight
|
||||
//
|
||||
// Created by Jonathan Janzen on 06/11/11.
|
||||
// Copyright 2011 TestFlight. All rights reserved.
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#define TESTFLIGHT_SDK_VERSION @"1.2.1"
|
||||
#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 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 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 *)applicationToken;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* @param checkpointName The name of the checkpoint, this should be a static string
|
||||
*/
|
||||
+ (void)passCheckpoint:(NSString *)checkpointName;
|
||||
|
||||
/**
|
||||
* 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
|
Binary file not shown.
|
@ -1,220 +0,0 @@
|
|||
## 1.2.1 - December 26, 2012
|
||||
|
||||
- The max number of concurrent network connections has been reduced from 4 to 2.
|
||||
|
||||
##1.2 - November 12, 2012
|
||||
|
||||
* Removed Team Token support. As of version 1.2 takeOff must be called with the Application Token, https://testflightapp.com/dashboard/applications/, choose your application, select SDK, get the Token for this Application.
|
||||
|
||||
##1.3 BETA 3 - October 11, 2012
|
||||
|
||||
* Added application token support. Application Tokens are currently optional if you do not have one you do not need one
|
||||
|
||||
##1.2 BETA 2 - October 9, 2012
|
||||
|
||||
* Resolved an instance of close_file being called on a bad file descriptor
|
||||
|
||||
##1.2 BETA 1 - October 1, 2012
|
||||
|
||||
* Removed support for armv6
|
||||
* Exception handler now returns instead of raising a SIGTRAP
|
||||
|
||||
##1.1 - September 13, 2012
|
||||
|
||||
* armv7s and iOS 6 support
|
||||
* Updated for general release
|
||||
|
||||
##1.1 BETA 3 - September 12, 2012
|
||||
|
||||
* armv7s slice added to library
|
||||
* fixed typo for in application updates, inAppUdates changed to inAppUpdates
|
||||
|
||||
##1.1 BETA 2 - September 6, 2012
|
||||
|
||||
* Re-enabled armv6 support
|
||||
* Added option to disable in application updates
|
||||
|
||||
##1.1 BETA 1 - July 13, 2012
|
||||
|
||||
* Added TFLogv to allow for log customizations. Check the README or online docs for more information.
|
||||
* Added option attachBacktraceToFeedback, which attaches a backtrace to feedback sent from the SDK. For users who use feedback in more than one location in the application.
|
||||
* Resolved issue where other exception handlers would not be called during an exception.
|
||||
* SDK now sends the device language for a session.
|
||||
* Documentation fixes.
|
||||
* Stability fixes.
|
||||
|
||||
###1.0 - March 29, 2012
|
||||
|
||||
* Resolved occurrences of exceptions with the message "No background task exists with identifier 0"
|
||||
|
||||
###1.0 BETA 1 - March 23, 2012
|
||||
|
||||
* Privacy Updates
|
||||
* UDID is no longer collected by the SDK. During testing please use `[TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];` to send the UDID so you can identify your testers. For release do not set `+setDeviceIdentifier`. See Beta Testing and Release Differentiation in the README or online at [https://testflightapp.com/sdk/doc/1.0beta1/](http://testflightapp.com/sdk/doc/1.0beta1/)
|
||||
|
||||
###0.8.3 - February 14, 2012
|
||||
|
||||
* Rolled previous beta code into release builds
|
||||
* No longer allow in application updates to occur in applications that were obtained from the app store.
|
||||
|
||||
**Tested compiled library with:**
|
||||
|
||||
* Xcode 4.3
|
||||
* Xcode 4.2
|
||||
* Xcode 4.1
|
||||
* Xcode 3.2.6
|
||||
|
||||
###0.8.3 BETA 5 - February 10, 2012
|
||||
|
||||
* Changed logging from asynchronous to synchronous.
|
||||
* Resolved crash when looking for a log path failed.
|
||||
* Added submitFeedback to the TestFlight class to allow for custom feedback forms.
|
||||
|
||||
###0.8.3 BETA 4 - January 20, 2012
|
||||
|
||||
* Resolved an issue that occured when an application was upgraded from 0.8.3 BETA 1 to 0.8.3 BETA 3+ with unsent data from 0.8.3 BETA 1
|
||||
|
||||
###0.8.3 BETA 3 - January 19, 2012
|
||||
|
||||
* On crash log files over 64k will not be sent until next launch.
|
||||
|
||||
**Known Issues:**
|
||||
|
||||
* Logging massive amounts of data at the end of a session may prevent the application from launching in time on next launch
|
||||
|
||||
###0.8.3 BETA 2 - January 13, 2012
|
||||
|
||||
* libz.dylib is now required to be added to your "Link Binary with Libraries" build phase
|
||||
* Log file compression, The compression is done on an as needed basis rather than before sending
|
||||
* Changed all outgoing data from JSON to MessagePack
|
||||
* Added option `logToSTDERR` to disable the `STDERR` logger
|
||||
|
||||
###0.8.3 BETA 1 - December 29, 2011
|
||||
|
||||
* In rare occurrences old session data that had not been sent to our server may have been discarded or attached to the wrong build. It is now no longer discarded
|
||||
* Made sending of Session End events more robust
|
||||
* Network queuing system does better bursting of unsent data
|
||||
* Log files that are larger than 64K are now sent sometime after the next launch
|
||||
* Log files that are larger than 16MB are no longer supported and will be replaced with a message indicating the log file was too large
|
||||
* Fixed crashes while resuming from background
|
||||
|
||||
###0.8.2 - December 20, 2011
|
||||
|
||||
* Promoted 0.8.2 BETA 4 to stable
|
||||
|
||||
**Known Issues:**
|
||||
|
||||
* Under some circumstances Session End events may not be sent until the next launch.
|
||||
* With large log files Session End events may take a long time to show up.
|
||||
|
||||
**Tested compiled library with:**
|
||||
|
||||
* Xcode 4.3
|
||||
* Xcode 4.2
|
||||
* Xcode 4.1
|
||||
* Xcode 3.2.6
|
||||
|
||||
###0.8.2 BETA 4 - December 12, 2011
|
||||
|
||||
* Prevented "The string argument is NULL" from occuring during finishedHandshake in rare cases
|
||||
* Resolved issue where data recorded while offline may not be sent
|
||||
|
||||
###0.8.2 BETA 3 - December 8, 2011
|
||||
|
||||
* Added auto-release pools to background setup and tear down
|
||||
|
||||
###0.8.2 BETA 2 - December 5, 2011
|
||||
|
||||
* Fixed the "pointer being freed was not allocated" bug
|
||||
|
||||
###0.8.1 - November 18, 2011
|
||||
|
||||
* Implemented TFLog logging system, see README for more information
|
||||
* Fixed an issue where Session End events may not be sent until next launch
|
||||
* Fixed an issue where duplicate events could be sent
|
||||
* Fixed an issue with Session End events not being sent from some iPod touch models
|
||||
|
||||
**Tested compiled library with:**
|
||||
|
||||
* Xcode 4.2
|
||||
* Xcode 4.1
|
||||
* Xcode 3.2.6
|
||||
|
||||
###0.8 - November 8, 2011
|
||||
|
||||
* Added `SIGTRAP` as a signal type that we catch
|
||||
* Removed all Objective-c from crash reporting
|
||||
* Removed the use of non signal safe functions from signal handling
|
||||
* Created a signal safe way to get symbols from a stack trace
|
||||
* Changed the keyboardType for Long Answer Questions and Feedback to allow for international character input
|
||||
* Changed `TESTFLIGHT_SDK_VERSION` string to be an `NSString`
|
||||
* Changed cache folder from Library/Caches/TestFlight to Library/Caches/com.testflight.testflightsdk
|
||||
* Fixed issue with saving data when device is offline
|
||||
* Fixed compability issues with iOS 3
|
||||
* Added calling into the rootViewController shouldAutorotateToInterfaceOrientation if a rootViewController is set
|
||||
* Made the comments in TestFlight.h compatible with Appledoc
|
||||
|
||||
Tested compiled library with:
|
||||
|
||||
* Xcode 4.2
|
||||
* Xcode 4.1
|
||||
* Xcode 3.2
|
||||
|
||||
###0.7.2 - September 29, 2011
|
||||
|
||||
* Changed `TESTFLIGHT_SDK_VERSION` string to be an `NSString`
|
||||
* Fixed an issue where exiting an application while the SDK is active caused modal views to be dismissed
|
||||
|
||||
###0.7.1 - September 22, 2011
|
||||
|
||||
* Internal release
|
||||
* Refactoring
|
||||
|
||||
###0.7 - September 21, 2011
|
||||
|
||||
* Moved TestFlight images and data to the Library/Caches folder
|
||||
* Resolved an issue where sometimes the rootViewController could not be found and feedback, questions and upgrade views would not be displayed
|
||||
* In application upgrade changed to allow skipping until the next version is installed and allows upgrades to be forced
|
||||
* Fixed a memory leak when launching questions
|
||||
|
||||
###0.6 - September 2, 2011
|
||||
|
||||
* Renamed base64_encode to testflight_base64_encode to remove a conflict with other third party libraries
|
||||
* Added ability to reinstall crash handlers when they are overwritten using the setOptions API
|
||||
* Fixed an issue where crash reports might not get sent under certain circumstances
|
||||
* Fixed a deadlock when the application is put in the background and then resumed before all information can be sent
|
||||
* Fixed an issue when attempting to un-install all signal handlers during a signal
|
||||
* Added support for landscape mode on the iPad to the Questions and Feedback views
|
||||
* Crash reporting now works in versions of Xcode earlier than 4.2
|
||||
* Fixed a memory leak during handshake
|
||||
|
||||
###0.5 - August 19, 2011
|
||||
|
||||
* Feedback that is not attached to a checkpoint [TestFlight openFeedbackView]
|
||||
* Usability changes to question views
|
||||
* Removed pause and resume sessions, replaced with sessions being stopped and started
|
||||
* Added text auto correction to the Long Answer question type
|
||||
* Crash reports now send on crash instead of next launch
|
||||
|
||||
###0.4 - August 15, 2011
|
||||
|
||||
* In Application Feedback with Questions
|
||||
* In application updates
|
||||
* Custom Environment Information added
|
||||
* Networking stack reimplementation
|
||||
* Exception handling fixes
|
||||
|
||||
###0.3 - June 15, 2011
|
||||
|
||||
* Removed all mention of JSONKit from the README
|
||||
* Added support for using both the Bundle Version and the Bundle Short Version string
|
||||
|
||||
###0.2 - June 14, 2011
|
||||
|
||||
* Removed all categories this allows users to use the SDK without having to set -ObjC and -load_all
|
||||
* Prefixed JSONKit for use in TestFlight to remove reported issues where some users were already using JSONKit
|
||||
* Added support for armv6 again
|
||||
|
||||
###0.1 - June 11, 2011
|
||||
|
||||
* Initial Version
|
|
@ -37,6 +37,7 @@
|
|||
#import "AuthenticationService.h"
|
||||
|
||||
#import "GAI.h"
|
||||
#import <Crashlytics/Crashlytics.h>
|
||||
|
||||
//for payment
|
||||
#import <StoreKit/StoreKit.h>
|
||||
|
|
|
@ -48,10 +48,7 @@ static const NSInteger kGANDispatchPeriodSec = 10;
|
|||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
|
||||
#ifdef TEST_FLIGHT_ENABLED
|
||||
// to start the TestFlight SDK
|
||||
[TestFlight takeOff:@"5713cf3e-f49b-4f0d-ba14-88958f16ec08"];
|
||||
#endif
|
||||
[Crashlytics startWithAPIKey:@"263e33cba7a0a8804ec757ba8607fc77514dca33"];
|
||||
|
||||
#ifdef GOOGLE_ANALYTICS_ENABLED
|
||||
// Google Analytics SDK
|
||||
|
@ -61,11 +58,6 @@ static const NSInteger kGANDispatchPeriodSec = 10;
|
|||
self.tracker = [[GAI sharedInstance] trackerWithTrackingId:kPrivateGoogleAnalytics];
|
||||
#endif
|
||||
|
||||
// in development phase we use the UID of user
|
||||
#ifdef DEVELOPMENT_ENABLED
|
||||
[TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
|
||||
#endif
|
||||
|
||||
[self prepareConnectionInformation];
|
||||
|
||||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
|
@ -168,8 +160,8 @@ static const NSInteger kGANDispatchPeriodSec = 10;
|
|||
[auth startOAuthProcedure:url];
|
||||
}
|
||||
}else if ([[url scheme] hasPrefix:@"fb"]){
|
||||
// [SHKFacebook handleOpenURL:url];
|
||||
// return [self.facebook handleOpenURL:url];
|
||||
[SHKFacebook handleOpenURL:url];
|
||||
return [self.facebook handleOpenURL:url];
|
||||
}
|
||||
|
||||
return YES;
|
||||
|
|
|
@ -74,9 +74,6 @@ extern NSString * const kProfileLatestUpdateDate;
|
|||
// when defined, we will use Google Analytics
|
||||
#define GOOGLE_ANALYTICS_ENABLED
|
||||
|
||||
// while using TestFlight, this variable will permit the app to save/send data
|
||||
#define TEST_FLIGHT_ENABLED
|
||||
|
||||
// a lot of logs, don't use in production env.
|
||||
#define DEVELOPMENT_ENABLED
|
||||
|
||||
|
@ -90,8 +87,4 @@ extern NSString * const kProfileLatestUpdateDate;
|
|||
//RGB color macro
|
||||
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
|
||||
|
||||
|
||||
#define NSLog(__FORMAT__, ...) TFLog((@"%s [Line %d] " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
|
||||
|
||||
|
||||
@end
|
|
@ -135,11 +135,6 @@
|
|||
// send notification to the system that it can shows the screen:
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:kNotificationLoginAuthorize object:nil ];
|
||||
|
||||
// check point create new account
|
||||
#ifdef TEST_FLIGHT_ENABLED
|
||||
[TestFlight passCheckpoint:@"Login"];
|
||||
#endif
|
||||
|
||||
[MBProgressHUD hideHUDForView:self.navigationController.view animated:YES];
|
||||
});
|
||||
}@catch (NSException* e) {
|
||||
|
|
|
@ -268,12 +268,6 @@
|
|||
|
||||
// send notification to the system that it can shows the screen:
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:kNotificationLoginAuthorize object:nil ];
|
||||
|
||||
// check point create new account
|
||||
#ifdef TEST_FLIGHT_ENABLED
|
||||
[TestFlight passCheckpoint:@"Created account"];
|
||||
#endif
|
||||
|
||||
[MBProgressHUD hideHUDForView:self.navigationController.view animated:YES];
|
||||
});
|
||||
}@catch (NSException* e) {
|
||||
|
@ -309,12 +303,6 @@
|
|||
|
||||
// send notification to the system that it can shows the screen:
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:kNotificationLoginAuthorize object:nil ];
|
||||
|
||||
// check point create new account
|
||||
#ifdef TEST_FLIGHT_ENABLED
|
||||
[TestFlight passCheckpoint:@"Created account"];
|
||||
#endif
|
||||
|
||||
[MBProgressHUD hideHUDForView:self.navigationController.view animated:YES];
|
||||
});
|
||||
}@catch (NSException* e) {
|
||||
|
|
|
@ -112,12 +112,6 @@
|
|||
|
||||
// send notification to the system that it can shows the screen:
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:kNotificationLoginAuthorize object:nil ];
|
||||
|
||||
// check point create new account
|
||||
#ifdef TEST_FLIGHT_ENABLED
|
||||
[TestFlight passCheckpoint:@"Login"];
|
||||
#endif
|
||||
|
||||
[MBProgressHUD hideHUDForView:self.navigationController.view animated:YES];
|
||||
});
|
||||
}else{
|
||||
|
|
|
@ -455,16 +455,23 @@
|
|||
groupUrl:nil];
|
||||
}
|
||||
|
||||
#ifdef TEST_FLIGHT_ENABLED
|
||||
// checkpoint
|
||||
if (self.imageFiltered){
|
||||
[TestFlight passCheckpoint:@"Image from Aviary"];
|
||||
[[[GAI sharedInstance] defaultTracker] sendEventWithCategory:@"Upload"
|
||||
withAction:@"typeImage"
|
||||
withLabel:@"Image from Aviary"
|
||||
withValue:nil];
|
||||
}else if (self.images){
|
||||
[TestFlight passCheckpoint:@"Image from Sync"];
|
||||
[[[GAI sharedInstance] defaultTracker] sendEventWithCategory:@"Upload"
|
||||
withAction:@"typeImage"
|
||||
withLabel:@"Image from Sync"
|
||||
withValue:nil];
|
||||
}else{
|
||||
[TestFlight passCheckpoint:@"Image from Snapshot"];
|
||||
[[[GAI sharedInstance] defaultTracker] sendEventWithCategory:@"Upload"
|
||||
withAction:@"typeImage"
|
||||
withLabel:@"Image from Snapshot"
|
||||
withValue:nil];
|
||||
}
|
||||
#endif
|
||||
|
||||
// wait for 2 seconds to go to main screen
|
||||
[NSThread sleepForTimeInterval:2];
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
@interface PrivateConstants : NSObject
|
||||
|
||||
extern NSString * const kPrivateFacebookAppId;
|
||||
extern NSString * const kPrivateTestFlightId;
|
||||
extern NSInteger const kPrivateappStoreID;
|
||||
extern NSString * const kPrivateapplicationBundleID;
|
||||
extern NSString * const kPrivateapplicationName;
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
@implementation PrivateConstants
|
||||
|
||||
NSString * const kPrivateFacebookAppId=@"";
|
||||
NSString * const kPrivateTestFlightId=@"";
|
||||
|
||||
NSInteger const kPrivateappStoreID=0;
|
||||
NSString * const kPrivateapplicationBundleID=@"";
|
||||
|
|
|
@ -162,8 +162,8 @@
|
|||
@autoreleasepool {
|
||||
#ifdef DEVELOPMENT_ENABLED
|
||||
NSLog(@"enumerating photos");
|
||||
NSLog("Assets Number %i", assetsNumber);
|
||||
NSLog("numberOfAssets %i", [self.assetGroup numberOfAssets]);
|
||||
NSLog(@"Assets Number %i", assetsNumber);
|
||||
NSLog(@"numberOfAssets %i", [self.assetGroup numberOfAssets]);
|
||||
#endif
|
||||
|
||||
if ([self.assetGroup numberOfAssets] != assetsNumber){
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import <CoreData/CoreData.h>
|
||||
#import "AppDelegate.h"
|
||||
#import "TestFlight.h"
|
||||
#import "Constants.h"
|
||||
#import "PrivateConstants.h"
|
||||
#import "PhotoAlertView.h"
|
||||
|
|
|
@ -75,7 +75,6 @@
|
|||
CD7642AE161EDB8300E0B657 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD7642AD161EDB8300E0B657 /* SystemConfiguration.framework */; };
|
||||
CD7642B0161EDB8E00E0B657 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD7642AF161EDB8E00E0B657 /* MobileCoreServices.framework */; };
|
||||
CD7642B2161EDB9E00E0B657 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CD7642B1161EDB9E00E0B657 /* libz.dylib */; };
|
||||
CD7642B6161EDF1E00E0B657 /* libTestFlight.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CD7642B4161EDF1E00E0B657 /* libTestFlight.a */; };
|
||||
CD7642BA161EDFE400E0B657 /* Constants.m in Sources */ = {isa = PBXBuildFile; fileRef = CD7642B9161EDFE400E0B657 /* Constants.m */; };
|
||||
CD7642BE161EE15E00E0B657 /* AuthenticationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CD7642BC161EE15E00E0B657 /* AuthenticationViewController.m */; };
|
||||
CD7642BF161EE15E00E0B657 /* AuthenticationViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD7642BD161EE15E00E0B657 /* AuthenticationViewController.xib */; };
|
||||
|
@ -139,6 +138,7 @@
|
|||
CDAFB9F916122263002D6E86 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDAFB9D816122262002D6E86 /* CoreData.framework */; };
|
||||
CDAFBA0116122263002D6E86 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CDAFB9FF16122263002D6E86 /* InfoPlist.strings */; };
|
||||
CDAFBA0416122263002D6E86 /* PhotoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CDAFBA0316122263002D6E86 /* PhotoTests.m */; };
|
||||
CDBD38D416F868F1007D0CC6 /* Crashlytics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDBD38D316F868F1007D0CC6 /* Crashlytics.framework */; };
|
||||
CDC3A7E9161DF89D003FDC2E /* MenuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDC3A7E7161DF89D003FDC2E /* MenuViewController.m */; };
|
||||
CDC3A7ED161DFAEA003FDC2E /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = CDC3A7EB161DFAEA003FDC2E /* Localizable.strings */; };
|
||||
CDC7AE90163EC7D700FC8BC1 /* DisplayUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = CDC7AE8F163EC7D700FC8BC1 /* DisplayUtilities.m */; };
|
||||
|
@ -784,8 +784,6 @@
|
|||
CD7642AD161EDB8300E0B657 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
|
||||
CD7642AF161EDB8E00E0B657 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
|
||||
CD7642B1161EDB9E00E0B657 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
|
||||
CD7642B4161EDF1E00E0B657 /* libTestFlight.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTestFlight.a; path = Frameworks/TestFlight/libTestFlight.a; sourceTree = "<group>"; };
|
||||
CD7642B5161EDF1E00E0B657 /* TestFlight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TestFlight.h; path = Frameworks/TestFlight/TestFlight.h; sourceTree = "<group>"; };
|
||||
CD7642B8161EDFE400E0B657 /* Constants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Constants.h; sourceTree = "<group>"; };
|
||||
CD7642B9161EDFE400E0B657 /* Constants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Constants.m; sourceTree = "<group>"; };
|
||||
CD7642BB161EE15E00E0B657 /* AuthenticationViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AuthenticationViewController.h; sourceTree = "<group>"; };
|
||||
|
@ -864,6 +862,7 @@
|
|||
CDAFBA0016122263002D6E86 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
CDAFBA0216122263002D6E86 /* PhotoTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PhotoTests.h; sourceTree = "<group>"; };
|
||||
CDAFBA0316122263002D6E86 /* PhotoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PhotoTests.m; sourceTree = "<group>"; };
|
||||
CDBD38D316F868F1007D0CC6 /* Crashlytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Crashlytics.framework; path = Frameworks/Crashlytics.framework; sourceTree = "<group>"; };
|
||||
CDC3A7E6161DF89D003FDC2E /* MenuViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MenuViewController.h; sourceTree = "<group>"; };
|
||||
CDC3A7E7161DF89D003FDC2E /* MenuViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MenuViewController.m; sourceTree = "<group>"; };
|
||||
CDC3A7EC161DFAEA003FDC2E /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = "<group>"; };
|
||||
|
@ -1135,9 +1134,9 @@
|
|||
CDAFB9D916122262002D6E86 /* CoreData.framework in Frameworks */,
|
||||
CDF2F0D116E5210F00D309B9 /* libsbjson-ios.a in Frameworks */,
|
||||
CDF2F10716E52EC000D309B9 /* libSDWebImage.a in Frameworks */,
|
||||
CD7642B6161EDF1E00E0B657 /* libTestFlight.a in Frameworks */,
|
||||
CD30D84F1636A94C001A0CA0 /* libAviarySDK.a in Frameworks */,
|
||||
CD2FE8E3163983910032105A /* libGoogleAnalytics.a in Frameworks */,
|
||||
CDBD38D416F868F1007D0CC6 /* Crashlytics.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -1591,15 +1590,6 @@
|
|||
name = ASIHTTPRequest;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CD7642B3161EDF0D00E0B657 /* TestFlight */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CD7642B4161EDF1E00E0B657 /* libTestFlight.a */,
|
||||
CD7642B5161EDF1E00E0B657 /* TestFlight.h */,
|
||||
);
|
||||
name = TestFlight;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CD7642B7161EDFCA00E0B657 /* Utility */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -1712,6 +1702,7 @@
|
|||
CDAFB9D116122262002D6E86 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CDBD38D316F868F1007D0CC6 /* Crashlytics.framework */,
|
||||
CDAC028A16EF62C700D3BB7F /* TMQuiltView */,
|
||||
CD2F159116E600C8004D22FD /* ShareKit */,
|
||||
CDF2F07C16E520AB00D309B9 /* SBJson */,
|
||||
|
@ -1722,7 +1713,6 @@
|
|||
CDFAF34A162854C1007A4FDF /* EGORefreshTableHeaderView */,
|
||||
CD8D9CC1162344A700A76811 /* MBProgressHUD */,
|
||||
CD8D9CBF1623446B00A76811 /* TSAlertView */,
|
||||
CD7642B3161EDF0D00E0B657 /* TestFlight */,
|
||||
CD76428A161ED9E600E0B657 /* ASIHTTPRequest */,
|
||||
CD764283161ED9A900E0B657 /* iRate */,
|
||||
CDEC2560161C39E10062E9B0 /* ViewDeck */,
|
||||
|
@ -1915,6 +1905,7 @@
|
|||
CDAFB9CA16122262002D6E86 /* Sources */,
|
||||
CDAFB9CB16122262002D6E86 /* Frameworks */,
|
||||
CDAFB9CC16122262002D6E86 /* Resources */,
|
||||
CDBD38B016F868AB007D0CC6 /* ShellScript */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -2492,6 +2483,19 @@
|
|||
shellPath = /bin/sh;
|
||||
shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
|
||||
};
|
||||
CDBD38B016F868AB007D0CC6 /* ShellScript */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "./Crashlytics.framework/run 263e33cba7a0a8804ec757ba8607fc77514dca33";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
|
@ -2746,6 +2750,10 @@
|
|||
buildSettings = {
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"\"$(SRCROOT)/Frameworks\"",
|
||||
);
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "Photo/Trovebox-Prefix.pch";
|
||||
HEADER_SEARCH_PATHS = (
|
||||
|
@ -2756,7 +2764,6 @@
|
|||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"\"$(SRCROOT)/Frameworks/TestFlight\"",
|
||||
"\"$(SRCROOT)/Frameworks/Aviary/AviarySDK\"",
|
||||
"\"$(SRCROOT)/Frameworks/Google Analytics SDK/Library\"",
|
||||
);
|
||||
|
@ -2777,6 +2784,10 @@
|
|||
buildSettings = {
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"\"$(SRCROOT)/Frameworks\"",
|
||||
);
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "Photo/Trovebox-Prefix.pch";
|
||||
HEADER_SEARCH_PATHS = (
|
||||
|
@ -2787,7 +2798,6 @@
|
|||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"\"$(SRCROOT)/Frameworks/TestFlight\"",
|
||||
"\"$(SRCROOT)/Frameworks/Aviary/AviarySDK\"",
|
||||
"\"$(SRCROOT)/Frameworks/Google Analytics SDK/Library\"",
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue