Platform dependent flags required in Using/Namespace definition?

vUnity 2017.3

Developing for both iOS/Android and I am using the following in one of my scripts:

using UnityEngine;
using UnityEngine.iOS; <----
using Whatever;

Does this need to be contained within the platform dependent flags when I build to Android?

using UnityEngine;
#if UNITY_IOS
using UnityEngine.iOS;
#endif
using Whatever;

Thanks in advance!

Yes, as well as the code using it. Alternatively, you you fully quality the reference isolating your iOS dependent code to a fewer number of spots in your code. So instead of:

#if UNITY_IOS
using UnityEngine.iOS;
#endif
...
#if UNITY_IOS
ReportGeneration(Device.generation);
#endif

You could have:

#if UNITY_IOS
ReportGeneration(UnityEngine.iOS.Device.generation);
#endif