fix: [Codegen] log supported apple platforms if there are any#42819
fix: [Codegen] log supported apple platforms if there are any#42819okwasniewski wants to merge 1 commit into
Conversation
|
cc: @dmytrorykun |
Base commit: 069c244 |
|
@okwasniewski This got me thinking. According to the Podspec Syntax Reference:
Is it a valid case when both |
|
I think this case is happening for core modules that don't have Podspec defined in the same directory as the rest of the code. Because for built-in modules we have:
|
|
Ah okay I miss read your question.. Is it possible for RN libraries to not specify a target? This would go against the docs and soon against the "Golden library template". Edit: I think if they are not defined we should do nothing (don't add any compiler conditionals) as it means that it supports every platform. I can create a follow up PR for this on Monday and test this edge case |
|
@okwasniewski I just did some local tests with my test library. Note that there is neither
Which means that I know that this issue is not directly related to this PR, but could you please submit a followup PR were this case would be "all platforms are supported"? |
|
@dmytrorykun Sure, I will handle this case with a followup PR next week. Thanks for the review 🙌 |
|
Hey @dmytrorykun, anything more I can do to get this PR merged? |
|
So @dmytrorykun is on PTO until the 12th. He asked me to take care of this PR, but the import is failing. I'll try again tomorrow morning to see if the system recovers! |
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@cipolleschi merged this pull request in 2ca7bec. |
Summary:
This PR adds check if there are any supported platforms to log.
For built-in modules this was logging empty line (as some of them doesn't contain podspecs):
Changelog:
[GENERAL] [FIXED] - Log Codegen supported platforms if any are available
Test Plan:
Run Codegen and check if it prints empty
Supported Apple platforms