-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplugin.xml
52 lines (39 loc) · 2.17 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="sb-cordova-plugin-customtabs"
version="1.0.0">
<name>Cordova plugin for launching url in custom tabs.</name>
<description></description>
<license>MIT</license>
<keywords></keywords>
<js-module src="www/plugin.js" name="customtabs">
<clobbers target="customtabs"/>
</js-module>
<preference name="URL_SCHEME" />
<preference name="URL_HOST" />
<framework src="build-extras.gradle" custom="true" type="gradleReference"/>
<!-- android -->
<platform name="android">
<framework src="androidx.browser:browser:1.0.0" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="customtabs">
<param name="android-package" value="org.sunbird.customtabs.CustomTabsPlugin"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<source-file src="src/android/org/sunbird/customtabs/CustomTabsPlugin.java" target-dir="src/org/sunbird/customtabs"/>
<source-file src="src/android/org/sunbird/customtabs/CallbackActivity.java" target-dir="src/org/sunbird/customtabs"/>
<source-file src="src/android/org/sunbird/customtabs/CustomTabsHelper.java" target-dir="src/org/sunbird/customtabs"/>
<source-file src="src/android/org/sunbird/customtabs/CordovaContext.java" target-dir="src/org/sunbird/customtabs"/>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="org.sunbird.customtabs.CallbackActivity" android:label="@string/app_name" android:exported="true" android:theme="@android:style/Theme.NoDisplay">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="$URL_HOST" android:scheme="$URL_SCHEME" />
</intent-filter>
</activity>
</config-file>
</platform>
</plugin>