mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 07:57:01 +00:00
Add appstore detection property
This commit is contained in:
parent
dd70fcbc37
commit
e7da6943e2
@ -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
|
||||
|
@ -297,6 +297,10 @@
|
||||
[[BWHockeyManager sharedHockeyManager] setCompareVersionType:compareVersionType];
|
||||
}
|
||||
|
||||
- (BOOL)isAppStoreEnvironment {
|
||||
return [[BWHockeyManager sharedHockeyManager] isAppStoreEnvironment];
|
||||
}
|
||||
|
||||
- (BOOL)isUpdateAvailable {
|
||||
return [[BWHockeyManager sharedHockeyManager] isUpdateAvailable];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user