Add simulating an app store update being available

Will be automatically disabled when run from a build distributed by the App Store
This commit is contained in:
Andreas Linde
2013-04-01 01:39:51 +02:00
committed by Stephan Diederich
parent 166f2c7ccd
commit 7582f02a08
2 changed files with 42 additions and 1 deletions

View File

@@ -159,7 +159,29 @@ typedef enum {
@property (nonatomic, assign, getter=isUpdateUIEnabled) BOOL updateUIEnabled;
// manually start an update check
///-----------------------------------------------------------------------------
/// @name Tests
///-----------------------------------------------------------------------------
/**
Define the simulated new version avaialble from the App Store
Set the version string that should be used for a simulated new version being available
in the App Store.
*Default*: _NIL_
@warning This property is autoamtically disabled if accidentally being invoked in an
App Store build.
@see updateSetting
*/
@property (nonatomic, strong) NSString *simulatedNewStoreVersion;
///-----------------------------------------------------------------------------
/// @name Manual update checking
///-----------------------------------------------------------------------------
/**
Check for an update