Skip to content

docs(mobile,desktop): fix drifted command/config docs, document undocumented features - #500

Open
lessevv wants to merge 2 commits into
NativePHP:mainfrom
lessevv:docs/mobile-desktop-content-fixes
Open

docs(mobile,desktop): fix drifted command/config docs, document undocumented features#500
lessevv wants to merge 2 commits into
NativePHP:mainfrom
lessevv:docs/mobile-desktop-content-fixes

Conversation

@lessevv

@lessevv lessevv commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Audited the docs against the actual nativephp/mobile-air and nativephp/desktop source and fixed what had drifted, then documented real shipped features that had no docs home. Every claim below was verified directly against the package source (methods, event constructors, config defaults) — see commit messages for specifics.

Fixes:

  • open_browser's real default is false, not true; status_bar_style isn't env()-wrapped like the docs implied.
  • Environment setup listed PHP 8.3+/Laravel 11+; the package actually requires PHP 8.4+ and supports Laravel 10+.
  • native:install's option table had --force/--fresh/--without-icu backwards or fabricated — overwriting is the default, --no-force opts out, --without-icu doesn't exist, and --force actually means "re-download PHP binaries."
  • native:run/native:jump/native:package were missing real options (--build=profileable, --browser, --ios/--android, --jump-by).
  • Desktop's "Default Configuration File" reference had drifted significantly — missing Azure/Bifrost cleanup entries, a wrong cleanup_exclude_files list, missing updater keys, and four entirely undocumented config sections (queue_workers, prebuild/postbuild, nsis, binary_path).

New documentation:

  • Mobile: MobileWallet facade (Apple Pay/Google Pay) + its payment events, a Motion page for shake detection, an UpdateInstalled note on the versioning page, a Bifrost overview page (mobile-only — desktop support is marked "coming soon" on Bifrost's own site), and a bump to released_versions for the real 4.3.0/4.3.1 releases.
  • Desktop: a Nightwatch integration page, AutoUpdater::downloadUpdate() + the missing UpdateCancelled event, several undocumented Window/MenuBar/System methods, and a new Command Reference page mirroring mobile's.

🤖 Generated with Claude Code

lessevv and others added 2 commits September 5, 2026 02:41
…on requirements

Corrects several places where docs had drifted from the actual package
source (verified against nativephp/mobile-air and nativephp/desktop):

- open_browser's real default is false, not true (mobile config +
  native:jump guide) — the terminal already renders a scannable QR code.
- status_bar_style isn't env()-wrapped in the real config; the docs
  implied an override env var that doesn't exist.
- Environment setup listed PHP 8.3+/Laravel 11+; composer.json requires
  PHP 8.4+ and supports Laravel 10+.
- native:install's option table had the --force/--fresh/--without-icu
  semantics backwards or fabricated: overwriting is actually the
  default, --no-force opts out, --without-icu doesn't exist, and
  --force actually means "re-download PHP binaries", not "overwrite".
- native:run/native:jump were missing real options (--build=profileable,
  --browser).
- Desktop's "Default Configuration File" reference had drifted
  significantly from the real config/nativephp.php: missing Azure
  Trusted Signing / Bifrost cleanup_env_keys entries, a completely
  different cleanup_exclude_files list, missing updater provider keys
  (autoupdate_token, public_url), and four undocumented top-level
  sections (queue_workers, prebuild/postbuild, nsis, binary_path).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds coverage for real, shipped features found with no docs home,
verified against nativephp/mobile-air and nativephp/desktop source:

- Mobile: MobileWallet facade (Apple Pay/Google Pay via Stripe) and its
  three payment events, a Motion page for the shake-detection event,
  an UpdateInstalled note on the versioning page, and a Bifrost
  overview page (mobile build support is live; desktop's is marked
  "coming soon" on Bifrost's own site, so it's mobile-only for now).
- Desktop: a Nightwatch integration page (auto-wired when both the
  package and NIGHTWATCH_TOKEN are present), the missing
  AutoUpdater::downloadUpdate() method and UpdateCancelled event, a
  handful of Window/MenuBar/System methods that existed in the facades
  but were never mentioned (Window::reload/unmaximize/position-by-id,
  MenuBar::icon/contextMenu/showOnAllWorkspaces, System::printFile),
  and a new Command Reference page mirroring mobile's.
- Bumped config('docs.released_versions.mobile.4') to include the
  real 4.3.0/4.3.1 releases.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant