Commit Graph

861 Commits

Author SHA1 Message Date
Riley Testut
08dcd9d146 [Shared] Fixes error encoding CodableError Int/UInt user info values 2023-01-24 15:41:57 -06:00
Riley Testut
8d8d8fdd61 [Shared] Uses underlying error messages (if available) for ALTServerError.invalidRequest/.invalidResponse 2023-01-24 15:41:49 -06:00
Riley Testut
12f521321f Updates VerificationError.errorDescription to match ALTLocalizedError default implementation 2023-01-24 15:38:43 -06:00
Riley Testut
b850a3192a [AltServer] Updates app version to 1.6b4 (build 69, nice) 2023-01-24 15:07:10 -06:00
Riley Testut
3df1a12018 [AltPlugin] Updates version to 1.11 2023-01-24 15:07:06 -06:00
Riley Testut
0e29d2bc22 [AltPlugin] Supports macOS Ventura 13.1 2023-01-24 15:07:03 -06:00
Riley Testut
e6cbd21d12 [AltServer] Uses correct app name and iOS version in ALTServerErrorUnsupportediOSVersion alert 2023-01-24 15:06:59 -06:00
Riley Testut
223495cdb9 [AltServer] Throws coder CocoaErrors if source JSON is invalid
Uses same error code with different debug descriptions. These errors should never be thrown in production so no need for unique codes, but if they do get thrown then they include enough technical information to debug.

