cordova-plugin-host-bridge
Version:
Host bridge between RN shell and Cordova shell
41 lines (36 loc) • 1.51 kB
text/xml
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-host-bridge"
version="1.0.1">
<name>cordova-plugin-host-bridge</name>
<description>Event bridge between Cordova WebView and native host (e.g., a React Native shell)</description>
<license>MIT</license>
<keywords>bridge,react-native,host,events</keywords>
<js-module src="www/hostBridge.js" name="HostBridge">
<clobbers target="cordova.plugins.hostBridge" />
</js-module>
<!-- iOS -->
<platform name="ios">
<!-- Ensure WKWebView is available (Cordova iOS already links UIKit/WebKit) -->
<framework src="UIKit.framework" />
<framework src="WebKit.framework" />
<!-- Make plugin available as a Cordova feature -->
<config-file target="config.xml" parent="/*">
<feature name="HostBridge">
<param name="ios-package" value="CDVHostBridge" />
</feature>
</config-file>
<header-file src="src/ios/CDVHostBridge.h" />
<source-file src="src/ios/CDVHostBridge.m" />
</platform>
<!-- Android (stub; safe to keep even if you don’t use it yet) -->
<platform name="android">
<config-file target="config.xml" parent="/*">
<feature name="HostBridge">
<param name="android-package" value="com.example.hostbridge.HostBridge"/>
</feature>
</config-file>
<source-file src="src/android/HostBridge.java"
target-dir="src/com/example/hostbridge" />
</platform>
</plugin>