forked from sarahgoldman/cordova-print-pdf-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
61 lines (51 loc) · 2.39 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
60
61
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="@daan-banaan/cordova-plugin-print-pdf-landscape"
version="1.1.5">
<name>PrintPDF</name>
<description>Cordova Print PDF Plugin Landscape</description>
<license>MIT</license>
<dependency id="cordova-plugin-device" url="https://github.com/apache/cordova-plugin-device.git" />
<dependency id="cordova-plugin-ios-base64" url="https://github.com/sarahgoldman/cordova-plugin-ios-base64" />
<dependency id="cordova-plugin-file" url="https://github.com/apache/cordova-plugin-file" />
<js-module src="www/PrintPDF.js" name="PrintPDF">
<clobbers target="window.PrintPDF" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PrintPDF">
<param name="ios-package" value="CDVPrintPDF" />
</feature>
</config-file>
<header-file src="src/ios/CDVPrintPDF.h" />
<source-file src="src/ios/CDVPrintPDF.m" />
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PrintPDF">
<param name="android-package" value="com.sgoldm.plugin.printPDF.PrintPDF"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!--
* Activity is triggered when only the web based Google Cloud Print
* interface is available and no other native app.
-->
<activity android:name="com.sgoldm.plugin.printPDF.CloudPrintDialog"
android:theme="@android:style/Theme.Black.NoTitleBar" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!--
* Permissions required to be able to check if the web interface is
* available and to load the page from the web view
-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
</config-file>
<source-file src="src/android/PrintPDF.java" target-dir="src/com/sgoldm/plugin/printPDF" />
<source-file src="src/android/CloudPrintDialog.java" target-dir="src/com/sgoldm/plugin/printPDF" />
</platform>
</plugin>