<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/958282153cd82739a8200e17558a0c21aad22594">https://github.com/macports/macports-ports/commit/958282153cd82739a8200e17558a0c21aad22594</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 958282153cd82739a8200e17558a0c21aad22594
</span>Author: Davide Gerhard <rainbow@irh.it>
AuthorDate: Thu Sep 19 08:42:30 2019 +0200
<span style='display:block; white-space:pre;color:#404040;'> app-1.0.tcl: add app.privacy_calendars
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Allows ports to enable calendars access.
</span>---
_resources/port1.0/group/app-1.0.tcl | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/app-1.0.tcl b/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 89cead6..1166401 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/app-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -161,6 +161,18 @@ default app.privacy_camera ""
</span> options app.privacy_contacts
default app.privacy_contacts ""
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# app.privacy_calendars: whether the app needs calendars access
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# The default is empty and therefore disabled. To enable write a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# message that tells the user why the app is requesting access to the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# user’s calendar data.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Info.plist key NSCalendarsUsageDescription.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options app.privacy_calendars
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default app.privacy_calendars ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # app.hide_dock_icon: hide the Dock icon
#
# SDKs like SDL and Qt use the necessary macOS APIs to implement proper Dock
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -321,6 +333,10 @@ platform macosx {
</span> puts ${fp} " <key>NSContactsUsageDescription</key>
<string>${app.privacy_contacts}</string>"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${app.privacy_calendars} != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${fp} " <key>NSCalendarsUsageDescription</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>${app.privacy_calendars}</string>"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> if {[tbool app.hide_dock_icon]} {
puts ${fp} " <key>LSUIElement</key>
<true/>"
</pre><pre style='margin:0'>
</pre>