Commit Graph

874 Commits

Author SHA1 Message Date
Riley Testut
b67dfbf0c3 [Apps] Updates AltStore beta to 1.6rc 2023-01-24 15:51:32 -06:00
Riley Testut
a9bb0c11a4 [Shared] Fixes pattern matching non-ALTErrorEnum error codes 2023-01-24 15:51:32 -06:00
Riley Testut
39cc0b5da5 Updates app version to 1.6rc 2023-01-24 15:51:32 -06:00
Riley Testut
503d535823 Fixes adding failures to NSErrors with nil localizedFailureReasons 2023-01-24 15:51:32 -06:00
Riley Testut
5efb9f8448 [AltTests] Enables Code Coverage 2023-01-24 15:48:58 -06:00
Riley Testut
28344232d3 [AltTests] Adds error handling tests
Passes all tests

[Review] Refactors tests to be more readable

Removes unnecessary code
2023-01-24 15:48:53 -06:00
Riley Testut
df8debb386 Adds AltTests test target
# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
2023-01-24 15:48:42 -06:00
Riley Testut
af5281dc90 Moves “View Error Log” setting to new Techy Things section 2023-01-24 15:47:34 -06:00
Riley Testut
2f7bb83560 Fixes “missing provisioning profile” error when refreshing DEBUG builds
Removes embedded XCTest (+ dSYM) bundles before resigning for DEBUG builds.
2023-01-24 15:47:34 -06:00
Riley Testut
d85957b70b [Apps] Adds “More Trusted Sources!” news item 2023-01-24 15:45:20 -06:00
Riley Testut
5e833192de [Apps] Updates AltStore beta to 1.6b4 2023-01-24 15:45:20 -06:00
Riley Testut
794385a935 [Shared] Ignores ALTWrappedError NSLocalizedDescription user info value if it == failure + failure reason 2023-01-24 15:44:48 -06:00
Riley Testut
ab2aef6b2a [Shared] Encodes all CodableError codable user info values, not just recognized types 2023-01-24 15:42:14 -06:00
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