138 Commits

Author SHA1 Message Date
Andreas Linde
0bb78d7201 Update documentation
- Remove Advanced setup guide
- Added `libc++` dependency
- Updated modulemap files to automatically link all required libraries and frameworks
- Updated setup doc to use module import style
- Update CrashOnly build modulemap file
- Code style fixes
2015-06-12 14:41:58 +02:00
Gwynne Raskind
7ccfe6aac7 Port C++ exception handling support over from PLCrashReporter's non-merged implementation. Includes changes to auto-link C++ with client apps where possible. Correctly handles cases where client apps use libstdc++. 2015-06-10 11:32:03 -05:00
Andreas Linde
6962f21473 Disable tracking the installation on a device
The new property will cause the app to generate a new `installString` value every time the app is cold started.

The property is only considered in App Store Environment, since it would otherwise affect the `BITUpdateManager` and `BITAuthenticator` functionalities!

Default is NO.
2015-06-08 14:03:54 +02:00
Andreas Linde
7f6ef93b0f Fixed offline issue with unsend crash reports
This fixes an issue of the following scenario:

- Autosending crash reports is disabled, so alerts appear
- The app crashes
- The app restarts, shows the UI and sending is approved
- The device is offline can't send the report
- The app crashes again
- The app restarts, shows the UI and sending is approved
- The device is offline can't send the report
- The app goes background or exits
- The app starts again and shows the UI again and again and again, even though it is already approved.

Only the device coming back online fixed this issue so far.

This commit fixes this issue for all scenarios.
2015-05-20 14:57:25 +02:00
Eloy Durán
63228fdc25 Add process ID to BITCrashDetails. 2015-05-07 17:29:13 +02:00
Andreas Linde
69d61e5189 Fix issue with AppNotTerminatingCleanlyDetection
The code wronly assumed that when crashManager startManager is invoked, it will always be in the foreground, which causes false reports in some scenarios. The fix checks if the app is really active when this code is running.
2015-03-31 13:14:46 +02:00
Cédric Luthi
6763399f00 Add deprecated property for renamed timeintervalCrashInLastSessionOccurred 2015-03-19 09:51:25 +01:00
Andreas Linde
7eef1c4075 Fix a lot more typos and a property name typo
See https://github.com/bitstadium/HockeySDK-iOS/issues/139

