1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Projucer: Allow setting NSLocalNetworkUsageDescription for Xcode exporter

This commit is contained in:
reuk 2025-06-03 15:43:46 +01:00
parent 6cd9566868
commit a2863e636f
No known key found for this signature in database
4 changed files with 25 additions and 0 deletions

View file

@ -228,6 +228,9 @@ public:
sendAppleEventsPermissionNeededValue (settings, Ids::sendAppleEventsPermissionNeeded, getUndoManager()),
sendAppleEventsPermissionTextValue (settings, Ids::sendAppleEventsPermissionText, getUndoManager(),
"This app requires the ability to send Apple events to function correctly."),
localNetworkPermissionNeededValue (settings, Ids::localNetworkPermissionNeeded, getUndoManager()),
localNetworkPermissionTextValue (settings, Ids::localNetworkPermissionText, getUndoManager(),
"This app requires access to the local network to function correctly."),
uiFileSharingEnabledValue (settings, Ids::UIFileSharingEnabled, getUndoManager()),
uiSupportsDocumentBrowserValue (settings, Ids::UISupportsDocumentBrowser, getUndoManager()),
uiStatusBarHiddenValue (settings, Ids::UIStatusBarHidden, getUndoManager()),
@ -365,6 +368,9 @@ public:
bool isSendAppleEventsPermissionEnabled() const { return sendAppleEventsPermissionNeededValue.get(); }
String getSendAppleEventsPermissionTextString() const { return sendAppleEventsPermissionTextValue.get(); }
bool isLocalNetworkPermissionEnabled() const { return localNetworkPermissionNeededValue.get(); }
String getLocalNetworkPermissionTextString() const { return localNetworkPermissionTextValue.get(); }
bool isInAppPurchasesEnabled() const { return iosInAppPurchasesValue.get(); }
bool isContentSharingEnabled() const { return iosContentSharingValue.get(); }
bool isBackgroundAudioEnabled() const { return iosBackgroundAudioValue.get(); }
@ -727,6 +733,14 @@ public:
"Camera Access Text", 1024, false),
"A short description of why your app requires camera access.");
props.add (new ChoicePropertyComponent (localNetworkPermissionNeededValue, "Local Network Access"),
"Enable this to allow your app to use the local network. "
"The user of your app will be prompted to grant local network access permissions.");
props.add (new TextPropertyComponentWithEnablement (localNetworkPermissionTextValue, localNetworkPermissionNeededValue,
"Local Network Access Text", 1024, false),
"A short description of why your app requires local network access.");
props.add (new ChoicePropertyComponent (bluetoothPermissionNeededValue, "Bluetooth Access"),
"Enable this to allow your app to use Bluetooth on iOS 13.0 and above, and macOS 11.0 and above. "
"The user of your app will be prompted to grant Bluetooth access permissions.");
@ -2049,6 +2063,8 @@ public:
options.bluetoothPermissionText = owner.getBluetoothPermissionTextString();
options.sendAppleEventsPermissionEnabled = owner.isSendAppleEventsPermissionEnabled();
options.sendAppleEventsPermissionText = owner.getSendAppleEventsPermissionTextString();
options.localNetworkPermissionEnabled = owner.isLocalNetworkPermissionEnabled();
options.localNetworkPermissionText = owner.getLocalNetworkPermissionTextString();
options.shouldAddStoryboardToProject = owner.shouldAddStoryboardToProject();
options.iconFile = owner.iconFile;
options.projectName = owner.projectName;
@ -3953,6 +3969,7 @@ private:
cameraPermissionNeededValue, cameraPermissionTextValue,
bluetoothPermissionNeededValue, bluetoothPermissionTextValue,
sendAppleEventsPermissionNeededValue, sendAppleEventsPermissionTextValue,
localNetworkPermissionNeededValue, localNetworkPermissionTextValue,
uiFileSharingEnabledValue, uiSupportsDocumentBrowserValue, uiStatusBarHiddenValue, uiRequiresFullScreenValue, documentExtensionsValue, iosInAppPurchasesValue,
iosContentSharingValue, iosBackgroundAudioValue, iosBackgroundBleValue, iosPushNotificationsValue, iosAppGroupsValue, iCloudPermissionsValue,
networkingMulticastValue, iosDevelopmentTeamIDValue, iosAppGroupsIDValue, keepCustomXcodeSchemesValue, useHeaderMapValue, customLaunchStoryboardValue,

View file

@ -214,6 +214,8 @@ namespace Ids
DECLARE_ID (cameraPermissionText);
DECLARE_ID (sendAppleEventsPermissionNeeded);
DECLARE_ID (sendAppleEventsPermissionText);
DECLARE_ID (localNetworkPermissionNeeded);
DECLARE_ID (localNetworkPermissionText);
DECLARE_ID (androidJavaLibs);
DECLARE_ID (androidAdditionalJavaFolders);
DECLARE_ID (androidAdditionalResourceFolders);