@iotize/device-com-nfc.cordova 3.8.1 → 3.9.0
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/LICENSE +30 -30
- package/README.md +673 -673
- package/bundles/iotize-device-com-nfc.cordova.umd.js +1108 -967
- 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/iotize-device-com-nfc.cordova.js +4 -4
- package/esm2015/iotize-device-com-nfc.cordova.ngsummary.json +1 -1
- package/esm2015/public_api.js +1 -1
- package/esm2015/public_api.ngsummary.json +1 -1
- package/esm2015/www/cordova-interface.js +1 -1
- package/esm2015/www/cordova-interface.js.map +1 -1
- package/esm2015/www/errors.js +30 -30
- package/esm2015/www/errors.js.map +1 -1
- package/esm2015/www/index.js +6 -6
- package/esm2015/www/index.js.map +1 -1
- package/esm2015/www/index.metadata.json +1 -1
- package/esm2015/www/index.ngsummary.json +1 -1
- package/esm2015/www/logger.js +2 -2
- package/esm2015/www/logger.js.map +1 -1
- package/esm2015/www/ndef/definitions.js +16 -16
- package/esm2015/www/ndef/definitions.js.map +1 -1
- package/esm2015/www/ndef/parse-ndef-message.js +293 -164
- package/esm2015/www/ndef/parse-ndef-message.js.map +1 -1
- package/esm2015/www/ndef/parse-ndef-message.metadata.json +1 -1
- package/esm2015/www/ndef/parse-ndef-message.ngsummary.json +1 -1
- package/esm2015/www/nfc-com-protocol.js +169 -169
- package/esm2015/www/nfc-com-protocol.js.map +1 -1
- package/esm2015/www/tap-ndef/definitions.js +1 -1
- package/esm2015/www/tap-ndef/definitions.js.map +1 -1
- package/esm2015/www/tap-ndef/index.js +2 -2
- package/esm2015/www/tap-ndef/index.js.map +1 -1
- package/esm2015/www/tap-ndef/parse-ndef-message.js +51 -51
- package/esm2015/www/tap-ndef/parse-ndef-message.js.map +1 -1
- package/esm2015/www/utility.js +10 -10
- package/esm2015/www/utility.js.map +1 -1
- package/esm2015/www/utility.ngsummary.json +1 -1
- package/fesm2015/iotize-device-com-nfc.cordova.js +555 -427
- package/fesm2015/iotize-device-com-nfc.cordova.js.map +1 -1
- package/iotize-device-com-nfc.cordova.d.ts +4 -4
- package/iotize-device-com-nfc.cordova.metadata.json +1 -1
- package/package.json +2 -2
- package/plugin.xml +98 -98
- package/public_api.d.ts +1 -1
- package/src/android/.gradle/4.10.1/fileChanges/last-build.bin +0 -0
- 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/4.10.1/gc.properties +0 -0
- package/src/android/build.gradle +38 -38
- package/src/android/gradle/wrapper/gradle-wrapper.properties +6 -6
- package/src/android/gradlew +172 -172
- package/src/android/gradlew.bat +84 -84
- package/src/android/local.properties +8 -8
- package/src/android/src/com/chariotsolutions/nfc/plugin/JSONBuilder.java +60 -60
- package/src/android/src/com/chariotsolutions/nfc/plugin/NfcPlugin.java +1151 -1151
- package/src/android/src/com/chariotsolutions/nfc/plugin/NfcPluginError.java +15 -15
- package/src/android/src/com/chariotsolutions/nfc/plugin/PluginResponse.java +85 -85
- package/src/android/src/com/chariotsolutions/nfc/plugin/Util.java +140 -140
- 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 +506 -506
- package/www/cordova-interface.d.ts +34 -34
- package/www/errors.d.ts +17 -17
- package/www/index.d.ts +6 -6
- package/www/logger.d.ts +2 -2
- package/www/ndef/definitions.d.ts +15 -15
- package/www/ndef/parse-ndef-message.d.ts +12 -69
- package/www/nfc-com-protocol.d.ts +36 -36
- package/www/phonegap-nfc.js +911 -911
- package/www/tap-ndef/definitions.d.ts +25 -25
- package/www/tap-ndef/index.d.ts +2 -2
- package/www/tap-ndef/parse-ndef-message.d.ts +6 -6
- package/www/utility.d.ts +2 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export interface TapNfcTagPayload {
|
|
2
|
-
type?: number;
|
|
3
|
-
name?: string;
|
|
4
|
-
aar?: string;
|
|
5
|
-
uri?: string;
|
|
6
|
-
macAddress?: string;
|
|
7
|
-
ssid?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface NdefEvent {
|
|
10
|
-
tag: NdefTag;
|
|
11
|
-
}
|
|
12
|
-
export interface NdefRecord {
|
|
13
|
-
id: any[];
|
|
14
|
-
payload: number[];
|
|
15
|
-
tnf: number;
|
|
16
|
-
type: number[];
|
|
17
|
-
}
|
|
18
|
-
export interface NdefTag {
|
|
19
|
-
canMakeReadOnly: boolean;
|
|
20
|
-
id: number[];
|
|
21
|
-
isWritable: boolean;
|
|
22
|
-
maxSize: number;
|
|
23
|
-
ndefMessage: NdefRecord[];
|
|
24
|
-
techTypes: string[];
|
|
25
|
-
}
|
|
1
|
+
export interface TapNfcTagPayload {
|
|
2
|
+
type?: number;
|
|
3
|
+
name?: string;
|
|
4
|
+
aar?: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
macAddress?: string;
|
|
7
|
+
ssid?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface NdefEvent {
|
|
10
|
+
tag: NdefTag;
|
|
11
|
+
}
|
|
12
|
+
export interface NdefRecord {
|
|
13
|
+
id: any[];
|
|
14
|
+
payload: number[];
|
|
15
|
+
tnf: number;
|
|
16
|
+
type: number[];
|
|
17
|
+
}
|
|
18
|
+
export interface NdefTag {
|
|
19
|
+
canMakeReadOnly: boolean;
|
|
20
|
+
id: number[];
|
|
21
|
+
isWritable: boolean;
|
|
22
|
+
maxSize: number;
|
|
23
|
+
ndefMessage: NdefRecord[];
|
|
24
|
+
techTypes: string[];
|
|
25
|
+
}
|
package/www/tap-ndef/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './definitions';
|
|
2
|
-
export * from './parse-ndef-message';
|
|
1
|
+
export * from './definitions';
|
|
2
|
+
export * from './parse-ndef-message';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NdefRecord, TapNfcTagPayload } from './definitions';
|
|
2
|
-
/**
|
|
3
|
-
* We manage only on NDEF message with 3 records:
|
|
4
|
-
* record 0 = URI; record 1 = AAR; record 2 = BLE MAC ADDRESS / BSSID; record 3: universal link
|
|
5
|
-
*/
|
|
6
|
-
export declare function parseTapNdefMessage(messages: NdefRecord[]): TapNfcTagPayload;
|
|
1
|
+
import { NdefRecord, TapNfcTagPayload } from './definitions';
|
|
2
|
+
/**
|
|
3
|
+
* We manage only on NDEF message with 3 records:
|
|
4
|
+
* record 0 = URI; record 1 = AAR; record 2 = BLE MAC ADDRESS / BSSID; record 3: universal link
|
|
5
|
+
*/
|
|
6
|
+
export declare function parseTapNdefMessage(messages: NdefRecord[]): TapNfcTagPayload;
|
package/www/utility.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function toAsciiString(payload: number[]): string;
|
|
2
|
-
export declare function arrayEquals(a1: number[], a2: number[]): boolean;
|
|
1
|
+
export declare function toAsciiString(payload: number[]): string;
|
|
2
|
+
export declare function arrayEquals(a1: number[], a2: number[]): boolean;
|