37 Commits

Author SHA1 Message Date
Andreas Linde
f211182f49 Add anonID to crash reports
CrashReporter Key is actually an anonymous ID for each device/installation where the crash occurred
2012-11-27 02:37:47 +01:00
Andreas Linde
2c4dc33f36 Call delegate also if a crash was detected but could not be read
If PLCrashReporter wrote a crash report, that could not be read, no delegate was fired. That could make the app stay in the start up maintenance screen, if it handles crashes on startup.
Though there was no report this ever happened, there is the theoretical chance this could.
2012-11-26 19:45:21 +01:00
Andreas Linde
31e680400e Fix potential crash if delegates return nil 2012-11-16 16:58:11 +01:00
Andreas Linde
a47c4b1bfd Fix compiler warnings 2012-11-07 16:25:22 +01:00
Andreas Linde
a14fa23f28 Convert to ARC 2012-10-23 16:22:23 +02:00
Andreas Linde
34f6e3faf4 Add installationIDs to feedback and crash reports, so those can be linked together and amount of affected users of a crash can be determined
Uses iOS 6 ASIdentifierManager class or identifierForVendor if the class is not available. Fallback on iOS 5 is to use app path UUID which is generated by iOS when installing the app
2012-10-19 18:16:24 +02:00
Andreas Linde
ed63a5a7b9 Send userID as extra value in crash reports and feedback if available 2012-10-19 17:34:23 +02:00
Andreas Linde
59a0319ea9 Update appName handling 2012-10-19 17:18:10 +02:00
Andreas Linde
7fdf39148f Use NSLog if non App Store environment for deprecated messages 2012-10-15 13:33:57 +02:00
Andreas Linde
1887ee7501 Also use old delegates in CrashManager for username and email if present, but mark them as deprecated 2012-10-12 16:56:44 +02:00
Andreas Linde
9b8f51fe5f Restructure project targets and binary distribution target
- Use one common static lib target
- create embeddedFramework as binary distribution including docset in one zip
- Add HockeySDK.xcconfig for easier build setting setup
- Move everything into a single directory, too many problems making binary and subproject work without requing recursive header search paths
- Documentation update pending
2012-10-07 21:49:47 +02:00
Andreas Linde
1a71aa2ea5 Initial Feedback component
- First implementation on feedback, not finished yet!
- Move all components into their own subdirectory
- Restructure common delegates into BITHockeyManagerDelegate
- Restructure common component methods into new superclass (not finished yet)
2012-09-28 12:30:19 +02:00
Andreas Linde
5428df4f45 Fix checking for new PLCrashReporter properties being available 2012-09-27 21:58:55 +02:00
Andreas Linde
13b918f9cd Add some error handler detection, to optionally notify the developer of multiple handlers that could cause crashes not to be reported to HockeyApp
Enable debugLogEnabled to get this warning.
2012-08-20 15:46:41 +02:00
Andreas Linde
a0f41065a8 Add some more info to log message to more easily classify them 2012-08-20 13:28:33 +02:00
Andreas Linde
28c9480da7 Show [HockeySDK] prefix on all NSLog messages 2012-08-20 13:14:29 +02:00
Andreas Linde
6b7f405868 Show a error message in the console, if an older PLCrashReporter version is actually linked and give a hint on what to do 2012-08-20 13:14:29 +02:00
Andreas Linde
4707e0c8d1 Make sure the app doesn't crash, if the developer forgot to delete the old PLCrashReporter framework and the framework search path is still pointing to it
If the framework search path still has the path to an older PLCrashReporter framework set and that is set before the path to HockeySDK, then it would link against the old one causing the app to crash when trying to send a bug report, because the old PLCrashReporter version is missing some new properties.
2012-08-20 13:14:29 +02:00
Andreas Linde
58e7dc28a1 Fix a typo 2012-08-14 12:19:19 +02:00
Andreas Linde
ece5f8bc49 Make sure PLCrashReporter only gets initialized once, even on manually invoking the method multiple times
And also catch the exception PLCrashReporter throws, if the develop is somehow trying to initialize it multiple times.
2012-08-14 12:17:17 +02:00
Andreas Linde
40041ad882 Fix a crash if the notification BITHockeyNetworkDidBecomeReachableNotification is being sent 2012-08-14 12:17:17 +02:00
Andreas Linde
660c3083c9 Fix crash manager not using delegates, because the delegate is not set yet 2012-08-09 00:31:27 +02:00
Andreas Linde
80dda70552 Use localized app name for dialogs 2012-08-07 16:14:24 +02:00
Andreas Linde
9859335f64 Add option to change the server URL
And fix a bug with the disable properties
2012-08-06 14:37:27 +02:00
Andreas Linde
41065796a6 Remove crash reporting feedback feature for now
Removed this feature for now, since it requires a major redesign on the server and SDK. If really need this feature, please use the former SDKs.
2012-08-04 13:53:49 +02:00
Andreas Linde
7ead5d998b Restructure (crash) manager internals
- Write all temp data into the same directory under caches/<sdkidentifier>/...
- Write approved crashes into its own plist instead of user defaults
- Use a temp file for analyzing crash report file instead of user defaults boolean
- Fix some define namings
2012-07-27 12:03:40 +02:00
Andreas Linde
23e2183c87 Fix finding the resource bundle 2012-07-24 23:43:58 +02:00
Andreas Linde
6a6da9e6ef Provide a new property for setting the crash manager status
This allows to disable the crash manager, or set the default sending to always ask or autosend
2012-07-23 18:25:31 +02:00
Andreas Linde
fc6a564a97 Some define code cleanup 2012-07-22 22:00:32 +02:00
Andreas Linde
93bd10ced5 Provide a delegate method to disable crash reporting instead of using a property 2012-07-22 21:42:28 +02:00
Andreas Linde
4a4051d04b Move userName and userEmail properties into delegate and fix some delegate namings 2012-07-22 21:12:33 +02:00
Andreas Linde
c014bce9ea If userName or userEmail are set, don't show alerts with the text "anonymous" 2012-07-22 13:57:12 +02:00
Andreas Linde
352230b5f7 Add BITCrashManagerDelegate that is invoked if the user chooses not to send a crash report 2012-07-22 04:12:46 +02:00
Andreas Linde
0586a69bc0 Clean up some private ivars and methods and move them into their own header files 2012-07-22 00:32:42 +02:00
Andreas Linde
812d0b4a35 Clean up some more naming and disable logging in App Store
- Change last BITHockeySDK.. into BITHockey…
- Disable BITHockeyLog when running in an App Store build
2012-07-21 22:58:40 +02:00
Andreas Linde
4e572a31f5 Fix log message of bundle is missing 2012-07-19 23:44:29 +02:00
Andreas Linde
671060929c Refactoring
- Change Prefixes to BIT
- Make one shared instance and change the functionalities to modules
- One bundle for resources
- Targets for framework and static libs
- Other cleanup
2012-07-19 17:17:19 +02:00