JUCE AU Sandbox documentation update

Hello,

Regarding the 2 CMake options, AU_SANDBOX_SAFE and SUPPRESS_AU_PLIST_RESOURCE_USAGE, it would be good to note that these options are mutually exclusive. Here is the code in extras/Build/juce_build_tools/utils/juce_PlistOptions.cpp to prove this:

if (isAuSandboxSafe)
{
    addPlistDictionaryKey (*dict, "sandboxSafe", true);
}
else if (! suppressResourceUsage)
{
    dict->createNewChildElement ("key")->addTextElement ("resourceUsage");
    auto* resourceUsageDict = dict->createNewChildElement ("dict");

    addPlistDictionaryKey (*resourceUsageDict, "network.client", true);
    addPlistDictionaryKey (*resourceUsageDict, "temporary-exception.files.all.read-write", true);
}


Thanks.

Thanks, that’s added here:

1 Like