Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Don't consider an app outdated if the update can't be installed on the current OS #422

Merged
merged 8 commits into from
Oct 19, 2021

Conversation

phatblat
Copy link
Member

@phatblat phatblat commented Oct 1, 2021

  • Check min OS version
  • Test with iOS apps on macOS

Fixes #420

chris-araman
chris-araman previously approved these changes Oct 5, 2021
Copy link
Contributor

@chris-araman chris-araman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@chris-araman
Copy link
Contributor

chris-araman commented Oct 5, 2021

We can't really test with iOS or iPadOS apps yet, as mas currently only considers Mac apps. We will need to add that testing when we teach mas to install/update/remove iOS and iPadOS apps.

@todo
Copy link

todo bot commented Oct 13, 2021

Replace string literal with MasStoreSearch.Entity once search branch is merged.

// TODO: Replace string literal with MasStoreSearch.Entity once search branch is merged.
if let osVersion = Version(tolerant: storeApp.minimumOsVersion), storeApp.kind == "mac-software" {
let requiredVersion = OperatingSystemVersion(majorVersion: osVersion.major, minorVersion: osVersion.minor,
patchVersion: osVersion.patch)
// Don't consider an app outdated if the version in the app store requires a higher OS version.
guard ProcessInfo.processInfo.isOperatingSystemAtLeast(requiredVersion) else {


This comment was generated by todo based on a TODO comment in 46dda41 in #422. cc @mas-cli.

@phatblat phatblat marked this pull request as ready for review October 13, 2021 01:53
chris-araman
chris-araman previously approved these changes Oct 13, 2021
@chris-araman
Copy link
Contributor

/Users/runner/work/mas/mas/Sources/MasKit/Models/SoftwareProduct.swift:32:12: error: Todo Violation: TODOs should be resolved (Replace string literal with Ma...). (todo)

How should we address this? Maybe just fix the issue upon merging into (or rebasing) the search branch?

@phatblat
Copy link
Member Author

Yeah, I wanted to add a reminder for when we add iOS app support, but forgot that the linter flags TODO comments as errors.

@chris-araman chris-araman merged commit eafd2d5 into main Oct 19, 2021
@chris-araman chris-araman deleted the oudated-os branch October 19, 2021 18:56
@phatblat
Copy link
Member Author

FYI, I tested the "iPhone app installed, changes don't do anything wonky" case but obviously this needs better testing once full support is added for iOS apps.

@phatblat phatblat modified the milestone: Unreleased Oct 19, 2021
@hakamadare hakamadare mentioned this pull request Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [BUG] don't attempt to install application when minimum osversion not present
2 participants