69 Commits

Author SHA1 Message Date
Andreas Linde
37ed085436 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-09-08 14:07:41 +02:00
Andreas Linde
f6d717265e 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-09-08 14:07:29 +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
Andreas Linde
9e4d4481e8 Some more updates to check for beta updates only if the installation is authenticated 2013-09-11 15:44:21 +02:00
Andreas Linde
d93da3ee32 More authenticator integration
- Only start the updateManager if the installation is authenticated (not yet tested)
- Provide the installation data to the updateManager requests
- Some more documentation
- Authenticator defaults to BITAuthenticatorAuthTypeUDIDProvider and BITAuthenticatorValidationTypeNever
- Reset usage time if installation identification changes (not yet tested)
2013-09-11 14:05:09 +02:00
Andreas Linde
2d3e1c503d Initialise Authenticator before all other modules 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
Stephan Diederich
b25796742e Merge branch 'develop' into feature/#19-verifyBetaUsers
Conflicts:
	Support/HockeySDK.xcodeproj/project.pbxproj
2013-09-06 13:40:39 +02:00
Andreas Linde
ada030c170 Get rid of warnings when compiling with JMC and Xcode 5 2013-08-17 21:30:11 +02:00
Andreas Linde
6a27b6f453 Remove empty BITCrashManagerPrivate.h 2013-08-17 15:14:00 +02:00
Stephan Diederich
4f6f871bf3 add authenticator to the HockeyManager
& make protocol methods optional
2013-08-15 22:38:24 +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
Andreas Linde
ef1ae02a1e Merge branch 'refs/heads/feature/v3.1' into develop 2013-07-28 01:55:40 +02: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
125e84b9ac remove check for nil 2013-07-26 14:46:18 +02:00
Andreas Linde
e89564a8d9 First version of new AppStore Update module 2013-07-26 14:46:16 +02:00
Andreas Linde
857bd24f6e Fail if the developer tries to setup the SDK on a background thread
Fixes #39
2013-07-21 21:37:44 +02:00
Andreas Linde
e0e338ac5a Merge branch 'develop' of github.com:bitstadium/HockeySDK-iOS into develop 2013-01-09 16:55:10 +01:00
Andreas Linde
9f2f40bc06 Update copyright 2013-01-04 14:44:44 +01:00
Andreas Linde
3c168bc270 Improve identifier cheek error logging in case live identifier is provided 2012-12-30 17:07:47 +01:00
Andreas Linde
679112f3cc Oh documentation
*doh*
2012-11-28 23:26:08 +01:00
Andreas Linde
1712e8854b Clean this up!
Thanks @tewha :)
2012-11-28 23:21:20 +01:00
Andreas Linde
bdbeef2a7a Merge branch 'feature/feedback' into develop 2012-10-31 08:33:07 +01:00
Andreas Linde
a14fa23f28 Convert to ARC 2012-10-23 16:22:23 +02:00
Andreas Linde
340813fcc2 Warp JMC ping invocation into NSSelectorFromString 2012-10-06 01:01:18 +02:00
Andreas Linde
512db251aa More feedback improvements
- Mark messages as archived that got deleted on the server
- Send message even if the thread got deleted on the server, so create a new thread
- Support Pull-To-Refresh in iOS6
- Update feedback and send pending message when the app gets into the foreground again
- Always update user data via delegates before sending a new message, since those could have changed in the app
2012-10-05 21:48:01 +02:00
Andreas Linde
1a71aa2ea5 Initial Feedback component
- First implementation on feedback, not finished yet!
- Move all components into their own subdirectory
- Restructure common delegates into BITHockeyManagerDelegate
- Restructure common component methods into new superclass (not finished yet)
2012-09-28 12:30:19 +02:00
Stephan Diederich
36c81ac650 cleanup JIRA_MOBILE_CONNECT_SUPPORT_ENABLED defines
* only define JIRA_MOBILE_CONNECT_SUPPORT_ENABLED if it's not already defined.
  default is to disable it
* cleanup usage of JIRA_MOBILE_CONNECT_SUPPORT_ENABLED
  it's always defined, so no need to check
2012-09-26 14:10:04 +02:00
Chris Miles
1e0c47667c Merge https://github.com/bitstadium/HockeySDK-iOS into develop 2012-09-25 17:16:06 +10:00
Andreas Linde
80317fa538 Fix checking validity of wrong identifier
Thanks to @nano for the hint
2012-09-21 22:14:24 +02:00