Commit Graph

15 Commits

Author SHA1 Message Date
Riley Testut
cd67222237 Supports both iPhone + iPad screenshots
Prefers showing screenshots for current device, but falls back to all screenshots if there are no relevant ones.
2023-10-19 16:24:56 -05:00
Riley Testut
26a05d323f [AltStoreCore] Adds AppScreenshot to support dynamically-sized screenshots
Preserves StoreApp.imageURL field in database model for backwards compatibility.
2023-10-11 15:05:27 -05:00
Riley Testut
1a42aaeae8 [AltStoreCore] Fixes “any ALTAppPermission cannot conform to 'Hashable’” Xcode 15 compiler error 2023-09-05 13:38:49 -05:00
Riley Testut
e97e48ba13 Supports app versions with explicit build versions
AltStore will now consider an update available if either:

* The source’s marketing version doesn’t match installed app’s version
* The source declares a build version AND it doesn’t match the install app’s build version

The installed app matches an app version if both maketing versions match, and the build versions match (if provided by the source).
2023-05-18 15:48:17 -05:00
Riley Testut
45ed24bfb5 Verifies downloaded app’s permissions match source
Renames source JSON permissions key to “appPermissions” in order to preserve backwards compatibility, since we’ve changed the schema for permissions.
2023-05-12 18:26:24 -05:00
Riley Testut
3e3d9a45ed [AltStoreCore] Fixes incorrectly merging app versions for same app from different sources 2023-04-04 17:50:06 -05:00
Riley Testut
1a8096300f [AltStoreCore] Fixes incorrect Source.featuredApps relationship post-merging 2023-04-04 14:20:24 -05:00
Riley Testut
ec54468783 Caches MergeErrors when refreshing sources to view later in SourcesViewController 2023-01-24 15:51:59 -06:00
Riley Testut
b6bdd13167 Fixes incorrect StoreApp.versions order post-merge 2023-01-24 15:51:59 -06:00
Riley Testut
f0a022c9ec Replaces StoreApp.setVersions() preconditionFailure with runtime error
It’s more common than expected for apps to not have any app versions, so better to fail gracefully than crash.
2023-01-24 15:05:02 -06:00
Riley Testut
bc6b0cb722 Fixes potentially incorrect versions order when merging StoreApp 2023-01-24 15:03:09 -06:00
Riley Testut
7ea1ad5af0 Replaces StoreApp.latestVersion with latestSupportedVersion + latestAvailableVersion
We now store the latest supported version as a relationship on StoreApp, rather than the latest available version. This allows us to reference the latest supported version in predicates and sort descriptors.

However, we kept the underlying Core Data property name the same to avoid extra migration.
2023-01-24 15:00:31 -06:00
Riley Testut
b90000ecf3 Resolves AppVersion context-level conflict after migrating from Core Data model v10 2022-09-13 15:31:14 -07:00
Riley Testut
46cd2be37d Supports new “versions” key in source JSON
Allows sources to list multiple versions of an app.

Preserves backwards compatibility by assigning legacy version values when assigning AppVersions.
2022-09-12 17:07:15 -07:00
Riley Testut
f1a39e1a1f [AltStoreCore] Refactors core AltStore logic into AltStoreCore framework
AltStoreCore will contain all shared AltStore code between AltStore and any app extensions. Initially, it includes all AltStore model logic.
2020-09-03 16:39:08 -07:00