115 Commits

Author SHA1 Message Date
Lukas Spieß
5f38f3dfec Use TARGET_OS_SIMULATOR
`TARGET_IPHONE_SIMULATOR` has been deprecated with iOS 9 For older versions where `TARGET_OS_SIMULATOR` is not yet defined, we define it ourselves.
2015-11-11 12:15:22 +01:00
Lukas Spieß
c9e50569f2 Nil check completionHandlers before calling them 2015-10-21 11:32:52 +02:00
Lukas Spieß
6b727733a5 Merge pull request #209 from bitstadium/feature/update-appstore-detection
Update AppStore detection
2015-10-12 17:14:51 +02:00
Lukas Spieß
45575cfab9 Switch to using environment enum throughout 2015-10-09 12:59:58 +02:00
Lukas Spieß
fc4a83f89c Remove unreachable code fork 2015-10-09 12:59:58 +02:00
Lukas Spieß
bccfc61a42 Add warnings to docs for threading, properly dispatch internally 2015-10-05 17:39:03 +02:00
Lukas Spieß
ed3ea81864 Disable Authenticator and UpdateManager in TestFlight 2015-10-05 17:12:39 +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ß
7539ab06ba Add comments to #endif for clarity 2015-09-29 15:53:46 +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
Christoph Wendt
521a9b0f28 Fix warnings 2015-09-08 14:22:41 -07:00
Andreas Linde
6e17bd6e4f Merge branch 'develop' into feature/iOS9-Updates
Conflicts:
	HockeySDK-Source.podspec
	HockeySDK.podspec
	README.md
	Support/buildnumber.xcconfig
	Vendor/CrashReporter.framework/Versions/A/CrashReporter
	docs/Changelog-template.md
	docs/Guide-Installation-Setup-template.md
2015-09-08 10:31:54 +02:00
Cédric Luthi
ba533464f3 Remove unnecessary nil checking before calling respondsToSelector: 2015-09-04 23:10:05 +02:00
Christoph Wendt
8935364018 Add NSURLSession support (BITFeedbackListViewController) 2015-09-01 18:30:12 -07:00
Christoph Wendt
862771437c Implement NSURLSessionTaskDelegate methods (BITUpdateManager) 2015-09-01 17:54:21 -07:00
Christoph Wendt
582bd3019b Refactor NSURLConnection delegate methods (BITUpdateManager) 2015-09-01 17:53:35 -07:00
Christoph Wendt
327ac60283 Support NSURLSession request (BITUpdateManager) 2015-09-01 17:50:30 -07:00
Lukas Spieß
b9bc27fef3 Add scoping curly braces to if statements 2015-08-28 18:19:45 +02:00
Andreas Linde
9f9c7d28ea Merge branch 'develop' into feature/iOS9-Updates 2015-08-27 10:18:42 +02:00
Andreas Linde
64aaf2aa8c Fix app update triggering exit not safely report
When the app updates and the crash manager has `enableAppNotTerminatingCleanlyDetection` enabled, starting the update shouldn't trigger a crash report for that scenario.
2015-08-27 10:18:13 +02:00
Andreas Linde
05de1686fa Fix alert presentation with UIAlertController 2015-08-24 17:01:58 +02: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
6eb17a281d Merge branch 'start_update_delegate_message' ...
... of https://github.com/jgarth/HockeySDK-iOS into jgarth-start_update_delegate_message
2015-03-26 16:06:46 +01:00
Steven Fisher
0896316c24 Fix typo: comparisonResult. 2015-03-16 11:56:50 -07:00
Andreas Linde
7331eff2d6 Fix a warning
Fix a compiler warning when only building for simulator
2015-02-12 15:30:15 +01:00
Andreas Linde
06f73f10d3 Fix Xcode 6.3 Beta compiler warnings 2015-02-10 14:47:37 +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
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
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
375994c125 Merge branch 'hotfix/3.5.7' into develop 2014-09-10 18:44:03 +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
Joachim Garth
1e8d646d2f Notify delegate before starting download and update. Concerns #111 2014-09-01 17:39:45 +02:00
Andreas Linde
bb165bdcef Use library caches folder for BITUpdateManager 2014-07-24 18:20:14 +02:00
Andreas Linde
b6af4e1d46 Removed JMC support 2014-06-21 17:37:59 +02:00
Lukas Spieß
42738397a6 Replace initialiser return types of id with new instancetype 2014-06-11 15:35:45 +02:00
Andreas Linde
6cd4c089f0 Fix BITUpdateManager BITUpdateCheckManually being ignored when the app comes back from background 2014-05-13 11:41:29 +02:00
Andreas Linde
5f9de5a4eb Fix updateManagerShouldSendUsageData from BITUpdateManagerDelegate being called at the wrong time 2014-05-09 14:41:28 +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
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
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
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
Andreas Linde
5ff12626af Provide alert option to show mandatory update details
The user will then not be able to dismiss to modal presentation and has to install the update from there.
2014-01-07 19:20:38 +01:00
Andreas Linde
f2dd253670 Safe app version usage time in its own property list file instead of the user defaults 2013-12-17 17:51:23 +01:00
Andreas Linde
4f3f5f9c96 Adjust font size and add an 3rd row for expired view 2013-11-18 13:38:13 +01:00
Andreas Linde
e58036b5f9 Fix crash if minOSVersion is not provided 2013-10-09 14:20:28 +02:00
Andreas Linde
0e4ba043fa FIx usage value being reset on every app cold start 2013-09-29 17:44:38 +02: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