Commit Graph

1138 Commits

Author SHA1 Message Date
Riley Testut
f11cef5352 Shrinks AppCardCollectionViewCell height if there are no screenshots 2023-10-19 17:18:48 -05:00
Riley Testut
fd11278f03 Fixes AppBannerView sticking to safe area when scrolling 2023-10-19 16:48:58 -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
a018803afc Reduces spacing between apps in BrowseViewController 2023-10-19 16:24:56 -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
0c14de4474 Improves paging screenshots with different aspect ratios
We now page by the smallest screenshot width to ensure we never overshoot an item.
2023-10-19 16:24:56 -05:00
Riley Testut
20417f39ba Supports viewing full screen app screenshots from AppViewController
[Missed] Uses layout config for PreviewAppScreenshots
2023-10-19 16:24:56 -05:00
Riley Testut
3656bf165b Merge branch 'sources_tab'
# Conflicts:
#	AltStore.xcodeproj/project.pbxproj
2023-10-19 14:18:43 -05:00
Riley Testut
df2a8f2b93 Merge branch 'logging' 2023-10-19 14:16:50 -05:00
Riley Testut
1cd7a23db1 [AltStoreCore] Fixes DatabaseManager.startForPreview() deadlock 2023-10-19 14:15:40 -05:00
Riley Testut
0eac8f885d Fixes “Add/Remove Source” button title not updating after removing source 2023-10-19 14:11:24 -05:00
Riley Testut
8a0d27488e Fixes incorrect Sources tab background color in dark mode 2023-10-19 13:39:15 -05:00
Riley Testut
c6227432e4 [README] Updates minimum project requirements 2023-10-19 12:56:10 -05:00
Riley Testut
deb9cfa230 Fixes misplaced PRODUCT_BUNDLE_IDENTIFIER entry in Xcode project 2023-10-19 12:40:12 -05:00
Riley Testut
3cc991b476 [Apps] Moves source JSON files to separate repo 2023-10-19 12:38:52 -05:00
Riley Testut
d19c17d591 Merge branch 'develop' 2023-10-19 12:18:00 -05:00
Riley Testut
253aff29e9 Fixes misplaced back button 2023-10-18 19:11:11 -05:00
Riley Testut
0659d83afb Adds AddSourceViewController to add sources by URL or from list of recommended sources 2023-10-18 18:56:40 -05:00
Riley Testut
d85905ba61 Updates Browse tab icon 2023-10-18 17:18:03 -05:00
Riley Testut
22d204be6b Supports exporting OSLogs from ErrorLogViewController 2023-10-18 14:28:36 -05:00
Riley Testut
a092c99b84 Logs misc. events with OSLog
* Discovering AltServers
* Clearing app cache
* Updating Friend Zone Patrons
2023-10-18 14:28:36 -05:00
Riley Testut
82d4e4d4d8 Logs AltJIT-related events with OSLog 2023-10-18 14:28:36 -05:00
Riley Testut
bf0a5b9e2d Logs Fugu14-related events with OSLog 2023-10-18 14:28:17 -05:00
Riley Testut
2133b6240d Logs sideloading-related events with OSLog 2023-10-18 14:28:17 -05:00
Riley Testut
5a79eefc70 Fixes “Unable to satisfy constraints” warnings for SourcesViewController 2023-10-17 15:55:51 -05:00
Riley Testut
b8b46f5280 Updates incorrect Main.storyboard frames 2023-10-17 14:50:35 -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
9930f62f2f Uses uniform height for SourceDetailContentViewController News items (iOS 17+) 2023-10-16 19:12:42 -05:00
Riley Testut
1a5ffcdd31 Adjusts illegible Source tint colors for SourceDetailViewController 2023-10-16 19:10:34 -05:00
Riley Testut
d890af0160 Adds AppBannerView.style to switch between app and source styles
`app` banners have rounded rect icons and use a lighter version of tint color as background, while `source` banners have circular icons and use the original tint color as background.
2023-10-16 19:03:04 -05:00
Riley Testut
ff1e221c41 Adds UIColor.adjustedForDisplay() to display illegible tint colors
Adjusts illegible tint colors so that they can be displayed in the UI, e.g. by making them brighter or darker.
2023-10-16 19:03:04 -05:00
Riley Testut
4e104ac674 Adds PillButton.style to switch between pill and custom styles
`pill` style enforces minimum size + content insets, while `custom` doesn’t.
2023-10-16 18:52:39 -05:00
Riley Testut
b43bdede74 Adds AppIconImageView.style to switch between icon and circular styles
`icon` approximates the rounded corners of an app icon, while `circular` makes the icon a circle.
2023-10-16 18:40:36 -05:00
Riley Testut
cdfb55deeb Posts Notification when Source is added or removed 2023-10-16 18:29:59 -05:00
Riley Testut
17b6235ad9 Limits relative date strings to “Yesterday” and “Today”
Any relative date older than “Yesterday” will be displayed as absolute date instead.
2023-10-16 18:27:48 -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
0b85935b93 [AltTests] Fixes compiler errors 2023-10-10 17:41:30 -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
a5e11b0626 [Shared] Includes CodingPath in Source errors’ debug description (if available) 2023-10-10 15:13:40 -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
74dc2d4c71 [Apps] Raises AltStore minimum OS version to iOS 15 2023-09-21 13:44:06 -05:00
Riley Testut
7670e884a8 [Apps] Updates Delta to 1.4.2 2023-09-19 12:48:43 -05:00
Riley Testut
9e1e69cab5 [Apps] Updates AltStore to 1.7 2023-09-18 14:11:04 -05:00
Riley Testut
96a0fc5f21 Fixes misplaced Info.plist entries 2023-09-15 15:10:51 -05:00