Repository navigation
Expand file tree
/
Copy pathplugin.xml
More file actions
executable file
·118 lines (112 loc) · 6.32 KB
/
Copy pathplugin.xml
File metadata and controls
executable file
·118 lines (112 loc) · 6.32 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-foxitpdf" version="9.1.1" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-foxitpdf</name>
<description>cordova pdf preview plugin with Foxit Pdf sdk</description>
<author>Foxit PDF SDK Team</author>
<keywords>pdf,perview,openDocument,foxit</keywords>
<license>Apache 2.0 License</license>
<js-module name="FoxitPdf" src="www/FoxitPdf.js">
<clobbers target="window.FoxitPdf"/>
</js-module>
<js-module name="Form" src="www/Form.js">
<clobbers target="Form"/>
</js-module>
<js-module name="Field" src="www/Field.js">
<clobbers target="Field"/>
</js-module>
<js-module name="ScanPdf" src="www/ScanPdf.js">
<clobbers target="ScanPdf"/>
</js-module>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="FoxitPdf">
<param name="ios-package" value="FoxitPdf"/>
</feature>
</config-file>
<source-file src="src/ios/FoxitPdf.m"/>
<resource-file src="src/ios/uiextensions_config.json"/>
<preference name="CAMERA_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>This app needs read-access to photo library</string>
</config-file>
<preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>Need to photo library access to get pictures from there</string>
</config-file>
<preference name="MICROPHONE_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
<string>App needs your consent to access the microphone</string>
</config-file>
<preference name="PHOTOLIBRARY_ADD_USAGE_DESCRIPTION" default="This app needs write-access to photo library" />
<config-file target="*-Info.plist" parent="NSPhotoLibraryAddUsageDescription">
<string>This app needs write-access to photo library</string>
</config-file>
</platform>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="FoxitPdf">
<param name="android-package" value="com.foxit.cordova.plugin.FoxitPdf"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.RUN_INSTRUMENTATION"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/queries">
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:name="com.foxit.cordova.plugin.ReaderActivity"
android:configChanges="keyboardHidden|orientation|screenSize|locale|layoutDirection|screenLayout|uiMode|smallestScreenSize"
android:launchMode="singleTask"
android:screenOrientation="fullSensor"
android:exported="true">
<layout
android:gravity="center"
android:minWidth="520dp"
android:minHeight="700dp" />
<intent-filter tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.VIEW"></action>
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<data android:mimeType="application/pdf"></data>
</intent-filter>
</activity>
<activity
android:name="com.foxit.cordova.plugin.ScannerListActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustPan"
android:exported="true">
</activity>
</config-file>
<edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">
<application
android:requestLegacyExternalStorage="true" />
</edit-config>
<edit-config file="AndroidManifest.xml" target="/manifest" mode="merge">
<manifest
xmlns:tools="http://schemas.android.com/tools"/>
</edit-config>
<config-file parent="/*" target="AndroidManifest.xml"/>
<source-file src="src/android/com/foxit/cordova/plugin/FoxitReader.java" target-dir="src/com/foxit/cordova/plugin"/>
<source-file src="src/android/com/foxit/cordova/plugin/FoxitPdf.java" target-dir="src/com/foxit/cordova/plugin"/>
<source-file src="src/android/com/foxit/cordova/plugin/ReaderActivity.java" target-dir="src/com/foxit/cordova/plugin"/>
<source-file src="src/android/com/foxit/cordova/plugin/ScannerListActivity.java" target-dir="src/com/foxit/cordova/plugin"/>
<resource-file src="src/android/assets/uiextensions_config.json" target="assets/www/plugins/cordova-plugin-foxitpdf/uiextensions_config.json" />
<framework src="src/android/gradle/FoxitRDKUIExtensions.gradle" custom="true" type="gradleReference" />
</platform>
</plugin>