Files
rr3-apk/smali_classes4/com/singular/sdk/internal/SingularLog.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

330 lines
6.6 KiB
Smali

.class public Lcom/singular/sdk/internal/SingularLog;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static ENABLE_LOGGING:Z = false
.field public static LOG_LEVEL:I = 0x6
# instance fields
.field public final TAG:Ljava/lang/String;
.field public final tag:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 1
.line 36
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "Singular"
iput-object v0, p0, Lcom/singular/sdk/internal/SingularLog;->TAG:Ljava/lang/String;
iput-object p1, p0, Lcom/singular/sdk/internal/SingularLog;->tag:Ljava/lang/String;
return-void
.end method
.method public static getLogger(Ljava/lang/String;)Lcom/singular/sdk/internal/SingularLog;
.locals 1
.line 41
new-instance v0, Lcom/singular/sdk/internal/SingularLog;
invoke-direct {v0, p0}, Lcom/singular/sdk/internal/SingularLog;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public static getThreadInfo()Ljava/lang/String;
.locals 2
.line 97
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
.line 99
invoke-virtual {v0}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "%s"
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
# virtual methods
.method public debug(Ljava/lang/String;)I
.locals 1
const/4 v0, 0x3
.line 69
invoke-virtual {p0, v0}, Lcom/singular/sdk/internal/SingularLog;->shouldLog(I)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "Singular"
invoke-virtual {p0, p1}, Lcom/singular/sdk/internal/SingularLog;->text(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
move-result p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public varargs debug(Ljava/lang/String;[Ljava/lang/Object;)I
.locals 1
const/4 v0, 0x3
.line 73
invoke-virtual {p0, v0}, Lcom/singular/sdk/internal/SingularLog;->shouldLog(I)Z
move-result v0
if-eqz v0, :cond_0
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/singular/sdk/internal/SingularLog;->text(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string p2, "Singular"
invoke-static {p2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
move-result p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public error(Ljava/lang/String;)I
.locals 1
const/4 v0, 0x6
.line 85
invoke-virtual {p0, v0}, Lcom/singular/sdk/internal/SingularLog;->shouldLog(I)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "Singular"
invoke-virtual {p0, p1}, Lcom/singular/sdk/internal/SingularLog;->text(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
move-result p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public error(Ljava/lang/String;Ljava/lang/Throwable;)I
.locals 1
const/4 v0, 0x6
.line 89
invoke-virtual {p0, v0}, Lcom/singular/sdk/internal/SingularLog;->shouldLog(I)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "Singular"
invoke-virtual {p0, p1}, Lcom/singular/sdk/internal/SingularLog;->text(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
move-result p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public varargs error(Ljava/lang/String;[Ljava/lang/Object;)I
.locals 1
const/4 v0, 0x6
.line 93
invoke-virtual {p0, v0}, Lcom/singular/sdk/internal/SingularLog;->shouldLog(I)Z
move-result v0
if-eqz v0, :cond_0
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/singular/sdk/internal/SingularLog;->text(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string p2, "Singular"
invoke-static {p2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
move-result p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public info(Ljava/lang/String;)I
.locals 1
const/4 v0, 0x4
.line 77
invoke-virtual {p0, v0}, Lcom/singular/sdk/internal/SingularLog;->shouldLog(I)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "Singular"
invoke-virtual {p0, p1}, Lcom/singular/sdk/internal/SingularLog;->text(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
move-result p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public isDebugEnabled()Z
.locals 1
const/4 v0, 0x3
.line 65
invoke-virtual {p0, v0}, Lcom/singular/sdk/internal/SingularLog;->shouldLog(I)Z
move-result v0
return v0
.end method
.method public shouldLog(I)Z
.locals 1
sget-boolean v0, Lcom/singular/sdk/internal/SingularLog;->ENABLE_LOGGING:Z
if-eqz v0, :cond_0
sget v0, Lcom/singular/sdk/internal/SingularLog;->LOG_LEVEL:I
if-gt v0, p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public text(Ljava/lang/String;)Ljava/lang/String;
.locals 2
iget-object v0, p0, Lcom/singular/sdk/internal/SingularLog;->tag:Ljava/lang/String;
.line 61
invoke-static {}, Lcom/singular/sdk/internal/SingularLog;->getThreadInfo()Ljava/lang/String;
move-result-object v1
filled-new-array {v0, v1, p1}, [Ljava/lang/Object;
move-result-object p1
const-string v0, "%s [%s] - %s"
invoke-static {v0, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method