Closed DellaBitta closed 1 year ago
We spoke offline. The Polling mechanism for the targetSDK values requires that TargetIosSDK and TargetTvosSDK be class properties. Condensing the TargetSDK logic into a single method would probably create even more code than reduce it, as it would simply replicate the code currently in the properties but in a new location with switch/case statements, etc.
So merging this as is for now!
Updates to IOSResolver.cc to handle reading of
UnityEditor.PlayerSettings.tvOS.targetOSVersionString
for when active build targets are tvOS. Previously theUnityEditor.PlayerSettings.iOS.targetOSVersionString
was used.This work involved:
TargetSDK
intoIosTargetSDK
andtvOSTargetSDK
.TargetSDKVersion
toTargetIosSDKVersionString
to better differentiate it fromTargetIosSDKVersionNum
, and did likewise for the new tvOS counterparts.PlayerSettings.tvOS.targetOSVersionString
akin to what we do for the PlayerSettings version value on iOS.platform target :tvos
instead ofplatform target :ios
and use the version string fromPlayerSettings.tvOS
instead ofPlayerSettings.iOS
.