XcodeGen
XcodeGen copied to clipboard
set 'no group' for local packages
Is there a way to set no group for a local package?
At the moment there's the group option for local packages and localPackagesGroup, but neither can be set to something that allows a package to sit at the projects root without a group.
I believe this has similarity to https://github.com/yonaskolb/XcodeGen/issues/1118
I would like this behavior as well. Currently the best I can do is put the local packages in a top-level folder, like:
/MyProject
/Packages
/Package1
/Package2
What I want is:
/MyProject
/Package1
/Package2
Looking at https://github.com/yonaskolb/XcodeGen/blob/26fc38a664cae9e2a76ec23566820a1dcfe4099c/Sources/XcodeGenKit/SourceGenerator.swift#L56-L88 I don't see a way to configure the package's group and localPackagesGroup that doesn't put it in at least one folder.
I don't see an obvious change to the API, other than accepting "" for group or localPackageGroup. I'm not aware of that being a precedent anywhere else in the API though.
I'm willing to open a PR to add this capability if we can agree on a config option for it.
@hiltonc I'm happy with that solution (setting group to "") or allowing options.localPackagesGroup to be "", if you'd like to make a PR
@yonaskolb Thanks, I added support for both options in #1413.
Thank you @hiltonc!
@yonaskolb would you be able to review or assign/recommend someone able to review?