https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

Erik Christensen

09/11/2019, 12:51 PM
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

louiscad

09/11/2019, 1:11 PM
Yes, you can use
HostManager
right from Gradle
e

Erik Christensen

09/12/2019, 11:51 AM
Thanks - using HostManager.hostIsMac seems to work well enough.