Skip to content

native:tail select device target and log file - #19

Closed
Plytas wants to merge 1 commit into
NativePHP:mainfrom
Plytas:tail
Closed

Plytas wants to merge 1 commit into
NativePHP:mainfrom
Plytas:tail

Conversation

@Plytas

@Plytas Plytas commented Feb 16, 2026

Copy link
Copy Markdown

This adds ability to select target device and log file for native:tail command.

Currently tail command allows only 1 device to be connected and reads from a single log file. In some cases it's useful to be able to read other log files such as browser.log if using laravel/boost or daily logs if log channel is set to daily.

I extracted target device selection from native:run command into a PromptsAndroidTarget trait to reuse it.

@simonhamp simonhamp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. I'd really like to see this beefed up with iOS support first before we start adding more complexity here

@rmiller335 rmiller335 mentioned this pull request Apr 9, 2026
@simonhamp

Copy link
Copy Markdown
Member

Closing due to inactivity. Please feel free to reopen

@simonhamp simonhamp closed this Jul 31, 2026
gwleuverink added a commit that referenced this pull request Nov 17, 2026
Covers mobile PRs #452, #652, #653, #654, #655, #656, #658, #659, #661, #662, #663, #664, #666, #667, #668, #670, #671, #672, #673, #675, #677 and #678, and the commit on main without a PR: e9e2049 (Bifrost build service in the README). Main 1ad5cf5..5bcd753, 23 commits.

Ported to core on branch sync/mobile-main-2026-11-16 of NativePHP/core, which this merge needs: #658 "Sign the durable native-callback cache copy with the app key" (src/Support/NativeCallbacks.php), #667 (min-scale on Text), #661 (dragEnd handlers through invokeUiInteraction()), #670 (Element::closesOnNavigation() and its registry lookup, read by core's farewell frame), #675 (#[Memo] child components, captureRoots(), the compiled view checks once per frame, and the view creator in CoreServiceProvider), #452 (Transition::SlideToBottom and the transition argument on navigate(), back() and replace()) and #677 (property handlers and InvalidHandlerException). Memo and InvalidHandlerException move to core. Their old names resolve to core's through the alias shim.

Kept on this branch, as main has them: #670's BottomSheet::closesOnNavigation(), #452's transition on TopBarAction, #678's NativeLayout default, and the docblock #670 gave the farewell frame, which now sits on typesClosedInFarewellFrame(). #653 "Authenticate device events posted to /_native/api/events" merged with DispatchEventFromAppController holding both its check and the core marker check from 23300cc. Its new src/Support/NativeEventSignature.php stays in mobile, next to that controller.

Removed again in the merge: CallbackRegistry, Element, ElementRegistry, Text, NativeElementCollector, NativeTagPrecompiler, Transition and NativeCallbacks (main changed them, core has them), Memo and InvalidHandlerException (main added them, core has them), and both cacert.pem copies (main changed them, core ships the bundle). #659 is not ported, as core #21 brings the same file. Main's one line in NativeServiceProvider's view creator is in core's CoreServiceProvider now.

AGENTS.md keeps this branch's shared copy. The AGENTS.md that #658 added to main is not taken in. Where its text goes waits for the owner.

Adapted for the extraction: MemoComponentsTest reads nativeMemoRoots through core's NativeComponent, which declares it private.

Needs NativePHP/core branch sync/mobile-main-2026-11-16 (on #20, which is on #18), and #19 as before.

Tests, all on PHP 8.4.27, with core at a local merge of sync/mobile-main-2026-11-16 and #19 (323952d): mobile on this merge, 2,571 passed, 4 risky, 4 skipped (2,485 before the merge). PHPStan: the same 3 errors in RunsAndroid as before. Mobile main (5bcd753), 2,507 passed, 4 risky, 4 skipped. Desktop test:php, main (a9986fd) 2,253 passed and refactor/desktop-layout (87a60ce) 2,552 passed, the same as against the core of 2026-11-04.
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.

2 participants