661 Commits

Author SHA1 Message Date
Andreas Linde
5cd861dbb0 Fix formatting of appname in crash reports
Fixes highlights on HockeyApp backend of apps with special chars in their name
2014-09-08 14:25:02 +02:00
Andreas Linde
735792ed99 Fix a small typo in an alert of BITAuthenticator 2014-09-08 14:07:58 +02:00
Andreas Linde
b309613b71 Make keychain data better accessible
Use `kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly` instead of `kSecAttrAccessibleWhenUnlockedThisDeviceOnly` when storing data into the keychain to allow the data to be also fetched when the app is launched in the background
2014-09-08 14:07:47 +02:00
Andreas Linde
37ed085436 Add warnings to the console for the last commit
Notify the developer about the issues by logging a warning to the console when the SDK is initialized more than once or startManager is invoked multiple times
2014-09-08 14:07:41 +02:00
Andreas Linde
f6d717265e Make sure multiple setup runs are ignored
If the `configure` initializers or `startManager` are invoked multiple times, this can cause undefined behaviour and crashes. Hence we simply ignore if they are invoked multiple times.
2014-09-08 14:07:29 +02:00
Andreas Linde
915bae7d0b Fix update view for resizable iPhone
Resizable iPhone causes modal presentations not to be full screen any longer, so we always should use the views width and never the device-width for the version update data presentation. This also works just fine when build with iOS <= 7.1.x
2014-09-08 14:07:12 +02:00
Andreas Linde
58dde365a9 Fix broken auth
The commit 1678d7550a0cc667b14e1efa5608ce3d271bfa42 did break BITAuthenticator
2014-09-08 14:07:00 +02:00
Andreas Linde
53510f64cc Send install uuid with BITAuthenticator requests 2014-09-08 14:06:39 +02:00
Andreas Linde
aa7b2e018f Change attachmentData property of BITCrashAttachment to crashAttachmentData 2014-09-08 14:06:04 +02:00
Andreas Linde
47a3be4a79 Fix some best app icon finding issues
In some cases the algorithm didn't find any icon, even if they are there
2014-07-21 13:54:44 +02:00
Andreas Linde
6fc0e154cf Improve fetching the optimal icon of an app for the update view 2014-07-21 13:54:29 +02:00
Andreas Linde
2ae203d7a5 Fix a bug in the networking stack
Solves an networking issues when compiling with iOS 8
2014-07-21 13:54:01 +02:00
Andreas Linde
28f15120a3 Fix keychain warning alert showing app on app launch, if keychain is locked
This could happen if the app is launched via background fetch right when the device started and before it is unlocked by the user.
2014-04-01 16:06:32 +02:00
Andreas Linde
0765c93f1b Fix manually calling checkForUpdate on BITUpdateManager with updateSetting=BITUpdateCheckManually not working 2014-03-27 18:59:18 +01:00
Andreas Linde
2e35437c9c Improve last commit by removing conditional 64bit compile
Again thanks to @0xced :)
2014-03-27 00:20:15 +01:00
Andreas Linde
b5087a61c4 Improve fetching of current binaries UUID
- This now also works with unit tests
- Fixed BITStoreUpdateManager for now failed unit tests
- Fixed a typo

Thanks to @0xced !
2014-03-27 00:13:27 +01:00
Andreas Linde
6db478b452 Add some tests for BITFeedbackManager and user meta data properties 2014-03-24 15:47:22 +01:00
Andreas Linde
1b9e924426 Remove assert since that code can also be reached using auto-authentication. 2014-03-07 16:32:21 +01:00
Andreas Linde
1068bb119c Add support for binary attachments to crash reports 2014-02-27 18:21:17 +01:00
Andreas Linde
ce9014f111 Add SDK version and build strings into a non stripped struct 2014-02-20 22:41:19 +01:00
Andreas Linde
54b3c57ee2 Remove #ifdef for clang analyzer since the false warning from 4.2b3 doesn't appear any longer
Tested with Xcode 5.0.2
2014-02-20 16:33:31 +01:00
Andreas Linde
1df317b59f If BITAuthenticator is set to BITAuthenticatorIdentificationTypeWebAuth then also attach the user email to crash reports 2014-02-20 14:02:02 +01:00
Andreas Linde
3b9f38fd16 Fix a crash if no selector could be found 2014-02-18 16:03:11 +01:00
Andreas Linde
d560a640ad Fix leak in BITKeychainUtils 2014-02-13 21:09:11 +01:00
Andreas Linde
ab241aaa1f Show the selector name found in the current argument registers in crash reports, helpful e.g. for crashes in objc_msgSend
This is a safe implementation with only hard wiring the necessary bits for where objc_msgSend stores the receiver objects based on the CPU architecture. From: http://sealiesoftware.com/blog/archive/2008/09/22/objc_explain_So_you_crashed_in_objc_msgSend.html

