@kwu-work/cordova-plugin-browsertab
Version:
In-app browser tabs for Android and iOS
43 lines (38 loc) • 1.66 kB
text/xml
<plugin
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="@kwu-work/cordova-plugin-browsertab"
version="0.3.0">
<name>@kwu-work/cordova-plugin-browsertab</name>
<description>
This plugin provides an interface to in-app browser tabs that exist on
some mobile platforms, specifically Custom Tabs on Android and
SFSafariViewController on iOS.
</description>
<js-module name="BrowserTab" src="www/browsertab.js">
<clobbers target="cordova.plugins.browsertab"/>
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="BrowserTab">
<param name="android-package"
value="com.google.cordova.plugin.browsertab.BrowserTab"/>
</feature>
</config-file>
<source-file src="src/android/BrowserTab.java"
target-dir="src/com/google/cordova/plugin"/>
<framework src="com.android.support:customtabs:26.+"/>
<framework src="src/android/BrowserTab.gradle" custom="true" type="gradleReference"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BrowserTab">
<param name="ios-package" value="CBTBrowserTab"/>
</feature>
</config-file>
<header-file src="src/ios/CBTBrowserTab.h"/>
<source-file src="src/ios/CBTBrowserTab.m"/>
<framework src="SafariServices.framework" weak="true"/>
</platform>
</plugin>