mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
add iCloud support for macos
This commit is contained in:
parent
d037d45e3b
commit
4b7403549d
2 changed files with 21 additions and 21 deletions
|
|
@ -51,24 +51,23 @@ namespace build_tools
|
|||
{
|
||||
if ((isAudioPluginProject && shouldEnableIAA) || isAUPluginHost)
|
||||
entitlements.set ("inter-app-audio", "<true/>");
|
||||
}
|
||||
if (isiCloudPermissionsEnabled)
|
||||
{
|
||||
entitlements.set ("com.apple.developer.icloud-container-identifiers",
|
||||
"<array>\n"
|
||||
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
|
||||
" </array>");
|
||||
|
||||
if (isiCloudPermissionsEnabled)
|
||||
{
|
||||
entitlements.set ("com.apple.developer.icloud-container-identifiers",
|
||||
"<array>\n"
|
||||
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
|
||||
" </array>");
|
||||
entitlements.set ("com.apple.developer.icloud-services",
|
||||
"<array>\n"
|
||||
" <string>CloudDocuments</string>\n"
|
||||
" </array>");
|
||||
|
||||
entitlements.set ("com.apple.developer.icloud-services",
|
||||
"<array>\n"
|
||||
" <string>CloudDocuments</string>\n"
|
||||
" </array>");
|
||||
|
||||
entitlements.set ("com.apple.developer.ubiquity-container-identifiers",
|
||||
"<array>\n"
|
||||
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
|
||||
" </array>");
|
||||
}
|
||||
entitlements.set ("com.apple.developer.ubiquity-container-identifiers",
|
||||
"<array>\n"
|
||||
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
|
||||
" </array>");
|
||||
}
|
||||
|
||||
if (isPushNotificationsEnabled)
|
||||
|
|
|
|||
|
|
@ -612,12 +612,13 @@ public:
|
|||
|
||||
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.");
|
||||
|
||||
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"),
|
||||
"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.");
|
||||
|
|
@ -1323,7 +1324,7 @@ public:
|
|||
capabilities["Sandbox"] = type == Target::AudioUnitv3PlugIn || owner.isAppSandboxEnabled();
|
||||
capabilities["HardenedRuntime"] = owner.isHardenedRuntimeEnabled();
|
||||
|
||||
if (owner.iOS && owner.isiCloudPermissionsEnabled())
|
||||
if (owner.isiCloudPermissionsEnabled())
|
||||
capabilities["com.apple.iCloud"] = true;
|
||||
|
||||
StringArray capabilitiesStrings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue