-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Issue Title: Export Native Bridge Utility Functions
Description
The native-bridge.ts file in @capacitor/core contains useful utility functions isRelativeOrProxyUrl and createProxyUrl that are currently internal. There are TODO comments in the code suggesting these should be exported.
Exporting these functions would allow plugins and other parts of the system to correctly handle Capacitor-proxied URLs, improving consistency and reducing code duplication.
Proposed Solution
- Update
CapacitorInstanceinterface indefinitions-internal.tsto include these methods. - Attach
isRelativeOrProxyUrlandcreateProxyUrlto theCapacitorglobal object innative-bridge.ts. - Remove the TODO comments.
Related Code
core/native-bridge.tscore/src/definitions-internal.ts