feat(tapcard): add NFC permission and card reading functionality#100
Open
manideepk90 wants to merge 2 commits into
Open
feat(tapcard): add NFC permission and card reading functionality#100manideepk90 wants to merge 2 commits into
manideepk90 wants to merge 2 commits into
Conversation
2d68b06 to
d304b41
Compare
659def4 to
745466c
Compare
- Introduced `TapCardResults.kt` to handle NFC permission results and card reading outcomes with sealed classes and enums for error handling. - Implemented `TlvParser.kt` for parsing TLV (Tag-Length-Value) data structures, including methods for finding tags and parsing Track 2 data. - Added a transparent theme in `themes.xml` for the card scanning interface. - Updated `settings.gradle` to include the new `hyperswitch-sdk-android-tapcard` module.
… and brute-force reading
d304b41 to
b32ff3c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new TapCard (NFC card reading) SDK module to the project, integrates it into the build, and conditionally exposes its functionality to the React Native bridge if the device supports NFC and the TapCard SDK is available. The changes are grouped into TapCard SDK implementation, build system integration, and React Native bridge updates.
TapCard SDK Implementation:
hyperswitch-sdk-android-tapcardwith a public API (TapCard) for NFC card reading, including permission checks, lifecycle management, and card reading callbacks. The SDK is designed for merchant integration and includes robust error handling and timeouts.build.gradle,proguard-rules.pro,.gitignore) for the new TapCard SDK module. [1] [2] [3]Build System Integration:
gradle.properties. [1] [2]React Native Bridge Updates:
HyperPackageReact Native package to conditionally expose the newTapCardModuleto JavaScript only if the TapCard SDK and NFC are available at runtime, ensuring backward compatibility and preventing runtime errors on unsupported devices.- IntroducedTapCardResults.ktto handle NFC permission results and card reading outcomes with sealed classes and enums for error handling.TlvParser.ktfor parsing TLV (Tag-Length-Value) data structures, including methods for finding tags and parsing Track 2 data.themes.xmlfor the card scanning interface.settings.gradleto include the newhyperswitch-sdk-android-tapcardmodule.