118 lines
2.7 KiB
Smali
118 lines
2.7 KiB
Smali
.class public final Lcom/vk/webapp/AndroidBridge$c;
|
|
.super Ljava/lang/Object;
|
|
.source "AndroidBridge.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/vk/webapp/helpers/OAuthResultListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/vk/webapp/AndroidBridge;-><init>()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/vk/webapp/AndroidBridge;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/vk/webapp/AndroidBridge;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 49
|
|
iput-object p1, p0, Lcom/vk/webapp/AndroidBridge$c;->a:Lcom/vk/webapp/AndroidBridge;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;)V
|
|
.locals 7
|
|
|
|
const-string v0, "token"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->b(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 55
|
|
new-instance v3, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
const-string v0, "access_token"
|
|
|
|
.line 56
|
|
invoke-virtual {v3, v0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 57
|
|
iget-object v1, p0, Lcom/vk/webapp/AndroidBridge$c;->a:Lcom/vk/webapp/AndroidBridge;
|
|
|
|
const-string v2, "VKWebAppAccessTokenReceived"
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/vk/webapp/AndroidBridge;->a(Lcom/vk/webapp/AndroidBridge;Ljava/lang/String;Lorg/json/JSONObject;Ljava/lang/String;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 6
|
|
|
|
.line 61
|
|
new-instance v2, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
const-string p2, "error_description"
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p1, "unknown_error"
|
|
|
|
.line 62
|
|
:goto_0
|
|
invoke-virtual {v2, p2, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 63
|
|
iget-object v0, p0, Lcom/vk/webapp/AndroidBridge$c;->a:Lcom/vk/webapp/AndroidBridge;
|
|
|
|
const-string v1, "VKWebAppAccessTokenFailed"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/vk/webapp/AndroidBridge;->a(Lcom/vk/webapp/AndroidBridge;Ljava/lang/String;Lorg/json/JSONObject;Ljava/lang/String;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|