Erik Christensen

    Erik Christensen

    3 years ago
    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.
    louiscad

    louiscad

    3 years ago
    Yes, you can use
    HostManager
    right from Gradle
    Erik Christensen

    Erik Christensen

    3 years ago
    Thanks - using HostManager.hostIsMac seems to work well enough.