forked from ti8m/DocumentHandler
-
Notifications
You must be signed in to change notification settings - Fork 19
/
plugin.xml
75 lines (53 loc) · 2.54 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="polarcape-cordova-plugin-document-handler"
version="1.1.1">
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<name>Document Handler</name>
<description>A phonegap plugin to handle documents (f.e. PDFs) given by URL. </description>
<keywords>cordova,Documents,PDF</keywords>
<repo>https://github.com/ti8mag/DocumentHandler.git</repo>
<license>Apache 2.0</license>
<js-module src="www/DocumentHandler.js" name="DocumentHandler">
<clobbers target="DocumentHandler" />
</js-module>
<dependency id="cordova-plugin-file" version=">=4.0.0" />
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="DocumentHandler" >
<param name="android-package" value="ch.ti8m.phonegap.plugins.DocumentHandler"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<provider
android:name="ch.ti8m.phonegap.plugins.FileProvider"
android:authorities="$PACKAGE_NAME.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/document_handler_provider_paths"/>
</provider>
</config-file>
<framework src="com.android.support:support-v4:24.1.1+" />
<source-file src="src/android/res/xml/document_handler_provider_paths.xml" target-dir="res/xml" />
<source-file src="src/android/FileProvider.java" target-dir="src/ch/ti8m/phonegap/plugins" />
<source-file src="src/android/DocumentHandler.java" target-dir="src/ch/ti8m/phonegap/plugins" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="DocumentHandler">
<param name="ios-package" value="DocumentHandler"/>
</feature>
</config-file>
<framework src="AssetsLibrary.framework" />
<framework src="QuickLook.framework" />
<source-file src="src/ios/DocumentHandler.m" />
<header-file src="src/ios/DocumentHandler.h" />
</platform>
</plugin>