TapTrack / NdefLibrary

Parse and compose NDEF messages on iOS without CoreNFC.
https://cocoapods.org/pods/NdefLibrary
MIT License
10 stars 5 forks source link

Bug when parse an external android package record #5

Open jhzzzz opened 10 months ago

jhzzzz commented 10 months ago

Hi, thanks for your library, it do helped me save a lot of time.

Just found a little bug, when parse a ndefmessage buffer which incude an external type of android package like android.com:pkg with payload com.blabla, it will failed with chunk not support.

the reason is NdefMessage.swift line 201:

typeIndex += 1;changed to typeIndex += typeLength; is ok.

dshalaby commented 9 months ago

Hi - thanks for noticing this and suggesting a fix. We'll look into that. So glad you found the library useful!