From d9f5c393d3f871a8561969f9ee7843b26057caec Mon Sep 17 00:00:00 2001 From: Andi Semler Date: Thu, 4 Jul 2019 22:32:45 +0200 Subject: [PATCH 1/4] Experimental reader mode API on Android Using a lot of code from https://code.tutsplus.com/tutorials/reading-nfc-tags-with-android--mobile-17278 Current caveats and to-dos: Tags content type must be text/plain. This is a hardcoded value. --- .idea/vcs.xml | 7 ++ .idea/workspace.xml | 91 +++++++++++------- .../nfc_in_flutter/NfcInFlutterPlugin.java | 96 ++++++++++++++++++- .../android/app/src/main/AndroidManifest.xml | 14 ++- .../app/src/main/res/xml/nfc_tech_filter.xml | 6 ++ example/lib/main.dart | 2 +- lib/src/api.dart | 17 +++- 7 files changed, 192 insertions(+), 41 deletions(-) create mode 100644 .idea/vcs.xml create mode 100644 example/android/app/src/main/res/xml/nfc_tech_filter.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..1624a13 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 660c112..6825159 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,16 @@ - + + + + + + + + + + @@ -18,34 +27,37 @@ + + + - + - + - - + + + + + - - + + - - - - - + + @@ -54,16 +66,16 @@ - + - + - - + + @@ -80,6 +92,9 @@ + + @@ -101,11 +116,14 @@