-
Notifications
You must be signed in to change notification settings - Fork 114
/
plugin.xml
127 lines (105 loc) · 5.19 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<!--
The MIT License (MIT)
Copyright (c) 2013-2015 Jean-Christophe Hoelt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cc.fovea.cordova.openwith"
version="2.1.0">
<name>OpenWith</name>
<description>Cordova "Open With" plugin for iOS and Android</description>
<engines>
<engine name="cordova" version=">=6.0.0" />
</engines>
<repo>https://github.com/j3k0/cordova-plugin-openwith.git</repo>
<issue>https://github.com/j3k0/cordova-plugin-openwith/issues</issue>
<license>MIT</license>
<keywords>cordova,phonegap,openwith,ios,android</keywords>
<!-- ios -->
<platform name="ios">
<preference name="IOS_URL_SCHEME" />
<preference name="IOS_UNIFORM_TYPE_IDENTIFIER" />
<js-module src="www/openwith.js" name="openwith">
<clobbers target="cordova.openwith" />
</js-module>
<!-- Cordova 2.2 -->
<plugins-plist key="OpenWith" string="OpenWith" />
<!-- Cordova 2.5+ -->
<config-file target="config.xml" parent="/*">
<feature name="OpenWithPlugin">
<param name="ios-package" value="OpenWithPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<source-file src="src/ios/OpenWithPlugin.m" />
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLName</key>
<string>cc.fovea.openwith.$IOS_URL_SCHEME.shareextension</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$IOS_URL_SCHEME</string>
</array>
</dict>
</array>
</config-file>
<hook type="before_plugin_install" src="hooks/npmInstall.js" />
<hook type="after_plugin_install" src="hooks/iosCopyShareExtension.js" />
<hook type="before_prepare" src="hooks/iosCopyShareExtension.js" />
<hook type="after_prepare" src="hooks/iosAddTarget.js" />
<hook type="before_plugin_uninstall" src="hooks/iosRemoveTarget.js" />
<framework src="MobileCoreServices.framework" />
</platform>
<!-- android -->
<platform name="android">
<preference name="ANDROID_MIME_TYPE" />
<preference name="ANDROID_EXTRA_ACTIONS" default=" " />
<js-module src="www/openwith.js" name="openwith">
<clobbers target="cordova.openwith" />
</js-module>
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<intent-filter>
<!-- category android:name="android.intent.category.BROWSABLE" / -->
<!-- See https://developer.android.com/guide/topics/manifest/data-element.html -->
<data android:mimeType="$ANDROID_MIME_TYPE" />
<action android:name="android.intent.action.SEND" />
$ANDROID_EXTRA_ACTIONS
<!-- action android:name="android.intent.action.VIEW" / -->
<!-- action android:name="android.intent.action.SEND_MULTIPLE" / -->
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</config-file>
<!-- Cordova >= 3.0.0 -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="OpenWithPlugin">
<param name="android-package" value="cc.fovea.openwith.OpenWithPlugin"/>
</feature>
<preference name="AndroidLaunchMode" value="singleTask"/>
</config-file>
<!-- cordova plugin src files -->
<source-file src="src/android/cc/fovea/openwith/OpenWithPlugin.java" target-dir="src/cc/fovea/openwith" />
<source-file src="src/android/cc/fovea/openwith/PluginResultSender.java" target-dir="src/cc/fovea/openwith" />
<source-file src="src/android/cc/fovea/openwith/Serializer.java" target-dir="src/cc/fovea/openwith" />
<source-file src="src/android/cc/fovea/openwith/ByteStreams.java" target-dir="src/cc/fovea/openwith" />
</platform>
<!--
vim: ts=4:sw=4:et
-->
</plugin>