-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
53 lines (50 loc) · 3.01 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin id="com.outsystems.plugins.fileviewer" version="1.0.7" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>OSFileViewer</name>
<description>OutSystems Cordova Plugin to provide the functionality of a file viewer to mobile applications.</description>
<author>OutSystems Inc</author>
<js-module name="OSFileViewer" src="www/OSFileViewer.js">
<clobbers target="cordova.plugins.OSFileViewer"/>
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="OSFileViewer">
<param name="android-package" value="com.outsystems.plugins.fileviewer.OSFileViewer"/>
</feature>
</config-file>
<config-file parent="application" target="AndroidManifest.xml">
<provider
android:name="com.outsystems.plugins.fileviewer.OSFileProvider"
android:authorities="${applicationId}.opener.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_viewer_paths"/>
</provider>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml"/>
<source-file src="src/android/com/outsystems/plugins/fileviewer/OSFileViewer.java" target-dir="src/com/outsystems/plugins/fileviewer"/>
<source-file src="src/android/com/outsystems/plugins/fileviewer/OSOpenDocument.java" target-dir="src/com/outsystems/plugins/fileviewer"/>
<source-file src="src/android/com/outsystems/plugins/fileviewer/OSOpenFileChooser.java" target-dir="src/com/outsystems/plugins/fileviewer"/>
<source-file src="src/android/com/outsystems/plugins/fileviewer/OSPreviewDocument.java" target-dir="src/com/outsystems/plugins/fileviewer"/>
<source-file src="src/android/com/outsystems/plugins/fileviewer/OSGetMimeType.java" target-dir="src/com/outsystems/plugins/fileviewer"/>
<source-file src="src/android/com/outsystems/plugins/fileviewer/OSFileProvider.java" target-dir="src/com/outsystems/plugins/fileviewer"/>
<source-file src="src/android/xml/file_viewer_paths.xml" target-dir="res/xml"/>
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="OSFileViewer">
<param name="ios-package" value="OSFileViewer"/>
</feature>
</config-file>
<dependency id="cordova-plugin-add-swift-support" url="https://github.com/OutSystems/cordova-plugin-add-swift-support.git#2.0.3-OS1"/>
<source-file src="src/ios/OSFileViewer.swift"/>
<source-file src="src/ios/FileDownloader.swift"/>
<source-file src="src/ios/FileViewerErrors.swift"/>
<source-file src="src/ios/FileViewerPlugin.swift"/>
<source-file src="src/ios/FileViewerPreview.swift"/>
<source-file src="src/ios/FileViewerOpenDocument.swift"/>
<source-file src="src/ios/String+Extension.swift"/>
</platform>
</plugin>