This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/resources/patches/litecord/980.patch

331 lines
12 KiB
Diff
Raw Normal View History

diff -crB com.discord-980-base/smali/com/discord/app/App.smali com.discord-980/smali/com/discord/app/App.smali
*** com.discord-980-base/smali/com/discord/app/App.smali 2019-10-31 11:15:16.449138399 +0300
--- com.discord-980/smali/com/discord/app/App.smali 2019-10-31 11:22:19.374711135 +0300
***************
*** 227,233 ****
invoke-virtual {v1, v2, v3}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lcom/discord/utilities/logging/Logger;Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
! const-string v1, "https://cdn.discordapp.com"
.line 75
invoke-static {v1}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
--- 227,233 ----
invoke-virtual {v1, v2, v3}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lcom/discord/utilities/logging/Logger;Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
! const-string v1, "https://dev.litecord.top"
.line 75
invoke-static {v1}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
diff -crB com.discord-980-base/smali/com/discord/BuildConfig.smali com.discord-980/smali/com/discord/BuildConfig.smali
*** com.discord-980-base/smali/com/discord/BuildConfig.smali 2019-10-31 11:15:16.449138399 +0300
--- com.discord-980/smali/com/discord/BuildConfig.smali 2019-10-31 11:22:19.374711135 +0300
***************
*** 18,32 ****
.field public static final FLAVOR_vendor:Ljava/lang/String; = "discord"
! .field public static final HOST:Ljava/lang/String; = "https://discordapp.com"
! .field public static final HOST_API:Ljava/lang/String; = "https://discordapp.com/api/"
! .field public static final HOST_CDN:Ljava/lang/String; = "https://cdn.discordapp.com"
.field public static final HOST_GIFT:Ljava/lang/String; = "https://discord.gift"
! .field public static final HOST_INVITE:Ljava/lang/String; = "https://discord.gg"
.field public static final LOCAL_IP:Ljava/lang/String; = ""
--- 18,32 ----
.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_API:Ljava/lang/String; = "https://dev.litecord.top/api/"
! .field public static final HOST_CDN:Ljava/lang/String; = "https://dev.litecord.top"
.field public static final HOST_GIFT:Ljava/lang/String; = "https://discord.gift"
! .field public static final HOST_INVITE:Ljava/lang/String; = "https://dev.litecord.top"
.field public static final LOCAL_IP:Ljava/lang/String; = ""
diff -crB com.discord-980-base/smali/com/discord/gateway/GatewaySocket.smali com.discord-980/smali/com/discord/gateway/GatewaySocket.smali
*** com.discord-980-base/smali/com/discord/gateway/GatewaySocket.smali 2019-10-31 11:15:16.495805313 +0300
--- com.discord-980/smali/com/discord/gateway/GatewaySocket.smali 2019-10-31 11:22:34.858126471 +0300
***************
*** 42,48 ****
.end annotation
.end field
! .field private static final GATEWAY_COMPRESSION:Ljava/lang/String; = "zlib-stream"
.field private static final GATEWAY_ENCODING:Ljava/lang/String; = "json"
--- 42,48 ----
.end annotation
.end field
! .field private static final GATEWAY_COMPRESSION:Ljava/lang/String; = ""
.field private static final GATEWAY_ENCODING:Ljava/lang/String; = "json"
***************
*** 1054,1060 ****
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
! const-string p1, "/?encoding=json&v=6&compress=zlib-stream"
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
--- 1054,1060 ----
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
! const-string p1, "/?encoding=json&v=6"
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
Only in com.discord-980/smali/com/discord/gateway: GatewaySocket.smali.orig
Only in com.discord-980/smali/com/discord/gateway: GatewaySocket.smali.rej
diff -crB com.discord-980-base/smali/com/discord/gateway/io/OutgoingPayload$Identify.smali com.discord-980/smali/com/discord/gateway/io/OutgoingPayload$Identify.smali
*** com.discord-980-base/smali/com/discord/gateway/io/OutgoingPayload$Identify.smali 2019-10-31 11:15:16.505805365 +0300
--- com.discord-980/smali/com/discord/gateway/io/OutgoingPayload$Identify.smali 2019-10-31 11:22:19.374711135 +0300
***************
*** 66,71 ****
--- 66,73 ----
iput p2, p0, Lcom/discord/gateway/io/OutgoingPayload$Identify;->large_threshold:I
+ const/4 p3, 0x0
+
iput-boolean p3, p0, Lcom/discord/gateway/io/OutgoingPayload$Identify;->compress:Z
iput-object p4, p0, Lcom/discord/gateway/io/OutgoingPayload$Identify;->properties:Ljava/util/Map;
diff -crB com.discord-980-base/smali/com/discord/stores/StoreGatewayConnection.smali com.discord-980/smali/com/discord/stores/StoreGatewayConnection.smali
*** com.discord-980-base/smali/com/discord/stores/StoreGatewayConnection.smali 2019-10-31 11:15:16.702473070 +0300
--- com.discord-980/smali/com/discord/stores/StoreGatewayConnection.smali 2019-10-31 11:22:19.374711135 +0300
***************
*** 1313,1319 ****
check-cast v2, Lcom/discord/restapi/RequiredHeadersInterceptor$HeadersProvider;
! const-string v3, "https://discordapp.com/api/"
invoke-direct {v9, v3, v2, v0}, Lcom/discord/gateway/rest/RestConfig;-><init>(Ljava/lang/String;Lcom/discord/restapi/RequiredHeadersInterceptor$HeadersProvider;Ljava/util/List;)V
--- 1313,1319 ----
check-cast v2, Lcom/discord/restapi/RequiredHeadersInterceptor$HeadersProvider;
! const-string v3, "https://dev.litecord.top/api/"
invoke-direct {v9, v3, v2, v0}, Lcom/discord/gateway/rest/RestConfig;-><init>(Ljava/lang/String;Lcom/discord/restapi/RequiredHeadersInterceptor$HeadersProvider;Ljava/util/List;)V
Only in com.discord-980/smali/com/discord/stores: StoreGatewayConnection.smali.orig
diff -crB com.discord-980-base/smali/com/discord/utilities/icon/IconUtils.smali com.discord-980/smali/com/discord/utilities/icon/IconUtils.smali
*** com.discord-980-base/smali/com/discord/utilities/icon/IconUtils.smali 2019-10-31 11:15:16.882474021 +0300
--- com.discord-980/smali/com/discord/utilities/icon/IconUtils.smali 2019-10-31 11:23:17.975021487 +0300
***************
*** 448,454 ****
goto :goto_2
:cond_1
! const-string p3, "https://cdn.discordapp.com"
.line 117
check-cast p3, Ljava/lang/CharSequence;
--- 448,454 ----
goto :goto_2
:cond_1
! const-string p3, "https://dev.litecord.top"
.line 117
check-cast p3, Ljava/lang/CharSequence;
***************
*** 496,502 ****
:cond_3
new-instance p3, Ljava/lang/StringBuilder;
! const-string v0, "https://cdn.discordapp.com/channel-icons/"
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
--- 496,502 ----
:cond_3
new-instance p3, Ljava/lang/StringBuilder;
! const-string v0, "https://dev.litecord.top/channel-icons/"
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
***************
*** 816,822 ****
goto :goto_2
:cond_0
! const-string p2, "https://cdn.discordapp.com"
.line 151
check-cast p2, Ljava/lang/CharSequence;
--- 816,822 ----
goto :goto_2
:cond_0
! const-string p2, "https://dev.litecord.top"
.line 151
check-cast p2, Ljava/lang/CharSequence;
***************
*** 896,902 ****
:goto_1
new-instance p3, Ljava/lang/StringBuilder;
! const-string v0, "https://cdn.discordapp.com/icons/"
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
--- 896,902 ----
:goto_1
new-instance p3, Ljava/lang/StringBuilder;
! const-string v0, "https://dev.litecord.top/icons/"
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
***************
*** 1115,1121 ****
:cond_0
if-eqz p1, :cond_4
! const-string p2, "https://cdn.discordapp.com"
.line 96
check-cast p2, Ljava/lang/CharSequence;
--- 1115,1121 ----
:cond_0
if-eqz p1, :cond_4
! const-string p2, "https://dev.litecord.top"
.line 96
check-cast p2, Ljava/lang/CharSequence;
***************
*** 1186,1192 ****
:goto_1
new-instance p3, Ljava/lang/StringBuilder;
! const-string v0, "https://cdn.discordapp.com/avatars/"
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
--- 1186,1192 ----
:goto_1
new-instance p3, Ljava/lang/StringBuilder;
! const-string v0, "https://dev.litecord.top/avatars/"
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
***************
*** 1995,2001 ****
.line 215
new-instance v0, Ljava/lang/StringBuilder;
! const-string v1, "https://cdn.discordapp.com/app-icons/"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
--- 1995,2001 ----
.line 215
new-instance v0, Ljava/lang/StringBuilder;
! const-string v1, "https://dev.litecord.top/app-icons/"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
***************
*** 2111,2117 ****
.line 194
new-instance v0, Ljava/lang/StringBuilder;
! const-string v1, "https://cdn.discordapp.com/app-assets/"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
--- 2111,2117 ----
.line 194
new-instance v0, Ljava/lang/StringBuilder;
! const-string v1, "https://dev.litecord.top/app-assets/"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
***************
*** 2520,2526 ****
.line 211
new-instance v0, Ljava/lang/StringBuilder;
! const-string v1, "https://cdn.discordapp.com/app-icons/"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
--- 2520,2526 ----
.line 211
new-instance v0, Ljava/lang/StringBuilder;
! const-string v1, "https://dev.litecord.top/app-icons/"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
diff -crB com.discord-980-base/smali/com/discord/utilities/rest/RestAPI$Companion.smali com.discord-980/smali/com/discord/utilities/rest/RestAPI$Companion.smali
*** com.discord-980-base/smali/com/discord/utilities/rest/RestAPI$Companion.smali 2019-10-31 11:15:16.919140882 +0300
--- com.discord-980/smali/com/discord/utilities/rest/RestAPI$Companion.smali 2019-10-31 11:22:19.378044486 +0300
***************
*** 283,289 ****
check-cast v6, Lokhttp3/m;
! const-string v9, "https://discordapp.com/api/"
invoke-direct {v0, v9, v6}, Lcom/discord/restapi/RestAPIBuilder;-><init>(Ljava/lang/String;Lokhttp3/m;)V
--- 283,289 ----
check-cast v6, Lokhttp3/m;
! const-string v9, "https://dev.litecord.top/api/"
invoke-direct {v0, v9, v6}, Lcom/discord/restapi/RestAPIBuilder;-><init>(Ljava/lang/String;Lokhttp3/m;)V
Only in com.discord-980/smali/com/discord/utilities/rest: RestAPI$Companion.smali.orig
diff -crB com.discord-980-base/smali/com/discord/widgets/chat/list/ViewEmbedGameInvite.smali com.discord-980/smali/com/discord/widgets/chat/list/ViewEmbedGameInvite.smali
*** com.discord-980-base/smali/com/discord/widgets/chat/list/ViewEmbedGameInvite.smali 2019-10-31 11:15:17.162475500 +0300
--- com.discord-980/smali/com/discord/widgets/chat/list/ViewEmbedGameInvite.smali 2019-10-31 11:23:37.748459542 +0300
***************
*** 749,755 ****
.line 100
new-instance v3, Ljava/lang/StringBuilder;
! const-string v4, "https://cdn.discordapp.com/app-icons/"
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
--- 749,755 ----
.line 100
new-instance v3, Ljava/lang/StringBuilder;
! const-string v4, "https://dev.litecord.top/app-icons/"
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
Only in com.discord-980/smali/com/discord/widgets/chat/list: WidgetChatListAdapterItemGameInvite.smali.orig
Only in com.discord-980/smali/com/discord/widgets/chat/list: WidgetChatListAdapterItemGameInvite.smali.rej