emo / me.eater.emo / EmoEnvironment

EmoEnvironment

class EmoEnvironment

Holds checks and data about the current environment, which is used for selecting the correct libraries and natives

Constructors

<init>

EmoEnvironment()

Holds checks and data about the current environment, which is used for selecting the correct libraries and natives

Properties

osArch

val osArch: String

Normalized OS architecture for this environment

osName

val osName: String

Normalized OS name for this environment

Functions

passesOSCheck

fun passesOSCheck(check: OS): Boolean

Check if this environment passes the given OS check, returns true on pass, false on fail

passesRule

fun passesRule(rule: Rule): Boolean

Check if this environment passes the given rule, returns true on pass, false on fail

passesRules

fun passesRules(rules: Iterable<Rule>): Boolean

Check if this environment passes the given rules, returns true on pass, false on fail

selectNative

fun selectNative(library: Library): Artifact?

Select if there is a native artifact that we should select in this library, Returns the native artifact if found