Add appstore detection property

This commit is contained in:
Andreas Linde 2011-12-08 13:47:21 +01:00
parent dd70fcbc37
commit e7da6943e2
2 changed files with 8 additions and 0 deletions

View File

@ -204,6 +204,10 @@
// Default: HockeyComparisonResultGreater
@property (nonatomic, assign) HockeyComparisonResult compareVersionType;
// if YES the app is installed from the app store
// if NO the app is installed via ad-hoc or enterprise distribution
@property (nonatomic, readonly) BOOL isAppStoreEnvironment;
#pragma mark - Public Methods
// Returns the shared manager object

View File

@ -297,6 +297,10 @@
[[BWHockeyManager sharedHockeyManager] setCompareVersionType:compareVersionType];
}
- (BOOL)isAppStoreEnvironment {
return [[BWHockeyManager sharedHockeyManager] isAppStoreEnvironment];
}
- (BOOL)isUpdateAvailable {
return [[BWHockeyManager sharedHockeyManager] isUpdateAvailable];
}