-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Background
CocoaPod plugins can use conditional compilation to allow an app to opt-in or out of certain features.
For example, the just_audio plugin is an audio player that has an optional microphone feature. Since microphone use has privacy concerns, the app must provide a usage description. If the app doesn't need this microphone feature, just_audio provides a compilation flag to remove the microphone feature entirely. The app can set this compilation flag in its CocoaPods configuration. See: ryanheise/just_audio#1368 (comment)
Unfortunately, Swift Package Manager does not support conditional compilation.
Known affected packages:
Work
Options:
- Document the known workaround. The workaround is hacky and not ideal...
- Update Flutter to support Swift package traits if/when that lands
iapicca, Albert221, ryanheise, Dani-Koza-AF, Pedro-e and 1 more
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team