Class AndroidSupport
java.lang.Object
org.codehaus.groovy.reflection.android.AndroidSupport
Detects whether the runtime is Android's ART (or its Dalvik predecessor),
where classes cannot be defined at run time and parts of the JDK class
library are absent.
The VM name is the primary signal: Android reports java.vm.name as
"Dalvik" on every release to date. A JVM merely carrying Android
classes on its class path, as Robolectric tests do, is not Android and keeps
the JVM behaviour. The framework's Activity class is consulted only
when the property cannot be read (GROOVY-12384).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AndroidSupport
public AndroidSupport()
-
-
Method Details
-
isRunningAndroid
public static boolean isRunningAndroid()
-