97 lines
2.6 KiB
Smali
97 lines
2.6 KiB
Smali
.class public final Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$SDK;
|
|
.super Ljava/lang/Object;
|
|
.source "IntentUtils.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "SDK"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$SDK;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$SDK;
|
|
|
|
invoke-direct {v0}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$SDK;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$SDK;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteBuilders$SDK;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final join(Ljava/lang/String;JLjava/lang/String;)Landroid/content/Intent;
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-static {p0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/net/Uri;->buildUpon()Landroid/net/Uri$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "join"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/net/Uri$Builder;->appendPath(Ljava/lang/String;)Landroid/net/Uri$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "application_id"
|
|
|
|
invoke-virtual {p0, p2, p1}, Landroid/net/Uri$Builder;->appendQueryParameter(Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "secret"
|
|
|
|
invoke-virtual {p0, p1, p3}, Landroid/net/Uri$Builder;->appendQueryParameter(Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/net/Uri$Builder;->build()Landroid/net/Uri;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
const-string p2, "com.discord.intent.action.SDK"
|
|
|
|
invoke-direct {p1, p2, p0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p0, "deeplink"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|