Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

appID is now being properly set #138

Merged
merged 1 commit into from
Jul 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Harpy/Harpy.m
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,15 @@ - (BOOL)isAppStoreVersionNewer:(NSString *)currentAppStoreVersion {
}

- (void)appStoreVersionIsNewer:(NSString *)currentAppStoreVersion {
[self localizeAlertStringsForCurrentAppStoreVersion:currentAppStoreVersion];
[self alertTypeForVersion:currentAppStoreVersion];
[self showAlertIfCurrentAppStoreVersionNotSkipped:currentAppStoreVersion];
_appID = _appData[@"results"][0][@"trackId"];

if (_appID == nil) {
[self printDebugMessage:@"appID is nil, which means to the trackId key is missing from the JSON results that Apple returned for your bundleID. If a version of your app is in the store and you are seeing this message, please open up an issue http://github.com/ArtSabintsev/Harpy and provide as much detail about your app as you can. Thanks!"];
} else {
[self localizeAlertStringsForCurrentAppStoreVersion:currentAppStoreVersion];
[self alertTypeForVersion:currentAppStoreVersion];
[self showAlertIfCurrentAppStoreVersionNotSkipped:currentAppStoreVersion];
}
}

- (void)launchAppStore {
Expand Down