apkfuckery/com.discord/smali/androidx/core/os/BuildCompat.smali
2019-02-04 21:29:01 +01:00

160 lines
2.5 KiB
Smali

.class public Landroidx/core/os/BuildCompat;
.super Ljava/lang/Object;
.source "BuildCompat.java"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static isAtLeastN()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-lt v0, v1, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public static isAtLeastNMR1()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x19
if-lt v0, v1, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public static isAtLeastO()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1a
if-lt v0, v1, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public static isAtLeastOMR1()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1b
if-lt v0, v1, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public static isAtLeastP()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1c
if-lt v0, v1, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public static isAtLeastQ()Z
.locals 4
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
if-ne v0, v1, :cond_0
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
invoke-virtual {v0, v2}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v3, 0x51
if-lt v0, v3, :cond_0
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
invoke-virtual {v0, v2}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v3, 0x5a
if-gt v0, v3, :cond_0
return v1
:cond_0
return v2
.end method