Commit Graph
8 Commits
Author SHA1 Message Date
Rick fef67cd5b5 Removed the use of @autoclosure from Logging methods in order to reduce binary size footprint (#5956)
* Removed the use of @autoclosure from Logging methods in order to reduce binary size footprint

* Restore change
2025-12-24 16:40:15 +01:00
Jacob Rakidzich ef3357f416 HOTFIX Media not loading (#5678)
* fix media not loading

* update logic and tests

* add docs
2025-10-17 14:38:04 -05:00
Jacob Rakidzich 04bc10266b Finalize video component to include a checksum, dark mode support, and optimize memory usage for large file downloads (#5631)
* Checksum and tests

* add checksum to video component models

* Update cache warming

* put the checksum in the right spot and update the view model

* File repo updates

* add missing assertion

* revert accidental trailiing comma

* Checksum from file

* Ensure cache invalidates when the checksum changes

* Use checksum as filename if available

* greedily fill space while loading occurs

* update remote image usage of the repository

* Reduce memory footprint of large file downloads by streaming the download to a temp file

* Update keyed deferred value storage key to include checksum

* remove unused argument

* remove wip comment

* Get tests to compile

* Write tests for the large item cache type

* remove test from the file repository suite

* trailing commas

* remove cache warming of videos

* remove un-needed change causing existential types

* delete the temporary file after success or failure of the code block

* log with the checksums

* optimize checksum generation to occur at the same time as the temp file storage

* starting to work on border gradients,

* Revert "starting to work on border gradients,"

This reverts commit 429e6d2fab.

* clarity regarding dark mode urls
2025-10-14 08:05:01 -05:00
Jacob Rakidzich 2316c689f4 Video Component Views (#5527)
This adds a video component for apple platforms: iOS, macOS, and watchOS. There is are differences in them. But the primary difference that is noticeable in the UX is that iOS is the only one that does not have a black background if the video aspect ratio is not the same as the view's and does not fill its size.

> [!NOTE]
> macOS and watchOS will ship with the standard black background on the video component. I don't have a good solution for handling that right now.
2025-09-29 15:16:13 -05:00
Josh Holtz c63523076a Store file repostory contents in base directory in cache (#5557)
* Store file repostory contents in base directory in cache

* Fixed tests
2025-09-11 18:29:36 -05:00
Josh Holtz a34be303b6 Paywalls image loading from cache is now synchronous (#5528)
* Paywalls image loading from cache is now synchronous

* Some improvements

* Does this fix emerge?

* This feels better

* Same image for loop

* Maybe this

* Maybe this

* This

* Maybe

* Maybe this

* This is it... paired with mark

* Fix some tabbing

* Fix zero test on expected size in remoteimage view

* Make work on tvos

* Fix lint

* How about this

* Be happy lint
2025-09-11 11:21:04 -05:00
Jacob Rakidzich 6c8140e058 Fix the tests and implicit returns that broke our CI on main (#5493)
* explicit returns

* wrap prefetch in high priority task to ensure yield picks things up.

* more explicit returns

* explicit self in closure
2025-08-21 22:05:35 -05:00
Jacob Rakidzich f730d9df52 Create File Repository for use in upcoming feature work (#5477)
* Pull files from staging branch to introduce a file repository and intelligent task sharing

* removed typed throws and fix some docs

* Make tests satisfy predictive swift 6 failures

* @_spi(Internal) public

* Stop using the shared instance in an instance method

* Pull cache directory logic out of file repository

* update cache naming conventions

* @fire-at-will feedback -> use url instead of path

* Use strings file pattern

* remove priority from repository

* Remove RC Internal access from keyed deferred value store

* Remove spi internal from cache and network service

* makeSUT -> makeSystemUnderTest

* remove public scope in extensions

* rename function for clarity
2025-08-21 05:41:52 -05:00