Skip to content

Commit

Permalink
Projucer: Add push notifications entitlement to audio plug-in project…
Browse files Browse the repository at this point in the history
…s if exporter setting is enabled
  • Loading branch information
ed95 committed Feb 11, 2020
1 parent c853277 commit 1c3128f
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -3117,18 +3117,34 @@ class XcodeProjectExporter : public ProjectExporter
{
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())
{
Expand Down Expand Up @@ -3164,24 +3180,6 @@ class XcodeProjectExporter : public ProjectExporter
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;
}

Expand Down

0 comments on commit 1c3128f

Please sign in to comment.