-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Pull in protocol info from other projects/targets, without generating for those projects/targets #1324
Comments
Hello! Just following up on this :) |
👋🏻 Hello @jamesormond , thank you very much for creating issue! 🤝 Feel free to investigate and resolve this on your own, since Sourcery is open source and every contribution is very much appreciated by the community 👥 I will provide guidance in case you would have questions. |
Sweet, I'll try to implement this feature! Can you point me to where in the codebase you handle the config files, specifically where you handle tags like |
tl;dr
If my local Xcode project contains
ProtocolA
that confirms toProtocolB
in a different local Xcode project, how can I generate code forProtocolA
?More Context
My Xcode project, "ProjectA", has two dependencies, both of which are other local Xcode projects that I created, "ProjectB" and "ProjectC". I have this situation in one of my Swift files within ProjectA:
I'm trying to generate mocks for
ProtocolA
within ProjectA, but I'm failing to include the data associated withProtocolB
. Here is what I'm hoping for, within ProjectA:I've tried the following two configurations in my
config.yml
file:For both of these configurations, it correctly generates the expected results for the protocols defined with ProjectA. However, within ProjectA, it also generates the code for the protocols in ProjectB and ProjectC. Since I'm also running Sourcery separately for ProjectB and ProjectC, I am left with duplicated code across these projects.
Therefore, my question is: how can I configure Sourcery to say "scan projects B and C for data to help generate code in project A, but don't also generate everything for projects B and C"?
I'm imagining something like this (pseudocode):
The text was updated successfully, but these errors were encountered: