Commit Graph

831 Commits

Author SHA1 Message Date
Riley Testut
c4e5bcdcdd Fixes crash when adding source with the same name as another source 2024-12-26 21:15:29 +05:30
Riley Testut
5179ac6f12 Fixes “non-sendable type 'Notification?' cannot cross actor boundary” warning 2024-12-26 21:15:29 +05:30
Riley Testut
cf9066fef1 Fixes “Check for Updates” not updating any sources if one source fails 2024-12-26 21:15:29 +05:30
Riley Testut
63c9135f71 Revises store page permissions UI (again)
* Switches back “Permissions” and “Privacy” section titles
* Shrinks privacy permissions card title font
* Combines privacy + entitlements back into single “Permissions” section
* Removes “Entitlements” section name
2024-12-26 21:15:29 +05:30
Riley Testut
7cbb2da71d Adds “Disable Response Caching” debug setting
When enabled, AltStore will ignore cached responses for certain requests and will always make a new request to the server. This is useful for development when repeatedly testing changes to remote files.

Limited to UpdateKnownSourcesOperation for now, but will eventually affect fetching sources as well.
2024-12-26 21:15:29 +05:30
Riley Testut
72f4bd3657 Refactors app version comparison logic to always include buildVersion
Before, whether or not the source included the buildVersion affected the comparison. If present, the buildVersion was used in comparison, if not, only the version itself was used for comparsion.

This meant it was impossible to update from a version with a buildVersion to the same version without one (e.g. going from betas to final releases). Now we _always_ consider the buildVersion in the comparsion, so an earlier entry in versions array without buildVersion can be considered “newer” even if versions match.
2024-12-26 21:15:29 +05:30
Riley Testut
f514c59bdd Revises store page permissions UI
* Switches “Permissions” and “Privacy” titles
* Makes “Entitlements” and “Other Entitlements” top-level sections
* Matches parent table view layout margins
2024-12-26 21:15:29 +05:30
Riley Testut
c59266c2cb Disables permission verification for DEBUG builds 2024-12-26 21:15:29 +05:30
Riley Testut
008e740606 Fixes incorrectly handling misc. CancellationErrors 2024-12-26 21:15:29 +05:30
Riley Testut
8929b857cf Removes support for “background mode” permissions 2024-12-26 21:15:29 +05:30
Riley Testut
ea428b5f40 Temporarily disables verifying added permissions
We’ll re-enable once we finish the “Review Permissions” screen.
2024-12-26 21:15:29 +05:30
Riley Testut
9142d42d4e Includes more detailed info in VerificationError.addedPermission error messages
* New version
* Previous version
* Added permissions
2024-12-26 21:15:29 +05:30
Riley Testut
00d6fdb1ea Fixes erroneously showing “Unsupported Updates Available” message 2024-12-26 21:15:29 +05:30
Riley Testut
3203bcd6cb Revises Entitlements UI on app detail page 2024-12-26 21:15:29 +05:30
Riley Testut
53b30dcdb0 Fixes strong reference cycles in Source view controllers
* SourcesViewController
* SourcesDetailContentViewController
2024-12-26 21:15:29 +05:30
Riley Testut
c71fe7c469 Fixes CollapsingTextView “More” button incorrectly appearing if lineCount == maximumNumberOfLines 2024-12-26 21:15:29 +05:30
Riley Testut
f45a4c1067 Fixes AppViewController scrolling performance for apps with several privacy permissions 2024-12-26 21:15:29 +05:30
Riley Testut
e20b223c55 Redesigns store page permissions UI to show all entitlements and privacy permissions 2024-12-26 21:15:29 +05:30
Riley Testut
6168e0c3f1 Supports bypassing “Undeclared Permissions” error while sources are in beta
Presents error alert that can be explicitly bypassed by user when sideloading apps with undeclared permissions, and also allows user to view all undeclared permissions.
2024-12-26 21:15:29 +05:30
Riley Testut
ff277d6106 Fixes showing “Update” button on app store page when no supported update is available 2024-12-26 21:15:29 +05:30
Riley Testut
70f3a4f07a Shows AltStore build version in Settings for BETA builds 2024-12-26 21:15:29 +05:30
Riley Testut
92ccdc8451 Verifies downloaded app’s build version matches source (if provided) 2024-12-26 21:15:29 +05:30
Riley Testut
35e3d09f4c 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).
2024-12-26 21:15:29 +05:30
Riley Testut
6960888ce0 Shows error alert on app launch if any added sources are blocked 2024-12-26 21:15:29 +05:30
Riley Testut
7c0f61de81 Updates SourceError.blocked recovery suggestion to list installed/blocked apps
If source is already added, the error message will list all installed apps from the source.

