Skip to content

Move the dependency rows, the Python and dotnet paths and the installs into a DependencyStore - #469

Merged
v0lumehi merged 1 commit into
v0lumehi/engine-sync-storefrom
v0lumehi/dependency-store
Nov 2, 2026
Merged

v0lumehi merged 1 commit into
v0lumehi/engine-sync-storefrom
v0lumehi/dependency-store

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #467 (stack #459), retarget to main after the ones below merge.

Part of #387, step 7 (dependencies).

Fix or feature

  • Fix
  • Feature

A maintainer's step of the agreed plan in #387. It changes no behavior.

What and why

BuildModel still owned the dependency rows, the Python and dotnet paths and the installs. This moves them into a DependencyStore in NXModel, as AppUpdateStore, RepoStore and EngineSyncStore did.

  • DependencyStore: deps, checked, the expanded list, pythonPath and dotnetPath, check(), install(_:) with the failure kept on the row, the note after a failed install and the Xcode row that opens the App Store (as a closure).
  • It is the PythonLocation that EngineSyncStore reads. BuildModel is no longer one.
  • DependencyStatus is the narrow protocol the build reads (checked, allPresent, pythonPath, dotnetPath, deps). BuildModel reads the store only through it.
  • NXCore got DependencyCheck (the list of rows, the Metal row, the dotnet install command, deps-check.txt, the bash command and environment of an install) and MetalPin.
  • The Settings "Tools" rows, the setup hint and the status line observe the store.
  • ContentView.swift goes from 2228 to 2073 lines, and its entry in SourceSizeTests is lowered.

What stays in the app target:

  • needsIOSPlatform reads OnboardingDefaults, so it goes with the onboarding. The store gets it as a closure.
  • BuildModel keeps read-only pythonPath, dotnetPath, depsChecked and allDepsPresent (through DependencyStatus) and forwards the store's objectWillChange, because the build code and canBuild read them. They go with the build store.
  • fixBuildFailure and fixBusy call the store. They go with the build store.
  • Tests moved to the new names: model.dependencies.deps and so on, DependencyCheck.metalDep, dependencies.detail(of:).

Checked

  • Tests: cd frontend && swift test three times, 816 tests in NXModelTests (81), NXCoreTests (98) and NX2AppleTests (637), 0 failures, no flaky test. The previous step had 803. DependencyStoreTests adds 13. The frontend-qt tests pass (214, 14 skipped).
  • Not tested: the Python row's venv install, because Toolchain.makeVenv reads and writes the real venv folder. The installs in the new tests use a fake runner.
  • Visual QA: not run, no visible change.
  • Run on a device or Mac: not run. No fresh app build was launched and no Homebrew or Xcode install ran.

Screenshots

None, no visible change.

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository
  • A fix to the engine or a game profile also goes to seedds/nxnative as a PR in parallel: not applicable, no engine change
  • A change to a launcher view has before and after screenshots above: not applicable, no visible change
  • No keys, game files or data extracted from a game in the change or the attachments

@v0lumehi v0lumehi added this to the v1.0.2 milestone Nov 2, 2026
@v0lumehi v0lumehi added enhancement New feature or request launcher The NX2Apple launcher app mac Mac labels Nov 2, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 2, 2026
@v0lumehi
v0lumehi added this pull request to stack #459 November 2, 2026 01:09
@v0lumehi
v0lumehi force-pushed the v0lumehi/dependency-store branch from 03609a9 to 07fa7e4 Compare November 2, 2026 12:47
@v0lumehi
v0lumehi force-pushed the v0lumehi/dependency-store branch from e341109 to f77fb6b Compare November 2, 2026 16:00
@v0lumehi
v0lumehi merged commit d9ae970 into main Nov 2, 2026
14 checks passed
@v0lumehi
v0lumehi deleted the v0lumehi/dependency-store branch November 2, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request launcher The NX2Apple launcher app mac Mac

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant