Skip to content

Conversation

@sahilsharda
Copy link

Title: feat(core): export native bridge utility functions

Description

This PR exports the isRelativeOrProxyUrl and createProxyUrl utility functions from the native bridge, making them accessible via the Capacitor global object. This addresses existing TODOs in the codebase and allows plugins to better handle Capacitor-proxied URLs.

Changes

  • Updated CapacitorInstance interface in core/src/definitions-internal.ts
  • Exported functions in core/native-bridge.ts
  • Removed TODO comments

Verification

  • Ran npm run build:nativebridge to ensure successful build
  • Ran npm test to ensure no regressions (All tests passed)

Closes #8255

- Create android/README.md with installation, usage, and configuration details
- Create ios/README.md with installation, usage, and configuration details
- Include version compatibility tables
- Add links to official documentation and resources

This ensures all core packages have proper documentation on npm and GitHub.
- Export isRelativeOrProxyUrl and createProxyUrl on Capacitor global object
- Update CapacitorInstance interface to include new methods
- Remove TODO comments in native-bridge.ts

This allows plugins and other parts of the system to use these utility functions for URL handling.
riderx pushed a commit to Cap-go/capacitor-plus that referenced this pull request Nov 28, 2025
riderx pushed a commit to Cap-go/capacitor-plus that referenced this pull request Nov 28, 2025
riderx pushed a commit to Cap-go/capacitor-plus that referenced this pull request Nov 28, 2025
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.

Export Native Bridge Utility Functions

1 participant