-
Notifications
You must be signed in to change notification settings - Fork 30
/
plugin.xml
49 lines (45 loc) · 2.38 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-preview-any-file" version="0.2.9">
<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>
<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" />
<dependency id="cordova-plugin-add-swift-support" version="*" />
<framework src="CoreServices.framework" />
</platform>
<platform name="android">
<dependency id="cordova-plugin-androidx" version="*" />
<dependency id="cordova-plugin-androidx-adapter" version="*" />
<config-file target="config.xml" parent="/*">
<platform name="android">
<preference name="AndroidXEnabled" value="true"/>
</platform>
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PreviewAnyFile">
<param name="android-package" value="com.mostafa.previewanyfile.PreviewAnyFile"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/PreviewAnyFile.java" target-dir="src/com/mostafa/previewanyfile" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
</provider>
</config-file>
<source-file src="src/android/xml/file_paths.xml" target-dir="res/xml"/>
<framework src="androidx.appcompat:appcompat:1.3.1" />
</platform>
</plugin>