Important for users, is that the public property `timeintervalCrashInLastSessionOccured` name is fixed. If you are using this, you need to adjust your code.
2015-03-18 17:07:39 +01:00
Steven Fisher
b4b356c5f8 Fix spelling of anonymous. 2015-03-16 11:53:38 -07:00
Steven Fisher
0da0ceb34a Fix spelling of specific. 2015-03-16 11:52:55 -07:00
Andreas Linde
b99e25ec3c Store crash metadata after setting crash object
Fetch and store the meta data after setting _lastSessionCrashDetails, so the property can be used in the protocol methods
2015-03-14 10:53:40 -07:00
Andreas Linde
1f6cc3f84a Fix a few compiler warnings
This fixes a few compiler warnings when compiling using iOS 8 as deployment target. Default is still iOS 6!
2014-11-24 15:14:08 +01:00
Andreas Linde
1b2dad78d9 Encapsulate app name in CDATA when sending crash
In case an app name looks like an XML tag, this ensures that it can be processed correctly on the server by the XML reader
2014-10-31 15:36:31 +01:00
Andreas Linde
3354a36f11 Don't warn for missing resource with extensions
App extensions can't display UIAlerts for crashes anyway, so we don't need the extensions in the extension bundle.
2014-09-25 15:14:23 +02:00
Andreas Linde
2040206101 Add support for App Extensions
- Added simple detection method to check wether the SDK runs in an extension
- BITCrashManager will send crash reports without UI (UIAlertViews aren't allowed in extensions anyway)
- Don't start BITUpdateManager, BITStoreUpdateManager, BITFeedbackManager and BITAuthenticator in app extensions
2014-09-24 17:06:22 +02:00
Andreas Linde
aa5e68536d Fix formatting of appname in crash reports
Fixes highlights on HockeyApp backend of apps with special chars in their name
2014-09-03 14:14:34 +02:00
Andreas Linde
cae1226b38 Allow customizable attachments to feedback
- New `BITHockeyAttachment` class, which `BITCrashAttachment` is now a subclass of
- Can also be used in `prepareWithItems:` for BITFeedbackComposeViewController
- Allows to set a custom filename and content-type for attachments that can be used with crash reports and with feedback
2014-06-21 16:23:55 +02:00
Andreas Linde
7963fdf5a7 Merge branch 'refs/heads/feature/instancetype' into develop 2014-06-12 00:26:27 +02:00
Lukas Spieß
42738397a6 Replace initialiser return types of id with new instancetype 2014-06-11 15:35:45 +02:00
Andreas Linde
12682d9e3d Fix handling of some edge cases in relation to sending approved crash reports 2014-06-10 15:37:13 +02:00
Andreas Linde
05e0e7ccd6 Make sure checking for non approved crash reports also works when there is no crash in the last session 2014-06-10 12:36:41 +02:00
Andreas Linde
f51a0a8b86 Fix using the correct meta filename when sending crash reports 2014-06-10 01:00:53 +02:00
Andreas Linde
4465bb402f Add osVersion and osBuild to BITCrashDetails 2014-06-09 15:49:58 +02:00
Andreas Linde
9ca84408d3 Merge branch 'refs/heads/feature/feedback_screenshot' into develop 2014-05-26 14:57:53 +02:00
Andreas Linde
347c4dc743 Merge branch 'refs/heads/develop' into feature/feedback_screenshot 2014-05-25 23:04:21 +02:00
Andreas Linde
b48bb8fb12 Cleanup and bugfixes
- Remove not used code
- Fixed some code style
- use a subdirectory in the SDK caches folder, instead of creating another folder directly under caches
- Height of feedback cells only considers attachments that actually can be previewed.
- If an attachment has no source URL and no local URL, don't show it, not even a loading placeholder, don't consider to reserve space in the cell for it
- refresh attachment cache when new data is loaded or one or all message(s) with attachments have been deleted locally
- `feedbackObservationMode` is a property instead of a method
2014-05-25 18:55:24 +02:00
Andreas Linde
b5731ab923 Merge branch 'refs/heads/develop' into feature/CrashReporting 2014-05-20 13:31:30 +02:00
Andreas Linde
89a7398971 Allow the developer to set more than just the description when handling user alert for crashes
- Also fixes a bug where crash caches dir could get deleted
- Some refactoring
2014-05-20 13:28:05 +02:00
Andreas Linde
58f6854a5e Update BITCrashDetails and remove non needed properties in BITCrashManager
cleanup :)
2014-05-20 12:03:22 +02:00
Andreas Linde
0f117b27c5 Send each crash report individually one after another and only if the previous succeeds
This reduces unnecessary network traffic and performance issues if there are lots of crashes pending for sending on the device
2014-05-04 17:56:45 +02:00
Andreas Linde
cf926593f5 Don't delete all crash reports when the user denies to send the latest one 2014-05-04 17:55:00 +02:00
Andreas Linde
2155f5f93b Add app build property to BITCrashDetails 2014-05-01 16:57:28 +02:00
Andreas Linde
75263f64fc Change attachmentData property of BITCrashAttachment to crashAttachmentData 2014-04-29 13:46:01 +02:00
Andreas Linde
db45c6654a Minor code format update 2014-04-27 23:33:07 +02:00
Andreas Linde
38a59fc73f Naming convention cleanup 2014-04-27 20:20:10 +02:00
Andreas Linde
b5a79f9761 Merge branch 'refs/heads/feature/CrashReporting' into feature/CrashNetwork
Conflicts:
	Classes/BITCrashManager.m
	Classes/BITCrashManagerPrivate.h
2014-04-27 20:17:08 +02:00
Andreas Linde
c4e7754a8b Merge branch 'refs/heads/feature/CrashReporting' into feature/CrashDetails
Conflicts:
	Classes/BITCrashManager.h
2014-04-27 20:04:31 +02:00
Andreas Linde
56f5fa9ddd Merge branch 'refs/heads/feature/CrashReporting' into feature/CrashCallback
Conflicts:
	Classes/BITCrashManager.h
	Classes/BITCrashManager.m
	Support/HockeySDK.xcodeproj/project.pbxproj
2014-04-27 20:02:26 +02:00
Lukas Spieß
82b217f19d Much better test for attachment persisting 2014-04-25 16:23:39 +02:00
Lukas Spieß
535537aa73 add additional tests 2014-04-25 14:23:33 +02:00
Lukas Spieß
654620ee3f add test for persistUserProvidedCrashDescription 2014-04-24 18:18:09 +02:00
Lukas Spieß
d232fe58f6 move cleanup to separate method 2014-04-24 18:17:46 +02:00
Lukas Spieß
5442b217eb Use .desc file extension for userProvidedCrashDescription 2014-04-24 16:47:47 +02:00
Lukas Spieß
3b2b76b34e move persisting of userProvidedCrashDescription to own method 2014-04-24 16:46:27 +02:00
Lukas Spieß
b5348f7dcb Types should start with a capital letter 2014-04-24 16:38:23 +02:00
Lukas Spieß
10c5475a02 make method signature consistent and reflect those changes in documentation 2014-04-24 16:32:34 +02:00
Lukas Spieß
3fd8cdc7e0 replace ugly block notation with clean typedef 2014-04-24 16:11:34 +02:00
Lukas Spieß
1311846241 update method signature 2014-04-24 16:10:12 +02:00
Lukas Spieß
4aee9f81b5 Small optimizations 2014-04-24 15:38:31 +02:00
Lukas Spieß
27cc84a84c Maybe a switch case should return a value... 2014-04-24 15:38:10 +02:00