Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

merged in TestFlight additions

  • Loading branch information...
commit 59269c1a1b8a8df3a24e4097e762916780b722d4 1 parent 2d810af
@incanus incanus authored
View
14 Entitlements.plist
@@ -0,0 +1,14 @@
+<?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>application-identifier</key>
+ <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
+ <key>keychain-access-groups</key>
+ <array>
+ <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
+ </array>
+ <key>get-task-allow</key>
+ <false/>
+</dict>
+</plist>
View
199 Externals/TestFlight SDK/README.txt
@@ -0,0 +1,199 @@
+Thanks for downloading the TestFlight SDK 0.8.2!
+
+This document is also available on the web at https://www.testflightapp.com/sdk/doc
+
+1. Why use the TestFlight SDK?
+2. Considerations
+3. How do I integrate the SDK into my project?
+4. Using the Checkpoint API
+5. Using the Feedback API
+6. Upload your build
+7. Questions API
+8. View your results
+9. Advanced Exception Handling
+10. Remote Logging
+
+START
+
+
+1. Why use the TestFlight SDK?
+
+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.
+
+2. 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.
+
+3. How do I integrate the SDK into my project?
+
+
+1. Add the files to your project: File -> Add Files to "<your project name>"
+
+ 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. In your Application Delegate:
+
+ 1. Import TestFlight: `#import "TestFlight.h"`
+ NOTE: If you do not want to import 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 Team Token which you can find at [http://testflightapp.com/dashboard/team/](http://testflightapp.com/dashboard/team/) select the team you are using from the team selection drop down list on the top of the page and then select edit.
+
+
+ 3. Launch TestFlight with your Team Token
+
+ -(BOOL)application:(UIApplication *)application
+ didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+ // start of your application:didFinishLaunchingWithOptions
+ // ...
+ [TestFlight takeOff:@"Insert your Team 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.
+
+4. 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
+
+4. Use the Checkpoint API to create important checkpoints throughout your application.
+
+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.
+
+5. Using the Feedback API
+
+To launch unguided feedback call the `openFeedbackView` method. We recommend that you call this from a GUI element.
+
+ -(IBAction)launchFeedback {
+ [TestFlight openFeedbackView];
+ }
+
+Once users have submitted feedback from inside of the application you can view it in the feedback area of your build page.
+
+6. 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/>
+
+7. Add Questions to Checkpoints
+
+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 &mdash; 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 &mdash; 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.
+
+8. View your 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.
+
+9. 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 Team 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.
+
+10. 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:@"logsToConsole"]];
+
+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.
+
+END
+
+Please contact us if you have any questions.
+
+The TestFlight Team
+
+w. http://www.testflightapp.com
+e. beta@testflightapp.com
View
71 Externals/TestFlight SDK/TestFlight.h
@@ -0,0 +1,71 @@
+//
+// 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 @"0.8.2"
+#undef TFLog
+
+#if __cplusplus
+extern "C" {
+#endif
+ void TFLog(NSString *format, ...);
+#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
+ *
+ * @param teamToken Will be your team token obtained from https://testflightapp.com/dashboard/team/edit/
+ */
++ (void)takeOff:(NSString *)teamToken;
+
+/**
+ * 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
+ * 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;
+
+/**
+ * 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;
+
+@end
View
BIN  Externals/TestFlight SDK/libTestFlight.a
Binary file not shown
View
94 Externals/TestFlight SDK/release_notes.txt
@@ -0,0 +1,94 @@
+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 background data may not be sent
+
+0.8.2 BETA 3 - December 8, 2011
+Added auto-release pools to background setup and tear down
+Added C++ specific code to TFLog declaration
+
+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
View
90 Mapresent.xcodeproj/project.pbxproj
@@ -21,6 +21,7 @@
DD2B373E14CF7BFB008DE8CB /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD2B373D14CF7BFB008DE8CB /* CoreLocation.framework */; };
DD2B375914CF822C008DE8CB /* geography-class.mbtiles in Resources */ = {isa = PBXBuildFile; fileRef = DD2B375814CF822C008DE8CB /* geography-class.mbtiles */; };
DD2B375F14CF9156008DE8CB /* DSMRTimelineView.m in Sources */ = {isa = PBXBuildFile; fileRef = DD2B375E14CF9156008DE8CB /* DSMRTimelineView.m */; };
+ DD353ADC14F07B5400BF89F4 /* testflight.png in Resources */ = {isa = PBXBuildFile; fileRef = DD353ADB14F07B5400BF89F4 /* testflight.png */; };
DD4312F814D8AACA00697249 /* DSMRThemePickerController.m in Sources */ = {isa = PBXBuildFile; fileRef = DD4312F614D8AACA00697249 /* DSMRThemePickerController.m */; };
DD4312F914D8AACA00697249 /* DSMRThemePickerController.xib in Resources */ = {isa = PBXBuildFile; fileRef = DD4312F714D8AACA00697249 /* DSMRThemePickerController.xib */; };
DD4312FC14D8B1C500697249 /* DSMRWrapperController.m in Sources */ = {isa = PBXBuildFile; fileRef = DD4312FB14D8B1C500697249 /* DSMRWrapperController.m */; };
@@ -35,6 +36,8 @@
DD96078F14D32C2800FA2CBA /* UIImage-Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = DD96078E14D32C2800FA2CBA /* UIImage-Extensions.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
DD9607C614D33E5D00FA2CBA /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DD9607C514D33E5D00FA2CBA /* AVFoundation.framework */; };
DD9607C914D34CA900FA2CBA /* DSMRTimelineMarker.m in Sources */ = {isa = PBXBuildFile; fileRef = DD9607C814D34CA900FA2CBA /* DSMRTimelineMarker.m */; };
+ DD9607D114D36FDE00FA2CBA /* libTestFlight.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DD9607CD14D36FDE00FA2CBA /* libTestFlight.a */; };
+ DD9607D514D371FC00FA2CBA /* Entitlements.plist in Resources */ = {isa = PBXBuildFile; fileRef = DD9607D414D371FC00FA2CBA /* Entitlements.plist */; };
DD98B6FE14D76C090092882F /* mapbox.geography-class.plist in Resources */ = {isa = PBXBuildFile; fileRef = DD98B6FD14D76C090092882F /* mapbox.geography-class.plist */; };
DDC6E5A614E5B496000F611E /* libBlocksKit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DDC6E59C14E5B463000F611E /* libBlocksKit.a */; };
DDC6E5A814E5B5F6000F611E /* MessageUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDC6E5A714E5B5F6000F611E /* MessageUI.framework */; };
@@ -51,6 +54,7 @@
DDE3D6F014EB1AFD00B71543 /* pause.png in Resources */ = {isa = PBXBuildFile; fileRef = DDE3D6ED14EB1AFD00B71543 /* pause.png */; };
DDE3D6F114EB1AFD00B71543 /* play.png in Resources */ = {isa = PBXBuildFile; fileRef = DDE3D6EE14EB1AFD00B71543 /* play.png */; };
DDE3D6F214EB1AFD00B71543 /* play_fullscreen.png in Resources */ = {isa = PBXBuildFile; fileRef = DDE3D6EF14EB1AFD00B71543 /* play_fullscreen.png */; };
+ DDFC945014F306E40094E791 /* TestFlight.txt in Resources */ = {isa = PBXBuildFile; fileRef = DDFC944F14F306E40094E791 /* TestFlight.txt */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -147,7 +151,8 @@
DD2B375814CF822C008DE8CB /* geography-class.mbtiles */ = {isa = PBXFileReference; lastKnownFileType = file; path = "geography-class.mbtiles"; sourceTree = "<group>"; };
DD2B375D14CF9156008DE8CB /* DSMRTimelineView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DSMRTimelineView.h; sourceTree = "<group>"; };
DD2B375E14CF9156008DE8CB /* DSMRTimelineView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DSMRTimelineView.m; sourceTree = "<group>"; };
- DD4312F514D8AACA00697249 /* DSMRThemePickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; path = DSMRThemePickerController.h; sourceTree = "<group>"; };
+ DD353ADB14F07B5400BF89F4 /* testflight.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = testflight.png; sourceTree = "<group>"; };
+ DD4312F514D8AACA00697249 /* DSMRThemePickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DSMRThemePickerController.h; sourceTree = "<group>"; };
DD4312F614D8AACA00697249 /* DSMRThemePickerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DSMRThemePickerController.m; sourceTree = "<group>"; };
DD4312F714D8AACA00697249 /* DSMRThemePickerController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = DSMRThemePickerController.xib; sourceTree = "<group>"; };
DD4312FA14D8B1C500697249 /* DSMRWrapperController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DSMRWrapperController.h; sourceTree = "<group>"; };
@@ -166,6 +171,9 @@
DD9607C514D33E5D00FA2CBA /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
DD9607C714D34CA900FA2CBA /* DSMRTimelineMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DSMRTimelineMarker.h; sourceTree = "<group>"; };
DD9607C814D34CA900FA2CBA /* DSMRTimelineMarker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DSMRTimelineMarker.m; sourceTree = "<group>"; };
+ DD9607CD14D36FDE00FA2CBA /* libTestFlight.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libTestFlight.a; sourceTree = "<group>"; };
+ DD9607D014D36FDE00FA2CBA /* TestFlight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestFlight.h; sourceTree = "<group>"; };
+ DD9607D414D371FC00FA2CBA /* Entitlements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Entitlements.plist; sourceTree = SOURCE_ROOT; };
DD98B6FD14D76C090092882F /* mapbox.geography-class.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "mapbox.geography-class.plist"; sourceTree = "<group>"; };
DDC6E58A14E5B463000F611E /* BlocksKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = BlocksKit.xcodeproj; path = Externals/BlocksKit/BlocksKit.xcodeproj; sourceTree = SOURCE_ROOT; };
DDC6E5A714E5B5F6000F611E /* MessageUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MessageUI.framework; path = System/Library/Frameworks/MessageUI.framework; sourceTree = SDKROOT; };
@@ -186,6 +194,7 @@
DDE3D6ED14EB1AFD00B71543 /* pause.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pause.png; sourceTree = "<group>"; };
DDE3D6EE14EB1AFD00B71543 /* play.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = play.png; sourceTree = "<group>"; };
DDE3D6EF14EB1AFD00B71543 /* play_fullscreen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = play_fullscreen.png; sourceTree = "<group>"; };
+ DDFC944F14F306E40094E791 /* TestFlight.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = TestFlight.txt; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -206,6 +215,7 @@
DDC6E5A614E5B496000F611E /* libBlocksKit.a in Frameworks */,
DD2B373814CF7A4D008DE8CB /* libMapView.a in Frameworks */,
DD2B373A14CF7AAB008DE8CB /* libsqlite3.dylib in Frameworks */,
+ DD9607D114D36FDE00FA2CBA /* libTestFlight.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -270,6 +280,7 @@
DD2B334914CF75AE008DE8CB /* InfoPlist.strings */,
DD2B334C14CF75AE008DE8CB /* main.m */,
DD2B334E14CF75AE008DE8CB /* Mapresent-Prefix.pch */,
+ DD9607D414D371FC00FA2CBA /* Entitlements.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
@@ -280,6 +291,7 @@
DD2B373514CF79F2008DE8CB /* Alpstein Route-Me */,
DDC6E5A314E5B467000F611E /* BlocksKit */,
DDC6E5A914E5BA2E000F611E /* MBProgressHUD */,
+ DD9607CC14D36FDE00FA2CBA /* TestFlight SDK */,
DD96079014D32C2D00FA2CBA /* UIImage-Extensions */,
);
name = Externals;
@@ -348,6 +360,16 @@
name = "UIImage-Extensions";
sourceTree = "<group>";
};
+ DD9607CC14D36FDE00FA2CBA /* TestFlight SDK */ = {
+ isa = PBXGroup;
+ children = (
+ DD9607CD14D36FDE00FA2CBA /* libTestFlight.a */,
+ DD9607D014D36FDE00FA2CBA /* TestFlight.h */,
+ );
+ name = "TestFlight SDK";
+ path = "Externals/TestFlight SDK";
+ sourceTree = SOURCE_ROOT;
+ };
DDC6E58B14E5B463000F611E /* Products */ = {
isa = PBXGroup;
children = (
@@ -437,6 +459,8 @@
DDE3D6EF14EB1AFD00B71543 /* play_fullscreen.png */,
DD7779DD14EB2D54002089D0 /* back.png */,
DDE3D6E814EAE6E000B71543 /* fullscreen.png */,
+ DD353ADB14F07B5400BF89F4 /* testflight.png */,
+ DDFC944F14F306E40094E791 /* TestFlight.txt */,
);
name = Resources;
sourceTree = "<group>";
@@ -578,6 +602,7 @@
DD2B334B14CF75AE008DE8CB /* InfoPlist.strings in Resources */,
DD2B335714CF75AE008DE8CB /* DSMRViewController.xib in Resources */,
DD2B375914CF822C008DE8CB /* geography-class.mbtiles in Resources */,
+ DD9607D514D371FC00FA2CBA /* Entitlements.plist in Resources */,
DD98B6FE14D76C090092882F /* mapbox.geography-class.plist in Resources */,
DD4312F914D8AACA00697249 /* DSMRThemePickerController.xib in Resources */,
DD43131314D8D26800697249 /* needle.png in Resources */,
@@ -593,6 +618,8 @@
DDE382F714ED9DE9001D5D45 /* DSMRDrawingPaletteViewController.xib in Resources */,
DDE3831B14EDEE27001D5D45 /* waveform.png in Resources */,
DDE3833614EDFA66001D5D45 /* clear.png in Resources */,
+ DD353ADC14F07B5400BF89F4 /* testflight.png in Resources */,
+ DDFC945014F306E40094E791 /* TestFlight.txt in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -677,6 +704,7 @@
HEADER_SEARCH_PATHS = "\"$(SRCROOT)/Externals/alpstein-route-me/MapView/Map/**";
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
SDKROOT = iphoneos;
+ STRIP_INSTALLED_PRODUCT = NO;
TARGETED_DEVICE_FAMILY = 2;
};
name = Debug;
@@ -690,6 +718,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -713,6 +742,10 @@
"\"$(SRCROOT)/Externals/alpstein-route-me/MapView/Map\"/**",
);
INFOPLIST_FILE = "Mapresent/Mapresent-Info.plist";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)/Externals/TestFlight SDK\"",
+ );
OTHER_LDFLAGS = (
"-ObjC",
"-all_load",
@@ -732,6 +765,10 @@
"\"$(SRCROOT)/Externals/alpstein-route-me/MapView/Map\"/**",
);
INFOPLIST_FILE = "Mapresent/Mapresent-Info.plist";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)/Externals/TestFlight SDK\"",
+ );
OTHER_LDFLAGS = (
"-ObjC",
"-all_load",
@@ -741,6 +778,55 @@
};
name = Release;
};
+ DD9607CA14D36EEB00FA2CBA /* Ad Hoc */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_PREPROCESSOR_DEFINITIONS = "ADHOC=1";
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = "\"$(SRCROOT)/Externals/alpstein-route-me/MapView/Map/**";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
+ SDKROOT = iphoneos;
+ STRIP_INSTALLED_PRODUCT = NO;
+ TARGETED_DEVICE_FAMILY = 2;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = "Ad Hoc";
+ };
+ DD9607CB14D36EEB00FA2CBA /* Ad Hoc */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ CODE_SIGN_ENTITLEMENTS = Entitlements.plist;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "Mapresent/Mapresent-Prefix.pch";
+ HEADER_SEARCH_PATHS = (
+ "\"$(SRCROOT)/Externals/BlocksKit\"/**",
+ "\"$(SRCROOT)/Externals/alpstein-route-me/MapView/Map\"/**",
+ );
+ INFOPLIST_FILE = "Mapresent/Mapresent-Info.plist";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)/Externals/TestFlight SDK\"",
+ );
+ OTHER_LDFLAGS = (
+ "-ObjC",
+ "-all_load",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = "Ad Hoc";
+ };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -749,6 +835,7 @@
buildConfigurations = (
DD2B335814CF75AE008DE8CB /* Debug */,
DD2B335914CF75AE008DE8CB /* Release */,
+ DD9607CA14D36EEB00FA2CBA /* Ad Hoc */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
@@ -758,6 +845,7 @@
buildConfigurations = (
DD2B335B14CF75AE008DE8CB /* Debug */,
DD2B335C14CF75AE008DE8CB /* Release */,
+ DD9607CB14D36EEB00FA2CBA /* Ad Hoc */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
View
4 Mapresent/DSMRAppDelegate.m
@@ -33,6 +33,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[self.window makeKeyAndVisible];
+#ifdef ADHOC
+ #include "../TestFlight.txt"
+#endif
+
return YES;
}
View
63 Mapresent/DSMRViewController.m
@@ -131,6 +131,27 @@ - (void)viewDidLoad
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playToggled:) name:DSMRTimelineViewPlayToggled object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playProgressed:) name:DSMRTimelineViewPlayProgressed object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(saveState:) name:UIApplicationWillResignActiveNotification object:nil];
+
+#ifdef ADHOC
+ // add beta tester feedback button
+ //
+ UIImage *testFlightImage = [UIImage imageNamed:@"testflight.png"];
+
+ UIButton *feedbackButton = [[UIButton alloc] initWithFrame:CGRectMake(10,
+ self.view.bounds.size.height - testFlightImage.size.height - 10,
+ testFlightImage.size.width,
+ testFlightImage.size.height)];
+
+ [feedbackButton setImage:testFlightImage forState:UIControlStateNormal];
+
+ [feedbackButton addTarget:[TestFlight class] action:@selector(openFeedbackView) forControlEvents:UIControlEventTouchUpInside];
+
+ feedbackButton.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin;
+
+ feedbackButton.alpha = 0.25;
+
+ [self.view addSubview:feedbackButton];
+#endif
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
@@ -230,6 +251,8 @@ - (IBAction)pressedPlayFullscreen:(id)sender
[self pressedFullScreen:self];
[self performSelector:@selector(pressedPlay:) withObject:self afterDelay:1.0];
+
+ [TestFlight passCheckpoint:@"played fullscreen"];
}
- (void)pressedExportCancel:(id)sender
@@ -244,6 +267,8 @@ - (void)pressedExportCancel:(id)sender
[self.timelineView togglePlay];
[self cleanupExportUIWithSuccess:NO];
+
+ [TestFlight passCheckpoint:@"cancelled export"];
}
- (IBAction)pressedPlay:(id)sender
@@ -475,6 +500,8 @@ - (IBAction)pressedPlay:(id)sender
[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
+ [TestFlight passCheckpoint:@"completed video export"];
+
break;
}
case AVAssetExportSessionStatusFailed:
@@ -539,6 +566,8 @@ - (IBAction)pressedFullScreen:(id)sender
self.mapView.centerCoordinate = mapCenter;
}
completion:nil];
+
+ [TestFlight passCheckpoint:@"toggled fullscreen mode"];
}
#pragma mark -
@@ -606,6 +635,8 @@ - (void)playProgressed:(NSNotification *)notification
if (self.isFullScreen)
[self pressedFullScreen:self];
+
+ [TestFlight passCheckpoint:@"played presentation to completion"];
}
else if ([self.playButton.currentImage isEqual:[UIImage imageNamed:@"pause.png"]] && [[self.markers valueForKeyPath:@"timeOffset"] containsObject:[NSNumber numberWithDouble:[self.timeLabel.text doubleValue]]])
{
@@ -651,6 +682,8 @@ - (void)beginExport
{
if ( ! self.timelineView.isExporting)
{
+ [TestFlight passCheckpoint:@"began video export"];
+
[UIApplication sharedApplication].idleTimerDisabled = YES;
UIView *exportModal = [[[NSBundle mainBundle] loadNibNamed:@"DSMRExportModalView" owner:self options:nil] lastObject];
@@ -811,10 +844,14 @@ - (IBAction)pressedShare:(id)sender
[alert show];
}
+
+ [TestFlight passCheckpoint:@"tried to open video in external apps"];
}];
}
[actionSheet showFromRect:attachRect inView:self.view animated:YES];
+
+ [TestFlight passCheckpoint:@"opened share menu"];
}
- (void)playLatestMovie
@@ -827,6 +864,8 @@ - (void)playLatestMovie
moviePresenter.moviePlayer.allowsAirPlay = YES;
[self presentMoviePlayerViewControllerAnimated:moviePresenter];
+
+ [TestFlight passCheckpoint:@"played video in app"];
}
- (void)emailLatestMovie
@@ -847,6 +886,8 @@ - (void)emailLatestMovie
mailer.mailComposeDelegate = self;
[self presentModalViewController:mailer animated:YES];
+
+ [TestFlight passCheckpoint:@"emailed video"];
}
#pragma mark -
@@ -896,6 +937,8 @@ - (IBAction)pressedPlace:(id)sender
marker.snapshot = [self.mapView takeSnapshot];;
[self addMarker:marker refreshingInterface:YES];
+
+ [TestFlight passCheckpoint:@"added place marker"];
}
- (IBAction)pressedAudio:(id)sender
@@ -968,6 +1011,8 @@ - (IBAction)pressedAudio:(id)sender
[[NSFileManager defaultManager] removeItemAtURL:self.recorder.url error:nil];
[self addMarker:marker refreshingInterface:YES];
+
+ [TestFlight passCheckpoint:@"added audio marker"];
}
}
@@ -1034,6 +1079,8 @@ - (IBAction)pressedTheme:(id)sender
[self presentModalViewController:wrapper animated:YES];
[MBProgressHUD hideHUDForView:self.view.window animated:YES];
+
+ [TestFlight passCheckpoint:@"browsed themes"];
}
}];
}
@@ -1071,6 +1118,8 @@ - (IBAction)pressedDraw:(id)sender
//
[self popoverControllerShouldDismissPopover:drawingPopover];
[drawingPopover dismissPopoverAnimated:YES];
+
+ [TestFlight passCheckpoint:@"added drawing clear marker"];
}];
drawingPalette.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
@@ -1139,7 +1188,9 @@ - (void)addThemeTransition:(id)sender
marker.snapshot = picker.snapshot;
[self refresh];
- });
+ });
+
+ [TestFlight passCheckpoint:@"added theme marker"];
}
#pragma mark -
@@ -1173,6 +1224,8 @@ - (void)pageViewController:(UIPageViewController *)pageViewController didFinishA
if (finished)
[self performSelector:@selector(updateThemePages) withObject:nil afterDelay:0.0];
+
+ [TestFlight passCheckpoint:@"turned theme page"];
}
#pragma mark -
@@ -1207,6 +1260,8 @@ - (BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverCont
marker.snapshot = drawingImage;
[self addMarker:marker refreshingInterface:NO];
+
+ [TestFlight passCheckpoint:@"added drawing marker"];
}
[self refresh];
@@ -1290,6 +1345,8 @@ - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEd
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationLeft];
[self refresh];
+
+ [TestFlight passCheckpoint:@"deleted timeline marker"];
}
#pragma mark -
@@ -1300,6 +1357,8 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[self fireMarkerAtIndex:indexPath.row];
+
+ [TestFlight passCheckpoint:@"tapped palette table marker"];
}
#pragma mark -
@@ -1314,6 +1373,8 @@ - (void)timelineMarkerTapped:(DSMRTimelineMarker *)marker
{
if ( ! self.timelineView.isPlaying)
[self fireMarkerAtIndex:[self.markers indexOfObject:marker]];
+
+ [TestFlight passCheckpoint:@"tapped timeline marker"];
}
@end
View
1  Mapresent/Mapresent-Prefix.pch
@@ -11,5 +11,6 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
+ #import "TestFlight.h"
#import <BlocksKit/BlocksKit.h>
#endif
View
BIN  Mapresent/testflight.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
3  TestFlight.txt
@@ -0,0 +1,3 @@
+ // alter & uncomment this to include your TestFlight token:
+ //
+ // [TestFlight takeOff:@"<token>"];
Please sign in to comment.
Something went wrong with that request. Please try again.