Browse Source

Projucer: Add push notifications entitlement to audio plug-in projects if exporter setting is enabled

tags/2021-05-28
ed 6 years ago
parent
commit
1c3128fc50
1 changed files with 25 additions and 27 deletions
  1. +25
    -27
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h

+ 25
- 27
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h View File

@@ -3117,18 +3117,34 @@ private:
{
StringPairArray entitlements;
if (project.isAudioPluginProject())
if (isiOS())
{
if (isiOS() && project.shouldEnableIAA())
if (project.isAudioPluginProject() && project.shouldEnableIAA())
entitlements.set ("inter-app-audio", "<true/>");
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.ubiquity-container-identifiers",
"<array>\n"
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
" </array>");
}
}
else
{
if (isPushNotificationsEnabled())
entitlements.set (isiOS() ? "aps-environment"
: "com.apple.developer.aps-environment",
"<string>development</string>");
}
if (isPushNotificationsEnabled())
entitlements.set (isiOS() ? "aps-environment"
: "com.apple.developer.aps-environment",
"<string>development</string>");
if (isAppGroupsEnabled())
{
@@ -3164,24 +3180,6 @@ private:
entitlements.set (option, "<true/>");
}
if (isiOS() && 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.ubiquity-container-identifiers",
"<array>\n"
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
" </array>");
}
return entitlements;
}


Loading…
Cancel
Save