Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios ISO15693 extended read/write commands (0x30 and 0x31) #117

Merged
merged 7 commits into from
Oct 30, 2023

Conversation

engeen
Copy link
Contributor

@engeen engeen commented Oct 4, 2023

ios ISO15693 extended read/write commands (0x30 and 0x31)
ios 13.0 only available

@Harry-Chen Harry-Chen requested a review from jiegec October 5, 2023 13:44
@@ -159,6 +159,26 @@ public class SwiftFlutterNfcKitPlugin: NSObject, FlutterPlugin, NFCTagReaderSess
} else {
result(FlutterError(code: "406", message: "No tag polled", details: nil))
}
} else if call.method == "Iso15693extendedReadSingleBlock" {
// var nfcvTag: NFCISO15693Tag?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove unused code comments.

README.md Outdated
dataBlock: [0x06, 0x16, 0x00, 0x00],
);

// transceive is15693 0x30 command
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is15693 -> iso15693

@@ -379,6 +399,70 @@ public class SwiftFlutterNfcKitPlugin: NSObject, FlutterPlugin, NFCTagReaderSess
tag = nil
}



@available(iOS 13.0, *)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reformat the code

///Users/yuriy/dev/flutter_nfc_kit/ios/Classes/SwiftFlutterNfcKitPlugin.swift:428:23


@available(iOS 13.0, *)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen if it is not available?

result(dataBlock)
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if tag is not iso15693?

@@ -344,7 +376,7 @@ class FlutterNfcKit {
}

/// iOS only, change currently displayed NFC reader session alert message with [message].
///
///
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to format code, please move these changes to a separate pull request.

@Harry-Chen
Copy link
Contributor

@engeen Would you mind refining your code according to the reviewer's comments? Then I will be happy to merge your code.

@engeen
Copy link
Contributor Author

engeen commented Oct 29, 2023 via email

Copy link
Contributor

@Harry-Chen Harry-Chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Harry-Chen Harry-Chen merged commit 5c0d254 into nfcim:master Oct 30, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants