summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-customurlscheme/plugin.xml
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-customurlscheme/plugin.xml')
-rwxr-xr-xStoneIsland/plugins/cordova-plugin-customurlscheme/plugin.xml52
1 files changed, 47 insertions, 5 deletions
diff --git a/StoneIsland/plugins/cordova-plugin-customurlscheme/plugin.xml b/StoneIsland/plugins/cordova-plugin-customurlscheme/plugin.xml
index 1e43e724..0fde67b0 100755
--- a/StoneIsland/plugins/cordova-plugin-customurlscheme/plugin.xml
+++ b/StoneIsland/plugins/cordova-plugin-customurlscheme/plugin.xml
@@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-customurlscheme"
- version="4.0.0">
+ version="4.2.0">
<name>Custom URL scheme</name>
@@ -47,6 +47,10 @@
<!-- android -->
<platform name="android">
+ <preference name="ANDROID_SCHEME" default=" " />
+ <preference name="ANDROID_HOST" default=" " />
+ <preference name="ANDROID_PATHPREFIX" default="/" />
+
<js-module src="www/android/LaunchMyApp.js" name="LaunchMyApp">
<clobbers target="window.plugins.launchmyapp" />
</js-module>
@@ -59,16 +63,24 @@
<source-file src="src/android/nl/xservices/plugins/LaunchMyApp.java" target-dir="src/nl/xservices/plugins"/>
- <config-file target="AndroidManifest.xml" parent="/*/application/activity">
+ <config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<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:scheme="$URL_SCHEME"/>
+ </intent-filter>
+ <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:scheme="$ANDROID_SCHEME"
+ android:host="$ANDROID_HOST"
+ android:pathPrefix="$ANDROID_PATHPREFIX" />
</intent-filter>
</config-file>
</platform>
-
+
<!-- windows8 -->
<platform name="windows8">
<config-file target="package.appxmanifest" parent="/Package/Applications/Application/Extensions">
@@ -76,14 +88,20 @@
<Protocol Name="$URL_SCHEME" />
</Extension>
</config-file>
-
+
<js-module src="www/windows/LaunchMyApp.js" name="LaunchMyApp">
<clobbers target="window.plugins.launchmyapp" />
</js-module>
</platform>
-
+
<!-- windows -->
<platform name="windows">
+ <hook type="before_prepare" src="src/windows/hooks/prepare-manifest.js" />
+ <config-file target="package.windows10.appxmanifest" parent="/Package/Applications/Application/Extensions">
+ <uap:Extension Category="windows.protocol" StartPage="www/index.html">
+ <uap:Protocol Name="$URL_SCHEME" />
+ </uap:Extension>
+ </config-file>
<config-file target="package.windows.appxmanifest" parent="/Package/Applications/Application/Extensions">
<Extension Category="windows.protocol" StartPage="www/index.html">
<Protocol Name="$URL_SCHEME" />
@@ -104,4 +122,28 @@
</js-module>
</platform>
+ <!-- wp8 -->
+ <platform name="wp8">
+ <config-file target="config.xml" parent="/*">
+ <feature name="CustomUriMapperCommand">
+ <param name="wp-package" value="CustomUriMapperCommand"/>
+ <param name="onload" value="true" />
+ </feature>
+ </config-file>
+
+ <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App" after="Tokens">
+ <Extensions>
+ <Protocol Name="$URL_SCHEME" NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
+ </Extensions>
+ </config-file>
+
+ <source-file src="src/wp8/CompositeUriMapper.cs" />
+ <source-file src="src/wp8/ICustomUriMapper.cs" />
+ <source-file src="src/wp8/CustomUriMapperCommand.cs" />
+ <js-module src="www/wp8/LaunchMyApp.js" name="LaunchMyApp">
+ <clobbers target="window.plugins.launchmyapp" />
+ </js-module>
+ <hook type="after_plugin_install" src="src/wp8/hooks/add-uri-mapper.js" />
+ </platform>
+
</plugin>