- 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
186 lines
4.3 KiB
Smali
186 lines
4.3 KiB
Smali
.class public Lcom/tapjoy/TJCurrencyParameters;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/content/Context;
|
|
|
|
.field public b:Ljava/lang/String;
|
|
|
|
.field public c:I
|
|
|
|
.field public d:Ljava/lang/String;
|
|
|
|
.field public e:I
|
|
|
|
.field public final f:Z
|
|
|
|
.field public final g:Ljava/util/HashMap;
|
|
|
|
.field public final h:Ljava/util/HashMap;
|
|
|
|
.field public final i:Ljava/util/ArrayList;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/tapjoy/TJCurrencyParameters;->b:Ljava/lang/String;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
iput v1, p0, Lcom/tapjoy/TJCurrencyParameters;->c:I
|
|
|
|
iput-object v0, p0, Lcom/tapjoy/TJCurrencyParameters;->d:Ljava/lang/String;
|
|
|
|
iput v1, p0, Lcom/tapjoy/TJCurrencyParameters;->e:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/tapjoy/TJCurrencyParameters;->f:Z
|
|
|
|
.line 7
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v1, p0, Lcom/tapjoy/TJCurrencyParameters;->g:Ljava/util/HashMap;
|
|
|
|
.line 8
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v1, p0, Lcom/tapjoy/TJCurrencyParameters;->h:Ljava/util/HashMap;
|
|
|
|
.line 9
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v1, p0, Lcom/tapjoy/TJCurrencyParameters;->i:Ljava/util/ArrayList;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/tapjoy/TJCurrencyParameters;->a:Landroid/content/Context;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/TJCurrencyParameters;->a:Landroid/content/Context;
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/tapjoy/TJCurrencyParameters;->a:Landroid/content/Context;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
.line 15
|
|
:cond_1
|
|
new-instance v1, Lcom/tapjoy/TJKeyValueStorage;
|
|
|
|
const-string v2, "tjcPrefrences"
|
|
|
|
invoke-direct {v1, p1, v2}, Lcom/tapjoy/TJKeyValueStorage;-><init>(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
const-string p1, "server_currency_ids"
|
|
|
|
.line 16
|
|
invoke-virtual {v1, p1}, Lcom/tapjoy/TJKeyValueStorage;->contains(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
const-string v2, "[]"
|
|
|
|
.line 17
|
|
invoke-virtual {v1, p1, v2}, Lcom/tapjoy/TJKeyValueStorage;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 20
|
|
:try_start_0
|
|
new-instance v2, Lorg/json/JSONArray;
|
|
|
|
invoke-direct {v2, p1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 21
|
|
:goto_0
|
|
invoke-virtual {v2}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result p1
|
|
|
|
if-ge v0, p1, :cond_2
|
|
|
|
.line 22
|
|
invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v3, "currency_id"
|
|
|
|
.line 23
|
|
invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "currency_type"
|
|
|
|
.line 24
|
|
invoke-virtual {p1, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v4, "self_managed"
|
|
|
|
invoke-virtual {p1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
iput-boolean p1, p0, Lcom/tapjoy/TJCurrencyParameters;->f:Z
|
|
|
|
.line 25
|
|
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const-string p1, "CurrencyParams"
|
|
|
|
const-string v0, "Failed to parse currency id list"
|
|
|
|
.line 28
|
|
invoke-static {p1, v0}, Lcom/tapjoy/TapjoyLog;->e(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 30
|
|
:cond_2
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
iput-object v1, p0, Lcom/tapjoy/TJCurrencyParameters;->i:Ljava/util/ArrayList;
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|