- 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
367 lines
8.2 KiB
Smali
367 lines
8.2 KiB
Smali
.class public final Lcom/tapjoy/k;
|
|
.super Lcom/tapjoy/TJJSBridgeDelegate;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/tapjoy/TJAdUnit;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/tapjoy/TJJSBridgeDelegate;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final dismiss()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
iget-object v0, v0, Lcom/tapjoy/TJAdUnit;->b:Lcom/tapjoy/TJAdUnitActivity;
|
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->finish()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final fireContentReady()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
invoke-virtual {v0}, Lcom/tapjoy/TJAdUnit;->fireContentReady()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getContext()Landroid/content/Context;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
iget-object v1, v0, Lcom/tapjoy/TJAdUnit;->b:Lcom/tapjoy/TJAdUnitActivity;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v1
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, v0, Lcom/tapjoy/TJAdUnit;->e:Lcom/tapjoy/TJWebView;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getOrientation()Ljava/util/Map;
|
|
.locals 7
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/tapjoy/k;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 4
|
|
:cond_0
|
|
sget-object v2, Lcom/tapjoy/TJDeviceUtils;->INSTANCE:Lcom/tapjoy/TJDeviceUtils;
|
|
|
|
invoke-virtual {v2, v1}, Lcom/tapjoy/TJDeviceUtils;->getScreenWidth(Landroid/content/Context;)I
|
|
|
|
move-result v3
|
|
|
|
.line 5
|
|
invoke-virtual {v2, v1}, Lcom/tapjoy/TJDeviceUtils;->getScreenHeight(Landroid/content/Context;)I
|
|
|
|
move-result v4
|
|
|
|
.line 6
|
|
invoke-virtual {v2, v3, v4}, Lcom/tapjoy/TJDeviceUtils;->getOrientationString(II)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "orientation"
|
|
|
|
invoke-virtual {v0, v6, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 7
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "width"
|
|
|
|
invoke-virtual {v0, v6, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 8
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "height"
|
|
|
|
invoke-virtual {v0, v6, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 9
|
|
invoke-virtual {v2, v1, v3, v4}, Lcom/tapjoy/TJDeviceUtils;->getScreenRotation(Landroid/content/Context;II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "rotation"
|
|
|
|
invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getStatusBarHeight()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/tapjoy/k;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
sget-object v1, Lcom/tapjoy/TJDeviceUtils;->INSTANCE:Lcom/tapjoy/TJDeviceUtils;
|
|
|
|
invoke-virtual {v1, v0}, Lcom/tapjoy/TJDeviceUtils;->getStatusBarHeight(Landroid/content/Context;)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getTextZoom(Lcom/tapjoy/TJTaskHandler;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/tapjoy/f;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/tapjoy/f;-><init>(Lcom/tapjoy/k;Lcom/tapjoy/TJTaskHandler;)V
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getWebView()Landroid/webkit/WebView;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
iget-object v0, v0, Lcom/tapjoy/TJAdUnit;->e:Lcom/tapjoy/TJWebView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final setBackgroundColor(Ljava/lang/String;Lcom/tapjoy/TJTaskHandler;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/tapjoy/h;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Lcom/tapjoy/h;-><init>(Lcom/tapjoy/k;Ljava/lang/String;Lcom/tapjoy/TJTaskHandler;)V
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setCloseButtonClickable(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/tapjoy/j;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/tapjoy/j;-><init>(Lcom/tapjoy/k;Z)V
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setCloseButtonVisible(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/tapjoy/i;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/tapjoy/i;-><init>(Lcom/tapjoy/k;Z)V
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setOrientation(I)Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
iget-object v0, v0, Lcom/tapjoy/TJAdUnit;->b:Lcom/tapjoy/TJAdUnitActivity;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {v0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V
|
|
|
|
:cond_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final setTextZoom(F)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/tapjoy/g;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/tapjoy/g;-><init>(Lcom/tapjoy/k;F)V
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setupSdkBeacons(Lcom/tapjoy/internal/z0;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
iput-object p1, v0, Lcom/tapjoy/TJAdUnit;->k:Lcom/tapjoy/internal/z0;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
iget-boolean v0, v0, Lcom/tapjoy/TJAdUnit;->f:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
iget-object v0, p1, Lcom/tapjoy/internal/z0;->c:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p1, Lcom/tapjoy/internal/z0;->f:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 5
|
|
iput-boolean v0, p1, Lcom/tapjoy/internal/z0;->f:Z
|
|
|
|
.line 7
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
iget-object v1, p1, Lcom/tapjoy/internal/z0;->b:Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
|
|
|
|
.line 9
|
|
new-instance v1, Lcom/tapjoy/internal/x0;
|
|
|
|
invoke-direct {v1, p1, v0}, Lcom/tapjoy/internal/x0;-><init>(Lcom/tapjoy/internal/z0;Ljava/util/HashMap;)V
|
|
|
|
.line 15
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->start()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final shouldClose(Z)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
iget-object p1, p1, Lcom/tapjoy/TJAdUnit;->b:Lcom/tapjoy/TJAdUnitActivity;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Landroid/app/Activity;->finish()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final unsetOrientation()Z
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/k;->a:Lcom/tapjoy/TJAdUnit;
|
|
|
|
.line 1
|
|
iget-object v0, v0, Lcom/tapjoy/TJAdUnit;->b:Lcom/tapjoy/TJAdUnitActivity;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
.line 2
|
|
invoke-virtual {v0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|