refactor(mobile-ui)!: rename package to nativephp/mobile-ui#8
Merged
Conversation
Package renamed nativephp/native-ui -> nativephp/mobile-ui and the PHP
namespace Nativephp\NativeUi -> Native\Mobile\UI, matching the repo's
new home and bringing the plugin under the framework's Native\Mobile
namespace root (alongside Native\Mobile\Edge from nativephp/mobile).
Touches every class in src/, the PSR-4 mapping + provider FQCN in
composer.json, element/blade FQCNs and the plugin name in nativephp.json,
tests, docs, and namespace mentions in native-side comments. Platform
identifiers are intentionally unchanged: the Kotlin package
(com.nativephp.plugins.native_ui), Swift NativeUI* renderer names, the
manifest bridge namespace ("NativeUI"), and the native-ui config
key/publish tags.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The framework's PluginDiscovery and PluginValidateCommand both require type "nativephp-plugin" exactly; the old "nativephp-ui-plugin" value this test asserted would never be discovered. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Renames the package and PHP namespace to match the repo's new home:
nativephp/native-ui→nativephp/mobile-uiNativephp\NativeUi→Native\Mobile\UI— brings the plugin under the framework'sNative\Mobilenamespace root, alongsideNative\Mobile\Edgefromnativephp/mobile90 files changed: every class in
src/andtests/, the PSR-4 mapping + provider FQCN incomposer.json, element/blade FQCNs and the plugin name innativephp.json, docs, and namespace mentions in Swift/Kotlin comments (comment-only on the native side — no code changes there).Also updates composer.json metadata: description,
type: nativephp-plugin, authors, funding, and pinsnativephp/mobileto^4.0.Intentionally unchanged
These are separate identities with their own blast radius, left for follow-ups if wanted:
"NativeUI"(drives wire naming likeNativeUI.Theme.Set)config/native-ui.php, thenative-uiconfig key,native-ui-config/native-ui-layoutspublish tagsNativeUIServiceProviderclass name and artisan command signaturescom.nativephp.plugins.native_uiand SwiftNativeUI*renderer prefixesVerification
composer validatecleansrc/classes resolve under the new PSR-4 prefix, zero mismatch warningsphp -lpasses on every tracked PHP fileNativephp,NativeUi, ornativephp/native-uianywhere in the treeNote
Stacked on #7 (
feat/webview-element) — merge that first; GitHub will retarget this tomainwhen the base branch is deleted.🤖 Generated with Claude Code