103 Commits

Author SHA1 Message Date
Lukas Spieß
d51f86944f Fix typo in log message 2015-12-08 12:50:50 +01:00
Lukas Spieß
ffd5120a56 Merge branch 'develop' into feature/telemetry
# Conflicts:
#	Classes/BITFeedbackManager.m
#	Support/HockeySDK.xcodeproj/project.pbxproj
2015-10-09 14:36:56 +02:00
Lukas Spieß
bccfc61a42 Add warnings to docs for threading, properly dispatch internally 2015-10-05 17:39:03 +02:00
Lukas Spieß
44b231225c Silence AssetLibrary deprecation warning while we work to replace it 2015-10-01 17:04:46 +02:00
Lukas Spieß
30f27eae8f Small code refactorings and improvements 2015-10-01 17:04:23 +02:00
Lukas Spieß
5303ebc414 Always present feedback alerts using main queue 2015-10-01 15:37:07 +02:00
Lukas Spieß
96cfb169b6 Switch back to using UIAlertView
We won't use UIAlertController for now until we have a more robust solution for displaying it without knowing the currently presented view controller.
2015-09-29 16:38:11 +02:00
Lukas Spieß
8d945beedf Merge branch 'develop' into feature/telemetry
Conflicts:
	HockeySDK-Source.podspec
	README.md
	Support/buildnumber.xcconfig
	Support/release.xcconfig
	docs/Changelog-template.md
	docs/Guide-Installation-Setup-template.md
