76 Commits

Author SHA1 Message Date
Lukas Spieß
6304f49d69 Merge branch 'develop' into feature/telemetry
# Conflicts:
#	Classes/BITHockeyManager.m
#	HockeySDK-Source.podspec
#	README.md
#	Support/buildnumber.xcconfig
#	Support/release.xcconfig
#	docs/Changelog-template.md
#	docs/Guide-Installation-Setup-template.md
2015-12-09 13:24:04 +01:00
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ß
cb2c54b749 Use respondsToSelector instead of checking for fixed version 2015-11-10 19:06:01 +01:00
Lukas Spieß
f288a36947 Add additional check for iOS 6 devices in helper method 2015-11-10 17:06:13 +01:00
Lukas Spieß
5d81bc60d5 Add comments to environment detection 2015-11-10 15:54:21 +01:00
Lukas Spieß
9d0491d51c Small tweak to #ifdef concerning simulator target 2015-11-10 15:48:04 +01:00
Lukas Spieß
0403243df4 Switch to using new environment detection helper function 2015-11-10 15:39:30 +01:00
Lukas Spieß
3749c697c1 Add new bit_currentAppEnvironment function
This version is easier to understand then the nested if/else calls in `bit_isRunningInTestFlightEnvironment` and `bit_isRunningInAppStoreEnvironment`

Also, this method is safe to use on iOS 6
2015-11-10 15:39:30 +01:00
Lukas Spieß
314272af9f Merge branch 'develop' into feature/telemetry
# Conflicts:
#	Classes/BITImageAnnotationViewController.m
#	HockeySDK-Source.podspec
#	README.md
#	Support/buildnumber.xcconfig
#	docs/Changelog-template.md
#	docs/Guide-Installation-Setup-template.md
2015-10-29 12:47:48 +01:00
Lukas Spieß
baef2d607f Properly cast to BOOL when checking for profile 2015-10-22 22:02:45 +02:00
Lukas Spieß
cb29d149be Merge branch 'develop' into feature/telemetry
# Conflicts:
#	Classes/BITHockeyManager.m
#	Support/HockeySDK.xcodeproj/project.pbxproj
2015-10-21 18:53:50 +02:00
Lukas Spieß
13aaaa6ae0 Move AppStore detection and adapt for TestFlight 2015-10-05 17:11:56 +02:00
Lukas Spieß
481a453199 Respect Telemetry feature in CrashOnly builds 2015-09-11 22:03:42 +02:00
Lukas Spieß
a921c55271 Move & rename helper method so it works with CrashOnly 2015-09-11 18:41:33 +02:00
Lukas Spieß
8559072c13 Merge branch 'develop' into feature/telemetry
Conflicts:
	.gitignore
	Classes/BITHockeyHelper.h
	Classes/BITHockeyHelper.m
	Support/HockeySDK.xcodeproj/project.pbxproj
	Support/HockeySDKTests/libOCMock.a
2015-09-11 18:04:55 +02:00
Christoph Wendt
7363ec0d9a Convert AppID to GUID before sending telemetry data 2015-09-10 11:28:25 -07:00
Lukas Spieß
c22638f6a1 Update bit_URLEncdoedString() to use modern API 2015-09-10 15:19:31 +02:00
Lukas Spieß
0e94435466 Remove unused bit_URLDecodedString function 2015-09-10 14:51:40 +02:00
Christoph Wendt
fede13a6d6 Determine context values 2015-09-03 23:18:28 -07:00
Andreas Linde
f7fc72c11d Comment new encoding methods for now
This needs to be fixed before release.
2015-08-27 10:13:46 +02:00
Andreas Linde
375d82ffbf Add Extension target and specific crash only build 2015-08-11 15:27:32 +02:00
Andreas Linde
065f9e7b89 Assign more files to features
Make sure the implementation is only processed in all files, when the feature is actually set to build
2015-08-10 17:38:09 +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
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
94537a4132 Support for CFBundleName
Use the (localized) value of CFBundleName for the app name in dialogs (e.g. crash alert) if CFBundleDisplayName is not set
2015-06-08 13:10:46 +02:00
Andreas Linde
db62cc99e0 Access and save keychain data with always access
This helps if an app is running in the background and the device is still locked
2015-03-26 18:08:55 +01:00
Andreas Linde
b9f149b33e Fix landscape screenshot issues in iOS 8 2015-02-18 15:08:15 +01:00
Andreas Linde
afc644b0fb Don't hardcode to use mainBundle for resources 2015-02-09 17:20:54 +01:00
Andreas Linde
5debc62190 Fix creation of anonymous UUID 2014-11-24 15:17:46 +01:00
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
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
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
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
53edf21c5d Fix some best app icon finding issues
In some cases the algorithm didn't find any icon, even if they are there
2014-07-08 21:03:26 +02:00
Andreas Linde
c4486099f9 Remove code that is not needed any more 2014-06-24 21:22:46 +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
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
760a8d07b8 Improve fetching the optimal icon of an app for the update view 2014-06-12 14:39:16 +02:00
Moritz Haarmann
ecbcc30377 Merge remote-tracking branch 'private/develop' into feature/feedback_screenshot
Conflicts:
	Classes/BITHockeyAppClient.h
	Classes/BITHockeyAppClient.m
2014-02-28 11:48:32 +01:00
moritz haarmann
9c957b1688 + Fixes Potentail crash in helper for resizing images. 2014-02-24 09:54:21 +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
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
235f7ac9fe Updated copyright for 2014 2014-01-12 19:25:22 +01:00
Andreas Linde
70ea29d68b Hide deprecation warning
Even when using iOS 7 only as base SDK calling `base64Encoding` causes a deprecation warning.
2013-11-05 21:51:18 +01:00
Andreas Linde
13eb4a1798 Merge branch 'base64' of github.com:0xced/HockeySDK-iOS into 0xced-base64 with modifications
- Don't use `base64Encoding` if the SDK is build with iOS 7 as based SDK, since that would cause a deprecation warning
2013-11-05 16:03:19 +01:00