Also return the storeURL for the app

This commit is contained in:
Andreas Linde 2013-04-01 01:39:05 +02:00 committed by Stephan Diederich
parent f4e9c8724d
commit 166f2c7ccd
2 changed files with 7 additions and 4 deletions

View File

@ -268,8 +268,8 @@
}
if ([self isUpdateAvailable]) {
if (self.delegate && [self.delegate respondsToSelector:@selector(detectedUpdateFromStoreUpdateManager:newVersion:)]) {
[self.delegate detectedUpdateFromStoreUpdateManager:self newVersion:_newStoreVersion];
if (self.delegate && [self.delegate respondsToSelector:@selector(detectedUpdateFromStoreUpdateManager:newVersion:storeURL:)]) {
[self.delegate detectedUpdateFromStoreUpdateManager:self newVersion:_newStoreVersion storeURL:_appStoreURL];
}
if (self.updateUIEnabled && BITHockeyBundle()) {

View File

@ -46,10 +46,13 @@
/** 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 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;