Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1120220

Browse files
committed
Ensure HealthKit related plist entries are included only when necessary
1 parent 2009e05 commit 1120220

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

docs/notes/bugfix-21862.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure HealthKit related plist entries are included only when necessary

engine/rsrc/mobile-device-template.plist

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@
131131
<string>This application requires access to Photo Library</string>
132132
<key>NSPhotoLibraryAddUsageDescription</key>
133133
<string>This application requires access to Photo Library</string>
134-
<key>NSHealthShareUsageDescription</key>
135-
<string>This application requires access to read the user's health data</string>
136-
<key>NSHealthUpdateUsageDescription</key>
137-
<string>This application requires access to update the user's health data</string>
134+
${HEALTHKIT}
138135
<key>LSApplicationQueriesSchemes</key>
139136
<array>
140137
${APP_URL_WHITELIST}

engine/rsrc/mobile-template.plist

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@
9494
<string>This application requires access to Photo Library</string>
9595
<key>NSPhotoLibraryAddUsageDescription</key>
9696
<string>This application requires access to Photo Library</string>
97-
<key>NSHealthShareUsageDescription</key>
98-
<string>This application requires access to read the user's health data</string>
99-
<key>NSHealthUpdateUsageDescription</key>
100-
<string>This application requires access to update the user's health data</string>
97+
${HEALTHKIT}
10198
</dict>
10299
</plist>

ide-support/revsaveasiosstandalone.livecodescript

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,19 @@ private command revCreateMobilePlist pSettings, pAppBundle, pTarget, pFonts, pPl
15871587

15881588
----------
15891589

1590+
local tHealthKit
1591+
if pSettings["externals"] contains "mergHK" then
1592+
put "<key>NSHealthShareUsageDescription</key>" & CR & \
1593+
"<string>This application requires access to read the user's health data</string>" & CR & \
1594+
"<key>NSHealthUpdateUsageDescription</key>" & CR & \
1595+
"<string>This application requires access to update the user's health data</string>" \
1596+
into tHealthKit
1597+
else
1598+
put empty into tHealthKit
1599+
end if
1600+
1601+
----------
1602+
15901603
if pPlist is empty then
15911604
put url ("binfile:" & tTemplateFile) into pPlist
15921605
end if
@@ -1602,6 +1615,7 @@ private command revCreateMobilePlist pSettings, pAppBundle, pTarget, pFonts, pPl
16021615
replace "${MINIMUM_OS_SUPPORT}" with "<string>" & tMinimumOSByArch["i386"] & "</string>" in pPlist
16031616
replace "${CUSTOM_FONTS}" with tCustomFonts in pPlist
16041617
replace "${DISABLE_ATS}" with tDisableATS in pPlist
1618+
replace "${HEALTHKIT}" with tHealthKit in pPlist
16051619

16061620
-- PM-2018-01-15: [[Bug 20852]] Get info about Xcode/SDK versions
16071621
if pTarget is "Device" then

0 commit comments

Comments
 (0)