292 lines
6.3 KiB
Smali
292 lines
6.3 KiB
Smali
.class public final Lcom/discord/stores/StoreDynamicLink$storeLinkIfExists$1;
|
|
.super Ljava/lang/Object;
|
|
.source "StoreDynamicLink.kt"
|
|
|
|
# interfaces
|
|
.implements Lg0/l/i;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/StoreDynamicLink;->storeLinkIfExists(Landroid/content/Intent;Landroid/content/Context;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lg0/l/i<",
|
|
"TT;TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/stores/StoreDynamicLink$storeLinkIfExists$1;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/stores/StoreDynamicLink$storeLinkIfExists$1;
|
|
|
|
invoke-direct {v0}, Lcom/discord/stores/StoreDynamicLink$storeLinkIfExists$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/stores/StoreDynamicLink$storeLinkIfExists$1;->INSTANCE:Lcom/discord/stores/StoreDynamicLink$storeLinkIfExists$1;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call(Landroid/net/Uri;)Lcom/discord/stores/StoreDynamicLink$DynamicLinkData;
|
|
.locals 5
|
|
|
|
sget-object v0, Landroid/net/Uri;->EMPTY:Landroid/net/Uri;
|
|
|
|
invoke-static {p1, v0}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
sget-object v0, Lf/a/b/g0/a;->B:Lf/a/b/g0/a;
|
|
|
|
const-string v2, "uri"
|
|
|
|
invoke-static {p1, v2}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p1}, Lf/a/b/g0/a;->b(Landroid/net/Uri;)Z
|
|
|
|
move-result v0
|
|
|
|
const-string v2, ""
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
sget-object v0, Lf/a/b/g0/a;->B:Lf/a/b/g0/a;
|
|
|
|
invoke-virtual {v0}, Lf/a/b/g0/a;->g()Lkotlin/text/Regex;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v3, v2
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v3}, Lkotlin/text/Regex;->matchEntire(Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-interface {v0}, Lkotlin/text/MatchResult;->getGroupValues()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->listIterator(I)Ljava/util/ListIterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_2
|
|
invoke-interface {v0}, Ljava/util/ListIterator;->hasPrevious()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
invoke-interface {v0}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
move-object v4, v3
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
invoke-static {v4}, Ly/a0/p;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v4
|
|
|
|
xor-int/lit8 v4, v4, 0x1
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-object v3, v1
|
|
|
|
:goto_1
|
|
move-object v0, v3
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
move-object v0, v1
|
|
|
|
:goto_2
|
|
sget-object v3, Lf/a/b/g0/a;->B:Lf/a/b/g0/a;
|
|
|
|
invoke-virtual {v3, p1}, Lf/a/b/g0/a;->a(Landroid/net/Uri;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
sget-object v3, Lf/a/b/g0/a;->B:Lf/a/b/g0/a;
|
|
|
|
invoke-virtual {v3}, Lf/a/b/g0/a;->c()Lkotlin/text/Regex;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
move-object v2, v4
|
|
|
|
:cond_5
|
|
invoke-virtual {v3, v2}, Lkotlin/text/Regex;->matchEntire(Ljava/lang/CharSequence;)Lkotlin/text/MatchResult;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
invoke-interface {v2}, Lkotlin/text/MatchResult;->getGroupValues()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/List;->listIterator(I)Ljava/util/ListIterator;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_6
|
|
invoke-interface {v2}, Ljava/util/ListIterator;->hasPrevious()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
invoke-interface {v2}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
move-object v4, v3
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
invoke-static {v4}, Ly/a0/p;->isBlank(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v4
|
|
|
|
xor-int/lit8 v4, v4, 0x1
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
move-object v3, v1
|
|
|
|
:goto_3
|
|
move-object v2, v3
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
move-object v2, v1
|
|
|
|
:goto_4
|
|
:try_start_0
|
|
const-string v3, "fingerprint"
|
|
|
|
invoke-virtual {p1, v3}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_5
|
|
|
|
:catch_0
|
|
move-object v3, v1
|
|
|
|
:goto_5
|
|
:try_start_1
|
|
const-string v4, "auth_token"
|
|
|
|
invoke-virtual {p1, v4}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
:catch_1
|
|
new-instance p1, Lcom/discord/stores/StoreDynamicLink$DynamicLinkData;
|
|
|
|
invoke-direct {p1, v3, v0, v2, v1}, Lcom/discord/stores/StoreDynamicLink$DynamicLinkData;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Landroid/net/Uri;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreDynamicLink$storeLinkIfExists$1;->call(Landroid/net/Uri;)Lcom/discord/stores/StoreDynamicLink$DynamicLinkData;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|