forked from StarfishEnterprise/cordova-plugin-browsertab
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
55 lines (49 loc) · 2.45 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?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"
version="0.2.1">
<name>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>
<preference name="CUSTOM_TAB_COLOR_RGB" default="#ffffff" />
<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" />
<preference name="ANDROID_SUPPORT_TABS_VERSION" default="26.+"/>
<framework src="com.android.support:customtabs:$ANDROID_SUPPORT_TABS_VERSION"/>
<framework src="src/android/BrowserTab.gradle" custom="true" type="gradleReference"/>
<source-file src="src/android/res/browsertab.xml" target-dir="res/values" />
<!-- this config-file file is for older (<= 6.4.0) cordova-android version (get's ignored in new newer versions) -->
<config-file target="res/values/browsertab.xml" parent="/*">
<string name="CUSTOM_TAB_COLOR_RGB">$CUSTOM_TAB_COLOR_RGB</string>
</config-file>
<!-- this config-file file is for newer (> 6.4.0) cordova-android version (get's ignored in new older versions) -->
<config-file target="app/src/main/res/values/browsertab.xml" parent="/resources">
<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="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>