76 Commits

Author SHA1 Message Date
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
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
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
235f7ac9fe Updated copyright for 2014 2014-01-12 19:25:22 +01:00
Andreas Linde
a0bfdfbaec Issue #85: Replace kNilOptions with 0
Thanks to Jonathan!
2014-01-10 02:27:51 +01:00
Andreas Linde
323b9784ea Simplified configuration
- Add simplified initializers
- Add option to set delegate via public property
2013-11-20 22:54:28 +01:00
Andreas Linde
a4124dbda4 Fix removing observers correctly
Thanks to @idpaterson for reporting this in https://github.com/bitstadium/HockeySDK-iOS/pull/64
2013-09-29 17:14:31 +02:00
Andreas Linde
e0e0c732c3 We shouldn't forget to reset the didEnterBackgroundState flag 2013-09-24 17:34:50 +02:00
Andreas Linde
74751a9945 Only check for new feedback when the app becomes active and was actually in the background previously 2013-09-24 17:31:55 +02:00
Andreas Linde
7e543830e6 Add support for background fetch in BITFeedbackManager
Fetching of new messages and showing an alert will only be done if the app is in the foreground
2013-09-16 13:38:55 +02:00
Andreas Linde
67d56af15d Fix warnings when building with iOS 7 as deployment target 2013-09-12 11:26:19 +02:00
Andreas Linde
11a8a14e4f Add support for excluding features at compile time
Features can be excluded/included at compile-time using #define statements, e.g. using `Preprocessor Macros`. These don't influence if the feature will actually be enabled, since that can also be done at runtime and some features are disabled automatically in the App Store or disabled by default in general.

The BITHockeyManager header file will still reference all modules, but accessing the modules will not be possible if excluded from the library.

Value of 1 includes the feature into the static library, 0 will exclude the feature from the static library.

Defaults:

Crash Reporting: HOCKEYSDK_FEATURE_CRASH_REPORTER 1
Feedback: HOCKEYSDK_FEATURE_FEEDBACK 1
App Store Updates: HOCKEYSDK_FEATURE_STORE_UPDATES 1 (This feature is disabled by default in code!)
Authenticator: HOCKEYSDK_FEATURE_AUTHENTICATOR 1
Beta Updates: HOCKEYSDK_FEATURE_UPDATES 1
Jira Mobile Connect: HOCKEYSDK_FEATURE_JIRA_MOBILE_CONNECT 0
2013-09-11 19:18:21 +02:00
Andreas Linde
a0af921da4 More UI updates for iOS 7 style feedback 2013-09-10 18:08:34 +02:00
Stephan Diederich
96304ac639 factor out BITHockeyAppClient to provide network services
* factor out HockeyAppClient
* configure Authenticator with HockeyAppClient
* move appendPostValue to HockeyAppClient (& add the missing boundary parameter)
* move tests over to new file
2013-09-06 17:11:55 +02:00
Andreas Linde
20c055eb48 Merge pull request #41 from bitstadium/feature/#30-feedbackDelegate
Feedback manager delegate & strong typing of BITHockeyManager delegate
2013-07-29 05:03:32 -07:00
Stephan Diederich
c816f4dc19 add feedbackManager delegate that is informed about incoming feedback
fixes #30
2013-07-26 15:33:12 +02:00
Stephan Diederich
150b56be6d don't let messages pile up 2013-07-16 11:54:36 +02:00
Andreas Linde
d21b7b001c More changes to the behavior of first forced user data and compose UI presentation
This is a change to previous behavior! Now the SDK by default shows the user data UI and subsequent compose UI always modally to ensure proper functionality on all scenarios the feedback viewer can be presented.

The new property `showFirstRequiredPresentationModal` in `BITFeedbackManager` can be set to `NO` if the previous behavior of pushing the UI and Compose view onto the stack, when those are being forced to be shown on the first presentation of the feedback UI. Especially if you present the UI in a popover, you should NOT change this property!
2013-06-04 14:54:04 +02:00
Andreas Linde
93c2f05fac Use Keychain for some data
- Added SFHFKeyChainUtils with BIT prefix
- Save username, email or userid (if provided by the app or the user) in the keychain instead of user defaults or property files
2013-05-09 16:45:58 +02:00
Peter Steinberger
e1d6515b2a Fixes several typos. 2013-01-20 13:01:35 +01:00
Peter Steinberger
2c7728bcb7 Fixes "variable name is shadowed" warnings 2013-01-20 13:01:29 +01:00
Andreas Linde
01050ea407 Fix bugs when changing require setters of BITFeedbackManager after the setup
If the userName and userEmail delegates are implemented and the requireUserEmail or requireUserName are changed after that, then the user interface is shown even though the delegates define the values and the user shouldn't be able to change that.
2013-01-18 23:37:03 +01:00
Andreas Linde
9f2f40bc06 Update copyright 2013-01-04 14:44:44 +01:00
Andreas Linde
b00db4e9e8 Fix
*doh*
2012-12-03 16:58:58 +01:00
Andreas Linde
6b948a8d13 Make sure json serialization never gets a nil value, otherwise it crashes 2012-11-28 19:02:37 +01:00
Andreas Linde
756341a386 Fix some users own messages re-appearing after deleting them 2012-11-18 00:00:24 +01:00
Andreas Linde
a14fa23f28 Convert to ARC 2012-10-23 16:22:23 +02:00