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

Commit 84a20ac

Browse files
Merge pull request #1782 from livecode/merge_release-8.1.7_04.10.2017
Merge release 8.1.7 04.10.2017
2 parents cd47e55 + 4bb6a17 commit 84a20ac

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Toolset/palettes/standalone settings/revstandalonesettingsiosbehavior.livecodescript

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,24 @@ command enableDeviceSpecificSettings pDevices
360360
end enableDeviceSpecificSettings
361361

362362
on storeSetting pName, pValue
363+
checkSettingsCompatible pName, pValue
363364
setSetting "ios," & pName, pValue
364365
end storeSetting
365366

367+
on checkSettingsCompatible pName, pValue
368+
if pName is "minimum version" and pValue > 10.3 then
369+
if getSetting("ios,32-bit only") is true then
370+
answer error "32-bit only apps are not supported on iOS 11.0 and above"
371+
end if
372+
end if
373+
374+
if pName is "32-bit only" and pValue is true then
375+
if getSetting("ios,minimum version") > 10.3 then
376+
answer error "32-bit only apps are not supported on iOS 11.0 and above"
377+
end if
378+
end if
379+
end checkSettingsCompatible
380+
366381
function fetchSetting pName
367382
return getSetting("ios," & pName)
368383
end fetchSetting

0 commit comments

Comments
 (0)