-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathplugin.xml
59 lines (48 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
56
57
58
59
<?xml version='1.0' encoding='utf-8'?>
<plugin
id="com.outsystems.documentpreview"
version="1.2.1"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>DocumentPreview</name>
<js-module name="DocumentPreview" src="www/DocumentPreview.js">
<clobbers target="cordova.plugins.DocumentPreview" />
</js-module>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="DocumentPreview">
<param name="ios-package" value="DocumentPreview" />
</feature>
</config-file>
<source-file src="src/ios/DocumentPreview.m" />
<header-file src="src/ios/DocumentViewerViewController.h" />
<source-file src="src/ios/DocumentViewerViewController.m" />
<header-file src="src/ios/DocumentWebviewViewController.h" />
<source-file src="src/ios/DocumentWebviewViewController.m" />
<framework src="MediaPlayer.framework" />
</platform>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="DocumentPreview">
<param name="android-package" value="com.outsystems.documentpreview.DocumentPreview" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<provider
android:name="com.outsystems.documentpreview.FileProvider"
android:authorities="${applicationId}.opener.provider"
android:exported="false"
android:grantUriPermissions="true" >
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/document_preview_provider_paths"/>
</provider>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml"></config-file>
<framework src="com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION" />
<preference name="ANDROID_SUPPORT_V4_VERSION" default="26.1.0"/>
<source-file src="src/android/DocumentPreview.java" target-dir="src/com/outsystems/documentpreview" />
<source-file src="src/android/FileProvider.java" target-dir="src/com/outsystems/documentpreview" />
<source-file src="src/android/xml/document_preview_provider_paths.xml" target-dir="res/xml" />
</platform>
</plugin>