Commit Graph

236 Commits

Author SHA1 Message Date
Riley Testut
3c73418fc3 [AltStoreCore] Migrates Core Data model from v15 to v16 2024-12-26 21:15:29 +05:30
Riley Testut
b72b46b864 [AltStoreCore] Makes PledgeTier.name optional to match Patreon API 2024-12-26 21:15:29 +05:30
Riley Testut
69a01a3262 [AltStoreCore] Includes more context when logging Patreon account errors
Includes full decoding path if possible.
2024-12-26 21:15:29 +05:30
Riley Testut
becc626027 [AltStoreCore] Fixes parsing Patreon responses containing tiers with null titles 2024-12-26 21:15:29 +05:30
Riley Testut
6a520b3410 Revert "Fixes always showing non-featured apps last in FeaturedViewController"
This reverts commit f76e3a12b6.

We’re not sure we want to commit to this behavior, so reverting for now.
2024-12-26 21:15:29 +05:30
Riley Testut
f2ab214f27 [AltStoreCore] Migrates Core Data model from v14 to v15 2024-12-26 21:15:29 +05:30
Riley Testut
fec02cd80a Fixes always showing non-featured apps last in FeaturedViewController 2024-12-26 21:15:29 +05:30
Riley Testut
4514fe1c2c Displays detailed error log in-app with Quick Look 2024-12-26 21:15:29 +05:30
Riley Testut
1fbec33719 [AltStoreCore] Fixes signing-in to Patreon with Google account 2024-12-26 21:15:29 +05:30
Riley Testut
74b6fb6ec0 Supports joining Patreon via web view + downloading app in single flow
Asks user to connect Patreon account if they are signed-in inside WebViewController but not in AltStore settings.
2024-12-26 21:15:29 +05:30
Riley Testut
703db062e6 Shows source/category icon next to BrowseViewController’s title
Also tints all navigation bar buttons to match source/category tint color.

# Conflicts:
#	AltStore/Browse/BrowseViewController.swift
2024-12-26 21:15:29 +05:30
Riley Testut
1992ecd3a2 [AltStoreCore] Finalizes StoreCategory icons, colors, and JSON values 2024-12-26 21:15:29 +05:30
Riley Testut
36ac3af7dc Fixes showing “Update” for Patreon apps with inactive pledges 2024-12-26 21:15:29 +05:30
Riley Testut
abc7b8d933 [AltStoreCore] Adds Date.shortDateFormatter 2024-12-26 21:15:29 +05:30
Riley Testut
9ea94912d4 Randomizes featured source + app order at app launch 2024-12-26 21:15:29 +05:30
Riley Testut
20b424c97c Supports filtering apps in BrowseViewController by category 2024-12-26 21:15:29 +05:30
Riley Testut
1b8daa59c0 [AltStoreCore] Adds StoreApp.category + StoreCategory enum 2024-12-26 21:15:29 +05:30
Riley Testut
71eb77cfda Allows changing BrowseViewController sort order 2024-12-26 21:15:29 +05:30
Riley Testut
3773a051ab Changes NewsCollectionViewCell image aspect ratio to 3:2
Also updates fonts to use dynamic text styles.
2024-12-26 21:15:29 +05:30
Riley Testut
5da80863b9 Supports updating apps from (almost) all AppBannerViews
Previously, you could only update apps from MyAppsViewController and AppViewController.
2024-12-26 21:15:29 +05:30
Riley Testut
850b6890e2 Fixes AltStore still being refreshing even after pledge expires 2024-12-26 21:15:29 +05:30
Riley Testut
8add1d0f4a Supports remotely disabling workaround for downloading Patreon attachments
In case our workaround for downloading Patreon post attachments breaks, we can remotely disable it and force AltStore to use its fallback instead (taking user to post directly).
2024-12-26 21:15:29 +05:30
Riley Testut
dddb9c5ddb Limits installed Patreon apps that no longer have active pledge
Patreon apps with inactive pledges still support these actions:
* Backed up
* Deactivated
* Export backup
2024-12-26 21:15:29 +05:30
Riley Testut
389af4d5e6 Switches from StoreApp.isBeta to isPledged to determine whether app is visible
If StoreApp.isHiddenWithoutPledge == false (default), we’ll still show the app.
2024-12-26 21:15:29 +05:30
Riley Testut
aa9fda7a97 [AltStoreCore] Renames PatreonAccount.isPatron to isAltStorePatron 2024-12-26 21:15:29 +05:30
Riley Testut
9f7f73f835 Updates apps’ pledge status upon (de-)authenticating with Patreon
No longer deactivates apps whenever pledge expires.
2024-12-26 21:15:29 +05:30
Riley Testut
947b31881f [AltStoreCore] Caches Patreon session cookies from in-app browser
Allows us to download apps from locked Patreon posts.
2024-12-26 21:15:29 +05:30
Riley Testut
7e232cafbe [AltStoreCore] Adds AppProtocol.storeApp
Simplifies retrieving the associated StoreApp for an app.
2024-12-26 21:15:29 +05:30
Riley Testut
91ea34110b Verifies StoreApp.isPledged status when updating source 2024-12-26 21:15:29 +05:30
Riley Testut
47b69b40aa [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
99a3746e1a [AltStoreCore] Refactors PatreonAPI to reduce duplicate logic 2024-12-26 21:15:29 +05:30
Riley Testut
6ba642335b [AltStoreCore] Updates StoreApp to support Patreon-exclusive apps 2024-12-26 21:15:29 +05:30
Riley Testut
869b2dc92a [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
2fa9dbb859 [AltStoreCore] Migrates Core Data model from v13 to v14 2024-12-26 21:15:29 +05:30
Riley Testut
7977267107 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
a49e16f591 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
86ec59d204 Accurately displays dynamically-sized screenshots in AppViewController 2024-12-26 21:15:29 +05:30
Riley Testut
932e66deca [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
d7384cfae9 [AltStoreCore] Generates Source.identifier from sourceURL 2024-12-26 21:15:29 +05:30
Riley Testut
e33a40ecb1 [AltStoreCore] Fixes ALTAppPrivacyPermission.synthesizedName for legacy permissions 2024-12-26 21:15:29 +05:30
Riley Testut
34c503da4b 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
cd42cc827f [AltStoreCore] Fixes DatabaseManager.startForPreview() deadlock 2024-12-26 21:15:29 +05:30
Riley Testut
b03b7bfe68 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
727ab0b554 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
d53e36633d [AltStoreCore] Adds Source.isRecommended
Also replaces legacy “Trusted Sources” references with “Recommended Sources”
2024-12-26 21:15:29 +05:30
Riley Testut
9ddc27f6ca [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
2ccf01cf9c Logs misc. events with OSLog
* Discovering AltServers
* Clearing app cache
* Updating Friend Zone Patrons
2024-12-26 21:15:29 +05:30
Riley Testut
c19b541739 Logs AltJIT-related events with OSLog 2024-12-26 21:15:29 +05:30
Riley Testut
27ca2f285b Logs Fugu14-related events with OSLog 2024-12-26 21:15:29 +05:30
Riley Testut
93b6da4855 Logs sideloading-related events with OSLog 2024-12-26 21:15:29 +05:30