Stripping request permissions code from Swift Package based on host app flags

Hi,

I have the same setup as this one:

I'd like to be able to send either conditional compilation flags like USE_LOCATION_ACCESS, USE_SPEECH_ACCESS or a string like: "USE_LOCATION_ACCESS, USE_SPEECH_ACCESS"

such that I can either:

  1. Conditional compile the InternalDependencyA using the flags above.
  2. Generate new files from .swiftGen ones based on the string above

Either solutions would work, but it seems there is no way to send such information from the AppTarget to InternalDependencyA,

Are there any other solutions I might look into ?