In Gradle, how can I determine if a particular tar...
# multiplatform
e
In Gradle, how can I determine if a particular target is disabled in a multiplatform project? For example, if I'm compiling on Windows, iOS targets won't be available. So I want to detect and avoid configuring an iOS-specific task that calls xcrun in this situation.
l
Yes, you can use
HostManager
right from Gradle
e
Thanks - using HostManager.hostIsMac seems to work well enough.