Replaces OperationError.appNotFound
2023-01-24 15:06:12 -06:00
Riley Testut
b89462016f Fixes refreshing tweaked apps with removed app extensions
In addition to removing the app extensions themselves, we also need to remove references to them from SC_Info/Manifest.plist in the app bundle (if the file exists). Otherwise, subsequent installations (resigning, (de)-activating, etc.) will fail due to “missing” app extensions.
2023-01-24 15:05:45 -06:00
Riley Testut
a105c7f9b4 Revises “check for updates” error title 2023-01-24 15:05:12 -06:00
Riley Testut
444e50eae8 Verifies Sources don’t contain duplicate app versions 2023-01-24 15:05:07 -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
ca9c0596f8 Moves @Managed to AltStoreCore
# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
2023-01-24 15:04:53 -06:00
Riley Testut
4278e7db2b [AltServer] Fixes installation alerts not using device name
As of iOS 16, iOS apps can no longer read the device name. This means devices registered with AltStore (not AltServer) have generic names, so we should prefer using the name of provided ALTDevice rather than the name of device returned from server to ensure it’s correct.
2023-01-24 15:03:09 -06:00
Riley Testut
d5f4f4c625 [AltServer] Removes explicit AltStore download URL 2023-01-24 15:03:09 -06:00
Riley Testut
96dec5329d Verifies Sources don’t contain duplicate bundle IDs
AltStore assumes all apps have unique bundle IDs per source. Weird bugs can occur when this is not the case (such as merging multiple store listings into one), so we now verify upfront whether source contains duplicate bundle IDs before saving.
2023-01-24 15:03:09 -06:00
Riley Testut
579885acd6 [AltServer] Downloads latest supported AltStore version for device OS version
Asks user to install latest compatible version instead if latest AltStore version does not support their device’s OS version.
2023-01-24 15:03:09 -06:00
Riley Testut
61bcb31709 Fixes crash due to accessing AppManager.installationProgress/refreshProgress concurrently 2023-01-24 15:03:09 -06:00
Riley Testut
40af2fe313 Fixes delay updating UI after cancelling installing app 2023-01-24 15:03:09 -06:00
Riley Testut
dbd71050ac [Shared] Adds OperatingSystemVersion+Comparable to AltServer target 2023-01-24 15:03:09 -06:00
Riley Testut
2ec38aa579 Includes the invalid name in error message for registering App ID with invalid characters 2023-01-24 15:03:09 -06:00
Riley Testut
cf84a23dc7 Adds comment to ErrorLogViewController 2023-01-24 15:03:09 -06:00
Riley Testut
16a7dea55b Fixes missing app icon for update errors in Error Log 2023-01-24 15:03:09 -06:00
Riley Testut
60b7276ac4 Supports updating apps from AppViewController
Unlike MyAppsViewController, AppViewController will attempt to update to the latest available version, rather than the latest supported version. If the latest version is not supported, it will fall back to asking user to install last supported version.
2023-01-24 15:03:09 -06:00
Riley Testut
1444afa2b5 Fixes updating apps to latest version instead of latest supported version from My Apps tab 2023-01-24 15:03:09 -06:00
Riley Testut
bc6b0cb722 Fixes potentially incorrect versions order when merging StoreApp 2023-01-24 15:03:09 -06:00
Riley Testut
bd84f65fb4 Fixes incorrect update notifications for apps with unsupported versions 2023-01-24 15:03:09 -06:00
Riley Testut
657dcbe3c0 Fixes ErrorLogViewController “UITextView is switching to TextKit 1 compatibility mode” runtime warning 2023-01-24 15:03:09 -06:00
Riley Testut
152c12b380 Fixes ErrorLogViewController “Unable to simultaneously satisfy constraints” runtime warning 2023-01-24 15:03:09 -06:00
Riley Testut
1993ece7f0 Adds pull-to-refresh to check for updates 2023-01-24 15:03:09 -06:00
Riley Testut
e8b0fa3c6d Allows viewing unsupported updates from My Apps tab
When unsupported updates are available, the “No Updates Available” text becomes “Unsupported Updates Available”, and a button is revealed that will list all unsupported updates in an alert when tapped.
2023-01-24 15:03:09 -06:00
Riley Testut
1cfd83bbb7 Hides app updates that don’t support device’s OS version 2023-01-24 15:03:09 -06:00
Riley Testut
3574ed2ed9 Removes unnecessary StoreApp convenience properties 2023-01-24 15:03:09 -06:00
Riley Testut
a03a5ac76c Improves error message when file does not exist at AppVersion.downloadURL 2023-01-24 15:03:09 -06:00
Riley Testut
5b20ce13bc Verifies min/max OS version before downloading app + asks user to download older app version if necessary 2023-01-24 15:03:09 -06:00
Riley Testut
4fc4d6ba39 Conforms AppVersion to AppProtocol 2023-01-24 15:03:09 -06:00
Riley Testut
ac8fb8851f Supports optional @Managed properties 2023-01-24 15:03:09 -06:00
Riley Testut
b181b2e7a4 Supports non-NSManagedObjects for @Managed properties
This allows us to use @Managed with properties that may or may not be NSManagedObjects at runtime (e.g. protocols). If they are, Managed will keep strong reference to context like before.
2023-01-24 15:03:09 -06:00
Riley Testut
701065b073 Parses AppVersion.minOSVersion/maxOSVersion from source JSON
Uses them to implement AppVersion.isSupported.
2023-01-24 15:01:56 -06:00
Riley Testut
8609209821 Conforms OperatingSystemVersion to Comparable
# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
2023-01-24 15:01:42 -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
324ec7907a [AltServer] Adds “Search FAQ” button to ErrorDetailsViewController 2023-01-24 15:00:26 -06:00
Riley Testut
cf9d577050 [Apps] Updates Delta beta to 1.4b4 2023-01-24 14:39:42 -06:00
Riley Testut
9f91db9642 Skips logging OperationError.cancelled errors 2023-01-24 14:23:42 -06:00
Riley Testut
f445467598 [Apps] Updates AltStore beta to 1.6b3 2023-01-24 14:23:42 -06:00
Riley Testut
266ac1ee50 Limits quitting other AltStore processes to database migrations only
Previously, AltStore would quit all other processes when first accessing the database no matter what. However, this unintentionally caused the widget extension to quit the main app after refreshing apps.

Now, we only quit other AltStore processes if a database migration is required. This still prevents multiple AltStores with different database schemas from accessing database concurrently, but also allows extensions to access database without quitting main app.
2023-01-24 14:23:42 -06:00
Riley Testut
a4078159ac [AltServer] Updates app version to 1.6b3 2023-01-24 14:23:42 -06:00
Riley Testut
020fb74a1c Updates app version to 1.6b3 2023-01-24 14:23:42 -06:00
Riley Testut
103fe10123 Fixes incorrect ToastView layout 2023-01-24 14:23:42 -06:00
Riley Testut
7d48f5a7f3 Fixes logging non-ALTServerErrors errors as ALTServerError.underlyingError 2023-01-24 14:23:42 -06:00