96 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ß
2d60ed28bf Make crashManager serverURL property separately settable 2015-12-09 12:44:44 +01:00
Lukas Spieß
94c80d2e37 Small improvements to code order and style 2015-11-25 13:07:18 +01:00
Lukas Spieß
0403243df4 Switch to using new environment detection helper function 2015-11-10 15:39:30 +01:00
Lukas Spieß
af3bce56f6 Update telemetryManager init with new syntax 2015-10-21 18:55:19 +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ß
45575cfab9 Switch to using environment enum throughout 2015-10-09 12:59:58 +02:00
Lukas Spieß
713d60bf08 Switch to using new environment enum 2015-10-09 12:59:58 +02:00
Lukas Spieß
ed3ea81864 Disable Authenticator and UpdateManager in TestFlight 2015-10-05 17:12:39 +02:00
Lukas Spieß
13aaaa6ae0 Move AppStore detection and adapt for TestFlight 2015-10-05 17:11:56 +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
Christoph Wendt
8c6a9621a6 Support GZIP for telemetry data 2015-09-09 18:45:06 -07:00
Christoph Wendt
37727b46f4 Add NSURLSession support (BITHockeyManager) 2015-09-02 13:34:57 -07:00
Christoph Wendt
bd47a94e49 Initialize and start telemetry module 2015-08-25 15:28:41 -07: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
4ac8779a61 Fix BITStoreUpdateManager not getting delegate 2015-05-12 21:59:00 +02:00
Andreas Linde
6ea387fcda Improve building with only a few features
Building e.g. only with crash reporting activated caused compiler warnings to appear even with the binary distribution when e.g. forward declaration checks are enabled.

This commit adds additional checks in all relevant header and code files to make sure the header files only consider the features that have been enabled
2015-04-21 17:48:52 +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
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
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
b2a40717c0 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-08-26 17:37:24 +02:00
Andreas Linde
d7e17d2f1c 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-08-26 17:31:57 +02:00
Andreas Linde
3917622aa5 Remove KVO observer on dealloc
This case should never happen, since the SDK is supposed to be used via the sharedInstance and never be deallocated.
2014-07-14 18:13:04 +02:00
Andreas Linde
b6af4e1d46 Removed JMC support 2014-06-21 17:37:59 +02:00
Andreas Linde
c19a918782 Merge branch 'refs/heads/feature/CrashReporting' into develop 2014-05-26 14:54:20 +02:00
Andreas Linde
eb43a12bb5 Show warning in the console if delegate is set after calling startManager and improve documentation for this 2014-05-22 16:00:42 +02:00
Andreas Linde
973e130325 Migrate BITCrashManager to use BITHockeyAppClient 2014-04-17 22:50:22 +02:00
Andreas Linde
ce9014f111 Add SDK version and build strings into a non stripped struct 2014-02-20 22:41:19 +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
7086153d46 Make sure a log message appears in the console if the SDK is not setup on the main thread 2014-01-24 14:11:41 +01:00
Andreas Linde
235f7ac9fe Updated copyright for 2014 2014-01-12 19:25:22 +01:00
Andreas Linde
0b01f8e897 Add apps CFBundleVersion to the testIdentifier call 2014-01-10 14:52:56 +01:00
Andreas Linde
6a07ee6a60 testIntegration call should also send SDK name and version 2014-01-09 16:40:07 +01:00
Andreas Linde
9d40204690 Merge branch 'refs/heads/develop' into feature/improvements 2013-12-30 02:12:04 +01:00
Andreas Linde
d19455a108 Add public methods to get the SDKs version and build number as strings 2013-12-30 00:39:27 +01:00
Andreas Linde
480054abe3 Add public integration test to let the user check if the SDK reaches the server 2013-12-16 18:51:12 +01:00
Andreas Linde
117265f15c Add support for SDK integration workflow 2013-11-29 15:45:09 +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
94b8f5dfb0 Fix compile issues when excluding all modules but crash reporting 2013-11-03 23:17:55 +01:00
Stephan Diederich
92a0fe92c5 Merge branch 'feature/WebBasedAuthentication' into develop 2013-10-18 18:12:58 +02:00
Stephan Diederich
00ad57b245 rename ivar
adjust name so that it's not that easy to confuse
it with the identificationType. This is only the type of
the identifier.
2013-10-11 17:18:01 +02:00
Andreas Linde
5f87227e76 Properly check for identification before calling BITUpdateManager startManager only if the user is identified or JMC is setup
Also fixes a problem when Authenticator was excluded but UpdateManager was included.
2013-10-10 03:07:29 +02:00
Andreas Linde
82cc66c454 Provide public access to the anonymous UUID being used
This UUID is app installation specific and being used for crash reports and when sending feedback.
2013-10-08 17:28:32 +02:00
Andreas Linde
527de1d210 Add identification from BITAuthenticator to crash reports 2013-09-24 21:30:50 +02:00
Stephan Diederich
c2c6558687 redo BITAuthenticator interface
given the good feedback we got, this is take 2
of the BITAuthenticator interface.
It's simplified, cleaned up and now allows full
control over the authentication process.
Major changes:
* manual mode
  Authenticator provides the bits to show the
  viewController to identify the user as well as to
  trigger validation on behalf of the developer.
* process separation
  identification and app-usage-restriction are now
  2 completely separated things.
* public identifier
  Authenticator now allows the developer to query
  parts of the information, e.g. the UDID or the user's
  emailaddy once identified
2013-09-23 23:15:56 +02:00
ipaterson
df7010ed8a Fixed recurring typo in manager initializers. 2013-09-23 13:39:59 -04:00
Stefan Haubold
e48ce59934 delay start of authentication manager 2013-09-13 16:41:51 +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