2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lf/a/i/a;
|
2020-07-25 00:57:58 +00:00
|
|
|
.super Lj0/k/h/a/g;
|
2020-07-08 16:44:49 +00:00
|
|
|
.source "SamsungConnect.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-25 00:57:58 +00:00
|
|
|
"Lj0/k/h/a/g;",
|
2020-07-08 16:44:49 +00:00
|
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
|
|
"Lkotlinx/coroutines/CoroutineScope;",
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"-",
|
|
|
|
"Landroid/net/Uri;",
|
|
|
|
">;",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
.annotation runtime Lj0/k/h/a/d;
|
2020-07-08 16:44:49 +00:00
|
|
|
c = "com.discord.samsung.SamsungConnect$getSamsungAuthorizeCallback$2"
|
|
|
|
f = "SamsungConnect.kt"
|
|
|
|
l = {}
|
|
|
|
m = "invokeSuspend"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-23 01:06:17 +00:00
|
|
|
.field public final synthetic $okHttpClient:Ln0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
.field public final synthetic $url:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public label:I
|
|
|
|
|
|
|
|
.field public p$:Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public constructor <init>(Ljava/lang/String;Ln0/x;Lkotlin/coroutines/Continuation;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lf/a/i/a;->$url:Ljava/lang/String;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object p2, p0, Lf/a/i/a;->$okHttpClient:Ln0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x2
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-direct {p0, p1, p3}, Lj0/k/h/a/g;-><init>(ILkotlin/coroutines/Continuation;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"*>;)",
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Lf/a/i/a;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lf/a/i/a;->$url:Ljava/lang/String;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v2, p0, Lf/a/i/a;->$okHttpClient:Ln0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v0, v1, v2, p2}, Lf/a/i/a;-><init>(Ljava/lang/String;Ln0/x;Lkotlin/coroutines/Continuation;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
|
|
|
iput-object p1, v0, Lf/a/i/a;->p$:Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "completion"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p2, Lkotlin/coroutines/Continuation;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Lf/a/i/a;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Lf/a/i/a;
|
|
|
|
|
|
|
|
sget-object p2, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lf/a/i/a;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget v0, p0, Lf/a/i/a;->label:I
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lf/m/b/f/a;->throwOnFailure(Ljava/lang/Object;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance p1, Ln0/a0$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {p1}, Ln0/a0$a;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const-string v1, "GET"
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {p1, v1, v0}, Ln0/a0$a;->d(Ljava/lang/String;Lokhttp3/RequestBody;)Ln0/a0$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Lf/a/i/a;->$url:Ljava/lang/String;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {p1, v0}, Ln0/a0$a;->f(Ljava/lang/String;)Ln0/a0$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {p1}, Ln0/a0$a;->b()Ln0/a0;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, p0, Lf/a/i/a;->$okHttpClient:Ln0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0, p1}, Ln0/x;->b(Ln0/a0;)Ln0/f;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
check-cast p1, Ln0/z;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {p1}, Ln0/z;->execute()Lokhttp3/Response;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/samsung/SamsungConnect;->a:Lcom/discord/samsung/SamsungConnect;
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Lcom/discord/samsung/SamsungConnect;->a(Lcom/discord/samsung/SamsungConnect;Lokhttp3/Response;)Landroid/net/Uri;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|