mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
37 lines
951 B
Java
37 lines
951 B
Java
package io.sentry.util;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class Platform {
|
|
static boolean isAndroid;
|
|
static boolean isJavaNinePlus;
|
|
|
|
public static boolean isAndroid() {
|
|
return isAndroid;
|
|
}
|
|
|
|
public static boolean isJavaNinePlus() {
|
|
return isJavaNinePlus;
|
|
}
|
|
|
|
public static boolean isJvm() {
|
|
return !isAndroid;
|
|
}
|
|
|
|
static {
|
|
try {
|
|
isAndroid = "The Android Project".equals(System.getProperty("java.vendor"));
|
|
} catch (Throwable unused) {
|
|
isAndroid = false;
|
|
}
|
|
try {
|
|
String property = System.getProperty("java.specification.version");
|
|
if (property != null) {
|
|
isJavaNinePlus = Double.valueOf(property).doubleValue() >= 9.0d;
|
|
} else {
|
|
isJavaNinePlus = false;
|
|
}
|
|
} catch (Throwable unused2) {
|
|
isJavaNinePlus = false;
|
|
}
|
|
}
|
|
}
|