-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[swift5] Fix target SDKs for Combine option #8476
Conversation
Hi, First of all, thanks for taking the time to create this PR. 🙂 Could you please describe your use case on why to make this change? I would like to discuss this PR. The methods that use Is this not enough? It should be possible to choose more than one The current setup of mark the One thing that maybe we could do is to change the minimum iOS version to 13 when @fl034 What do you think about this? |
Hi @4brunu thanks for your discussion points. I didn't know about the possibility to have multiple So the best way would be to wrap |
Hi @fl034, Looks like a good solution to me. Are you thinking in adding |
Hi @fl034, Thanks for making the changes that we talked about 👍 I think that we should also wrap the methods that use What do you think about that? |
Man you're fast! I was just writing about it. :D |
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.
Looks good, I just left a small comment. 👍
Thanks for your help!
#if canImport(Combine) | ||
import Combine | ||
#endif | ||
{{/useCombine}}{{#swiftUseApiNamespace}} |
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.
Could you please put #endif{{/useCombine}}{{#swiftUseApiNamespace}}
in the same line to avoid generating an extra line in the generated code?
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.
Jep :-)
@4brunu I noticed that in the latest snapshot version, using URLSession as library, I don't get callbacks from my requests. It works with Alamofire as library. Also it works in 5.0.0 stable. |
No, I didn't knew about that. |
@4brunu I opened an issue regarding my observation. |
I don't have permissions to merge the PRs. |
Fixes #7728
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.For Windows users, please run the script in Git BASH.
master
,5.1.x
,6.0.x