18 Commits

Author SHA1 Message Date
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
d347153e1c remove unused simulated new version
it's not needed in the tests and currently just adds overhead
2013-07-26 14:46:18 +02:00
Stephan Diederich
0a1931d20e adjust comment 2013-07-26 14:46:18 +02:00
Stephan Diederich
f7136ec9d1 NSDate is non-mutable, should be safe to retain it 2013-07-26 14:46:18 +02:00
Andreas Linde
7582f02a08 Add simulating an app store update being available
Will be automatically disabled when run from a build distributed by the App Store
2013-07-26 14:46:17 +02:00
Andreas Linde
166f2c7ccd Also return the storeURL for the app 2013-07-26 14:46:17 +02:00
Andreas Linde
f4e9c8724d New property to disable the StoreUpdateAlert 2013-07-26 14:46:17 +02:00
Andreas Linde
b23e5134bc Add an optional delegate to get informed about new update being available 2013-07-26 14:46:17 +02:00
Andreas Linde
c4921bb9de Make sure not to check for store updates if NSLocaleCountryCode returns nil
And also make sure it doesn't crash in that case :)
2013-07-26 14:46:17 +02:00
Andreas Linde
77f1522b44 Add more debug logging to BITStoreUpateManager 2013-07-26 14:46:17 +02:00
Andreas Linde
f11bee044b Missed that method call change 2013-07-26 14:46:17 +02:00
Andreas Linde
72d203d00f More unit tests
And minor refactoring of method name
2013-07-26 14:46:17 +02:00
Andreas Linde
8c6adec552 Disable built in UI if HockeySDK bundle is not present 2013-07-26 14:46:17 +02:00
Andreas Linde
03a6dbb999 If a version is chosen to be ignored or shown, never show this version again 2013-07-26 14:46:16 +02:00
Andreas Linde
4de8c898be Manual checks always being ignored 2013-07-26 14:46:16 +02:00
Andreas Linde
4921ecb690 Unit tests and refactoring 2013-07-26 14:46:16 +02:00
Andreas Linde
13f71b6f12 Don't use hardcoded bundle identifier
(That was intended for testing only)
2013-07-26 14:46:16 +02:00
Andreas Linde
e89564a8d9 First version of new AppStore Update module 2013-07-26 14:46:16 +02:00