In the mid/long term, PLCrashReporter will include this directly.
2014-02-12 12:26:02 +01:00
Andreas Linde
0f44f6f4ad More documentation improvements 2014-02-11 18:20:53 +01:00
Andreas Linde
5b782b90be Documentation fixes 2014-02-11 16:40:21 +01:00
Andreas Linde
53ae4c2dff Disable on device symbolication by default and add a property to enable it 2014-02-11 16:37:06 +01:00
Andreas Linde
6d6aa54bea Add new setter for global userID, userName, and userEmail properties
The values are used by the `BITCrashManager` to attach to a crash report and`BITFeedbackManager for assigning the user to a discussion thread.

The value can be set at any time and will be stored in the keychain on the current device only! To delete the value from the keychain set the value to `nil`.

These properties are optional and alternatives to the delegates. If you want to define specific values for each component, use the delegate instead which do overwrite the values set by these properties.

Also fixed a typo in the delegates documentation.
2014-02-11 16:22:31 +01:00
Andreas Linde
88bf3fae62 Move creation of settings directory into helper function 2014-02-11 15:40:11 +01:00
Thomas Dohmke
fad5e586c5 Make sure that the chunk name is null-terminated. 2014-02-10 20:35:30 +01:00
Andreas Linde
9123392d0f Remove the word 'anywhere' from the header doc of BITFeedbackManager 2014-02-10 17:57:12 +01:00
Andreas Linde
a9fda179da Added more logging for BITAuthenticator 2014-02-10 16:25:40 +01:00
Andreas Linde
a0153e4205 Improve BITFeedbackComposeViewControllerDelegate handling
Goal: make BITFeedbackComposeViewControllerDelegate usable for the view controller used by BITFeedbackListViewController

- The delegate is automatically set to the global BITHockeyManager delegate
- When invoking your BITFeedbackComposeViewController, it is possible to overwrite the delegate
2014-02-06 13:43:06 +01:00
Andreas Linde
f3ea32ea7f Fixed usage time being always send as 0 instead of sending the actual usage time 2014-01-28 01:33:22 +01:00
Andreas Linde
80e6cd6d16 Fixed "install" button in the mandatory update alert not working and forcing users to use the "show" button and then install from the update view instead 2014-01-27 00:01:13 +01:00
Andreas Linde
7086153d46 Make sure a log message appears in the console if the SDK is not setup on the main thread 2014-01-24 14:11:41 +01:00
Andreas Linde
66c84630ea Fix possible unused function warnings 2014-01-19 21:29:02 +01:00
Thomas Dohmke
af0604bef3 Fix two warnings when -Wshorten-64-to-32 is set. 2014-01-16 15:47:13 +01:00
Thomas Dohmke
e4010ea8ef Add some more checks to avoid problems when iTunesArtwork is not a .png. 2014-01-14 19:03:53 +01:00
Andreas Linde
670e376e9e Change the default of crashmanagers showAlways property to YES
This results in crash report alerts by default showing the `Always` button, so they will never be asked again and future crash reports will be send automatically.
2014-01-12 21:08:53 +01:00
Andreas Linde
235f7ac9fe Updated copyright for 2014 2014-01-12 19:25:22 +01:00
Andreas Linde
0712b8fa63 Use the correct User-Agent name when sending crash reports 2014-01-12 19:15:28 +01:00
Andreas Linde
dde368a952 Show an alert if the authentication token could not be stored into the keychain
If this occurs, the user has to authenticate every time the app starts or even when the app comes into foreground, depending on the `restrictionEnforcementFrequency` setting
2014-01-10 19:47:50 +01:00
Andreas Linde
d5a6553357 Make sure the authentication window is always correctly dismissed
If there would not be any rootViewController (which iOS now requires though), it could happen that the auth window would not disappear upon successful authentication. The app would have had to be killed and started again to proceed.
2014-01-10 19:36:57 +01:00
Andreas Linde
0b01f8e897 Add apps CFBundleVersion to the testIdentifier call 2014-01-10 14:52:56 +01:00
Andreas Linde
a0bfdfbaec Issue #85: Replace kNilOptions with 0
Thanks to Jonathan!
2014-01-10 02:27:51 +01:00
Andreas Linde
6a07ee6a60 testIntegration call should also send SDK name and version 2014-01-09 16:40:07 +01:00
Andreas Linde
7608f8253d Set the tintColor in the auth view and modal views navigation controller on iOS 7
- The authentication controller now sets the buttons tintColor always to the default blue color. This fixes white UIWindow tintColor, since the auth view is using white as background.
- Navigation controllers for modal views now also set the tintColor of the navigationBar to the default blue color on iOS 7, if the developer did not set the `navigationBarTintColor`. This fixes white UIWindow tintColor for feedback and beta update modal views as they are defined to use the default style.
2014-01-09 15:44:21 +01:00
Andreas Linde
0bd80c91be Added button to expired page (and alert) that lets the user check for a new version
- Added option to disable the option via new `disableUpdateCheckOptionWhenExpired` property
2014-01-07 21:47:48 +01:00