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
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,82 @@
.class Lcom/unity3d/services/ads/api/AdUnit$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/AdUnit;->setViews(Lorg/json/JSONArray;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$views:Lorg/json/JSONArray;
# direct methods
.method public constructor <init>(Lorg/json/JSONArray;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/AdUnit$1;->val$views:Lorg/json/JSONArray;
.line 167
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 170
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
if-eqz v0, :cond_0
.line 172
:try_start_0
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/ads/api/AdUnit$1;->val$views:Lorg/json/JSONArray;
invoke-static {v1}, Lcom/unity3d/services/ads/api/AdUnit;->access$000(Lorg/json/JSONArray;)[Ljava/lang/String;
move-result-object v1
invoke-interface {v0, v1}, Lcom/unity3d/services/ads/adunit/IAdUnitActivity;->setViews([Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
const-string v1, "Corrupted viewlist"
.line 174
invoke-static {v1, v0}, Lcom/unity3d/services/core/log/DeviceLog;->exception(Ljava/lang/String;Ljava/lang/Exception;)V
:cond_0
:goto_0
return-void
.end method

View File

@@ -0,0 +1,68 @@
.class Lcom/unity3d/services/ads/api/AdUnit$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/AdUnit;->setOrientation(Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$orientation:Ljava/lang/Integer;
# direct methods
.method public constructor <init>(Ljava/lang/Integer;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/AdUnit$2;->val$orientation:Ljava/lang/Integer;
.line 203
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 206
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
if-eqz v0, :cond_0
.line 207
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/ads/api/AdUnit$2;->val$orientation:Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-interface {v0, v1}, Lcom/unity3d/services/ads/adunit/IAdUnitActivity;->setOrientation(I)V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,68 @@
.class Lcom/unity3d/services/ads/api/AdUnit$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/AdUnit;->setKeepScreenOn(Ljava/lang/Boolean;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$screenOn:Ljava/lang/Boolean;
# direct methods
.method public constructor <init>(Ljava/lang/Boolean;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/AdUnit$3;->val$screenOn:Ljava/lang/Boolean;
.line 233
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 236
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
if-eqz v0, :cond_0
.line 237
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/ads/api/AdUnit$3;->val$screenOn:Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
invoke-interface {v0, v1}, Lcom/unity3d/services/ads/adunit/IAdUnitActivity;->setKeepScreenOn(Z)Z
:cond_0
return-void
.end method

View File

@@ -0,0 +1,68 @@
.class Lcom/unity3d/services/ads/api/AdUnit$4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/AdUnit;->setSystemUiVisibility(Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$systemUiVisibility:Ljava/lang/Integer;
# direct methods
.method public constructor <init>(Ljava/lang/Integer;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/AdUnit$4;->val$systemUiVisibility:Ljava/lang/Integer;
.line 252
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 255
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
if-eqz v0, :cond_0
.line 256
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/ads/api/AdUnit$4;->val$systemUiVisibility:Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-interface {v0, v1}, Lcom/unity3d/services/ads/adunit/IAdUnitActivity;->setSystemUiVisibility(I)Z
:cond_0
return-void
.end method

View File

@@ -0,0 +1,104 @@
.class Lcom/unity3d/services/ads/api/AdUnit$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/AdUnit;->setViewFrame(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$height:Ljava/lang/Integer;
.field final synthetic val$view:Ljava/lang/String;
.field final synthetic val$width:Ljava/lang/Integer;
.field final synthetic val$x:Ljava/lang/Integer;
.field final synthetic val$y:Ljava/lang/Integer;
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$view:Ljava/lang/String;
iput-object p2, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$x:Ljava/lang/Integer;
iput-object p3, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$y:Ljava/lang/Integer;
iput-object p4, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$width:Ljava/lang/Integer;
iput-object p5, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$height:Ljava/lang/Integer;
.line 289
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 7
.line 292
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
if-eqz v0, :cond_0
.line 293
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v1
iget-object v2, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$view:Ljava/lang/String;
iget-object v0, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$x:Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v3
iget-object v0, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$y:Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v4
iget-object v0, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$width:Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v5
iget-object v0, p0, Lcom/unity3d/services/ads/api/AdUnit$5;->val$height:Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v6
invoke-interface/range {v1 .. v6}, Lcom/unity3d/services/ads/adunit/IAdUnitActivity;->setViewFrame(Ljava/lang/String;IIII)V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,68 @@
.class Lcom/unity3d/services/ads/api/AdUnit$6;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/AdUnit;->setLayoutInDisplayCutoutMode(Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$displayCutoutMode:Ljava/lang/Integer;
# direct methods
.method public constructor <init>(Ljava/lang/Integer;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/AdUnit$6;->val$displayCutoutMode:Ljava/lang/Integer;
.line 573
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 576
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
if-eqz v0, :cond_0
.line 577
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/ads/api/AdUnit$6;->val$displayCutoutMode:Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-interface {v0, v1}, Lcom/unity3d/services/ads/adunit/IAdUnitActivity;->setLayoutInDisplayCutoutMode(I)V
:cond_0
return-void
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,181 @@
.class public Lcom/unity3d/services/ads/api/GMAScar;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final gmaScarAdapterBridge:Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 14
invoke-static {}, Lcom/unity3d/services/ads/gmascar/GMA;->getInstance()Lcom/unity3d/services/ads/gmascar/GMA;
move-result-object v0
invoke-virtual {v0}, Lcom/unity3d/services/ads/gmascar/GMA;->getBridge()Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
move-result-object v0
sput-object v0, Lcom/unity3d/services/ads/api/GMAScar;->gmaScarAdapterBridge:Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getSCARSignal(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/GMAScar;->gmaScarAdapterBridge:Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
.line 35
invoke-virtual {p1}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Lcom/unity3d/scar/adapter/common/scarads/UnityAdFormat;->valueOf(Ljava/lang/String;)Lcom/unity3d/scar/adapter/common/scarads/UnityAdFormat;
move-result-object p1
invoke-virtual {v0, p0, p1}, Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;->getSCARSignal(Ljava/lang/String;Lcom/unity3d/scar/adapter/common/scarads/UnityAdFormat;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 36
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static getVersion(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/GMAScar;->gmaScarAdapterBridge:Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
.line 24
invoke-virtual {v0}, Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;->getVersion()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 25
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static initializeScar(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/GMAScar;->gmaScarAdapterBridge:Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
.line 18
invoke-virtual {v0}, Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;->initializeScar()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 19
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static isInitialized(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
sget-object v0, Lcom/unity3d/services/ads/api/GMAScar;->gmaScarAdapterBridge:Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
.line 29
invoke-virtual {v0}, Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;->isInitialized()Z
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 30
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static load(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 7
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/GMAScar;->gmaScarAdapterBridge:Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
.line 41
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
invoke-virtual {p5}, Ljava/lang/Integer;->intValue()I
move-result v6
move-object v2, p0
move-object v3, p1
move-object v4, p4
move-object v5, p3
invoke-virtual/range {v0 .. v6}, Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;->load(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 42
invoke-virtual {p6, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/GMAScar;->gmaScarAdapterBridge:Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;
.line 47
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z
move-result p2
invoke-virtual {v0, p0, p1, p2}, Lcom/unity3d/services/ads/gmascar/GMAScarAdapterBridge;->show(Ljava/lang/String;Ljava/lang/String;Z)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 48
invoke-virtual {p3, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,62 @@
.class public Lcom/unity3d/services/ads/api/Load;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 8
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static sendAdFailedToLoad(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 0
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 17
invoke-static {}, Lcom/unity3d/services/ads/operation/load/LoadModule;->getInstance()Lcom/unity3d/services/ads/operation/load/ILoadModule;
move-result-object p0
invoke-static {p2}, Lcom/unity3d/ads/UnityAds$UnityAdsLoadError;->valueOf(Ljava/lang/String;)Lcom/unity3d/ads/UnityAds$UnityAdsLoadError;
move-result-object p2
invoke-interface {p0, p1, p2, p3}, Lcom/unity3d/services/ads/operation/load/ILoadModule;->onUnityAdsFailedToLoad(Ljava/lang/String;Lcom/unity3d/ads/UnityAds$UnityAdsLoadError;Ljava/lang/String;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 18
invoke-virtual {p4, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static sendAdLoaded(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 0
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 11
invoke-static {}, Lcom/unity3d/services/ads/operation/load/LoadModule;->getInstance()Lcom/unity3d/services/ads/operation/load/ILoadModule;
move-result-object p0
invoke-interface {p0, p1}, Lcom/unity3d/services/ads/operation/load/ILoadModule;->onUnityAdsAdLoaded(Ljava/lang/String;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 12
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,158 @@
.class public Lcom/unity3d/services/ads/api/Measurements;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final measurementsService:Lcom/unity3d/services/ads/measurements/MeasurementsService;
# direct methods
.method static constructor <clinit>()V
.locals 1
const-class v0, Lcom/unity3d/services/ads/measurements/MeasurementsService;
.line 12
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->getService(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/unity3d/services/ads/measurements/MeasurementsService;
sput-object v0, Lcom/unity3d/services/ads/api/Measurements;->measurementsService:Lcom/unity3d/services/ads/measurements/MeasurementsService;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 11
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static checkAvailability(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/Measurements;->measurementsService:Lcom/unity3d/services/ads/measurements/MeasurementsService;
.line 16
invoke-virtual {v0}, Lcom/unity3d/services/ads/measurements/MeasurementsService;->checkAvailability()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 17
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static registerClick(Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 3
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 28
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_0
.line 29
sget-object p0, Lcom/unity3d/services/ads/measurements/MeasurementsErrors;->ERROR_AD_UNIT_NULL:Lcom/unity3d/services/ads/measurements/MeasurementsErrors;
new-array v0, v1, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.line 33
:cond_0
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
invoke-interface {v0}, Lcom/unity3d/services/ads/adunit/IAdUnitActivity;->getLayout()Lcom/unity3d/services/ads/adunit/AdUnitRelativeLayout;
move-result-object v0
if-nez v0, :cond_1
.line 34
sget-object p0, Lcom/unity3d/services/ads/measurements/MeasurementsErrors;->ERROR_LAYOUT_NULL:Lcom/unity3d/services/ads/measurements/MeasurementsErrors;
new-array v0, v1, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.line 38
:cond_1
invoke-static {}, Lcom/unity3d/services/ads/api/AdUnit;->getAdUnitActivity()Lcom/unity3d/services/ads/adunit/IAdUnitActivity;
move-result-object v0
invoke-interface {v0}, Lcom/unity3d/services/ads/adunit/IAdUnitActivity;->getLayout()Lcom/unity3d/services/ads/adunit/AdUnitRelativeLayout;
move-result-object v0
invoke-virtual {v0}, Lcom/unity3d/services/ads/adunit/AdUnitRelativeLayout;->getLastInputEvent()Landroid/view/InputEvent;
move-result-object v0
if-nez v0, :cond_2
.line 40
sget-object p0, Lcom/unity3d/services/ads/measurements/MeasurementsErrors;->ERROR_LAST_INPUT_EVENT_NULL:Lcom/unity3d/services/ads/measurements/MeasurementsErrors;
new-array v0, v1, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
:cond_2
sget-object v2, Lcom/unity3d/services/ads/api/Measurements;->measurementsService:Lcom/unity3d/services/ads/measurements/MeasurementsService;
.line 44
invoke-virtual {v2, p0, v0}, Lcom/unity3d/services/ads/measurements/MeasurementsService;->registerClick(Ljava/lang/String;Landroid/view/InputEvent;)V
new-array p0, v1, [Ljava/lang/Object;
.line 45
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static registerView(Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/Measurements;->measurementsService:Lcom/unity3d/services/ads/measurements/MeasurementsService;
.line 22
invoke-virtual {v0, p0}, Lcom/unity3d/services/ads/measurements/MeasurementsService;->registerView(Ljava/lang/String;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 23
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,132 @@
.class public Lcom/unity3d/services/ads/api/Show;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static sendShowClickEvent(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 0
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 31
invoke-static {}, Lcom/unity3d/services/ads/operation/show/ShowModule;->getInstance()Lcom/unity3d/services/ads/operation/show/IShowModule;
move-result-object p0
invoke-interface {p0, p1}, Lcom/unity3d/services/ads/operation/show/IShowModule;->onUnityAdsShowClick(Ljava/lang/String;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 32
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static sendShowCompleteEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 0
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 37
invoke-static {}, Lcom/unity3d/services/ads/operation/show/ShowModule;->getInstance()Lcom/unity3d/services/ads/operation/show/IShowModule;
move-result-object p0
invoke-static {p2}, Lcom/unity3d/ads/UnityAds$UnityAdsShowCompletionState;->valueOf(Ljava/lang/String;)Lcom/unity3d/ads/UnityAds$UnityAdsShowCompletionState;
move-result-object p2
invoke-interface {p0, p1, p2}, Lcom/unity3d/services/ads/operation/show/IShowModule;->onUnityAdsShowComplete(Ljava/lang/String;Lcom/unity3d/ads/UnityAds$UnityAdsShowCompletionState;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 38
invoke-virtual {p3, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static sendShowConsentEvent(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 0
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 18
invoke-static {}, Lcom/unity3d/services/ads/operation/show/ShowModule;->getInstance()Lcom/unity3d/services/ads/operation/show/IShowModule;
move-result-object p0
invoke-interface {p0, p1}, Lcom/unity3d/services/ads/operation/show/IShowModule;->onUnityAdsShowConsent(Ljava/lang/String;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 19
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static sendShowFailedEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 0
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 12
invoke-static {}, Lcom/unity3d/services/ads/operation/show/ShowModule;->getInstance()Lcom/unity3d/services/ads/operation/show/IShowModule;
move-result-object p0
invoke-static {p2}, Lcom/unity3d/ads/UnityAds$UnityAdsShowError;->valueOf(Ljava/lang/String;)Lcom/unity3d/ads/UnityAds$UnityAdsShowError;
move-result-object p2
invoke-interface {p0, p1, p2, p3}, Lcom/unity3d/services/ads/operation/show/IShowModule;->onUnityAdsShowFailure(Ljava/lang/String;Lcom/unity3d/ads/UnityAds$UnityAdsShowError;Ljava/lang/String;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 13
invoke-virtual {p4, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static sendShowStartEvent(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 0
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 25
invoke-static {}, Lcom/unity3d/services/ads/operation/show/ShowModule;->getInstance()Lcom/unity3d/services/ads/operation/show/IShowModule;
move-result-object p0
invoke-interface {p0, p1}, Lcom/unity3d/services/ads/operation/show/IShowModule;->onUnityAdsShowStart(Ljava/lang/String;)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 26
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,157 @@
.class public Lcom/unity3d/services/ads/api/Token;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
# direct methods
.method static constructor <clinit>()V
.locals 1
const-class v0, Lcom/unity3d/services/ads/token/TokenStorage;
.line 13
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->getService(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/unity3d/services/ads/token/TokenStorage;
sput-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static appendTokens(Lorg/json/JSONArray;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
:try_start_0
sget-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
.line 30
invoke-interface {v0, p0}, Lcom/unity3d/services/ads/token/TokenStorage;->appendTokens(Lorg/json/JSONArray;)V
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 36
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
:catch_0
move-exception p0
.line 32
sget-object v0, Lcom/unity3d/services/ads/token/TokenError;->JSON_EXCEPTION:Lcom/unity3d/services/ads/token/TokenError;
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1, v0, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.end method
.method public static createTokens(Lorg/json/JSONArray;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
:try_start_0
sget-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
.line 18
invoke-interface {v0, p0}, Lcom/unity3d/services/ads/token/TokenStorage;->createTokens(Lorg/json/JSONArray;)V
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 24
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
:catch_0
move-exception p0
.line 20
sget-object v0, Lcom/unity3d/services/ads/token/TokenError;->JSON_EXCEPTION:Lcom/unity3d/services/ads/token/TokenError;
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1, v0, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.end method
.method public static deleteTokens(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
.line 41
invoke-interface {v0}, Lcom/unity3d/services/ads/token/TokenStorage;->deleteTokens()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 43
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static getNativeGeneratedToken(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
.line 48
invoke-interface {v0}, Lcom/unity3d/services/ads/token/TokenStorage;->getNativeGeneratedToken()Lkotlin/Unit;
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 50
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,80 @@
.class public Lcom/unity3d/services/ads/api/Topics;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final topicsService:Lcom/unity3d/services/ads/topics/TopicsService;
# direct methods
.method static constructor <clinit>()V
.locals 1
const-class v0, Lcom/unity3d/services/ads/topics/TopicsService;
.line 9
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->getService(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/unity3d/services/ads/topics/TopicsService;
sput-object v0, Lcom/unity3d/services/ads/api/Topics;->topicsService:Lcom/unity3d/services/ads/topics/TopicsService;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 8
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static checkAvailability(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/Topics;->topicsService:Lcom/unity3d/services/ads/topics/TopicsService;
.line 13
invoke-virtual {v0}, Lcom/unity3d/services/ads/topics/TopicsService;->checkAvailability()Lcom/unity3d/services/ads/topics/TopicsStatus;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static getTopics(Ljava/lang/String;Ljava/lang/Boolean;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/Topics;->topicsService:Lcom/unity3d/services/ads/topics/TopicsService;
.line 18
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
invoke-virtual {v0, p0, p1}, Lcom/unity3d/services/ads/topics/TopicsService;->getTopics(Ljava/lang/String;Z)V
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 19
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method

View File

@@ -0,0 +1,68 @@
.class Lcom/unity3d/services/ads/api/VideoPlayer$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/VideoPlayer;->setProgressEventInterval(Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$milliseconds:Ljava/lang/Integer;
# direct methods
.method public constructor <init>(Ljava/lang/Integer;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/VideoPlayer$1;->val$milliseconds:Ljava/lang/Integer;
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 30
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 31
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/ads/api/VideoPlayer$1;->val$milliseconds:Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-virtual {v0, v1}, Lcom/unity3d/services/ads/video/VideoPlayerView;->setProgressEventInterval(I)V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,84 @@
.class Lcom/unity3d/services/ads/api/VideoPlayer$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/VideoPlayer;->prepare(Ljava/lang/String;Ljava/lang/Double;Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$initialVolume:Ljava/lang/Double;
.field final synthetic val$timeout:Ljava/lang/Integer;
.field final synthetic val$url:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/Double;Ljava/lang/Integer;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/VideoPlayer$2;->val$url:Ljava/lang/String;
iput-object p2, p0, Lcom/unity3d/services/ads/api/VideoPlayer$2;->val$initialVolume:Ljava/lang/Double;
iput-object p3, p0, Lcom/unity3d/services/ads/api/VideoPlayer$2;->val$timeout:Ljava/lang/Integer;
.line 61
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 4
.line 64
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 65
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/ads/api/VideoPlayer$2;->val$url:Ljava/lang/String;
iget-object v2, p0, Lcom/unity3d/services/ads/api/VideoPlayer$2;->val$initialVolume:Ljava/lang/Double;
invoke-virtual {v2}, Ljava/lang/Double;->floatValue()F
move-result v2
iget-object v3, p0, Lcom/unity3d/services/ads/api/VideoPlayer$2;->val$timeout:Ljava/lang/Integer;
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
move-result v3
invoke-virtual {v0, v1, v2, v3}, Lcom/unity3d/services/ads/video/VideoPlayerView;->prepare(Ljava/lang/String;FI)Z
:cond_0
return-void
.end method

View File

@@ -0,0 +1,51 @@
.class Lcom/unity3d/services/ads/api/VideoPlayer$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/VideoPlayer;->play(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 81
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 84
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 85
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
invoke-virtual {v0}, Lcom/unity3d/services/ads/video/VideoPlayerView;->play()V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,51 @@
.class Lcom/unity3d/services/ads/api/VideoPlayer$4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/VideoPlayer;->pause(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 101
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 104
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 105
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
invoke-virtual {v0}, Lcom/unity3d/services/ads/video/VideoPlayerView;->pause()V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,51 @@
.class Lcom/unity3d/services/ads/api/VideoPlayer$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/VideoPlayer;->stop(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 121
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 124
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 125
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
invoke-virtual {v0}, Lcom/unity3d/services/ads/video/VideoPlayerView;->stop()V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,68 @@
.class Lcom/unity3d/services/ads/api/VideoPlayer$6;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/VideoPlayer;->seekTo(Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$time:Ljava/lang/Integer;
# direct methods
.method public constructor <init>(Ljava/lang/Integer;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/VideoPlayer$6;->val$time:Ljava/lang/Integer;
.line 141
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 144
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 145
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
iget-object v1, p0, Lcom/unity3d/services/ads/api/VideoPlayer$6;->val$time:Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-virtual {v0, v1}, Lcom/unity3d/services/ads/video/VideoPlayerView;->seekTo(I)V
:cond_0
return-void
.end method

View File

@@ -0,0 +1,670 @@
.class public Lcom/unity3d/services/ads/api/VideoPlayer;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static _videoPlayerView:Lcom/unity3d/services/ads/video/VideoPlayerView;
# direct methods
.method public constructor <init>()V
.locals 0
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getCurrentPosition(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 160
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 161
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/VideoView;->getCurrentPosition()I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 163
:cond_0
sget-object v0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static getProgressEventInterval(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 45
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 46
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
invoke-virtual {v0}, Lcom/unity3d/services/ads/video/VideoPlayerView;->getProgressEventInterval()I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 48
:cond_0
sget-object v0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
.locals 1
sget-object v0, Lcom/unity3d/services/ads/api/VideoPlayer;->_videoPlayerView:Lcom/unity3d/services/ads/video/VideoPlayerView;
return-object v0
.end method
.method public static getVideoViewRectangle(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 5
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 204
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 206
invoke-virtual {v0}, Lcom/unity3d/services/ads/video/VideoPlayerView;->getVideoViewRectangle()[I
move-result-object v0
.line 207
aget v1, v0, v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aget v2, v0, v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x2
aget v3, v0, v3
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
const/4 v4, 0x3
aget v0, v0, v4
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
filled-new-array {v1, v2, v3, v0}, [Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 209
:cond_0
sget-object v0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static getVolume(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 169
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 170
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
invoke-virtual {v0}, Lcom/unity3d/services/ads/video/VideoPlayerView;->getVolume()F
move-result v0
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 172
:cond_0
sget-object v0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static pause(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
const-string v0, "Pausing current video"
.line 99
invoke-static {v0}, Lcom/unity3d/services/core/log/DeviceLog;->debug(Ljava/lang/String;)V
.line 101
new-instance v0, Lcom/unity3d/services/ads/api/VideoPlayer$4;
invoke-direct {v0}, Lcom/unity3d/services/ads/api/VideoPlayer$4;-><init>()V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 110
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_0
new-array v0, v1, [Ljava/lang/Object;
.line 111
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 113
:cond_0
sget-object v0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static play(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
const-string v0, "Starting playback of prepared video"
.line 79
invoke-static {v0}, Lcom/unity3d/services/core/log/DeviceLog;->debug(Ljava/lang/String;)V
.line 81
new-instance v0, Lcom/unity3d/services/ads/api/VideoPlayer$3;
invoke-direct {v0}, Lcom/unity3d/services/ads/api/VideoPlayer$3;-><init>()V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 90
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_0
new-array v0, v1, [Ljava/lang/Object;
.line 91
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 93
:cond_0
sget-object v0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static prepare(Ljava/lang/String;Ljava/lang/Double;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
const/4 v0, 0x0
.line 54
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
invoke-static {p0, p1, v0, p2}, Lcom/unity3d/services/ads/api/VideoPlayer;->prepare(Ljava/lang/String;Ljava/lang/Double;Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
return-void
.end method
.method public static prepare(Ljava/lang/String;Ljava/lang/Double;Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 59
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Preparing video for playback: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/unity3d/services/core/log/DeviceLog;->debug(Ljava/lang/String;)V
.line 61
new-instance v0, Lcom/unity3d/services/ads/api/VideoPlayer$2;
invoke-direct {v0, p0, p1, p2}, Lcom/unity3d/services/ads/api/VideoPlayer$2;-><init>(Ljava/lang/String;Ljava/lang/Double;Ljava/lang/Integer;)V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 70
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object p1
if-eqz p1, :cond_0
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 71
invoke-virtual {p3, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 73
:cond_0
sget-object p0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
invoke-virtual {p3, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static seekTo(Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 139
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Seeking video to time: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/unity3d/services/core/log/DeviceLog;->debug(Ljava/lang/String;)V
.line 141
new-instance v0, Lcom/unity3d/services/ads/api/VideoPlayer$6;
invoke-direct {v0, p0}, Lcom/unity3d/services/ads/api/VideoPlayer$6;-><init>(Ljava/lang/Integer;)V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 150
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object p0
const/4 v0, 0x0
if-eqz p0, :cond_0
new-array p0, v0, [Ljava/lang/Object;
.line 151
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 153
:cond_0
sget-object p0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
new-array v0, v0, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static setInfoListenerEnabled(ZLcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 191
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 192
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/unity3d/services/ads/video/VideoPlayerView;->setInfoListenerEnabled(Z)V
.line 193
sget-object v0, Lcom/unity3d/services/core/webview/WebViewEventCategory;->VIDEOPLAYER:Lcom/unity3d/services/core/webview/WebViewEventCategory;
sget-object v1, Lcom/unity3d/services/ads/video/VideoPlayerEvent;->INFO:Lcom/unity3d/services/ads/video/VideoPlayerEvent;
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p0
filled-new-array {v0, v1, p0}, [Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 195
:cond_0
sget-object p0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static setProgressEventInterval(Ljava/lang/Integer;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 27
new-instance v0, Lcom/unity3d/services/ads/api/VideoPlayer$1;
invoke-direct {v0, p0}, Lcom/unity3d/services/ads/api/VideoPlayer$1;-><init>(Ljava/lang/Integer;)V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 36
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object p0
const/4 v0, 0x0
if-eqz p0, :cond_0
new-array p0, v0, [Ljava/lang/Object;
.line 37
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 39
:cond_0
sget-object p0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
new-array v0, v0, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static setVideoPlayerView(Lcom/unity3d/services/ads/video/VideoPlayerView;)V
.locals 0
sput-object p0, Lcom/unity3d/services/ads/api/VideoPlayer;->_videoPlayerView:Lcom/unity3d/services/ads/video/VideoPlayerView;
return-void
.end method
.method public static setVolume(Ljava/lang/Double;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 178
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Setting video volume: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/unity3d/services/core/log/DeviceLog;->debug(Ljava/lang/String;)V
.line 180
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
if-eqz v0, :cond_0
.line 181
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
invoke-virtual {p0}, Ljava/lang/Double;->floatValue()F
move-result v1
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/unity3d/services/ads/video/VideoPlayerView;->setVolume(Ljava/lang/Float;)V
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
.line 182
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 184
:cond_0
sget-object p0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static stop(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
const-string v0, "Stopping current video"
.line 119
invoke-static {v0}, Lcom/unity3d/services/core/log/DeviceLog;->debug(Ljava/lang/String;)V
.line 121
new-instance v0, Lcom/unity3d/services/ads/api/VideoPlayer$5;
invoke-direct {v0}, Lcom/unity3d/services/ads/api/VideoPlayer$5;-><init>()V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
.line 130
invoke-static {}, Lcom/unity3d/services/ads/api/VideoPlayer;->getVideoPlayerView()Lcom/unity3d/services/ads/video/VideoPlayerView;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_0
new-array v0, v1, [Ljava/lang/Object;
.line 131
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 133
:cond_0
sget-object v0, Lcom/unity3d/services/ads/video/VideoPlayerError;->VIDEOVIEW_NULL:Lcom/unity3d/services/ads/video/VideoPlayerError;
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0, v0, v1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,58 @@
.class Lcom/unity3d/services/ads/api/WebPlayer$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/WebPlayer;->setUrl(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$url:Ljava/lang/String;
.field final synthetic val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Ljava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/WebPlayer$1;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iput-object p2, p0, Lcom/unity3d/services/ads/api/WebPlayer$1;->val$url:Ljava/lang/String;
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$1;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iget-object v1, p0, Lcom/unity3d/services/ads/api/WebPlayer$1;->val$url:Ljava/lang/String;
.line 31
invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,70 @@
.class Lcom/unity3d/services/ads/api/WebPlayer$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/WebPlayer;->setData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$data:Ljava/lang/String;
.field final synthetic val$encoding:Ljava/lang/String;
.field final synthetic val$mimeType:Ljava/lang/String;
.field final synthetic val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/WebPlayer$2;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iput-object p2, p0, Lcom/unity3d/services/ads/api/WebPlayer$2;->val$data:Ljava/lang/String;
iput-object p3, p0, Lcom/unity3d/services/ads/api/WebPlayer$2;->val$mimeType:Ljava/lang/String;
iput-object p4, p0, Lcom/unity3d/services/ads/api/WebPlayer$2;->val$encoding:Ljava/lang/String;
.line 44
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 4
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$2;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iget-object v1, p0, Lcom/unity3d/services/ads/api/WebPlayer$2;->val$data:Ljava/lang/String;
iget-object v2, p0, Lcom/unity3d/services/ads/api/WebPlayer$2;->val$mimeType:Ljava/lang/String;
iget-object v3, p0, Lcom/unity3d/services/ads/api/WebPlayer$2;->val$encoding:Ljava/lang/String;
.line 47
invoke-virtual {v0, v1, v2, v3}, Landroid/webkit/WebView;->loadData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,78 @@
.class Lcom/unity3d/services/ads/api/WebPlayer$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/WebPlayer;->setDataWithUrl(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$baseUrl:Ljava/lang/String;
.field final synthetic val$data:Ljava/lang/String;
.field final synthetic val$encoding:Ljava/lang/String;
.field final synthetic val$mimeType:Ljava/lang/String;
.field final synthetic val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iput-object p2, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$baseUrl:Ljava/lang/String;
iput-object p3, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$data:Ljava/lang/String;
iput-object p4, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$mimeType:Ljava/lang/String;
iput-object p5, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$encoding:Ljava/lang/String;
.line 60
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 6
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iget-object v1, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$baseUrl:Ljava/lang/String;
iget-object v2, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$data:Ljava/lang/String;
iget-object v3, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$mimeType:Ljava/lang/String;
iget-object v4, p0, Lcom/unity3d/services/ads/api/WebPlayer$3;->val$encoding:Ljava/lang/String;
const/4 v5, 0x0
.line 63
invoke-virtual/range {v0 .. v5}, Landroid/webkit/WebView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,64 @@
.class Lcom/unity3d/services/ads/api/WebPlayer$4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/WebPlayer;->setSettings(Lorg/json/JSONObject;Lorg/json/JSONObject;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$webPlayerSettings:Lorg/json/JSONObject;
.field final synthetic val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
.field final synthetic val$webSettings:Lorg/json/JSONObject;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Lorg/json/JSONObject;Lorg/json/JSONObject;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/WebPlayer$4;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iput-object p2, p0, Lcom/unity3d/services/ads/api/WebPlayer$4;->val$webSettings:Lorg/json/JSONObject;
iput-object p3, p0, Lcom/unity3d/services/ads/api/WebPlayer$4;->val$webPlayerSettings:Lorg/json/JSONObject;
.line 80
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$4;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iget-object v1, p0, Lcom/unity3d/services/ads/api/WebPlayer$4;->val$webSettings:Lorg/json/JSONObject;
iget-object v2, p0, Lcom/unity3d/services/ads/api/WebPlayer$4;->val$webPlayerSettings:Lorg/json/JSONObject;
.line 83
invoke-virtual {v0, v1, v2}, Lcom/unity3d/services/ads/webplayer/WebPlayerView;->setSettings(Lorg/json/JSONObject;Lorg/json/JSONObject;)V
return-void
.end method

View File

@@ -0,0 +1,58 @@
.class Lcom/unity3d/services/ads/api/WebPlayer$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/WebPlayer;->setEventSettings(Lorg/json/JSONObject;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$eventSettings:Lorg/json/JSONObject;
.field final synthetic val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Lorg/json/JSONObject;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/WebPlayer$5;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iput-object p2, p0, Lcom/unity3d/services/ads/api/WebPlayer$5;->val$eventSettings:Lorg/json/JSONObject;
.line 99
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$5;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iget-object v1, p0, Lcom/unity3d/services/ads/api/WebPlayer$5;->val$eventSettings:Lorg/json/JSONObject;
.line 102
invoke-virtual {v0, v1}, Lcom/unity3d/services/ads/webplayer/WebPlayerView;->setEventSettings(Lorg/json/JSONObject;)V
return-void
.end method

View File

@@ -0,0 +1,69 @@
.class Lcom/unity3d/services/ads/api/WebPlayer$6;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/WebPlayer;->clearSettings(Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/WebPlayer$6;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
.line 119
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$6;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
.line 124
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
new-instance v2, Lorg/json/JSONObject;
invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/unity3d/services/ads/webplayer/WebPlayerView;->setSettings(Lorg/json/JSONObject;Lorg/json/JSONObject;)V
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$6;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
.line 125
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
invoke-virtual {v0, v1}, Lcom/unity3d/services/ads/webplayer/WebPlayerView;->setEventSettings(Lorg/json/JSONObject;)V
return-void
.end method

View File

@@ -0,0 +1,100 @@
.class Lcom/unity3d/services/ads/api/WebPlayer$7;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/unity3d/services/ads/api/WebPlayer;->getFrame(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic val$callId:Ljava/lang/String;
.field final synthetic val$viewId:Ljava/lang/String;
.field final synthetic val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
# direct methods
.method public constructor <init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
iput-object p2, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$callId:Ljava/lang/String;
iput-object p3, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$viewId:Ljava/lang/String;
.line 174
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 9
const/4 v0, 0x2
new-array v0, v0, [I
iget-object v1, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
.line 178
invoke-virtual {v1, v0}, Landroid/view/View;->getLocationOnScreen([I)V
const/4 v1, 0x0
aget v4, v0, v1
const/4 v1, 0x1
aget v5, v0, v1
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
.line 181
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
move-result v6
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
.line 182
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
move-result v7
iget-object v0, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$webPlayerView:Lcom/unity3d/services/ads/webplayer/WebPlayerView;
.line 185
invoke-virtual {v0}, Landroid/view/View;->getAlpha()F
move-result v8
iget-object v2, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$callId:Ljava/lang/String;
iget-object v3, p0, Lcom/unity3d/services/ads/api/WebPlayer$7;->val$viewId:Ljava/lang/String;
.line 187
invoke-static/range {v2 .. v8}, Lcom/unity3d/services/ads/webplayer/WebPlayerEventBridge;->sendGetFrameResponse(Ljava/lang/String;Ljava/lang/String;IIIIF)V
return-void
.end method

View File

@@ -0,0 +1,502 @@
.class public Lcom/unity3d/services/ads/api/WebPlayer;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 22
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static clearSettings(Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 113
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;
move-result-object v0
.line 114
invoke-virtual {v0, p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->removeWebSettings(Ljava/lang/String;)V
.line 115
invoke-virtual {v0, p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->removeWebPlayerSettings(Ljava/lang/String;)V
.line 116
invoke-virtual {v0, p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->removeWebPlayerEventSettings(Ljava/lang/String;)V
.line 117
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object p0
const/4 v0, 0x0
if-eqz p0, :cond_0
.line 119
new-instance v1, Lcom/unity3d/services/ads/api/WebPlayer$6;
invoke-direct {v1, p0}, Lcom/unity3d/services/ads/api/WebPlayer$6;-><init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;)V
invoke-static {v1}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
new-array p0, v0, [Ljava/lang/Object;
.line 128
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 130
:cond_0
sget-object p0, Lcom/unity3d/services/ads/webplayer/WebPlayerError;->WEBPLAYER_NULL:Lcom/unity3d/services/ads/webplayer/WebPlayerError;
new-array v0, v0, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static getErroredSettings(Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 4
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 136
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object p0
const/4 v0, 0x0
if-eqz p0, :cond_1
.line 138
invoke-virtual {p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerView;->getErroredSettings()Ljava/util/Map;
move-result-object p0
.line 139
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
.line 142
:try_start_0
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p0
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
.line 143
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
.line 144
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
.line 145
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
invoke-virtual {v1, v3, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
const-string v2, "Error forming JSON object"
.line 148
invoke-static {v2, p0}, Lcom/unity3d/services/core/log/DeviceLog;->exception(Ljava/lang/String;Ljava/lang/Exception;)V
:cond_0
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object p0
.line 151
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
new-array p0, v0, [Ljava/lang/Object;
.line 152
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_1
.line 154
:cond_1
sget-object p0, Lcom/unity3d/services/ads/webplayer/WebPlayerError;->WEBPLAYER_NULL:Lcom/unity3d/services/ads/webplayer/WebPlayerError;
new-array v0, v0, [Ljava/lang/Object;
invoke-virtual {p1, p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_1
return-void
.end method
.method public static getFrame(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 171
invoke-virtual {p2, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
.line 172
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object p2
invoke-virtual {p2, p1}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object p2
if-eqz p2, :cond_0
.line 174
new-instance v0, Lcom/unity3d/services/ads/api/WebPlayer$7;
invoke-direct {v0, p2, p0, p1}, Lcom/unity3d/services/ads/api/WebPlayer$7;-><init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
:cond_0
return-void
.end method
.method public static sendEvent(Lorg/json/JSONArray;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 160
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object p1
const/4 v0, 0x0
if-eqz p1, :cond_0
.line 162
invoke-virtual {p1, p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerView;->sendEvent(Lorg/json/JSONArray;)V
new-array p0, v0, [Ljava/lang/Object;
.line 163
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 165
:cond_0
sget-object p0, Lcom/unity3d/services/ads/webplayer/WebPlayerError;->WEBPLAYER_NULL:Lcom/unity3d/services/ads/webplayer/WebPlayerError;
new-array p1, v0, [Ljava/lang/Object;
invoke-virtual {p2, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static setData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 42
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object v0
invoke-virtual {v0, p3}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object p3
const/4 v0, 0x0
if-eqz p3, :cond_0
.line 44
new-instance v1, Lcom/unity3d/services/ads/api/WebPlayer$2;
invoke-direct {v1, p3, p0, p1, p2}, Lcom/unity3d/services/ads/api/WebPlayer$2;-><init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v1}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
new-array p0, v0, [Ljava/lang/Object;
.line 50
invoke-virtual {p4, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 52
:cond_0
sget-object p0, Lcom/unity3d/services/ads/webplayer/WebPlayerError;->WEBPLAYER_NULL:Lcom/unity3d/services/ads/webplayer/WebPlayerError;
new-array p1, v0, [Ljava/lang/Object;
invoke-virtual {p4, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static setDataWithUrl(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 7
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 58
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object v0
invoke-virtual {v0, p4}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object v2
const/4 p4, 0x0
if-eqz v2, :cond_0
.line 60
new-instance v0, Lcom/unity3d/services/ads/api/WebPlayer$3;
move-object v1, v0
move-object v3, p0
move-object v4, p1
move-object v5, p2
move-object v6, p3
invoke-direct/range {v1 .. v6}, Lcom/unity3d/services/ads/api/WebPlayer$3;-><init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
new-array p0, p4, [Ljava/lang/Object;
.line 66
invoke-virtual {p5, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 68
:cond_0
sget-object p0, Lcom/unity3d/services/ads/webplayer/WebPlayerError;->WEBPLAYER_NULL:Lcom/unity3d/services/ads/webplayer/WebPlayerError;
new-array p1, p4, [Ljava/lang/Object;
invoke-virtual {p5, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static setEventSettings(Lorg/json/JSONObject;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 95
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;
move-result-object v0
invoke-virtual {v0, p1, p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->addWebPlayerEventSettings(Ljava/lang/String;Lorg/json/JSONObject;)V
.line 97
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object p1
const/4 v0, 0x0
if-eqz p1, :cond_0
.line 99
new-instance v1, Lcom/unity3d/services/ads/api/WebPlayer$5;
invoke-direct {v1, p1, p0}, Lcom/unity3d/services/ads/api/WebPlayer$5;-><init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Lorg/json/JSONObject;)V
invoke-static {v1}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
new-array p0, v0, [Ljava/lang/Object;
.line 105
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 107
:cond_0
sget-object p0, Lcom/unity3d/services/ads/webplayer/WebPlayerError;->WEBPLAYER_NULL:Lcom/unity3d/services/ads/webplayer/WebPlayerError;
new-array p1, v0, [Ljava/lang/Object;
invoke-virtual {p2, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static setSettings(Lorg/json/JSONObject;Lorg/json/JSONObject;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 75
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;
move-result-object v0
invoke-virtual {v0, p2, p0}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->addWebSettings(Ljava/lang/String;Lorg/json/JSONObject;)V
.line 76
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;
move-result-object v0
invoke-virtual {v0, p2, p1}, Lcom/unity3d/services/ads/webplayer/WebPlayerSettingsCache;->addWebPlayerSettings(Ljava/lang/String;Lorg/json/JSONObject;)V
.line 78
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object v0
invoke-virtual {v0, p2}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object p2
const/4 v0, 0x0
if-eqz p2, :cond_0
.line 80
new-instance v1, Lcom/unity3d/services/ads/api/WebPlayer$4;
invoke-direct {v1, p2, p0, p1}, Lcom/unity3d/services/ads/api/WebPlayer$4;-><init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Lorg/json/JSONObject;Lorg/json/JSONObject;)V
invoke-static {v1}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
new-array p0, v0, [Ljava/lang/Object;
.line 86
invoke-virtual {p3, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 88
:cond_0
sget-object p0, Lcom/unity3d/services/ads/webplayer/WebPlayerError;->WEBPLAYER_NULL:Lcom/unity3d/services/ads/webplayer/WebPlayerError;
new-array p1, v0, [Ljava/lang/Object;
invoke-virtual {p3, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static setUrl(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 2
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
.line 26
invoke-static {}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getInstance()Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/unity3d/services/ads/webplayer/WebPlayerViewCache;->getWebPlayer(Ljava/lang/String;)Lcom/unity3d/services/ads/webplayer/WebPlayerView;
move-result-object p1
const/4 v0, 0x0
if-eqz p1, :cond_0
.line 28
new-instance v1, Lcom/unity3d/services/ads/api/WebPlayer$1;
invoke-direct {v1, p1, p0}, Lcom/unity3d/services/ads/api/WebPlayer$1;-><init>(Lcom/unity3d/services/ads/webplayer/WebPlayerView;Ljava/lang/String;)V
invoke-static {v1}, Lcom/unity3d/services/core/misc/Utilities;->runOnUiThread(Ljava/lang/Runnable;)V
new-array p0, v0, [Ljava/lang/Object;
.line 34
invoke-virtual {p2, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
goto :goto_0
.line 36
:cond_0
sget-object p0, Lcom/unity3d/services/ads/webplayer/WebPlayerError;->WEBPLAYER_NULL:Lcom/unity3d/services/ads/webplayer/WebPlayerError;
new-array p1, v0, [Ljava/lang/Object;
invoke-virtual {p2, p0, p1}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
:goto_0
return-void
.end method