Riley Testut
54d9cff53a
Verifies StoreApp.isPledged status when updating source
2024-12-26 21:15:29 +05:30
Riley Testut
54909ca7e7
[AltStoreCore] Adds Pledge, PledgeReward, and PledgeTier
...
Allows us to cache pledges for current user, which can be used to determine if user has access to Patreon-only apps.
2024-12-26 21:15:29 +05:30
Riley Testut
8f6d8d5450
[AltStoreCore] Refactors PatreonAPI to reduce duplicate logic
2024-12-26 21:15:29 +05:30
Riley Testut
4ba44d8722
[AltStoreCore] Updates StoreApp to support Patreon-exclusive apps
2024-12-26 21:15:29 +05:30
Riley Testut
f96bcb7c71
[AltStoreCore] Generalizes Source.sourceID(from:) logic into URL.normalized()
...
Allows comparing URLs that may have slight (but irrelevant) differences (e.g. trailing slashes).
2024-12-26 21:15:29 +05:30
Riley Testut
561b59f63c
[AltStoreCore] Migrates Core Data model from v13 to v14
2024-12-26 21:15:29 +05:30
Riley Testut
d21c746920
Replaces BrowseCollectionViewCell with AppCardCollectionViewCell
...
* Handles dynamic screenshot sizes
* Allows swiping through screenshots
* Supports iPhone + iPad screenshots
2024-12-26 21:15:29 +05:30
Riley Testut
a790bbf691
Supports both iPhone + iPad screenshots
...
Prefers showing screenshots for current device, but falls back to all screenshots if there are no relevant ones.
2024-12-26 21:15:29 +05:30
Riley Testut
422cde9706
Accurately displays dynamically-sized screenshots in AppViewController
2024-12-26 21:15:29 +05:30
Riley Testut
ee7d7343a9
[AltStoreCore] Adds AppScreenshot to support dynamically-sized screenshots
...
Preserves StoreApp.imageURL field in database model for backwards compatibility.
2024-12-26 21:15:29 +05:30
Riley Testut
faa4c0f17f
[AltStoreCore] Generates Source.identifier from sourceURL
2024-12-26 21:15:29 +05:30
Riley Testut
5a8aab3f07
[AltStoreCore] Fixes ALTAppPrivacyPermission.synthesizedName for legacy permissions
2024-12-26 21:15:29 +05:30
Riley Testut
00bcdec0dc
Revises appPermissions JSON format
...
• Split into `entitlements` and `privacy` sections
• `entitlements` is an array of entitlement keys
• `privacy` is a dictionary mapping UsageDescription keys to their descriptions
2024-12-26 21:15:29 +05:30
Riley Testut
2a0fdaace0
[AltStoreCore] Fixes DatabaseManager.startForPreview() deadlock
2024-12-26 21:15:29 +05:30
Riley Testut
b2258f32cb
Refactors SourceViewController into dedicated tab
...
* Updates UI to use source icons + tint colors
* Adds Edit button + swipe actions
2024-12-26 21:15:29 +05:30
Riley Testut
58ad916dc3
Limits relative date strings to “Yesterday” and “Today”
...
Any relative date older than “Yesterday” will be displayed as absolute date instead.
2024-12-26 21:15:29 +05:30
Riley Testut
79c7e994e8
[AltStoreCore] Adds Source.isRecommended
...
Also replaces legacy “Trusted Sources” references with “Recommended Sources”
2024-12-26 21:15:29 +05:30
Riley Testut
691d20ae0a
[AltStoreCore] Updates DatabaseManager to support #Preview macro
...
Synchronously loads database via startForPreview(), and also erases database for DEBUG builds.
2024-12-26 21:15:29 +05:30
Riley Testut
99df4a1a01
Logs misc. events with OSLog
...
* Discovering AltServers
* Clearing app cache
* Updating Friend Zone Patrons
2024-12-26 21:15:29 +05:30
Riley Testut
3214711ddb
Logs AltJIT-related events with OSLog
2024-12-26 21:15:29 +05:30
Riley Testut
3e5e03c4d3
Logs Fugu14-related events with OSLog
2024-12-26 21:15:29 +05:30
Riley Testut
fed587954d
Logs sideloading-related events with OSLog
2024-12-26 21:15:29 +05:30
Riley Testut
19f2a3dd29
[AltStoreCore] Fixes “any ALTAppPermission cannot conform to 'Hashable’” Xcode 15 compiler error
2024-12-26 21:15:29 +05:30
Riley Testut
c78d359a07
[AltWidget] Adds interactive Active Apps widget to view + refresh all active apps (iOS 17+)
2024-12-26 21:15:29 +05:30
Riley Testut
9bd69690b6
[Permissions] Adds entries for most known privacy permissions
2024-12-26 21:15:29 +05:30
Riley Testut
d97f1315a6
[AltStoreCore] Updates AltStore12ToAltStore13 mapping model for latest model changes
...
* Non-optional AppPermission.usageDescription
* Non-optional AppPermission.appBundleID
* Added AppPermission.sourceID
2024-12-26 21:15:29 +05:30
Riley Testut
222617273c
[AltStoreCore] Fixes incorrectly merging permissions for same app from different sources
2024-12-26 21:15:29 +05:30
Riley Testut
628d96442f
[AltStoreCore] Makes AppPermission.usageDescription non-optional for backwards compatibility
...
Necessary to support switching between AltStore beta and public version.
Wraps private non-optional _usageDescription value in public accessor with optional return type to still treat it as “optional” value.
2024-12-26 21:15:29 +05:30
Riley Testut
17aee9b290
Revises appPermissions format in source JSON
...
Before, appPermissions was one array containing all permissions of different types.
Now, we split entitlement and privacy permissions into separate “entitlements” and “privacy” child arrays.
2024-12-26 21:15:29 +05:30
Riley Testut
03e745525f
Changes ALTAppPermission.isKnown to check localizedName == nil, not localizedDescription
...
Privacy permissions always have nil localizedDescriptions, even if they’re known.
2024-12-26 21:15:29 +05:30
Riley Testut
8347a70d97
[Permissions] Fixes incorrect entitlement keys and revises names + descriptions
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
ebb86110ed
[AltStoreCore] Migrates Core Data model from v12 to v13
2024-12-26 21:15:29 +05:30
Riley Testut
cf4d308174
[AltStoreCore] Adds Permissions.plist with definitions for most known permissions
...
Simpler to update over time as a separate plist rather than in source code.
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
c59266c2cb
Disables permission verification for DEBUG builds
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
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
e20b223c55
Redesigns store page permissions UI to show all entitlements and privacy permissions
2024-12-26 21:15:29 +05:30
Riley Testut
d52d0fc4a8
[AltStoreCore] Adds some common ALTPrivacyPermissions
...
* Apple Music
* Bluetooth
* Calendars
* Camera
* Face ID
* Local Network
* Microphone
* Photos
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
fcf571a1ba
[AltStoreCore] Renames StoreApp.latestVersionString to _version
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
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
32fa812064
[AltStoreCore] Backports iOS 15+ NSManagedObjectContext.performAndWait<T>()
...
Simplifies returning values and throwing errors from managed object contexts.
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
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
67ac0eb400
Verifies downloaded app’s SHA-256 checksum (if specified)
2024-12-26 21:15:29 +05:30
Riley Testut
1cd4b03d0f
[AltStoreCore] Flattens optional values when @Managed/@AsyncManaged.wrappedValue is also optional
2024-12-26 21:15:29 +05:30