- 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
265 lines
6.7 KiB
Smali
265 lines
6.7 KiB
Smali
.class public final Lcom/tapjoy/h0;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic a:Ljava/util/Map;
|
|
|
|
.field public final synthetic b:Lcom/tapjoy/TJAwardCurrencyListener;
|
|
|
|
.field public final synthetic c:Lcom/tapjoy/TJCurrency;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/tapjoy/TJCurrency;Ljava/util/Map;Lcom/tapjoy/TJAwardCurrencyListener;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/h0;->c:Lcom/tapjoy/TJCurrency;
|
|
|
|
iput-object p2, p0, Lcom/tapjoy/h0;->a:Ljava/util/Map;
|
|
|
|
iput-object p3, p0, Lcom/tapjoy/h0;->b:Lcom/tapjoy/TJAwardCurrencyListener;
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final run()V
|
|
.locals 7
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-static {}, Lcom/tapjoy/TapjoyConnectCore;->getInstance()Lcom/tapjoy/TapjoyConnectCore;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/tapjoy/TapjoyConnectCore;->getHostURL()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "points/award?"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/tapjoy/h0;->a:Ljava/util/Map;
|
|
|
|
invoke-static {v0, v1}, Lcom/tapjoy/internal/c3;->a(Ljava/lang/String;Ljava/util/Map;)Lcom/tapjoy/internal/b3;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/tapjoy/h0;->c:Lcom/tapjoy/TJCurrency;
|
|
|
|
iget-object v2, p0, Lcom/tapjoy/h0;->b:Lcom/tapjoy/TJAwardCurrencyListener;
|
|
|
|
.line 3
|
|
monitor-enter v1
|
|
|
|
:try_start_0
|
|
const-string v3, "Failed to award currency"
|
|
|
|
.line 7
|
|
iget-object v0, v0, Lcom/tapjoy/internal/b3;->c:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 9
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->buildDocument(Ljava/lang/String;)Lorg/w3c/dom/Document;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const-string v4, "Success"
|
|
|
|
.line 12
|
|
invoke-interface {v0, v4}, Lorg/w3c/dom/Document;->getElementsByTagName(Ljava/lang/String;)Lorg/w3c/dom/NodeList;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Lcom/tapjoy/TapjoyUtil;->getNodeTrimValue(Lorg/w3c/dom/NodeList;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
const-string v5, "true"
|
|
|
|
.line 15
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
const-string v4, "TapPoints"
|
|
|
|
.line 18
|
|
invoke-interface {v0, v4}, Lorg/w3c/dom/Document;->getElementsByTagName(Ljava/lang/String;)Lorg/w3c/dom/NodeList;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4}, Lcom/tapjoy/TapjoyUtil;->getNodeTrimValue(Lorg/w3c/dom/NodeList;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "CurrencyName"
|
|
|
|
.line 19
|
|
invoke-interface {v0, v5}, Lorg/w3c/dom/Document;->getElementsByTagName(Ljava/lang/String;)Lorg/w3c/dom/NodeList;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->getNodeTrimValue(Lorg/w3c/dom/NodeList;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 23
|
|
invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
.line 26
|
|
invoke-virtual {v1, v3}, Lcom/tapjoy/TJCurrency;->saveCurrencyBalance(I)V
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 30
|
|
invoke-interface {v2, v0, v3}, Lcom/tapjoy/TJAwardCurrencyListener;->onAwardCurrencyResponse(Ljava/lang/String;I)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_3
|
|
|
|
.line 31
|
|
:cond_0
|
|
:goto_0
|
|
monitor-exit v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
:try_start_1
|
|
const-string v0, "TJCurrency"
|
|
|
|
.line 36
|
|
new-instance v4, Lcom/tapjoy/TapjoyErrorMessage;
|
|
|
|
sget-object v5, Lcom/tapjoy/TapjoyErrorMessage$ErrorType;->SERVER_ERROR:Lcom/tapjoy/TapjoyErrorMessage$ErrorType;
|
|
|
|
const-string v6, "awardCurrency response is invalid -- missing tags."
|
|
|
|
invoke-direct {v4, v5, v6}, Lcom/tapjoy/TapjoyErrorMessage;-><init>(Lcom/tapjoy/TapjoyErrorMessage$ErrorType;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0, v4}, Lcom/tapjoy/TapjoyLog;->e(Ljava/lang/String;Lcom/tapjoy/TapjoyErrorMessage;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-eqz v4, :cond_3
|
|
|
|
const-string v5, "false"
|
|
|
|
.line 38
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
const-string v3, "Message"
|
|
|
|
.line 40
|
|
invoke-interface {v0, v3}, Lorg/w3c/dom/Document;->getElementsByTagName(Ljava/lang/String;)Lorg/w3c/dom/NodeList;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->getNodeTrimValue(Lorg/w3c/dom/NodeList;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v0, "TJCurrency"
|
|
|
|
.line 41
|
|
invoke-static {v0, v3}, Lcom/tapjoy/TapjoyLog;->i(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const-string v0, "TJCurrency"
|
|
|
|
.line 43
|
|
new-instance v4, Lcom/tapjoy/TapjoyErrorMessage;
|
|
|
|
sget-object v5, Lcom/tapjoy/TapjoyErrorMessage$ErrorType;->SERVER_ERROR:Lcom/tapjoy/TapjoyErrorMessage$ErrorType;
|
|
|
|
const-string v6, "awardCurrency response is invalid -- missing <Success> tag."
|
|
|
|
invoke-direct {v4, v5, v6}, Lcom/tapjoy/TapjoyErrorMessage;-><init>(Lcom/tapjoy/TapjoyErrorMessage$ErrorType;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0, v4}, Lcom/tapjoy/TapjoyLog;->e(Ljava/lang/String;Lcom/tapjoy/TapjoyErrorMessage;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const-string v0, "TJCurrency"
|
|
|
|
.line 47
|
|
new-instance v4, Lcom/tapjoy/TapjoyErrorMessage;
|
|
|
|
sget-object v5, Lcom/tapjoy/TapjoyErrorMessage$ErrorType;->SERVER_ERROR:Lcom/tapjoy/TapjoyErrorMessage$ErrorType;
|
|
|
|
const-string v6, "awardCurrency response is NULL"
|
|
|
|
invoke-direct {v4, v5, v6}, Lcom/tapjoy/TapjoyErrorMessage;-><init>(Lcom/tapjoy/TapjoyErrorMessage$ErrorType;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0, v4}, Lcom/tapjoy/TapjoyLog;->e(Ljava/lang/String;Lcom/tapjoy/TapjoyErrorMessage;)V
|
|
|
|
:cond_5
|
|
:goto_1
|
|
if-eqz v2, :cond_6
|
|
|
|
.line 52
|
|
invoke-interface {v2, v3}, Lcom/tapjoy/TJAwardCurrencyListener;->onAwardCurrencyResponseFailure(Ljava/lang/String;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 53
|
|
:cond_6
|
|
monitor-exit v1
|
|
|
|
:goto_2
|
|
return-void
|
|
|
|
.line 54
|
|
:goto_3
|
|
monitor-exit v1
|
|
|
|
throw v0
|
|
.end method
|