@iotize/device-com-nfc.cordova 3.9.0 → 3.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/iotize-device-com-nfc.cordova.umd.js +12 -33
- package/bundles/iotize-device-com-nfc.cordova.umd.js.map +1 -1
- package/bundles/iotize-device-com-nfc.cordova.umd.min.js +1 -1
- package/bundles/iotize-device-com-nfc.cordova.umd.min.js.map +1 -1
- package/esm2015/www/cordova-interface.js.map +1 -1
- package/esm2015/www/index.js.map +1 -1
- package/esm2015/www/ndef/parse-ndef-message.js.map +1 -1
- package/esm2015/www/nfc-com-protocol.js.map +1 -1
- package/fesm2015/iotize-device-com-nfc.cordova.js.map +1 -1
- package/package.json +2 -2
- package/plugin.xml +98 -98
- package/src/android/.gradle/4.10.1/fileHashes/fileHashes.bin +0 -0
- package/src/android/.gradle/4.10.1/fileHashes/fileHashes.lock +0 -0
- package/src/android/.gradle/vcs-1/gc.properties +0 -0
- package/src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java +1162 -1151
- package/src/ios/AppDelegate+NFC.swift +51 -51
- package/src/ios/NFCHelpers.swift +144 -144
- package/src/ios/NFCNDEFDelegate.swift +78 -78
- package/src/ios/NFCTagReader.swift +536 -506
- package/src/ios/NFCTapPlugin.swift +57 -1
- package/www/phonegap-nfc.js +911 -911
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iotize/device-com-nfc.cordova",
|
|
3
3
|
"main": "bundles/iotize-device-com-nfc.cordova.umd.js",
|
|
4
|
-
"version": "3.9.
|
|
4
|
+
"version": "3.9.2",
|
|
5
5
|
"description": "Near Field Communication (NFC) Plugin. Read and write NDEF messages to NFC tags and share NDEF messages with peers.",
|
|
6
6
|
"cordova": {
|
|
7
7
|
"id": "@iotize/device-com-nfc.cordova",
|
|
@@ -50,4 +50,4 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"tslib": "^2.2.0"
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|
package/plugin.xml
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
|
3
|
-
xmlns:android="http://schemas.android.com/apk/res/android" id="@iotize/device-com-nfc.cordova" version="3.8.1">
|
|
4
|
-
|
|
5
|
-
<name>@iotize/device-com-nfc.cordova</name>
|
|
6
|
-
|
|
7
|
-
<description>Near Field Communication (NFC) Plugin. Read and write NDEF messages to NFC tags and share NDEF messages with peers.</description>
|
|
8
|
-
|
|
9
|
-
<license>MIT</license>
|
|
10
|
-
<keywords>nfc, NFC, NDEF</keywords>
|
|
11
|
-
<repo>https://github.com/iotize-sas/device-com-nfc.cordova.git</repo>
|
|
12
|
-
<issue>https://github.com/iotize-sas/device-com-nfc.cordova/issues</issue>
|
|
13
|
-
|
|
14
|
-
<platform name="android">
|
|
15
|
-
<js-module src="www/phonegap-nfc.js" name="NFC">
|
|
16
|
-
<runs />
|
|
17
|
-
</js-module>
|
|
18
|
-
|
|
19
|
-
<config-file target="res/xml/config.xml" parent="/*">
|
|
20
|
-
<feature name="NfcPlugin">
|
|
21
|
-
<param name="android-package" value="com.chariotsolutions.nfc.plugin.NfcPlugin"/>
|
|
22
|
-
<param name="onload" value="true" />
|
|
23
|
-
</feature>
|
|
24
|
-
<feature name="NFCCom">
|
|
25
|
-
<param name="android-package" value="com.iotize.android.communication.nfc.cordovaplugin.NFCCom"/>
|
|
26
|
-
</feature>
|
|
27
|
-
</config-file>
|
|
28
|
-
|
|
29
|
-
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
|
|
30
|
-
|
|
31
|
-
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
32
|
-
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/Util.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
33
|
-
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/JSONBuilder.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
34
|
-
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/PluginResponse.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
35
|
-
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/NfcPluginError.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
36
|
-
|
|
37
|
-
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
38
|
-
<uses-permission android:name="android.permission.NFC"/>
|
|
39
|
-
<uses-feature android:name="android.hardware.nfc" android:required="false"/>
|
|
40
|
-
</config-file>
|
|
41
|
-
|
|
42
|
-
<config-file parent="/manifest/application/activity[@android:name='MainActivity']" target="AndroidManifest.xml"
|
|
43
|
-
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
44
|
-
<intent-filter>
|
|
45
|
-
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
|
|
46
|
-
<category android:name="android.intent.category.DEFAULT" />
|
|
47
|
-
<data android:mimeType="application/$PACKAGE_NAME" />
|
|
48
|
-
</intent-filter>
|
|
49
|
-
</config-file>
|
|
50
|
-
|
|
51
|
-
</platform>
|
|
52
|
-
|
|
53
|
-
<platform name="ios">
|
|
54
|
-
<dependency id="cordova-plugin-add-swift-support"/>
|
|
55
|
-
<js-module src="www/phonegap-nfc.js" name="NFC">
|
|
56
|
-
<runs />
|
|
57
|
-
</js-module>
|
|
58
|
-
|
|
59
|
-
<config-file parent="/*" target="config.xml">
|
|
60
|
-
<feature name="NfcPlugin">
|
|
61
|
-
<param name="ios-package" value="NfcPlugin" />
|
|
62
|
-
</feature>
|
|
63
|
-
<preference name="deployment-target" value="11" />
|
|
64
|
-
<preference name="SwiftVersion" value="4" />
|
|
65
|
-
|
|
66
|
-
</config-file>
|
|
67
|
-
<source-file src="src/ios/NFCTapPlugin.swift" />
|
|
68
|
-
<source-file src="src/ios/NFCNDEFDelegate.swift" />
|
|
69
|
-
<source-file src="src/ios/AppDelegate+NFC.swift" />
|
|
70
|
-
<source-file src="src/ios/NFCHelpers.swift" />
|
|
71
|
-
<source-file src="src/ios/NFCTagReader.swift" />
|
|
72
|
-
<source-file src="src/ios/NFCPlugin-Bridging-Header.h" />
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<config-file platform="ios" target="*-Debug.plist" parent="com.apple.developer.nfc.readersession.formats">
|
|
76
|
-
<array>
|
|
77
|
-
<string>NDEF</string>
|
|
78
|
-
<string>TAG</string>
|
|
79
|
-
</array>
|
|
80
|
-
</config-file>
|
|
81
|
-
|
|
82
|
-
<config-file platform="ios" target="*-Release.plist" parent="com.apple.developer.nfc.readersession.formats">
|
|
83
|
-
<array>
|
|
84
|
-
<string>NDEF</string>
|
|
85
|
-
<string>TAG</string>
|
|
86
|
-
</array>
|
|
87
|
-
</config-file>
|
|
88
|
-
|
|
89
|
-
<!-- frameworks -->
|
|
90
|
-
<framework src="CoreNFC.framework" weak="true"/>
|
|
91
|
-
|
|
92
|
-
<config-file target="*-Info.plist" parent="NFCReaderUsageDescription">
|
|
93
|
-
<string>Communicate with IoTize NFC Tags</string>
|
|
94
|
-
</config-file>
|
|
95
|
-
</platform>
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
</plugin>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android" id="@iotize/device-com-nfc.cordova" version="3.8.1">
|
|
4
|
+
|
|
5
|
+
<name>@iotize/device-com-nfc.cordova</name>
|
|
6
|
+
|
|
7
|
+
<description>Near Field Communication (NFC) Plugin. Read and write NDEF messages to NFC tags and share NDEF messages with peers.</description>
|
|
8
|
+
|
|
9
|
+
<license>MIT</license>
|
|
10
|
+
<keywords>nfc, NFC, NDEF</keywords>
|
|
11
|
+
<repo>https://github.com/iotize-sas/device-com-nfc.cordova.git</repo>
|
|
12
|
+
<issue>https://github.com/iotize-sas/device-com-nfc.cordova/issues</issue>
|
|
13
|
+
|
|
14
|
+
<platform name="android">
|
|
15
|
+
<js-module src="www/phonegap-nfc.js" name="NFC">
|
|
16
|
+
<runs />
|
|
17
|
+
</js-module>
|
|
18
|
+
|
|
19
|
+
<config-file target="res/xml/config.xml" parent="/*">
|
|
20
|
+
<feature name="NfcPlugin">
|
|
21
|
+
<param name="android-package" value="com.chariotsolutions.nfc.plugin.NfcPlugin"/>
|
|
22
|
+
<param name="onload" value="true" />
|
|
23
|
+
</feature>
|
|
24
|
+
<feature name="NFCCom">
|
|
25
|
+
<param name="android-package" value="com.iotize.android.communication.nfc.cordovaplugin.NFCCom"/>
|
|
26
|
+
</feature>
|
|
27
|
+
</config-file>
|
|
28
|
+
|
|
29
|
+
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
|
|
30
|
+
|
|
31
|
+
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
32
|
+
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/Util.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
33
|
+
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/JSONBuilder.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
34
|
+
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/PluginResponse.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
35
|
+
<source-file src="src/android/src/com/chariotsolutions/nfc/plugin/NfcPluginError.java" target-dir="src/com/chariotsolutions/nfc/plugin"/>
|
|
36
|
+
|
|
37
|
+
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
38
|
+
<uses-permission android:name="android.permission.NFC"/>
|
|
39
|
+
<uses-feature android:name="android.hardware.nfc" android:required="false"/>
|
|
40
|
+
</config-file>
|
|
41
|
+
|
|
42
|
+
<config-file parent="/manifest/application/activity[@android:name='MainActivity']" target="AndroidManifest.xml"
|
|
43
|
+
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
44
|
+
<intent-filter>
|
|
45
|
+
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
|
|
46
|
+
<category android:name="android.intent.category.DEFAULT" />
|
|
47
|
+
<data android:mimeType="application/$PACKAGE_NAME" />
|
|
48
|
+
</intent-filter>
|
|
49
|
+
</config-file>
|
|
50
|
+
|
|
51
|
+
</platform>
|
|
52
|
+
|
|
53
|
+
<platform name="ios">
|
|
54
|
+
<dependency id="cordova-plugin-add-swift-support"/>
|
|
55
|
+
<js-module src="www/phonegap-nfc.js" name="NFC">
|
|
56
|
+
<runs />
|
|
57
|
+
</js-module>
|
|
58
|
+
|
|
59
|
+
<config-file parent="/*" target="config.xml">
|
|
60
|
+
<feature name="NfcPlugin">
|
|
61
|
+
<param name="ios-package" value="NfcPlugin" />
|
|
62
|
+
</feature>
|
|
63
|
+
<preference name="deployment-target" value="11" />
|
|
64
|
+
<preference name="SwiftVersion" value="4" />
|
|
65
|
+
|
|
66
|
+
</config-file>
|
|
67
|
+
<source-file src="src/ios/NFCTapPlugin.swift" />
|
|
68
|
+
<source-file src="src/ios/NFCNDEFDelegate.swift" />
|
|
69
|
+
<source-file src="src/ios/AppDelegate+NFC.swift" />
|
|
70
|
+
<source-file src="src/ios/NFCHelpers.swift" />
|
|
71
|
+
<source-file src="src/ios/NFCTagReader.swift" />
|
|
72
|
+
<source-file src="src/ios/NFCPlugin-Bridging-Header.h" />
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
<config-file platform="ios" target="*-Debug.plist" parent="com.apple.developer.nfc.readersession.formats">
|
|
76
|
+
<array>
|
|
77
|
+
<string>NDEF</string>
|
|
78
|
+
<string>TAG</string>
|
|
79
|
+
</array>
|
|
80
|
+
</config-file>
|
|
81
|
+
|
|
82
|
+
<config-file platform="ios" target="*-Release.plist" parent="com.apple.developer.nfc.readersession.formats">
|
|
83
|
+
<array>
|
|
84
|
+
<string>NDEF</string>
|
|
85
|
+
<string>TAG</string>
|
|
86
|
+
</array>
|
|
87
|
+
</config-file>
|
|
88
|
+
|
|
89
|
+
<!-- frameworks -->
|
|
90
|
+
<framework src="CoreNFC.framework" weak="true"/>
|
|
91
|
+
|
|
92
|
+
<config-file target="*-Info.plist" parent="NFCReaderUsageDescription">
|
|
93
|
+
<string>Communicate with IoTize NFC Tags</string>
|
|
94
|
+
</config-file>
|
|
95
|
+
</platform>
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
</plugin>
|
|
Binary file
|
|
Binary file
|
|
File without changes
|