permissionAllowlist

Configures a permissions allowlist on a per-variant basis with a VariantFilter-esque API.

Example:

foundry {
permissionAllowlist {
if (buildType.name == "release") {
setAllowlistFile(file('path/to/allowlist.txt'))
}
}
}