212 Commits

Author SHA1 Message Date
Andreas Linde
aab044f2d0 Block assertions in release builds 2013-09-26 13:12:01 +02:00
Andreas Linde
d7f0a0a2f2 Update to version 3.5.0 RC 1 2013-09-25 21:32:42 +02:00
Andreas Linde
3e29c863f7 Only use UUID for appAnonID
There is no need to use other methods, if this fallback always works with the new system
2013-09-25 16:41:36 +02:00
Andreas Linde
7e9618f773 Add more tests for BITHockeyHelper 2013-09-25 16:40:52 +02:00
Andreas Linde
241b5f1a4b Add support for iOS 7 native Base64 encoding
Also add some tests for base 64 encoding
2013-09-25 16:14:06 +02:00
Andreas Linde
32318cac36 Move BITValidateEmail to BITHockeyHelper named bit_validateEmail and add some tests 2013-09-25 15:48:58 +02:00
Andreas Linde
56ca20098b Add additional tests for BITCrashManager 2013-09-25 14:36:53 +02:00
Andreas Linde
a23930a54e Add first set of basic unit tests for BITCrashManager
Also make minor changes to BITCrashManager to be able to test
2013-09-25 01:47:32 +02:00
Andreas Linde
d451650e7f Some more documentation build fixes 2013-09-24 21:52:16 +02:00
Andreas Linde
7c151c913c Move BITAuthenticator files into its own group 2013-09-24 21:37:08 +02:00
Andreas Linde
527de1d210 Add identification from BITAuthenticator to crash reports 2013-09-24 21:30:50 +02:00
Stephan Diederich
1616403e61 update needsValidation
return YES even if already validated but
there's a version mismatch.
2013-09-24 14:05:04 +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
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