mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Add appstore detection property
This commit is contained in:
parent
dd70fcbc37
commit
e7da6943e2
@ -204,6 +204,10 @@
|
|||||||
// Default: HockeyComparisonResultGreater
|
// Default: HockeyComparisonResultGreater
|
||||||
@property (nonatomic, assign) HockeyComparisonResult compareVersionType;
|
@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
|
#pragma mark - Public Methods
|
||||||
|
|
||||||
// Returns the shared manager object
|
// Returns the shared manager object
|
||||||
|
@ -297,6 +297,10 @@
|
|||||||
[[BWHockeyManager sharedHockeyManager] setCompareVersionType:compareVersionType];
|
[[BWHockeyManager sharedHockeyManager] setCompareVersionType:compareVersionType];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)isAppStoreEnvironment {
|
||||||
|
return [[BWHockeyManager sharedHockeyManager] isAppStoreEnvironment];
|
||||||
|
}
|
||||||
|
|
||||||
- (BOOL)isUpdateAvailable {
|
- (BOOL)isUpdateAvailable {
|
||||||
return [[BWHockeyManager sharedHockeyManager] isUpdateAvailable];
|
return [[BWHockeyManager sharedHockeyManager] isUpdateAvailable];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user