UNPKG

cordova-plugin-browsertab-fix

Version:

In-app browser tabs for Android and iOS

52 lines (44 loc) 2.14 kB
<?xml version='1.0' encoding='utf-8'?> <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-browsertab-fix" version="0.2.7"> <name>cordova-plugin-browsertab-fix</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> <dependency id="cordova-plugin-compat" version="^1.0.0" /> <js-module name="BrowserTabFix" src="www/browsertabFix.js"> <clobbers target="cordova.plugins.browsertabFix" /> </js-module> <preference name="CUSTOM_TAB_COLOR_RGB" default="#ffffff" /> <platform name="android"> <config-file parent="/*" target="res/xml/config.xml"> <feature name="BrowserTabFix"> <param name="android-package" value="com.google.cordova.plugin.browsertabFix.BrowserTabFix" /> </feature> </config-file> <source-file src="src/android/BrowserTabFix.java" target-dir="src/com/google/cordova/plugin" /> <framework src="com.android.support:customtabs:23.3.0"/> <framework src="src/android/BrowserTabFix.gradle" custom="true" type="gradleReference"/> <source-file src="src/android/res/browsertabFix.xml" target-dir="res/values" /> <config-file target="res/values/browsertabFix.xml" parent="/*"> <string name="CUSTOM_TAB_COLOR_RGB">$CUSTOM_TAB_COLOR_RGB</string> </config-file> </platform> <platform name="ios"> <config-file target="config.xml" parent="/*"> <feature name="BrowserTabFix"> <param name="ios-package" value="CBTBrowserTabFix" /> </feature> </config-file> <header-file src="src/ios/CBTBrowserTabFix.h" /> <source-file src="src/ios/CBTBrowserTabFix.m" /> <framework src="SafariServices.framework" weak="true"/> </platform> </plugin>