Commit Graph

89 Commits

Author SHA1 Message Date
Riley Testut
0badb0a091 Changes NewsCollectionViewCell image aspect ratio to 3:2
Also updates fonts to use dynamic text styles.
2023-12-07 16:45:42 -06:00
Riley Testut
f9cff51d1c Supports updating apps from (almost) all AppBannerViews
Previously, you could only update apps from MyAppsViewController and AppViewController.
2023-12-01 16:50:48 -06:00
Riley Testut
5732da1f2c Fixes AltStore still being refreshing even after pledge expires 2023-12-01 16:50:48 -06:00
Riley Testut
d9ebd21541 Limits installed Patreon apps that no longer have active pledge
Patreon apps with inactive pledges still support these actions:
* Backed up
* Deactivated
* Export backup
2023-12-01 16:49:56 -06:00
Riley Testut
2d267a1e99 Switches from StoreApp.isBeta to isPledged to determine whether app is visible
If StoreApp.isHiddenWithoutPledge == false (default), we’ll still show the app.
2023-12-01 16:49:56 -06:00
Riley Testut
28a93b82a9 [AltStoreCore] Renames PatreonAccount.isPatron to isAltStorePatron 2023-12-01 16:49:56 -06:00
Riley Testut
45da6b626f [AltStoreCore] Adds AppProtocol.storeApp
Simplifies retrieving the associated StoreApp for an app.
2023-12-01 16:49:56 -06:00
Riley Testut
a1038d8850 Verifies StoreApp.isPledged status when updating source 2023-12-01 16:49:56 -06:00
Riley Testut
d59ced9208 [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.
2023-12-01 16:49:56 -06:00
Riley Testut
7ed2dc8291 [AltStoreCore] Refactors PatreonAPI to reduce duplicate logic 2023-12-01 16:49:56 -06:00
Riley Testut
417837049f [AltStoreCore] Updates StoreApp to support Patreon-exclusive apps 2023-12-01 16:49:56 -06:00
Riley Testut
c04d63ba9d [AltStoreCore] Generalizes Source.sourceID(from:) logic into URL.normalized()
Allows comparing URLs that may have slight (but irrelevant) differences (e.g. trailing slashes).
2023-11-15 13:20:50 -06:00
Riley Testut
d2c66d4f3b [AltStoreCore] Migrates Core Data model from v13 to v14 2023-10-19 18:38:30 -05:00
Riley Testut
a6bc4b5d5f Merge branch 'revised_source_json'
# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
#	AltStore/App Detail/AppContentViewController.swift
#	AltStore/App Detail/AppViewController.swift
#	AltStore/Base.lproj/Main.storyboard
#	AltStoreCore/Model/DatabaseManager.swift
2023-10-19 16:43:50 -05:00
Riley Testut
2822c52f11 Replaces BrowseCollectionViewCell with AppCardCollectionViewCell
* Handles dynamic screenshot sizes
* Allows swiping through screenshots
* Supports iPhone + iPad screenshots
2023-10-19 16:24:56 -05:00
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
1cd7a23db1 [AltStoreCore] Fixes DatabaseManager.startForPreview() deadlock 2023-10-19 14:15:40 -05:00
Riley Testut
1b56ac708f Refactors SourceViewController into dedicated tab
* Updates UI to use source icons + tint colors
* Adds Edit button + swipe actions
2023-10-17 14:49:13 -05:00
Riley Testut
ff46fb38b9 [AltStoreCore] Adds Source.isRecommended
Also replaces legacy “Trusted Sources” references with “Recommended Sources”
2023-10-16 18:26:59 -05:00
Riley Testut
24334f88ce [AltStoreCore] Updates DatabaseManager to support #Preview macro
Synchronously loads database via startForPreview(), and also erases database for DEBUG builds.

# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
2023-10-16 16:56:51 -05:00
Riley Testut
50515382d0 Accurately displays dynamically-sized screenshots in AppViewController 2023-10-11 18:13:01 -05:00
Riley Testut
03fad2f202 [AltStoreCore] Updates DatabaseManager to support #Preview macro
Synchronously loads database via startForPreview(), and also erases database for DEBUG builds.
2023-10-11 18:02:12 -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
7c9de40d25 [AltStoreCore] Generates Source.identifier from sourceURL 2023-10-10 17:39:20 -05:00
Riley Testut
990abb3162 [AltStoreCore] Fixes ALTAppPrivacyPermission.synthesizedName for legacy permissions 2023-10-10 15:29:34 -05:00
Riley Testut
d0eb2f2b0a 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
2023-10-10 14:47:00 -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
21c2f8d5ce [AltWidget] Adds interactive Active Apps widget to view + refresh all active apps (iOS 17+) 2023-09-05 13:11:21 -05:00
Riley Testut
7e29258d40 [AltStoreCore] Updates AltStore12ToAltStore13 mapping model for latest model changes
* Non-optional AppPermission.usageDescription
* Non-optional AppPermission.appBundleID
* Added AppPermission.sourceID
2023-05-30 15:37:10 -05:00
Riley Testut
d7bbf78b6b [AltStoreCore] Fixes incorrectly merging permissions for same app from different sources 2023-05-30 15:28:49 -05:00
Riley Testut
3efee63d41 [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.
2023-05-30 14:24:35 -05:00
Riley Testut
13248c05e7 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.
2023-05-30 12:57:45 -05:00
Riley Testut
c3721ba209 [AltStoreCore] Migrates Core Data model from v12 to v13 2023-05-29 16:50:17 -05:00
Riley Testut
89a4f8369b 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.
2023-05-29 16:50:17 -05:00
Riley Testut
4ed40cd544 Removes support for “background mode” permissions 2023-05-29 16:50:17 -05:00
Riley Testut
930b098cbf Fixes erroneously showing “Unsupported Updates Available” message 2023-05-29 16:48:43 -05:00
Riley Testut
ced82ef4e3 [AltStoreCore] Renames StoreApp.latestVersionString to _version 2023-05-18 15:54:13 -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
ad41024bcb Verifies downloaded app’s SHA-256 checksum (if specified) 2023-05-11 18:57:53 -05:00
Riley Testut
bd5c942c43 [AltStoreCore] Migrates Core Data model from v11 to v12 2023-04-04 17:59:52 -05:00
Riley Testut
9a5ed50d25 [AltStoreCore] Fixes migration error on launch if AltStore app group does not exist.
Allows falling back to using regular app sandbox instead of app group.
2023-04-04 17:50:32 -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
5c419aa333 Shows detailed source “About” page when adding 3rd-party sources
Allows users to preview sources before adding them to their AltStore.
2023-04-04 15:44:46 -05:00
Riley Testut
8700694fb8 [AltStoreCore] Adds Source.isAdded
Convenience property to determine whether a source has been added to the user’s AltStore.
2023-04-04 14:21:13 -05:00
Riley Testut
1a8096300f [AltStoreCore] Fixes incorrect Source.featuredApps relationship post-merging 2023-04-04 14:20:24 -05:00
Riley Testut
6edd92da78 [AltStoreCore] Supports additional source JSON values for detailed “About” page 2023-04-04 14:19:49 -05:00
Riley Testut
15af909a3e Fixes error fetching Friend Zone patrons due to unexpected nil name 2023-03-28 14:37:47 -05:00
Riley Testut
f94fe63b60 [AltStoreCore] Fixes Core Data “Using nil or insecure value transformer” warnings 2023-03-01 16:38:49 -06:00
Riley Testut
eeea64f780 Supports sideloading more than 3 apps via MacDirtyCow exploit
The MacDirtyCow exploit allows users to remove the 3 active apps limit on iOS 16.1.2 and earlier. To support this, we’ve added a new (hidden) “Enforce 3-App Limit” setting that can be disabled to allow sideloading more than 3 apps.
2023-02-06 17:37:54 -06:00