Repository navigation
Expand file tree
/
Copy pathplugin.xml
More file actions
52 lines (48 loc) · 2.58 KB
/
Copy pathplugin.xml
File metadata and controls
52 lines (48 loc) · 2.58 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-preview-any-file" version="0.4.0">
<name>Preview Any File</name>
<description>Cordova plugin to preview any file from any where in native mode</description>
<license>MIT</license>
<keywords>cordova,device,open file, base64,</keywords>
<engines>
<engine name="cordova-android" version=">=14.0.0" />
<engine name="cordova-ios" version=">=8.0.0" />
</engines>
<js-module src="www/preview.js" name="PreviewAnyFile">
<clobbers target="window.PreviewAnyFile" />
</js-module>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PreviewAnyFile">
<param name="ios-package" value="HWPPreviewAnyFile"/>
</feature>
</config-file>
<source-file src="src/ios/PreviewAnyFile.swift" />
<framework src="CoreServices.framework" />
</platform>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PreviewAnyFile">
<param name="android-package" value="com.mostafa.previewanyfile.PreviewAnyFile"/>
</feature>
</config-file>
<source-file src="src/android/PreviewAnyFile.java" target-dir="src/com/mostafa/previewanyfile" />
<source-file src="src/android/PreviewAnyFileProvider.java" target-dir="src/com/mostafa/previewanyfile" />
<!-- canPreview: lets the app see which installed apps can view a file type (Android 11+ package visibility) -->
<config-file target="AndroidManifest.xml" parent="/manifest">
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:mimeType="*/*" />
</intent>
</queries>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<provider android:name="com.mostafa.previewanyfile.PreviewAnyFileProvider" android:authorities="${applicationId}.previewanyfile.provider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/preview_any_file_paths" />
</provider>
</config-file>
<source-file src="src/android/xml/preview_any_file_paths.xml" target-dir="res/xml"/>
<framework src="androidx.core:core:1.13.0" />
</platform>
</plugin>