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

Add mDoc reader functions #22

Merged
merged 15 commits into from
Sep 4, 2024
Merged

Conversation

sbihel
Copy link
Member

@sbihel sbihel commented Jul 22, 2024

Checklist:

  • Figure out if the current fromatting of ble_ident is correct. But probably not because we go from bytes to hex string back to bytes without decoding the string.
  • Make the MDocItem type work in Kotlin, or move back to JSON as it is the type returned by isomdl
  • test on a least one platform with bluetooth
  • change back the local path dependency for the binary target

@sbihel sbihel changed the title Add mDL reader functions Add mDoc reader functions Aug 1, 2024
@Ryanmtate Ryanmtate force-pushed the skit-233-iso-mdl-reader-interface-in-rust branch from b2c7823 to fc1fe25 Compare August 29, 2024 17:22
Ryanmtate and others added 5 commits August 29, 2024 17:10
Signed-off-by: Ryan Tate <[email protected]>
The BLE ident isn't currently verified (an issue already exists) so it
didn't break anything. Was unable to double-check with a non-mobile-sdk
wallet.
Also re-add e2e test which had disappeared
Copy link
Contributor

@cobward cobward left a comment

Choose a reason for hiding this comment

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

LGTM to merge, we can always make improvements as the implementation in a real application is done and tested.

Comment on lines 125 to 130
// TODO what was this for? Reusing the same reader?
#[derive(thiserror::Error, uniffi::Error, Debug)]
pub enum MDLReaderRequestBuildError {
#[error("{value}")]
Generic { value: String },
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Either remove the comment or the enum?

Copy link
Member Author

Choose a reason for hiding this comment

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

removed the whole thing as it's unused

Comment on lines 194 to 197
// Bytes(Vec<u8>), // already converted in string
ItemMap(HashMap<String, MDocItem>),
Array(Vec<MDocItem>),
// Image(Vec<u8>) maybe?
Copy link
Contributor

Choose a reason for hiding this comment

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

Can remove this comments?

@sbihel sbihel merged commit 3e80839 into main Sep 4, 2024
3 checks passed
@sbihel sbihel deleted the skit-233-iso-mdl-reader-interface-in-rust branch September 4, 2024 10:38
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.

4 participants