forked from chariotsolutions/phonegap-nfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
137 lines (113 loc) · 5.46 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?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="com.chariotsolutions.nfc.plugin"
version="0.6.2">
<name>NFC</name>
<description>Near Field Communication (NFC) Plugin. Read and write NDEF messages to tags or share NDEF messages with peers.</description>
<license>MIT</license>
<keywords>nfc, NFC, NDEF</keywords>
<repo>https://github.com/chariotsolutions/phonegap-nfc.git</repo>
<issue>https://github.com/chariotsolutions/phonegap-nfc/issues</issue>
<!-- temp remove engines tag due to bug CB-5139 in cli 3.1.0-0.2.0 for blackberry 10
<engines>
<engine name="cordova" version=">=2.8.0" />
</engines>
-->
<platform name="android">
<js-module src="www/phonegap-nfc.js" name="NFC">
<runs />
</js-module>
<!-- requires Cordova-2.8.0 -->
<config-file target="res/xml/config.xml" parent="/widget">
<feature name="NfcPlugin">
<param name="android-package" value="com.chariotsolutions.nfc.plugin.NfcPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/AccountStorage.java"
target-dir="src/com/chariotsolutions/nfc/plugin"/>
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/CardService.java"
target-dir="src/com/chariotsolutions/nfc/plugin"/>
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java"
target-dir="src/com/chariotsolutions/nfc/plugin"/>
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/InitNTAG213.java"
target-dir="src/com/chariotsolutions/nfc/plugin"/>
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/Util.java"
target-dir="src/com/chariotsolutions/nfc/plugin"/>
<source-file src="src/android/res/xml/aid_list.xml" target-dir="res/xml"/>
<!-- kludge for 2.9 support -->
<source-file src="src/android/org/apache/cordova/api/Dummy.java"
target-dir="src/org/apache/cordova/api"/>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="com.chariotsolutions.nfc.plugin.CardService"
android:exported="true"
android:permission="android.permission.BIND_NFC_SERVICE">
<intent-filter>
<action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<meta-data android:name="android.nfc.cardemulation.host_apdu_service" android:resource="@xml/aid_list" />
</service>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.NFC"/>
<uses-feature android:name="android.hardware.nfc" android:required="false"/>
<uses-feature android:name="android.hardware.nfc.hce" android:required="false" />
</config-file>
</platform>
<platform name="wp8">
<js-module src="www/phonegap-nfc.js" name="NFC">
<runs />
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="NfcPlugin">
<param name="wp-package" value="NfcPlugin"/>
</feature>
</config-file>
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
<Capability Name="ID_CAP_PROXIMITY" />
</config-file>
<source-file src="src/windows-phone-8/Ndef.cs" />
<source-file src="src/windows-phone-8/NfcPlugin.cs" />
</platform>
<!-- windows -->
<platform name="windows">
<js-module src="www/phonegap-nfc.js" name="NFC">
<runs />
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="NfcPlugin">
<param name="wp-package" value="NfcPlugin"/>
</feature>
</config-file>
<config-file target="package.phone.appxmanifest" parent="/Package/Capabilities">
<DeviceCapability Name="proximity" />
</config-file>
<config-file target="package.windows.appxmanifest" parent="/Package/Capabilities">
<DeviceCapability Name="proximity" />
</config-file>
<config-file target="package.windows80.appxmanifest" parent="/Package/Capabilities">
<DeviceCapability Name="proximity" />
</config-file>
<js-module src="src/windows/nfc-plugin.js" name="NfcPlugin">
<merges target="" />
</js-module>
</platform>
<platform name="blackberry10">
<js-module src="www/phonegap-nfc.js" name="NFC">
<runs />
</js-module>
<!-- override defaults for BB10 -->
<js-module src="www/phonegap-nfc-blackberry.js" name="NFCBB10">
<runs />
</js-module>
<!-- "native" implementation -->
<source-file src="src/blackberry10/index.js" />
<config-file target="www/config.xml" parent="/widget">
<!-- Note: mapping is broken in Cordova 3.1.0-0.2.0 -->
<feature name="NfcPlugin" value="com.chariotsolutions.nfc.plugin" />
</config-file>
</platform>
</plugin>