@exxili/capacitor-nfc 0.0.3 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exxili/capacitor-nfc",
3
- "version": "0.0.3",
3
+ "version": "0.0.9",
4
4
  "description": "A Capacitor plugin for reading and writing NFC NDEFtags.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,11 +0,0 @@
1
- package com.exxili.capacitornfc;
2
-
3
- import android.util.Log;
4
-
5
- public class NFC {
6
-
7
- public String echo(String value) {
8
- Log.i("Echo", value);
9
- return value;
10
- }
11
- }
@@ -1,22 +0,0 @@
1
- package com.exxili.capacitornfc;
2
-
3
- import com.getcapacitor.JSObject;
4
- import com.getcapacitor.Plugin;
5
- import com.getcapacitor.PluginCall;
6
- import com.getcapacitor.PluginMethod;
7
- import com.getcapacitor.annotation.CapacitorPlugin;
8
-
9
- @CapacitorPlugin(name = "NFC")
10
- public class NFCPlugin extends Plugin {
11
-
12
- private NFC implementation = new NFC();
13
-
14
- @PluginMethod
15
- public void echo(PluginCall call) {
16
- String value = call.getString("value");
17
-
18
- JSObject ret = new JSObject();
19
- ret.put("value", implementation.echo(value));
20
- call.resolve(ret);
21
- }
22
- }