If adding source for first time, the error message will mention exactly which apps have been blocked from the source (if provided).
2024-12-26 21:15:29 +05:30
Riley Testut
7249fa8ad0 Removes unused verificationHandler property from VerifyAppOperation 2024-12-26 21:15:29 +05:30
Riley Testut
495cddf2e4 Supports blocking third-party sources
Blocked sources cannot be added by new users, or updated for existing users.
2024-12-26 21:15:29 +05:30
Riley Testut
9fcea41e14 Moves SourceError to its own source file 2024-12-26 21:15:29 +05:30
Riley Testut
9ae96eda2c Verifies all privacy + background mode permissions have usage descriptions 2024-12-26 21:15:29 +05:30
Riley Testut
3a2556709c Verifies app updates have same permissions as previously installed versions 2024-12-26 21:15:29 +05:30
Riley Testut
8b68a41caf 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.
2024-12-26 21:15:29 +05:30
Riley Testut
05c39cd80c Verifies source’s identifier doesn’t match existing sources when adding 2024-12-26 21:15:29 +05:30
Riley Testut
2532f160bb Verifies source’s identifier doesn’t change after refreshing 2024-12-26 21:15:29 +05:30
Riley Testut
09ad29a372 Verifies downloaded app’s version matches source 2024-12-26 21:15:29 +05:30
Riley Testut
5e4feabc36 Replaces OperationError.cancelled with CancellationError
Keeps `OperationError.cancelled` around for source-compatibility, but now returns CancellationError() instead of OperationError.
2024-12-26 21:15:29 +05:30
Riley Testut
67ac0eb400 Verifies downloaded app’s SHA-256 checksum (if specified) 2024-12-26 21:15:29 +05:30
Riley Testut
3f6cecf3ec Moves VerificationError to its own source file 2024-12-26 21:15:29 +05:30
Riley Testut
e459cc00aa Removes Psychic Paper support from VerifyAppOperation 2024-12-26 21:15:29 +05:30
Riley Testut
c72d067403 [AltStoreCore] Renames AsyncManaged.get() to perform()
Implies it can be used as alternative to managedObject.managedObjectContext.perform() and not just for retrieving values.
2024-12-26 21:15:29 +05:30
Riley Testut
a567c63582 Updates app version to 2.0b1 🎉 2024-12-26 21:15:29 +05:30
Riley Testut
b3d67655ad [Apps-Alpha] Updates AltStore to 2.0a1 2024-12-26 21:15:29 +05:30
Riley Testut
a4bafb934e [Apps-Alpha] Updates to match AltStore 2.0b1 JSON format 2024-12-26 21:15:29 +05:30
Riley Testut
1c32487ff7 Fixes PillButton not respecting progressTintColor under certain conditions 2024-12-26 21:15:29 +05:30
Riley Testut
9dfc56d0fd Removes unused NavigationBar.backgroundColorView 2024-12-26 21:15:29 +05:30
Riley Testut
1708b5409a Defines explicit error codes for OperationError.Code cases 2024-12-26 21:15:29 +05:30
Riley Testut
14ad785cd3 Fixes tapping buttons underneath navigation bar on SourceDetailViewController/AppViewController 2024-12-26 21:15:29 +05:30
Riley Testut
ad92cb6c42 Dynamically disables interactive back gesture when viewing source header image
Only disables gesture if touches are within headerContainerView to ensure back gesture works as expected majority of the time.
2024-12-26 21:15:29 +05:30
Riley Testut
626cd8b814 Updates AppViewController to use UINavigationBarAppearance APIs
Fixes visual bugs when transitioning to/from SourceDetailViewController.
2024-12-26 21:15:29 +05:30
Riley Testut
ed2f750b7b Supports adding/removing source from SourceDetailViewController 2024-12-26 21:15:29 +05:30
Riley Testut
653b84376a Opens source’s website in-app upon tapping link in SourceHeaderView 2024-12-26 21:15:29 +05:30