2015-09-18 16:43:15 +02:00
Andreas Linde
251249800a Fix compile error with Xcode 6.4 2015-09-18 16:15:03 +02:00
Lukas Spieß
9b0c199803 Merge branch 'develop' into feature/telemetry 2015-09-14 17:52:16 +02:00
Lukas Spieß
699d3f8303 Use UIAlertController for feedback alerts 2015-09-14 17:50:30 +02:00
Lukas Spieß
0f6ca9d1cd Rephrase log message 2015-09-14 17:47:58 +02:00
Lukas Spieß
608e12f255 Use newer Photos API for screenshots, when available
AssetsLibrary is deprecated. We now use the newer Photos API to fetch the screenshots.
2015-09-14 17:47:58 +02:00
Andreas Linde
f4c9a3bae5 Merge pull request #197 from bitstadium/feature/iOS9-Updates
Make SDK ready for iOS 9
2015-09-09 18:49:58 +02:00
Cédric Luthi
ba533464f3 Remove unnecessary nil checking before calling respondsToSelector: 2015-09-04 23:10:05 +02:00
Christoph Wendt
303f786938 Avoid retain cycles 2015-09-02 13:36:41 -07:00
Christoph Wendt
08c8b8242f Add NSURLSession support (BITStoreFeedbackManager) 2015-09-02 11:26:13 -07:00
Andreas Linde
cb00038222 Use UIAlertController when available 2015-07-22 15:37:51 +02:00
Andreas Linde
29acf3ef05 Fix iOS 9 warnings
- Require iOS 7 as base SDK  (for compiling)
- Hide deprecation message for NSURLConnection calls, these will be refactored soon
- Remove statusbar adjustment code (which isn't needed any longer)
- Remove kBITTextLabel... defines and use NSText.. instead
- Remove a few `#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_6_1` since we require iOS 7 as base now (for real)
2015-07-22 15:33:53 +02:00
Andreas Linde
19968651e9 Another fix for screenshot feature in feedback
Older devices (iPhone 4S and iPad 3 running iOS 8) would still show a previously captured screenshot instead of the current one, because it takes too long to get the image from the Asset Library than the assumed 0.5s. Increasing to 1.5s fixes the issue also for these.
2015-06-09 16:44:15 +02: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
bea1b3603a Add delegate to FeedbackManagerDelegate
Added `allowAutomaticFetchingForNewFeedbackForManager:` which allows the developer to influence if the SDK should fetch for new messages on app startup and when the app is coming into foreground.

By default the SDK always checks in those cases if there are already messages existing.
2015-05-19 14:08:49 +02:00
Andreas Linde
167358f25c Add option to hide "Add Image" attachment button 2015-05-12 12:25:03 +02:00
Yuriy
60da89d45b Added functionality for setting feedback composer initial items via BITFeedbackManager 2015-03-06 13:29:02 +02:00
Andreas Linde
30375a0362 Fix a crash in feedback list view with attachments
The crash was happening when an attachment was still loading in the last cell but before loading ended, the number of cells changed by deleting a message. Once the attachment was loaded, the crash occured.

This is no fixed by using a safer approach on updating the cell content for loaded attachments by using notifications and letting the cells decide themselves if they need to re-display their content.
2015-02-19 15:05:03 +01:00
Andreas Linde
d7904e2985 Fix a bug if setting feedback trigger twice
If the user set the `feedbackObservationMode` twice, this caused a crash. Should have been a rarely rare issue.
2014-11-17 18:35:29 +01: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
85d5480def Improve feedback screenshot feature
- Use iOS 7 functionality when available (Thanks to Lee for the hint)
- Always include status bar area
2014-06-24 21:21:08 +02:00
Andreas Linde
c1d75806c7 Minor code cleanup in Feedback component 2014-06-20 16:43:58 +02:00
Andreas Linde
fbfd4ae0fb Include statusbar in screenshots by default 2014-06-16 13:45:02 +02:00
Andreas Linde
423915cb0c Add option to include satusbar in screenshots
All mehotds in BITFeedbackManager that are screenshot releated are changed to include an option that defines wether the screenshot should include the statusbar (if present) or not:

- `- (UIImage *)screenshot` has been changed to `- (UIImage *)screenshotWithStatusBar:(BOOL)includeStatusBar)`
- `- (void)showFeedbackComposeViewWithGeneratedScreenshot` has been changed to `- (void)showFeedbackComposeViewWithGeneratedScreenshotWithStatusBar:(BOOL)includeStatusBar`
2014-06-14 17:22:45 +02:00
Andreas Linde
deee2db37e Expose public screenshot method
This is useful when trying to connect a compose view that is using a custom UIViewController via the delegate
2014-06-12 16:10:09 +02:00
Lukas Spieß
42738397a6 Replace initialiser return types of id with new instancetype 2014-06-11 15:35:45 +02:00
Andreas Linde
3cf56aa9d6 Various fixes and documentation improvements 2014-05-27 23:43:37 +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
moritz haarmann
926dc48aa6 + Async Attachment loading. 2014-05-05 14:35:32 +02:00
moritz haarmann
4c88a10a8f + Feedback Observation Mode: Not supported message for screenshot observation in iOS6 2014-05-05 11:20:20 +02:00
moritz haarmann
9fd79bc79f + Enabled Feedback Observation mode Three-Finger-Tap 2014-05-05 11:01:45 +02:00
moritz haarmann
e4700dab9b + Refactored Preview of Attachments. 2014-04-30 16:53:20 +02:00
moritz haarmann
3aa45bbb9f + Added preliminary load mechanics for Feedback Images. 2014-04-16 11:24:39 +02:00
moritz haarmann
5038c3e4e9 + Fixed a problem where missing file names would prevent the submittal of attachments. 2014-04-15 17:25:06 +02:00
moritz haarmann
672e38a7e2 + Fixes a Bug where attachments in the compose view are hidden on an iPad. 2014-03-06 10:57:32 +01:00
moritz haarmann
28eee0eb3d + Some basic image editing functionality. 2014-02-25 15:07:59 +01:00
moritz haarmann
70e2b6635c + Screenshot Feedback Observation Mode is working on iOS7.. 2014-02-24 12:17:34 +01:00
moritz haarmann
1ddf9d5eb8 + Added Feedback collection methods. 2014-02-24 12:12:51 +01:00
moritz haarmann
3f7e6904a6 + Attachment handling 2014-02-24 10:36:49 +01:00
moritz haarmann
47594faf5f + Improved Persistence handling. 2014-02-18 11:56:07 +01:00
Moritz Haarmann
6b09e75cd6 + Original Filename of picked image is used as attachment name. 2014-02-17 23:49:49 +01:00
moritz haarmann
38af43bdb5 + Changing machines.. 2014-02-17 21:04:03 +01:00
moritz haarmann
36371dcd30 + Finalized preliminary feedback support. Now comes the polish. 2014-02-13 11:04:32 +01:00