2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lf/a/i/b;
|
2020-07-14 22:43:59 +00:00
|
|
|
.super Li0/k/i/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-14 22:43:59 +00:00
|
|
|
"Li0/k/i/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-14 22:43:59 +00:00
|
|
|
.annotation runtime Li0/k/i/a/d;
|
2020-07-08 16:44:49 +00:00
|
|
|
c = "com.discord.samsung.SamsungConnect$postSamsungAuthorizeCallback$2"
|
|
|
|
f = "SamsungConnect.kt"
|
|
|
|
l = {}
|
|
|
|
m = "invokeSuspend"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-14 22:43:59 +00:00
|
|
|
.field public final synthetic $okHttpClient:Lm0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
.field public final synthetic $samsungAuthCode:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final synthetic $state:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final synthetic $url:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public label:I
|
|
|
|
|
|
|
|
.field public p$:Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lm0/x;Lkotlin/coroutines/Continuation;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lf/a/i/b;->$state:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lf/a/i/b;->$samsungAuthCode:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object p3, p0, Lf/a/i/b;->$url:Ljava/lang/String;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iput-object p4, p0, Lf/a/i/b;->$okHttpClient:Lm0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x2
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct {p0, p1, p5}, Li0/k/i/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 7
|
|
|
|
.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 v6, Lf/a/i/b;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lf/a/i/b;->$state:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object v2, p0, Lf/a/i/b;->$samsungAuthCode:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object v3, p0, Lf/a/i/b;->$url:Ljava/lang/String;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v4, p0, Lf/a/i/b;->$okHttpClient:Lm0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-object v0, v6
|
|
|
|
|
|
|
|
move-object v5, p2
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct/range {v0 .. v5}, Lf/a/i/b;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lm0/x;Lkotlin/coroutines/Continuation;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
|
|
|
iput-object p1, v6, Lf/a/i/b;->p$:Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
|
|
|
return-object v6
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "completion"
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p1}, Li0/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/b;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Lf/a/i/b;
|
|
|
|
|
|
|
|
sget-object p2, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lf/a/i/b;->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 8
|
|
|
|
|
|
|
|
iget v0, p0, Lf/a/i/b;->label:I
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
invoke-static {p1}, Lf/i/a/b/i1/e;->throwOnFailure(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x2
|
|
|
|
|
|
|
|
new-array p1, p1, [Lkotlin/Pair;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lf/a/i/b;->$state:Ljava/lang/String;
|
|
|
|
|
|
|
|
new-instance v2, Lkotlin/Pair;
|
|
|
|
|
|
|
|
const-string v3, "state"
|
|
|
|
|
|
|
|
invoke-direct {v2, v3, v1}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
aput-object v2, p1, v0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2020-07-15 19:49:36 +00:00
|
|
|
const-string/jumbo v1, "{\"code\":\""
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v1}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
iget-object v2, p0, Lf/a/i/b;->$samsungAuthCode:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v3, "\"}"
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {v1, v2, v3}, Lf/e/b/a/a;->v(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v2, Lkotlin/Pair;
|
|
|
|
|
|
|
|
const-string v3, "code"
|
|
|
|
|
|
|
|
invoke-direct {v2, v3, v1}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
aput-object v2, p1, v0
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static {p1}, Li0/i/t;->mapOf([Lkotlin/Pair;)Ljava/util/Map;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Map;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/util/Map$Entry;
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v2, 0x3d
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/16 v7, 0x3e
|
|
|
|
|
|
|
|
const-string v1, "&"
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-static/range {v0 .. v7}, Li0/i/l;->joinToString$default(Ljava/lang/Iterable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;I)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
|
|
|
|
|
|
|
sget-object v1, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
|
|
|
|
|
|
|
|
const-string v1, "application/x-www-form-urlencoded"
|
|
|
|
|
|
|
|
invoke-static {v1}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, v1}, Lokhttp3/RequestBody$Companion;->a(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
new-instance v0, Lm0/a0$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-direct {v0}, Lm0/a0$a;-><init>()V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const-string v1, "POST"
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {v0, v1, p1}, Lm0/a0$a;->d(Ljava/lang/String;Lokhttp3/RequestBody;)Lm0/a0$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
iget-object p1, p0, Lf/a/i/b;->$url:Ljava/lang/String;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {v0, p1}, Lm0/a0$a;->f(Ljava/lang/String;)Lm0/a0$a;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {v0}, Lm0/a0$a;->b()Lm0/a0;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
iget-object v0, p0, Lf/a/i/b;->$okHttpClient:Lm0/x;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {v0, p1}, Lm0/x;->b(Lm0/a0;)Lm0/f;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
check-cast p1, Lm0/z;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p1}, Lm0/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_1
|
|
|
|
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
|