Update 'patches/litecord/1371.patch'

This commit is contained in:
dw 2021-02-23 17:42:53 +00:00
parent 5bf3ae1aa2
commit 30bb19ab17

View file

@ -26,19 +26,19 @@ diff -crB from/smali/com/discord/BuildConfig.smali to/smali/com/discord/BuildCon
.field public static final FLAVOR_vendor:Ljava/lang/String; = "discord" .field public static final FLAVOR_vendor:Ljava/lang/String; = "discord"
! .field public static final HOST:Ljava/lang/String; = "https://dev.litecord.top" ! .field public static final HOST:Ljava/lang/String; = "http://192.168.1.12"
! .field public static final HOST_ALTERNATE:Ljava/lang/String; = "https://dev.litecord.top" ! .field public static final HOST_ALTERNATE:Ljava/lang/String; = "http://192.168.1.12"
! .field public static final HOST_API:Ljava/lang/String; = "https://dev.litecord.top/api/" ! .field public static final HOST_API:Ljava/lang/String; = "http://192.168.1.12/api/"
! .field public static final HOST_CDN:Ljava/lang/String; = "https://dev.litecord.top" ! .field public static final HOST_CDN:Ljava/lang/String; = "http://192.168.1.12"
! .field public static final HOST_GIFT:Ljava/lang/String; = "https://dev.litecord.top" ! .field public static final HOST_GIFT:Ljava/lang/String; = "http://192.168.1.12"
! .field public static final HOST_GUILD_TEMPLATE:Ljava/lang/String; = "https://dev.litecord.top" ! .field public static final HOST_GUILD_TEMPLATE:Ljava/lang/String; = "http://192.168.1.12"
! .field public static final HOST_INVITE:Ljava/lang/String; = "https://dev.litecord.top" ! .field public static final HOST_INVITE:Ljava/lang/String; = "http://192.168.1.12"
.field public static final HOST_MEDIA_PROXY:Ljava/lang/String; = "https://media.discordapp.net" .field public static final HOST_MEDIA_PROXY:Ljava/lang/String; = "https://media.discordapp.net"
@ -58,7 +58,7 @@ diff -crB from/smali/com/discord/app/App.smali to/smali/com/discord/app/App.smal
invoke-virtual {v0, v2}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lkotlin/jvm/functions/Function2;)Lkotlin/Unit; invoke-virtual {v0, v2}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
! const-string v0, "https://dev.litecord.top" ! const-string v0, "http://192.168.1.12"
.line 48 .line 48
invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
@ -78,7 +78,7 @@ diff -crB from/smali/com/discord/stores/StoreGatewayConnection.smali to/smali/co
sget-object v3, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider; sget-object v3, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;
! const-string v6, "https://dev.litecord.top/api/" ! const-string v6, "http://192.168.1.12/api/"
invoke-direct {v7, v6, v3, v0}, Lcom/discord/gateway/rest/RestConfig;-><init>(Ljava/lang/String;Lcom/discord/restapi/RequiredHeadersInterceptor$HeadersProvider;Ljava/util/List;)V invoke-direct {v7, v6, v3, v0}, Lcom/discord/gateway/rest/RestConfig;-><init>(Ljava/lang/String;Lcom/discord/restapi/RequiredHeadersInterceptor$HeadersProvider;Ljava/util/List;)V
@ -98,7 +98,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
! const-string v1, "https://dev.litecord.top/app-icons/" ! const-string v1, "http://192.168.1.12/app-icons/"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
@ -115,7 +115,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
return-object p0 return-object p0
:cond_4 :cond_4
! const-string p3, "https://dev.litecord.top" ! const-string p3, "http://192.168.1.12"
.line 4 .line 4
invoke-interface {p3}, Ljava/lang/CharSequence;->length()I invoke-interface {p3}, Ljava/lang/CharSequence;->length()I
@ -132,7 +132,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V
! const-string v0, "https://dev.litecord.top/channel-icons/" ! const-string v0, "http://192.168.1.12/channel-icons/"
invoke-virtual {p4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
@ -149,7 +149,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
! const-string v1, "https://dev.litecord.top" ! const-string v1, "http://192.168.1.12"
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
@ -166,7 +166,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
! const-string v2, "https://dev.litecord.top/icons/" ! const-string v2, "http://192.168.1.12/icons/"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
@ -183,7 +183,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
:cond_0 :cond_0
if-eqz p1, :cond_4 if-eqz p1, :cond_4
! const-string p2, "https://dev.litecord.top" ! const-string p2, "http://192.168.1.12"
.line 6 .line 6
invoke-interface {p2}, Ljava/lang/CharSequence;->length()I invoke-interface {p2}, Ljava/lang/CharSequence;->length()I
@ -200,7 +200,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
! const-string v0, "https://dev.litecord.top/avatars/" ! const-string v0, "http://192.168.1.12/avatars/"
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
@ -217,7 +217,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
! const-string v1, "https://dev.litecord.top/app-assets/" ! const-string v1, "http://192.168.1.12/app-assets/"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
@ -234,7 +234,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
move-object p3, v0 move-object p3, v0
:goto_0 :goto_0
! const-string v1, "https://dev.litecord.top" ! const-string v1, "http://192.168.1.12"
.line 3 .line 3
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
@ -251,7 +251,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
! const-string v3, "https://dev.litecord.top/banners/" ! const-string v3, "http://192.168.1.12/banners/"
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
@ -268,7 +268,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
! const-string v1, "https://dev.litecord.top/app-icons/" ! const-string v1, "http://192.168.1.12/app-icons/"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
@ -285,7 +285,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
move-object p4, v0 move-object p4, v0
:goto_0 :goto_0
! const-string v1, "https://dev.litecord.top" ! const-string v1, "http://192.168.1.12"
.line 2 .line 2
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
@ -302,7 +302,7 @@ diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/dis
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
! const-string v3, "https://dev.litecord.top/splashes/" ! const-string v3, "http://192.168.1.12/splashes/"
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
@ -322,7 +322,7 @@ diff -crB from/smali/com/discord/utilities/rest/RestAPI$Companion.smali to/smali
.line 9 .line 9
new-instance v1, Lcom/discord/restapi/RestAPIBuilder; new-instance v1, Lcom/discord/restapi/RestAPIBuilder;
! const-string v10, "https://dev.litecord.top/api/" ! const-string v10, "http://192.168.1.12/api/"
invoke-direct {v1, v10, v7}, Lcom/discord/restapi/RestAPIBuilder;-><init>(Ljava/lang/String;Lb0/p;)V invoke-direct {v1, v10, v7}, Lcom/discord/restapi/RestAPIBuilder;-><init>(Ljava/lang/String;Lb0/p;)V