1293 Commits

Author SHA1 Message Date
Andreas Linde
a236351d6e Store anonUUID in background thread to keychain
We got a (single) report that storing the anonymous UUID to the keychain can take multiple seconds causing the launch process to be locked and causing iOS to kill the app.

Storing in a background thread doesn't do any harm in our case, and if it fails, it would simply cause the next app start to produce another UUID which is fine.
2014-11-14 15:43:28 +01:00
Andreas Linde
3d8800b89a Merge pull request #124 from PhilipKram/fixSupportForiOS6
Changed the containsString to rangeOfString.
2014-11-11 00:36:35 +01:00
Philip Kramarov
5f43886974 Changed the containsString to rangeOfString.
containsString is supported from iOS 8 only.
2014-11-10 23:49:54 +02:00
Andreas Linde
ef82814471 Improve app binary detection in crash reports
- Fix iOS 8 issue with not remove part of a path when using `stringByStandardizingPath` (removed leading `/private`)
- Exclude iOS swift libraries from being detect as app specific
2014-11-03 15:45:37 +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
3356b1df1f Added new delegate for update process before exit
New delegate `updateManagerWillExitApp` for `BITUpdateManager` that is invoked right before the app wil exit to allow app update to start (>= iOS 8 only)
2014-10-24 01:23:34 +02:00
Andreas Linde
a93df35d7d Fix feedback screenshot trigger
AssetsLibrary isn't as fast as we want it to be to provide the screenshot always on the screenshot gesture trigger. So we delay fetching the data from AssetsLibrary by 0.5s and hope the screenshot will then be available.
2014-10-16 22:50:48 +02:00
Andreas Linde
d840cfd964 Don't store the updatemanager file in non beta
The BITUpdateManager did store an empty file even if the app is run via the App Store.
2014-10-08 06:15:45 -07:00
Andreas Linde
606344c730 Fixed feedback compose issue with predefined text
If there was predefined text to appear in a feedback compose view and the user added some more text and then added an attachment, the user added text was removed and only the predefined text appeared.
2014-10-08 06:07:08 -07:00
Andreas Linde
f1c54a5783 Merge pull request #120 from 0xced/fix-analyzer-warning
Fix static analyzer warning
2014-09-30 16:06:06 +02:00
Cédric Luthi
f74cacb4c7 Fix static analyzer warning
When compiling for the iOS simulator, it would produce this warning.

The receiver of message 'resultType' is nil and returns a value of type 'NSTextCheckingType' that will be garbage
            switch (result.resultType) {
                    ~~~~~~ ^~~~~~~~~~
2014-09-30 15:40:26 +02:00
Andreas Linde
266270153e Fix feedbackActivity resources 2014-09-30 14:25:29 +02:00
Andreas Linde
538cfffeaf Merge tag '3.6.1' into develop
Version 3.6.1
2014-09-26 18:06:46 +02:00
Andreas Linde
8e062738bd Merge branch 'release/3.6.1' 2014-09-26 18:06:46 +02:00
Andreas Linde
071adb91de 3.6.1 release and documentation updates 2014-09-26 18:06:36 +02:00
Andreas Linde
34f78ebbef Fix feedback compose view in landscape and iOS 8
In landscape the text couldn't be seen, since the text view was moved up due to iOS 8 returning the keyboard height now as `height` in landscape, while it did return it as `width` in previous iOS versions.
2014-09-26 17:31:28 +02:00
Andreas Linde
8bf77291aa Merge branch 'release/3.6' 2014-09-26 14:07:33 +02:00
Andreas Linde
6874e00fbc Merge tag '3.6' into develop
Version 3.6
2014-09-26 14:07:33 +02:00
Andreas Linde
476a4de232 3.6 release and documentation updates 2014-09-26 14:07:18 +02:00
Andreas Linde
cdf6691579 More updates on extension support
- Added iOS 8 extension setup documentation
- Added a crash reporting only framework build to the binary distribution target
2014-09-25 17:29:45 +02: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
3b9482c32a Improve iOS version runtime checks
Hardcode the iOS 6.1 and iOS 7.1 NSFoundationVersionNumber values, so the checks also work when compiling the source with iOS 6.1 or iOS 7.1 as base iOS version.
2014-09-25 10:21:55 +02:00
Andreas Linde
4f05060adb Fix extension check code to be iOS 6/7 compatible 2014-09-25 10:15:15 +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
03767a63ef Add migration text for BITCrashManagerCallbacks 2014-09-24 14:20:15 +02:00
Andreas Linde
24a6756ba7 Update image resources 2014-09-23 13:48:23 +02:00
Andreas Linde
a44d77805d Update localizations
Also removed romanian, since it is not handled by Wordcrafts.
2014-09-23 12:07:35 +02:00
Andreas Linde
c53cd6facd Request update of a specific version
Even though the UI showed the newest version that the device can install, the download request always triggered downloading the latest version.

This commit fixes this bug.
2014-09-19 15:03:08 +02:00
Andreas Linde
70d2573cbd Update podspec
We don't need to include the PLCR headers any longer, this wasn't needed sincee a few 3.5 releases also.
2014-09-12 14:40:18 +02:00
Andreas Linde
375994c125 Merge branch 'hotfix/3.5.7' into develop 2014-09-10 18:44:03 +02:00
Andreas Linde
3072c15b66 Merge branch 'hotfix/3.5.7' 2014-09-10 18:20:09 +02:00
Andreas Linde
8e96793675 3.5.7 release and documentation updates 2014-09-10 17:49:47 +02:00
Andreas Linde
14a8cd332a Add workaround for iOS 8 update process issue
In iOS 8 the app is not moved to background once the users accepts the iOS install alert button. Without this, the install process doesn't start. So for now we exit the app once that alert disappears.

Important: The iOS dialog offers the user to deny installation, we can't find out which button was tapped, so we assume the user agreed.
2014-09-10 12:52:09 +02:00
Andreas Linde
c102fcd247 Update scheme setting for XCTest 2014-09-10 12:51:47 +02:00
Andreas Linde
d81e7381f5 Upgrade project to Xcode 6 2014-09-10 00:38:27 +02:00
Andreas Linde
3e52b09c0b Convert to XCTest 2014-09-10 00:38:17 +02:00
Andreas Linde
49e3df9cfa Update setup doc for Swift 2014-09-08 14:34:48 +02:00
Andreas Linde
9b7cb24351 Fix documentation warning in BITCrashAttachment 2014-09-08 14:34:26 +02:00
Andreas Linde
fe3c1cda7d Make swift integration easier
iOS Frameworks use an extra `Modules/module.modulemap` file that is used with the `import` statement to get all required information for integration. We simulate this behavior by writing our own file manually. So in apps using Swift the Objective-C bridging header is not required any longer (when using the binary distribution of the framework).
2014-09-08 14:34:12 +02:00
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
8eaa029536 Fix incorrect error log message
The warning about `delegate` setting after calling `startManager` being incorrect, should actually only be shown if it was called after it and not before it. Doh.
2014-09-06 01:55:52 +02:00
Andreas Linde
e9f3d7dde2 Update setup doc for Swift 2014-09-05 01:47:19 +02:00