2020-11-12 02:11:44 +00:00
|
|
|
.class public final Lf/a/h/a;
|
2020-11-16 01:00:50 +00:00
|
|
|
.super Lz/k/h/a/g;
|
|
|
|
.source "SamsungConnect.kt"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
# interfaces
|
2020-11-16 01:00:50 +00:00
|
|
|
.implements Lkotlin/jvm/functions/Function2;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-11-16 01:00:50 +00:00
|
|
|
"Lz/k/h/a/g;",
|
|
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
|
|
"Lkotlinx/coroutines/CoroutineScope;",
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"-",
|
|
|
|
"Landroid/net/Uri;",
|
|
|
|
">;",
|
|
|
|
"Ljava/lang/Object;",
|
2020-11-12 02:11:44 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.annotation runtime Lz/k/h/a/d;
|
|
|
|
c = "com.discord.samsung.SamsungConnect$getSamsungAuthorizeCallback$2"
|
|
|
|
f = "SamsungConnect.kt"
|
|
|
|
l = {}
|
|
|
|
m = "invokeSuspend"
|
|
|
|
.end annotation
|
|
|
|
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
# instance fields
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public final synthetic $okHttpClient:Ld0/z;
|
|
|
|
|
|
|
|
.field public final synthetic $url:Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public label:I
|
|
|
|
|
|
|
|
.field public p$:Lkotlinx/coroutines/CoroutineScope;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-11-16 01:00:50 +00:00
|
|
|
.method public constructor <init>(Ljava/lang/String;Ld0/z;Lkotlin/coroutines/Continuation;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lf/a/h/a;->$url:Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p2, p0, Lf/a/h/a;->$okHttpClient:Ld0/z;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 p1, 0x2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-direct {p0, p1, p3}, Lz/k/h/a/g;-><init>(ILkotlin/coroutines/Continuation;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-11-16 01:00:50 +00:00
|
|
|
.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
|
|
|
|
|
|
|
|
const-string v0, "completion"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {p2, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-instance v0, Lf/a/h/a;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v1, p0, Lf/a/h/a;->$url:Ljava/lang/String;
|
2020-11-12 23:15:09 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v2, p0, Lf/a/h/a;->$okHttpClient:Ld0/z;
|
2020-11-12 23:15:09 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-direct {v0, v1, v2, p2}, Lf/a/h/a;-><init>(Ljava/lang/String;Ld0/z;Lkotlin/coroutines/Continuation;)V
|
2020-11-12 23:15:09 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
2020-11-12 23:15:09 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, v0, Lf/a/h/a;->p$:Lkotlinx/coroutines/CoroutineScope;
|
2020-11-12 23:15:09 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-11-12 23:15:09 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.method public final invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 3
|
2020-11-12 23:15:09 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
check-cast p2, Lkotlin/coroutines/Continuation;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const-string v0, "completion"
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {p2, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-instance v0, Lf/a/h/a;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v1, p0, Lf/a/h/a;->$url:Ljava/lang/String;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v2, p0, Lf/a/h/a;->$okHttpClient:Ld0/z;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-direct {v0, v1, v2, p2}, Lf/a/h/a;-><init>(Ljava/lang/String;Ld0/z;Lkotlin/coroutines/Continuation;)V
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, v0, Lf/a/h/a;->p$:Lkotlinx/coroutines/CoroutineScope;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v0, p1}, Lf/a/h/a;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
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/h/a;->label:I
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-static {p1}, Lf/h/a/f/f/n/f;->throwOnFailure(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
new-instance p1, Ld0/b0$a;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ld0/b0$a;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const-string v1, "GET"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1, v0}, Ld0/b0$a;->c(Ljava/lang/String;Lokhttp3/RequestBody;)Ld0/b0$a;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lf/a/h/a;->$url:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ld0/b0$a;->f(Ljava/lang/String;)Ld0/b0$a;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ld0/b0$a;->a()Ld0/b0;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lf/a/h/a;->$okHttpClient:Ld0/z;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ld0/z;->b(Ld0/b0;)Ld0/f;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Ld0/h0/g/e;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ld0/h0/g/e;->execute()Lokhttp3/Response;
|
|
|
|
|
|
|
|
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
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|