Skip to content

Commit

Permalink
doc: updates documentation on enum
Browse files Browse the repository at this point in the history
  • Loading branch information
manasv committed Jun 30, 2022
1 parent 768d7a5 commit 62f7707
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Updeto.shared.isAppUpdated { result in
// Do something
case .noResults:
// Do something
case .developmentOrBeta:
// Do something
}
}
```
Expand Down
6 changes: 6 additions & 0 deletions Sources/Updeto/Updeto.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,15 @@ struct AppStoreLookup: Decodable {
// MARK: - AppstoreLookupResult

public enum AppStoreLookupResult: Equatable {
/// State that means the app is currently updated
case updated
/// State that means the app is currently outdated
case outdated
/// State that means installed version is higher than latest on AppStore.
/// This is possible if the installed version is a development / beta build (eg. Xcode, Testflight).
/// Worst case scenario is that the response from apple is outdated, which is unlikely to happen.
case developmentOrBeta
/// State that means that the bundleId query returned no results
case noResults

/// Lookup Result description.
Expand Down

0 comments on commit 62f7707

Please sign in to comment.