Skip to content

Commit c3989b5

Browse files
simonhampclaude
andcommitted
docs(mobile/v4): reorganize sections and make docs version-neutral
- Move Architecture to just below Getting Started (before The Basics) - Move Device, Dialog, File and System from SuperNative into The Basics; place Dialog below Native UI - Remove version-specific phrasing ("in v4", "as of v4", "v3.1 introduces") so the docs port cleanly to future versions - Convert hard-coded /docs/mobile/3 and /docs/mobile/1 links to relative, version-portable paths Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 09a5b22 commit c3989b5

21 files changed

Lines changed: 45 additions & 45 deletions

File tree

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
title: Architecture
3-
order: 80
3+
order: 10
44
---

‎resources/views/docs/mobile/4/architecture/about-the-new-architecture.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: About the New Architecture
33
order: 10
44
---
55

6-
Since v1, NativePHP for Mobile has run your Laravel app on the device itself — no server, no network round-trip. In
7-
v3 and earlier, your app's UI rendered as HTML inside a web view. That model is productive and familiar, and it's
6+
NativePHP for Mobile runs your Laravel app on the device itself — no server, no network round-trip. Traditionally,
7+
your app's UI rendered as HTML inside a web view. That model is productive and familiar, and it's
88
[still fully supported](../super-native/introduction#is-the-web-view-still-an-option). But it puts a browser between
99
your app and the platform, and some things can only feel truly native when they *are* native.
1010

@@ -68,7 +68,7 @@ app faster. If your app is happy in the web view, it will keep working exactly a
6868

6969
## Should you use it today?
7070

71-
SuperNative is **the default** in v4: new apps render native screens from the very first route. It's in beta, so
71+
SuperNative is **the default**: new apps render native screens from the very first route. It's in beta, so
7272
expect rapid iteration — and if you'd rather wait, [opting out](../super-native/introduction#is-the-web-view-still-an-option)
7373
is one route and one component.
7474

‎resources/views/docs/mobile/4/architecture/glossary.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Definitions for the terms used throughout the Architecture section.
77

88
## SuperNative
99

10-
The engine behind native rendering in NativePHP for Mobile v4. It spans everything described in this section:
10+
The engine behind native rendering in NativePHP for Mobile. It spans everything described in this section:
1111
components, the render pipeline, the shared-memory boundary and the platform renderers.
1212
[About the New Architecture](about-the-new-architecture) is the best starting point.
1313

‎resources/views/docs/mobile/4/architecture/overview.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ order: 1
44
---
55

66
Welcome! This section is a look under the hood of [SuperNative](../super-native/introduction), the engine that powers
7-
native rendering in NativePHP for Mobile v4. It explains how your Blade templates become real SwiftUI and Jetpack
7+
native rendering in NativePHP for Mobile. It explains how your Blade templates become real SwiftUI and Jetpack
88
Compose views, how state flows between PHP and the screen, and why the whole thing is fast.
99

1010
<aside>

‎resources/views/docs/mobile/4/concepts/databases.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ When writing migrations, you need to consider any special recommendations for wo
2424
For example, prior to Laravel 11, SQLite foreign key constraints are turned off by default. If your application relies
2525
upon foreign key constraints, [you need to enable SQLite support for them](https://laravel.com/docs/database#configuration) before running your migrations.
2626

27-
**It's important to test your migrations on [prod builds](/docs/mobile/1/getting-started/development#releasing)
27+
**It's important to test your migrations on [prod builds](../getting-started/deployment#releasing)
2828
before releasing updates!** You don't want to accidentally delete your user's data when they update your app.
2929

3030
## Seeding data with migrations
@@ -117,7 +117,7 @@ If anything, you should provide a client key that **only** allows client apps to
117117
authenticated your user, you can pass an access token back to your mobile app and use this for communicating with your
118118
API.
119119

120-
Store these tokens on your users' devices securely with the [`SecureStorage`](/docs/mobile/1/apis/secure-storage) API.
120+
Store these tokens on your users' devices securely with the [`SecureStorage`](../plugins/core/secure-storage) API.
121121

122122
It's a good practice to ensure these tokens have high entropy so that they are very hard to guess and a short lifespan.
123123
Generating tokens is cheap; leaking personal customer data can get _very_ expensive!

‎resources/views/docs/mobile/4/concepts/queues.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ NativePHP manages the worker lifecycle natively on both platforms.
8383

8484
## Things to Note
8585

86-
- The queue worker requires [ZTS (Thread-Safe) PHP](/docs/mobile/3/getting-started/changelog), which is included by default in v3.1+.
86+
- The queue worker requires ZTS (Thread-Safe) PHP, which NativePHP includes by default.
8787
- Only the `database` queue connection is supported. This uses the same SQLite database as your app.
8888
- Jobs are persisted to the database, so they survive app restarts.
8989
- If a job fails, Laravel's standard retry and failure handling applies.

‎resources/views/docs/mobile/4/edge-components/web-view.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Older Android versions ship with older WebView engines that may not support mode
188188
For example, Tailwind CSS v4 uses `@theme` and other newer CSS features that are not supported on older WebView
189189
versions. If you are targeting a lower `min_sdk` to support older devices, consider using Tailwind CSS v3 or another
190190
CSS framework that generates compatible output. You can configure your minimum SDK version in your
191-
[Android SDK Versions](/docs/mobile/3/getting-started/configuration#android-sdk-versions) settings.
191+
[Android SDK Versions](../getting-started/configuration#android-sdk-versions) settings.
192192

193193
Always test your app on emulators running your minimum supported Android version to catch these issues early. You can
194194
create emulators for older API levels in Android Studio's Virtual Device Manager.

‎resources/views/docs/mobile/4/getting-started/commands.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ php artisan native:watch {platform?} {target?}
6565

6666
<aside>
6767

68-
As of **v4**, the Vite dev server is **opt-in** — pass `--vite` to `native:run`/`native:watch` to start it. It
68+
The Vite dev server is **opt-in** — pass `--vite` to `native:run`/`native:watch` to start it. It
6969
was previously started automatically; the old `--no-vite` flag still exists but is now redundant. See the
7070
[Upgrade Guide](upgrade-guide).
7171

‎resources/views/docs/mobile/4/getting-started/configuration.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ latest code without needing to bump a version number by hand.
4747

4848
You only need to change this when you're cutting a release build for distribution. Rather than editing your `.env`
4949
manually, use the
50-
[`native:release` command](/docs/mobile/3/getting-started/commands#nativerelease), which bumps the version (and build
50+
[`native:release` command](commands#nativerelease), which bumps the version (and build
5151
number) for you.
5252

5353
<aside>
@@ -68,7 +68,7 @@ you see your latest changes.
6868

6969
## Persistent Runtime
7070

71-
v3.1 introduces a persistent PHP runtime that boots Laravel once and reuses the kernel across all subsequent requests.
71+
NativePHP uses a persistent PHP runtime that boots Laravel once and reuses the kernel across all subsequent requests.
7272
This dramatically improves performance — from ~200-300ms per request down to ~5-30ms.
7373

7474
The `runtime` section controls this behavior:
@@ -131,7 +131,7 @@ to function and bloat your downloads.
131131

132132
## Orientation
133133

134-
NativePHP (as of v1.10.3) allows users to custom specific orientations per device through the config file. The config
134+
NativePHP allows users to custom specific orientations per device through the config file. The config
135135
allows for granularity for iPad, iPhone and Android devices. Options for each device can be seen below.
136136

137137
NOTE: if you want to disable iPad support completely simply apply `false` for each option.

0 commit comments

Comments
 (0)