Skip to content

Commit 88a0859

Browse files
committed
Changelog
1 parent 089763e commit 88a0859

File tree

1 file changed

+87
-24
lines changed

1 file changed

+87
-24
lines changed

resources/views/docs/mobile/2/getting-started/changelog.md

Lines changed: 87 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,81 @@ title: Changelog
33
order: 2
44
---
55

6-
## JavaScript/TypeScript Library
6+
## v2.1.0
7+
8+
### Cleaner Console Output
9+
The `native:run` command now provides cleaner, more readable output, making it easier to follow what's happening during development.
10+
11+
### Improved Windows Support
12+
Better compatibility and smoother development experience for Windows users.
13+
14+
### Blade Directives
15+
New Blade directives for conditional rendering based on platform:
16+
17+
```blade
18+
@mobile
19+
{{-- Only rendered in mobile apps --}}
20+
@endmobile
21+
22+
@web
23+
{{-- Only rendered in web browsers --}}
24+
@endweb
25+
26+
@ios
27+
{{-- Only rendered on iOS --}}
28+
@endios
29+
30+
@android
31+
{{-- Only rendered on Android --}}
32+
@endandroid
33+
```
34+
35+
### Improved File Watcher
36+
The file watcher has been completely overhauled, switching from fswatch to [Watchman](https://facebook.github.io/watchman/) for better performance and reliability. The watcher is now combined with Vite HMR for a unified development experience.
37+
38+
### Common URL Schemes
39+
NativePHP now automatically handles common URL schemes, opening them in the appropriate native app:
40+
- `tel:` - Phone calls
41+
- `mailto:` - Email
42+
- `sms:` - Text messages
43+
- `geo:` - Maps/location
44+
- `facetime:` - FaceTime video calls
45+
- `facetime-audio:` - FaceTime audio calls
46+
47+
### Android Deep Links
48+
Support for custom deep links and app links on Android, allowing other apps and websites to link directly into your app.
49+
50+
### Other Changes
51+
- `System::appSettings()` to open your app's settings screen in the OS Settings app
52+
- `Edge::clear()` to remove all EDGE components
53+
- Added `Native.shareUrl()` to the JavaScript library
54+
- `native:install`: Added `--fresh` and `-F` as aliases of `--force`
55+
- `native:install`: Increased timeout for slower networks
56+
57+
### Bug Fixes
58+
- Fixed Scanner permissions
59+
- Fixed Android edge-to-edge display
60+
- Fixed `Browser::auth` on iOS
61+
- Fixed text alignment in native top-bar component on iOS
62+
- Fixed plist issues on iOS
63+
- Fixed `NATIVEPHP_START_URL` configuration
64+
- Fixed camera cancelled events on Android
65+
- Fixed bottom-nav values not updating dynamically
66+
67+
## v2.0.0
68+
69+
### JavaScript/TypeScript Library
770
A brand-new JavaScript bridge library with full TypeScript declarations for Vue, React, Inertia, and vanilla JS apps.
871
This enables calling native device features directly from your frontend code. Read more about it
9-
[here](../the-basics/native-functions#run-from-anywhere).
72+
[here](../the-basics/native-functions#run-from-anywhere).
1073

11-
## EDGE - Element Definition and Generation Engine
74+
### EDGE - Element Definition and Generation Engine
1275
A new native UI system for rendering navigation components natively on device using Blade. Read more about it [here](../edge-components/introduction).
1376

14-
## Laravel Boost Support
77+
### Laravel Boost Support
1578
Full integration with Laravel Boost for AI-assisted development. Read more about it [here](../getting-started/development#laravel-boost).
1679

17-
## Hot Module Replacement (HMR) Overhauled
80+
### Hot Module Replacement (HMR) Overhauled
1881
Full Vite HMR for rapid development. Read more about it [here](../getting-started/development#hot-reloading).
1982

2083
Features:
@@ -23,7 +86,7 @@ Features:
2386
- PHP protocol adapter for axios on iOS (no more `patch-inertia` command!)
2487
- Works over the network even without a physical device plugged in!
2588

26-
## Fluent Pending API (PHP)
89+
### Fluent Pending API (PHP)
2790
All [Asynchronous Methods](../the-basics/events#understanding-async-vs-sync) now implement a fluent API for better IDE support and ease of use.
2891

2992
<x-snippet title="Fluent APIs">
@@ -62,7 +125,7 @@ onMounted(() => {
62125
</x-snippet.tab>
63126
</x-snippet>
64127

65-
## `#[OnNative]` Livewire Attribute
128+
### `#[OnNative]` Livewire Attribute
66129
Forget the silly string concatenation of yesterday; get into today's fashionable attribute usage with this drop-in
67130
replacement:
68131

@@ -75,19 +138,19 @@ use Native\Mobile\Attributes\OnNative; // [tl! add]
75138
public function handle()
76139
```
77140

78-
## Video Recording
141+
### Video Recording
79142
Learn more about the new Video Recorder support [here](../apis/camera#coderecordvideocode).
80143

81-
## QR/Barcode Scanner
144+
### QR/Barcode Scanner
82145
Learn more about the new QR/Barcode Scanner support [here](../apis/scanner).
83146

84-
## Microphone
147+
### Microphone
85148
Learn more about the new Microphone support [here](../apis/microphone).
86149

87-
## Network Detection
150+
### Network Detection
88151
Learn more about the new Network Detection support [here](../apis/network).
89152

90-
## Background Audio Recording
153+
### Background Audio Recording
91154
Just update your config and record audio even while the device is locked!
92155

93156
```php
@@ -97,7 +160,7 @@ Just update your config and record audio even while the device is locked!
97160
'microphone_background' => true,
98161
],
99162
```
100-
## Push Notifications API
163+
### Push Notifications API
101164
New fluent API for push notification enrollment:
102165

103166
<x-snippet title="Push Notifications">
@@ -145,16 +208,16 @@ onUnmounted(() => {
145208
- `enrollForPushNotifications()` → use `enroll()`
146209
- `getPushNotificationsToken()` → use `getToken()`
147210

148-
## Platform Improvements
211+
### Platform Improvements
149212

150-
### iOS
213+
#### iOS
151214
- **Platform detection** - `nativephp-ios` class on body
152215
- **Keyboard detection** - `keyboard-visible` class when keyboard shown
153216
- **iOS 26 Liquid Glass** support
154217
- **Improved device selector** on `native:run` showing last-used device
155218
- **Load Times** dramatically improved. Now 60-80% faster!
156219

157-
### Android
220+
#### Android
158221
- **Complete Android 16+ 16KB page size** compatibility
159222
- **Jetpack Compose UI** - Migrated from XML layouts
160223
- **Platform detection** - `nativephp-android` class on body
@@ -164,9 +227,9 @@ onUnmounted(() => {
164227
- **Page Load Times** dramatically decreased by ~40%!
165228
---
166229

167-
## Configuration
230+
### Configuration
168231

169-
### New Options
232+
#### New Options
170233
```php
171234
'start_url' => env('NATIVEPHP_START_URL', '/'),
172235

@@ -185,19 +248,19 @@ onUnmounted(() => {
185248
],
186249
```
187250

188-
### Custom Permission Reasons (iOS)
251+
#### Custom Permission Reasons (iOS)
189252
```php
190253
'camera' => 'We need camera access to scan membership cards.',
191254
'location' => 'Location is used to find nearby stores.',
192255
```
193256

194-
## New Events
257+
### New Events
195258

196259
- `Camera\VideoRecorded`, `Camera\VideoCancelled`, `Camera\PhotoCancelled`
197260
- `Microphone\MicrophoneRecorded`, `Microphone\MicrophoneCancelled`
198261
- `Scanner\CodeScanned`
199262

200-
## Custom Events
263+
### Custom Events
201264

202265
Many native calls now accept custom event classes!
203266

@@ -206,7 +269,7 @@ Dialog::alert('Confirm', 'Delete this?', ['Cancel', 'Delete'])
206269
->event(MyCustomEvent::class)
207270
```
208271

209-
## Better File System Support
272+
### Better File System Support
210273
NativePHP now symlinks your filesystems! Persisted storage stays in storage but is symlinked to the public directory for
211274
display in the web view! Plus a pre-configured `mobile_public` filesystem disk.
212275

@@ -220,13 +283,13 @@ $imageUrl = Storage::url($path);
220283
<img :src="$imageurl" />
221284
```
222285

223-
## Bug Fixes
286+
### Bug Fixes
224287

225288
- Fixed infinite recursion during bundling in some Laravel setups
226289
- Fixed iOS toolbar padding for different device sizes
227290
- Fixed Android debug mode forcing `APP_DEBUG=true`
228291
- Fixed orientation config key case sensitivity (`iPhone` vs `iphone`)
229292

230-
## Breaking Changes
293+
### Breaking Changes
231294

232295
- None

0 commit comments

Comments
 (0)