mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 07:57:01 +00:00
Also return the storeURL for the app
This commit is contained in:
parent
f4e9c8724d
commit
166f2c7ccd
@ -268,8 +268,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ([self isUpdateAvailable]) {
|
if ([self isUpdateAvailable]) {
|
||||||
if (self.delegate && [self.delegate respondsToSelector:@selector(detectedUpdateFromStoreUpdateManager:newVersion:)]) {
|
if (self.delegate && [self.delegate respondsToSelector:@selector(detectedUpdateFromStoreUpdateManager:newVersion:storeURL:)]) {
|
||||||
[self.delegate detectedUpdateFromStoreUpdateManager:self newVersion:_newStoreVersion];
|
[self.delegate detectedUpdateFromStoreUpdateManager:self newVersion:_newStoreVersion storeURL:_appStoreURL];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.updateUIEnabled && BITHockeyBundle()) {
|
if (self.updateUIEnabled && BITHockeyBundle()) {
|
||||||
|
@ -46,10 +46,13 @@
|
|||||||
|
|
||||||
/** Informs which new version has been reported to be available
|
/** Informs which new version has been reported to be available
|
||||||
|
|
||||||
|
@warning If this is invoked with a simulated new version, the storeURL could be _NIL_ if the current builds
|
||||||
|
bundle identifier is different to the bundle identifier used in the app store build.
|
||||||
@param storeUpdateManager The `BITStoreUpdateManager` instance invoking this delegate
|
@param storeUpdateManager The `BITStoreUpdateManager` instance invoking this delegate
|
||||||
@param version The new version string reported by the App Store
|
@param newVersion The new version string reported by the App Store
|
||||||
|
@param storeURL The App Store URL for this app that could be invoked to let them perform the update.
|
||||||
*/
|
*/
|
||||||
-(void)detectedUpdateFromStoreUpdateManager:(BITStoreUpdateManager *)storeUpdateManager newVersion:(NSString *)newVersion;
|
-(void)detectedUpdateFromStoreUpdateManager:(BITStoreUpdateManager *)storeUpdateManager newVersion:(NSString *)newVersion storeURL:(NSString *)storeURL;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user