Swiftfin
Swiftfin copied to clipboard
Update JellyfinAPI
trafficstars
This PR servers as the (long) transition to the new async/await provided in the new JellyfinAPI.
I am developing this transition with the following steps:
- remove jellyfin-sdk-swift
- have a local copy of jellyfin-sdk-swift at version 0.1.0, rename folder to
jellyfin-sdk-swift-legacy - rename the target to
JellyfinAPILegacy - import as local package and update imports to
JellyfinAPILegacy - add jellyfin-sdk-swift at version 0.2.0
This allows incremental updates instead of having to replace all of the calls at once before a successful build.
- [ ] make async/await wrappers
- [ ] inject some sort of session object into environment
- this helps with resetting the app view on logout
- [ ] ActivityIndicator replacement
- [ ] refactor view models error handling
- [ ] replace calls...
- might require slight adjustments to other views/callsites that require a full URL, like
ImageView
- might require slight adjustments to other views/callsites that require a full URL, like
After starting this a bit, I'm not so inclined to expedite this so that other features can be worked on. This will be in the background.
Edit: I'll actually wait until CreateAPI has sorting path parameters and paths organization, this will be very valuable now instead of rewriting later on when these are added.
Will be done in #593.