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

Bugfix/device os check #136

Merged
merged 2 commits into from
Jul 14, 2016
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Harpy.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Harpy"
s.version = "4.0.0"
s.version = "4.0.1"
s.summary = "Notify users that a new version of your iOS app is available, and prompt them with the App Store link."
s.homepage = "https://github.com/ArtSabintsev/Harpy"
s.platform = :ios, '8.0'
Expand Down
4 changes: 2 additions & 2 deletions Harpy/Harpy.m
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ - (NSURL *)itunesURL {
- (BOOL)isUpdateCompatibleWithDeviceOS:(NSDictionary<NSString *, id> *)appData {
NSArray<NSDictionary<NSString *, id> *> *results = appData[@"results"];

if (results != nil) {
NSString *requiresOSVersion = results[0][@"minimumOsVersion"];
if (results.count > 0) {
NSString *requiresOSVersion = [results firstObject][@"minimumOsVersion"];
if (requiresOSVersion != nil) {
NSString *systemVersion = [UIDevice currentDevice].systemVersion;
if (
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ If an app update is available, Harpy checks to make sure that the version of iOS
## Testing Harpy
Temporarily change the version string in Xcode (within the `.xcodeproj`) to an older version than the one that's currently available in the App Store. Afterwards, build and run your app, and you should see the alert.

If you currently don't have an app in the store, change your bundleID to one that is already in the store. In the sample app packaged with this librart, we use the [iTunes Connect Mobile](https://itunes.apple.com/us/app/itunes-connect/id376771144?mt=8) app's bundleID: `com.apple.itunesconnect.mobile`.
If you currently don't have an app in the store, change your bundleID to one that is already in the store. In the sample app packaged with this library, we use the [iTunes Connect Mobile](https://itunes.apple.com/us/app/itunes-connect/id376771144?mt=8) app's bundleID: `com.apple.itunesconnect.mobile`.

## Important Note on App Store Submissions
The App Store reviewer will **not** see the alert.
Expand Down