1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00
This commit is contained in:
jonathan schatz 2026-01-08 08:16:33 +00:00 committed by GitHub
commit 85f0e1cb80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 22 deletions

View file

@ -62,24 +62,24 @@ namespace juce:: build_tools
// entitlement iOS apps are unable to access AUv3 plug-ins. // entitlement iOS apps are unable to access AUv3 plug-ins.
if ((isAudioPluginProject && shouldEnableIAA) || isAUPluginHost) if ((isAudioPluginProject && shouldEnableIAA) || isAUPluginHost)
entitlements.set ("inter-app-audio", "<true/>"); entitlements.set ("inter-app-audio", "<true/>");
}
if (isiCloudPermissionsEnabled)
{
if (isiCloudPermissionsEnabled) entitlements.set ("com.apple.developer.icloud-container-identifiers",
{ "<array>\n"
entitlements.set ("com.apple.developer.icloud-container-identifiers", "\t\t<string>iCloud." + projectBundlerIdentifierString.trim() + "</string>\n"
"<array>\n" "\t</array>");
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
" </array>");
entitlements.set ("com.apple.developer.icloud-services", entitlements.set ("com.apple.developer.icloud-services",
"<array>\n" "<array>\n"
" <string>CloudDocuments</string>\n" "\t\t<string>CloudDocuments</string>\n"
" </array>"); "\t</array>");
entitlements.set ("com.apple.developer.ubiquity-container-identifiers", entitlements.set ("com.apple.developer.ubiquity-container-identifiers",
"<array>\n" "<array>\n"
" <string>iCloud.$(CFBundleIdentifier)</string>\n" "\t\t<string>iCloud." + projectBundlerIdentifierString.trim() + "</string>\n"
" </array>"); "\t</array>");
}
} }
if (isPushNotificationsEnabled) if (isPushNotificationsEnabled)

View file

@ -54,7 +54,7 @@ namespace juce::build_tools
bool isNetworkingMulticastEnabled = false; bool isNetworkingMulticastEnabled = false;
String appGroupIdString; String appGroupIdString;
String projectBundlerIdentifierString;
StringArray hardenedRuntimeOptions; StringArray hardenedRuntimeOptions;
StringArray appSandboxOptions; StringArray appSandboxOptions;

View file

@ -400,7 +400,7 @@ public:
String getDevelopmentTeamIDString() const { return iosDevelopmentTeamIDValue.get(); } String getDevelopmentTeamIDString() const { return iosDevelopmentTeamIDValue.get(); }
String getAppGroupIdString() const { return iosAppGroupsIDValue.get(); } String getAppGroupIdString() const { return iosAppGroupsIDValue.get(); }
String getProjectBundlerIdentifierString() const { return project.getBundleIdentifierString(); }
String getBuildNumber() const String getBuildNumber() const
{ {
const auto buildNumberString = buildNumber.get().toString(); const auto buildNumberString = buildNumber.get().toString();
@ -811,12 +811,13 @@ public:
props.add (new ChoicePropertyComponent (iosAppGroupsValue, "App Groups Capability"), props.add (new ChoicePropertyComponent (iosAppGroupsValue, "App Groups Capability"),
"Enable this to grant your app the capability to share resources between apps using the same app group ID."); "Enable this to grant your app the capability to share resources between apps using the same app group ID.");
props.add (new ChoicePropertyComponent (iCloudPermissionsValue, "iCloud Permissions"),
"Enable this to grant your app the capability to use native file load/save browser windows on iOS.");
} }
props.add (new ChoicePropertyComponent (iCloudPermissionsValue, "iCloud Permissions"),
iOS ? "Enable this to grant your app the capability to use native file load/save browser windows on iOS." :
"Enable this to grant your app the capability to use iCloud Document Storage");
props.add (new ChoicePropertyComponent (networkingMulticastValue, "Networking Multicast Capability"), props.add (new ChoicePropertyComponent (networkingMulticastValue, "Networking Multicast Capability"),
"Your app must have this entitlement to send or receive IP multicast or broadcast. " "Your app must have this entitlement to send or receive IP multicast or broadcast. "
"You will also need permission from Apple to use this entitlement."); "You will also need permission from Apple to use this entitlement.");
@ -1574,7 +1575,7 @@ public:
capabilities["Sandbox"] = shouldUseAppSandbox(); capabilities["Sandbox"] = shouldUseAppSandbox();
capabilities["HardenedRuntime"] = shouldUseHardenedRuntime(); capabilities["HardenedRuntime"] = shouldUseHardenedRuntime();
if (owner.iOS && owner.isiCloudPermissionsEnabled()) if (owner.isiCloudPermissionsEnabled())
capabilities["com.apple.iCloud"] = true; capabilities["com.apple.iCloud"] = true;
StringArray capabilitiesStrings; StringArray capabilitiesStrings;
@ -3535,6 +3536,7 @@ private:
options.isAppSandboxInhertianceEnabled = isAppSandboxInhertianceEnabled(); options.isAppSandboxInhertianceEnabled = isAppSandboxInhertianceEnabled();
options.isNetworkingMulticastEnabled = isNetworkingMulticastEnabled(); options.isNetworkingMulticastEnabled = isNetworkingMulticastEnabled();
options.appGroupIdString = getAppGroupIdString(); options.appGroupIdString = getAppGroupIdString();
options.projectBundlerIdentifierString = getProjectBundlerIdentifierString();
options.hardenedRuntimeOptions = getHardenedRuntimeOptions(); options.hardenedRuntimeOptions = getHardenedRuntimeOptions();
options.appSandboxOptions = getAppSandboxOptions(); options.appSandboxOptions = getAppSandboxOptions();
options.appSandboxTemporaryPaths = getAppSandboxTemporaryPaths(); options.appSandboxTemporaryPaths = getAppSandboxTemporaryPaths();