Open vikage opened 10 months ago
@yonaskolb @brentleyjones Please help me review this PR
@yonaskolb Please help me review this PR. Thanks
I can see the utility in this @vikage. Got a few notes:
Config/${VERSION}/Debug.xcconfig
and VERSION=new xcodegen generate
I can see the utility in this @vikage. Got a few notes:
- does the existing functionality of referencing environment variables in the spec also solve your issue? eg
Config/${VERSION}/Debug.xcconfig
andVERSION=new xcodegen generate
- If this were added I can see this being useful just as globally accessible values, as opposed to restricting to just target or scheme templates. What do you think?
- If this were moved forward, it would definitely need some unit tests, and an example in Tests/Fixtures/TestProject/project.yml
@yonaskolb
If you are agree with this feature, I will implement an example and some unit tests
Yes happy for you to move it forward, with the ability to reference these values anywhere and not just within templates
@yonaskolb I added unit test and example. Please help me review. Thanks
@yonaskolb Please help me take a look
@yonaskolb Please review, thanks
This PR allow xcodegen to lookup template attributes from
globalTemplateAttributes
spec to share attributes accross all yaml files. For example here, we have a shared today-extension-target.yml between multi project specs: legacy-project.yml and new-project.yml We need to configure different config files between legacy and old. With this PR we just declare aversion
attribute from project spec andtoday-extension-target.yml
can access itExample today-extension-target.yml
legacy-project.yml
new-project.yml