150 Commits

Author SHA1 Message Date
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
Andreas Linde
22047b856c Fixes for getting test coverage working again
Xcode 5 does not create .gcda files due to a bug. The workaround used in here has been suggested in the devforums: https://devforums.apple.com/thread/199643?start=0&tstart=0
2013-09-23 17:17:41 +02:00
Andreas Linde
6b6fe5249d Fix failing test due to the test was expecting a different default setting, which was changed recently 2013-09-23 16:35:32 +02:00
Stephan Diederich
d7a3fcfe84 add initial tests for BITKeychainUtils 2013-09-23 16:18:18 +02:00
Stephan Diederich
87c275d9f1 set ONLY_ACTIVE_ARCH to yes for unit tests 2013-09-23 16:18:18 +02:00
Andreas Linde
341f407eb0 Update OCMockito and OCHamrest frameworks to version 3.0 including 64bit slices 2013-09-23 15:16:56 +02:00
ipaterson
16cc6d0df5 Updated -testThatCleanupWorks to ensure that didSkipOptionalLogin is set to YES before cleanup, otherwise the assertion that the value is NO after cleanup is merely testing its initialization to NO. 2013-09-20 13:27:59 -04:00
Stephan Diederich
4a7b65b349 fix build of tests 2013-09-20 15:29:40 +02:00
Andreas Linde
18202819c7 Update to version 3.5.0 Beta 3 2013-09-17 18:50:24 +02:00
Andreas Linde
19f6e768c0 Update to version 3.5.0 Beta 2 2013-09-16 18:34:47 +02:00
Andreas Linde
88b50694d7 Documentation improvements 2013-09-16 12:53:40 +02:00
Andreas Linde
7dfa7f1520 Make sure the simulator build also contains x86-64 slice 2013-09-14 00:32:01 +02:00
Kent Sutherland
6f3a0a28c5 Set indentWidth and tabWidth to 2 in the Xcode project. 2013-09-13 15:20:39 -04:00
Andreas Linde
955fe9c2eb Documentation updates and fixes 2013-09-13 17:29:00 +02:00
Andreas Linde
23ec4f9320 Use custom build arch setting to it works in Xcode 4.6 too 2013-09-13 11:25:42 +02:00
Andreas Linde
596d218128 Add missing public headers 2013-09-12 23:12:12 +02:00
Andreas Linde
754479b17f Bump version string to 3.5.0b1 2013-09-12 22:47:50 +02:00
Andreas Linde
11e354a7d3 Set version string to 3.1.0b1 2013-09-12 12:21:40 +02:00
Andreas Linde
d7ae69860d Various documentation fixes and updates 2013-09-12 12:21:12 +02:00
Andreas Linde
67a4e1b6f9 Build the static lib also with 64bit slice 2013-09-12 11:27:27 +02:00
Andreas Linde
d17ac0945d Bump arm64 to iOS7 deployment target since that's the earliest iOS version that runs on arm64 2013-09-12 10:53:18 +02:00
Andreas Linde
5d8b42e92f Upgrade Xcode project setting 2013-09-11 23:57:18 +02:00
Andreas Linde
7fd05d76ab Bump version to 3.1.0 2013-09-11 23:38:46 +02:00
Andreas Linde
abc8501969 Set deployment target to iOS 6.0 for arm64 2013-09-11 23:32:03 +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
Stephan Diederich
c534e5d566 also reset auth token if authType changed
saves us a round-trip when validating, as when
the authType changed, server would return nope.
2013-09-11 16:46:07 +02:00
Stephan Diederich
378c4e91f5 fix tests for validation / authviewcontroller
bringing up authViewController again is handled by the default
completion block. So we need to pass it along
2013-09-11 14:55:23 +02:00
Stephan Diederich
ea5452603b store the type of the token with the token itself
updater needs it as well and we actually don't want to send
the wrong type to the server
2013-09-11 14:52:33 +02:00
Stephan Diederich
30b93a0468 only reauthenticate if validation failed 2013-09-11 00:05:22 +02:00
Stephan Diederich
34bf1bf611 add flag to tell if app is currently validated 2013-09-10 23:41:48 +02:00
Stephan Diederich
3144247dc9 in "optional"-mode, show authentication exactly once 2013-09-10 23:41:48 +02:00
Stephan Diederich
2886ac4d77 rename skip to cancel 2013-09-10 23:41:48 +02:00
Stephan Diederich
ebbe6dc0af use helper method from BITHelpers instead of home-brewed solution 2013-09-10 23:41:48 +02:00
Stephan Diederich
7c2e2b88a0 bail if secret is missing and we're trying to authenticate 2013-09-09 02:16:58 +02:00
Stephan Diederich
2d97ac7cf7 reset auth-token if identifierForVendor changed 2013-09-07 19:01:17 +02:00
Stephan Diederich
567b0def60 refactoring: move auth-logic to the authenticator
via a delegation-completionBlock-combo
2013-09-06 19:23:58 +02:00
Stephan Diederich
6c29a72a98 fix authenticator tests - initialize _NOT_ being in the appstore 2013-09-06 19:23:15 +02:00
Stephan Diederich
e784213184 cleanup Authenticator interface
* remove additional delegate methods
* remove validation/authentication calls from public interface
2013-09-06 18:01:29 +02:00
Stephan Diederich
6f64b8e5d6 make installationIdentification KVO'able 2013-09-06 17:24:01 +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
5a030ada9b Add new line to xcconfig file 2013-08-28 02:04:13 +02:00
Andreas Linde
6a27b6f453 Remove empty BITCrashManagerPrivate.h 2013-08-17 15:14:00 +02:00
Andreas Linde
e4d33595e9 Remove authorize_request images, since they are not used any more 2013-08-16 22:19:43 +02:00
Stephan Diederich
ff555cb87d refine validation logic 2013-08-15 22:30:39 +02:00
Stephan Diederich
039902da02 add networking helpers to BITAuthenticator
* NSOperation-based networking
* helpers for URLRequest, operation, getPath:error:
2013-08-11 22:42:31 +02:00
Stephan Diederich
ffc54256dd make BITAuthenticator public 2013-08-11 22:42:31 +02:00
Stephan Diederich
017b8495a8 add BITAuthenticator
class to control authentication and validation of an installation.

TODO:
* AuthenticatorViewController
* validation
* hooking into BITHockeyManager
2013-08-09 12:23:37 +02:00
Andreas Linde
b02e0673c0 Remove non needed build phase for unit test 2013-07-30 16:19:57 +02:00