Files
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

158 lines
4.7 KiB
Smali

.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