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

Uniffi demo holder #1058

Merged
merged 8 commits into from
Nov 25, 2023
Merged

Uniffi demo holder #1058

merged 8 commits into from
Nov 25, 2023

Conversation

swaptr
Copy link
Contributor

@swaptr swaptr commented Nov 11, 2023

No description provided.

@swaptr swaptr requested a review from gmulhearn November 11, 2023 19:23
@swaptr swaptr self-assigned this Nov 11, 2023
@swaptr swaptr force-pushed the uniffi-demo-holder branch from 2239bd1 to 04b8f20 Compare November 11, 2023 19:23
@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (37019db) 0.05% compared to head (fb08cb4) 0.05%.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1058   +/-   ##
=====================================
  Coverage   0.05%   0.05%           
=====================================
  Files        471     471           
  Lines      24009   24009           
  Branches    4306    4306           
=====================================
  Hits          13      13           
  Misses     23995   23995           
  Partials       1       1           
Flag Coverage Δ
unittests-aries-vcx 0.05% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@swaptr swaptr force-pushed the uniffi-demo-holder branch 3 times, most recently from 1201804 to a1fad5b Compare November 13, 2023 10:34
@swaptr swaptr marked this pull request as ready for review November 21, 2023 07:31
@swaptr swaptr force-pushed the uniffi-demo-holder branch 2 times, most recently from 6618551 to d32da29 Compare November 21, 2023 08:12
Copy link
Contributor

@gmulhearn gmulhearn left a comment

Choose a reason for hiding this comment

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

Left some comments above, most just clean up stuff.

Also a general note: try to ensure that Kotlin calls into rust/uniffi are done within Dispatchers.IO. i.e. ..launch(Dispatchers.IO) {.. }

For instance, processOfferRequest is launching with viewModelScope.launch, but you'd want to launch with .launch(Dispatchers.IO). If you don't do this, then the Uniffi/rust calls are going to block the main UI thread, which is what causes UI freezes etc

@swaptr swaptr force-pushed the uniffi-demo-holder branch from ef1287e to fb08cb4 Compare November 23, 2023 21:29
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
@gmulhearn gmulhearn merged commit e1b05ba into hyperledger:main Nov 25, 2023
27 checks 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.

4 participants