-
Notifications
You must be signed in to change notification settings - Fork 26
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] Turn more types into UniFFI records #120
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #120 +/- ##
==========================================
+ Coverage 89.34% 89.45% +0.11%
==========================================
Files 173 173
Lines 31333 31322 -11
==========================================
+ Hits 27993 28018 +25
+ Misses 3340 3304 -36 ☔ View full report in Codecov by Sentry. |
This simplifies the Kotlin API since records don’t have the `close` method that objects have. The downside is that creating the record requires you to eagerly create the data for all record fields.
87c1255
to
d5925c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Thanks all for the great review! The Clone Wars have been won, no more |
Issues:
Addresses #81.
Description of changes:
As discussed in #112 (comment) onwards, the Kotlin code generated by UniFFI becomes simpler when we use
uniffi::Record
instead ofuniffi::Object
. This PR turnsCommitOutput
,SignaturePublicKey
,SignatureSecretKey
, andRatchetTree
into records.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.