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

Use version released to Cocoapods and npm #184

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Conversation

jhugman
Copy link
Owner

@jhugman jhugman commented Dec 9, 2024

Follow up to #166, now that has been released.

Once this is landed, we should:

  1. land anything that is to be in the next release.
  2. do a release.

We need to do a release now because:

  • The generated podspec file now includes a dependency on uniffi-bindgen-react-native.
  • We can remove pre-release caveats from the documentation.

@jhugman jhugman force-pushed the jhugman/post-initial-release branch from f2f38fb to b9786c1 Compare December 9, 2024 20:46
@jhugman jhugman force-pushed the jhugman/post-initial-release branch from b9786c1 to 74afbb7 Compare December 10, 2024 00:14
@jhugman jhugman force-pushed the jhugman/post-initial-release branch from 74afbb7 to 5789a22 Compare December 10, 2024 01:42
@jhugman jhugman force-pushed the jhugman/post-initial-release branch from 5789a22 to d00dce3 Compare December 10, 2024 02:17
@jhugman jhugman marked this pull request as ready for review December 10, 2024 13:01
@jhugman jhugman requested review from zzorba and Johennes December 10, 2024 13:01
Copy link
Collaborator

@Johennes Johennes left a 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() }}"
Copy link
Collaborator

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.

Copy link
Owner Author

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.

Copy link
Collaborator

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. 👍

Copy link
Collaborator

@zzorba zzorba left a comment

Choose a reason for hiding this comment

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

LGTM

@jhugman jhugman merged commit a241dfb into main Dec 10, 2024
17 checks passed
@jhugman jhugman deleted the jhugman/post-initial-release branch December 10, 2024 19:06
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.

3 participants