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

[WASH-931] Add share method to iOS plugin #15

Merged
merged 1 commit into from
Aug 4, 2021
Merged

Conversation

Mrhea
Copy link
Contributor

@Mrhea Mrhea commented Jul 30, 2021

  • Adds a share record method to iOS plugin
  • Adds a new test to example app that writes then
    shares a record

Using this draft to communicate current progress on sharing records.

share is confirmed to successfully share a record by running onWriteThenShareRecordButtonPress test in main.dart then confirming in dashboard and docker logs.

The shareResult value returned in share's callback returns a cryptoError object when sharing a new record type, which causes execution to fall into the FlutterError case. I confirmed that this was not an issue with re-sharing the same record given that doing so returns the expected 409 instead of a cryptoError.

I will mark in in-line comments where the callback returns a cryptoError.

@Mrhea Mrhea marked this pull request as ready for review August 3, 2021 22:01
developer.log("example flow succeeded");
} catch (e) {
developer.log("example flow failed becaused $e");
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was a missing brace here causing variable declaration errors that I inadvertently fixed in writing onWriteThenShareRecordButtonPress.

I did not notice this until I started a new branch off of trunk to start working on read record. Merging this will fix this, but at the moment trunk is non-functional because of it. At a glance, error was introduced in commit 7c7cd2229845d256c8a6d5f5144ce65e1ca7eb55

Copy link
Contributor

Choose a reason for hiding this comment

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

my bad ✋🏽

Copy link
Contributor

@efabens efabens left a comment

Choose a reason for hiding this comment

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

When we can I would like to get clarity on where that cryptoError is being generated by the swift-sdk to verify that we are not going to be bitten later.

- Adds a share record method to iOS plugin
- Adds a new test to example app that writes then
  shares a record
@Mrhea Mrhea merged commit db86b0d into trunk Aug 4, 2021
@Mrhea Mrhea deleted the wash-931-share-record branch August 13, 2021 21:43
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.

None yet

4 participants