NativePHP Mobile 4.4.0#
NativePHP for Mobile 4.4.0 is out. This one’s about text that behaves like the browser, Android app links you can scope, plugins that can declare real Info.plist values, and a handful of iOS/Android fixes that were biting people in production.
Upgrade with:
composer update nativephp/mobilephp artisan native:installphp artisan native:run
native:install has to run after the composer update and before native:run so the native shell picks up the new package.
Text that keeps its line breaks#
Native <text> now has a whitespace policy so slot content can keep line breaks, and whitespace behavior is symmetric with the browser — with whitespace-* classes when you need to opt out (#424, #425).
Android app links you control#
Apps can scope which paths open on Android app links, so you don’t have to take every deep link the OS throws at you (#403).
Native events also reach webview screens on Android now (#379).
Plugins and the iOS shell#
Info.plist entries merge structurally so plugins can declare any value type, not just strings (#427).
The iOS launch image set is emitted whole (#320), and the iOS build number is resolved before the Laravel app is bundled (#434).
Fixes#
- Empty POST bodies and 404s on redirect in the iOS scheme handler (#326)
- Android artisan attaches to the live TSRM instead of re-initialising (#329)
- Extraction lock held across background artisan commands on Android (#330)
- Review nits from #391 and #392 (#398)
Full changelog#
- Emit the iOS launch image set whole (#320)
- Honour a whitespace policy on
<text>so slot content can keep its line breaks (#424) - Let apps scope which paths open on Android app links (#403)
- Make text whitespace symmetric with the browser, with
whitespace-*classes to opt out (#425) - Fix empty POST bodies and 404s on redirect in the iOS scheme handler (#326)
- Attach artisan to the live TSRM instead of re-initialising (#329)
- Hold the extraction lock across the background artisan commands (#330)
- Merge Info.plist entries structurally so plugins can declare any value type (#427)
- Deliver native events to webview screens on Android (#379)
- Apply the review nits from #391 and #392 (#398)
- Resolve the iOS build number before the Laravel app is bundled (#434)
Thanks to David Unloc, Willem Leuverink, and Shane Rosenthal.