- 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
138 lines
2.8 KiB
Smali
138 lines
2.8 KiB
Smali
.class public final Lokhttp3/CacheControl$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/CacheControl;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public immutable:Z
|
|
|
|
.field public maxAgeSeconds:I
|
|
|
|
.field public maxStaleSeconds:I
|
|
|
|
.field public minFreshSeconds:I
|
|
|
|
.field public noCache:Z
|
|
|
|
.field public noStore:Z
|
|
|
|
.field public noTransform:Z
|
|
|
|
.field public onlyIfCached:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 293
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Lokhttp3/CacheControl$Builder;->maxAgeSeconds:I
|
|
|
|
iput v0, p0, Lokhttp3/CacheControl$Builder;->maxStaleSeconds:I
|
|
|
|
iput v0, p0, Lokhttp3/CacheControl$Builder;->minFreshSeconds:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public build()Lokhttp3/CacheControl;
|
|
.locals 1
|
|
|
|
.line 385
|
|
new-instance v0, Lokhttp3/CacheControl;
|
|
|
|
invoke-direct {v0, p0}, Lokhttp3/CacheControl;-><init>(Lokhttp3/CacheControl$Builder;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public maxStale(ILjava/util/concurrent/TimeUnit;)Lokhttp3/CacheControl$Builder;
|
|
.locals 2
|
|
|
|
if-ltz p1, :cond_1
|
|
|
|
int-to-long v0, p1
|
|
|
|
.line 340
|
|
invoke-virtual {p2, v0, v1}, Ljava/util/concurrent/TimeUnit;->toSeconds(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
const-wide/32 v0, 0x7fffffff
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const p1, 0x7fffffff
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
long-to-int p1, p1
|
|
|
|
:goto_0
|
|
iput p1, p0, Lokhttp3/CacheControl$Builder;->maxStaleSeconds:I
|
|
|
|
return-object p0
|
|
|
|
.line 339
|
|
:cond_1
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "maxStale < 0: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public noCache()Lokhttp3/CacheControl$Builder;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lokhttp3/CacheControl$Builder;->noCache:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public onlyIfCached()Lokhttp3/CacheControl$Builder;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lokhttp3/CacheControl$Builder;->onlyIfCached:Z
|
|
|
|
return-object p0
|
|
.end method
|