Repository navigation
iOS shell host: catalogue, settings, game data, cloud saves, log and the launcher seam - #248
Merged
Merged
Conversation
…the launcher seam New ShellHost library behind the ShellUI views: reads Games/<title ID> bundles (manifest and launcher.json), derives each game's state, keeps settings per game under launcher.<VAR>, stores security-scoped bookmarks for game data and cloud saves, shows log.txt, opens the update URL, bridges controllers, and hands Play to a GameLauncher (a stub until M2). The demo gets a --host mode on fixtures.
Collaborator
Author
|
Folded into #226, the commits are on v0lumehi/ios-shell-ui-2 now. |
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Stacked on #226 (the views). This is the host layer behind them, a new
ShellHostlibrary infrontend-ios/that the real shell app and the demo can both use.ShellUIstays view-only, every file is read inShellHost.Wired:
Games/<title ID>/withgame.manifest.json(schema 1 fromdocs/launcher-c-plan.md),launcher.json(docs/launcher.schema.json), the manifest's framework folder and optional banner and icon. Malformed or missing files keep the game in the list as broken with a readable reason.min_osabove the running OS), then needs game data, else playable.UserDefaultssuite per game, keyslauncher.<VAR>as indm/ios/Sources/LauncherSettings.swift(only non-default values stored, saved values the game no longer offers read as default). Reset restores the tested defaults.UIDocumentPickerViewController), security-scoped bookmark per game (pickedDataBookmark, asDataBookmark.m), resolved on start. Use app data goes back toDocuments/games/<title ID>/(patch 0003's layout).cloudSavesBookmark, no sync logic.log.txtfrom the data folder into a read-only sheet. Update app opens a configurable URL.GamepadAdapterfeedsControllerInfoandShellInputthrough the model.--hostruns the views on fixture bundles (no game data, no pictures).The
GameLauncherseamGameLauncher.launch(_ game: LaunchableGame) async throws.LaunchableGamecarries the manifest, bundle and framework URLs, the data folder, the app folder, everyDM_*value and the cloud-save folder.StubGameLauncheronly logs and shows "Launching is not available yet." M2 (#144, @LNPANDY) plugs in the real launcher that sets the environment,dlopens the framework and starts the host. Nothing else changes, it is passed aslauncher:. Documented infrontend-ios/README.md.Not done
No engine and no launching.
dm/,scripts/,docs/,ref/andpatches/are untouched. "App version vs required version" uses the manifest'schainandmin_osonly, since the manifest has no minimum shell version key. No cloud sync.Checked
swift buildandswift testinfrontend-ios(52 new Swift Testing tests: parsing incl. malformed files, state, data location, settings and reset, bookmarks in a temporary folder, stub launcher, model actions).python3 scripts/patches.py checkpasses.xcodebuild ... build test), including 3 new ones for--host.Screenshots
None, no UI change.
Scope
dm/,scripts/,docs/,ref/,AGENTS.md) is edited directly