Skip to content

Explain how the version and build number decide when code updates - #573

Merged
simonhamp merged 1 commit into
mainfrom
docs/version-and-build-number
Oct 23, 2026
Merged

simonhamp merged 1 commit into
mainfrom
docs/version-and-build-number

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Docs side of NativePHP/mobile-air#584.

Outside DEBUG, a mobile app only extracts its bundled Laravel code when the version number or the build number changes. A rebuild installed with the same pair keeps running the old code. The configuration page described the comparison in an aside but never said what it means in practice, so people ended up uninstalling to see their changes.

What changed:

  • getting-started/configuration.md calls the two values "version number" and "build number", says the app re-extracts if either one changes, and adds a paragraph after the aside saying to bump NATIVEPHP_APP_VERSION_CODE before each build you install.
  • getting-started/development.md adds one sentence to the "Rule of thumb" aside, linking back to that section.
  • publishing/introduction.md and publishing/ios.md said native:release increments the build number. It only bumps the version. native:package increments the build number, and native:run --build=release doesn't, so the intro now says to bump it yourself before testing a release build on a device that already has one installed.

Worth checking: the new link in development.md uses the anchor #codenativephp-app-versioncode, following the pattern installation.md already uses for NATIVEPHP_APP_ID.

🤖 Generated with Claude Code

The app only extracts its bundled Laravel code when the version number
or build number changes, so a rebuild with the same pair keeps running
the old code. Say that plainly, and tell people to bump
NATIVEPHP_APP_VERSION_CODE before each build they install.

Also fix the claim that native:release bumps the build number. It only
bumps the version. native:package bumps the build number, and native:run
never does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp marked this pull request as ready for review October 23, 2026 11:40
@simonhamp
simonhamp merged commit 18c7b32 into main Oct 23, 2026
2 of 3 checks passed
@simonhamp
simonhamp deleted the docs/version-and-build-number branch October 23, 2026 11:40
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