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

Allow to generate Swift mocks from the SDK #2982

Closed
wants to merge 1 commit into from
Closed

Conversation

nimau
Copy link
Contributor

@nimau nimau commented Dec 28, 2023

This PR allows to build Swift mocks from the RustSDK using uniffi.

Added:

  • a new build-mocks swift xtask
  • a --build-mocks parameter to the build-framework swift xtask.

‼️ This PR cannot be merged until this uniffi-rs PR is merged.

In the meantime, it can be tested locally by modifying Cargo.toml:

uniffi = { git = "https://github.com/nimau/uniffi-rs", branch = "swift-mocks" }
uniffi_bindgen = { git = "https://github.com/nimau/uniffi-rs", branch = "swift-mocks" }

Add a —build-mocks parameter to xtask swift build-framework
@manuroe
Copy link
Contributor

manuroe commented Feb 7, 2024

Note on the closing: the PR on the uniffi side is not making progress. We have another option to mock APIs on our side. Let's reopen this PR if there are changes on uniffi. Our goal was to have mocks creation in a central place at the generation level.

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