-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use version released to Cocoapods and npm #184
Conversation
f2f38fb
to
b9786c1
Compare
b9786c1
to
74afbb7
Compare
74afbb7
to
5789a22
Compare
5789a22
to
d00dce3
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.
LGTM
@@ -32,6 +32,7 @@ Pod::Spec.new do |s| | |||
{%- let bindings = self.relative_to(root, dir) -%} | |||
s.source_files = "{{ ios }}/**/*.{h,m,mm}", "{{ codegen }}/**/*.{h,m,mm}", "{{ tm }}/**/*.{hpp,cpp,c,h}", "{{ bindings }}/**/*.{hpp,cpp,c,h}" | |||
s.vendored_frameworks = "{{ framework }}" | |||
s.dependency "uniffi-bindgen-react-native", "{{ self.config.project.ubrn_version() }}" |
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.
I was briefly considering whether we should do something to support a local development flow where the pod is loaded from node_modules. However, I guess it's a rare use case and most likely not worth the hassle.
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.
If local development means: local development of ubrn, I spent a bunch of time yesterday trying to get the local development flow going.
Where I ended up was: getting the tests to comment out this line.
If local development means: local development of the subject rn-rust library, I wasn't really concerned about that, given that it's only adding the cpp/include/*.h
files from ubrn, which—to a first approximation—don't really change. That and caching in a the Pods
directory, means that it's as local as any other dependency.
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.
I kind of meant a mix of these two. I'm sometimes testing ubrn from a SHA against react-native-matrix-sdk. But it's exotic enough a use case that I can just make the small changes locally myself. So I think this is fine. 👍
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.
LGTM
Follow up to #166, now that has been released.
Once this is landed, we should:
We need to do a release now because:
uniffi-bindgen-react-native
.