Also fix a bug that prevents installation of multiple branches / official client, thanks whovian for pointing it out.
274 lines
10 KiB
Diff
274 lines
10 KiB
Diff
diff -crB com.discord-1006-base/smali/com/discord/app/App.smali com.discord-1006/smali/com/discord/app/App.smali
|
|
*** com.discord-1006-base/smali/com/discord/app/App.smali 2019-12-13 11:10:56.940789276 +0300
|
|
--- com.discord-1006/smali/com/discord/app/App.smali 2019-12-13 13:59:42.310421127 +0300
|
|
***************
|
|
*** 197,203 ****
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lcom/discord/utilities/logging/Logger;Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
|
|
|
|
! const-string v0, "https://cdn.discordapp.com"
|
|
|
|
.line 23
|
|
invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
|
|
--- 197,203 ----
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/discord/utilities/view/text/LinkifiedTextView$Companion;->init(Lcom/discord/utilities/logging/Logger;Lkotlin/jvm/functions/Function2;)Lkotlin/Unit;
|
|
|
|
! const-string v0, "https://dev.litecord.top"
|
|
|
|
.line 23
|
|
invoke-static {v0}, Lcom/discord/models/domain/emoji/ModelEmojiCustom;->setCdnUri(Ljava/lang/String;)V
|
|
diff -crB com.discord-1006-base/smali/com/discord/BuildConfig.smali com.discord-1006/smali/com/discord/BuildConfig.smali
|
|
*** com.discord-1006-base/smali/com/discord/BuildConfig.smali 2019-12-13 11:10:56.940789276 +0300
|
|
--- com.discord-1006/smali/com/discord/BuildConfig.smali 2019-12-13 13:59:42.310421127 +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-1006-base/smali/com/discord/stores/StoreGatewayConnection.smali com.discord-1006/smali/com/discord/stores/StoreGatewayConnection.smali
|
|
*** com.discord-1006-base/smali/com/discord/stores/StoreGatewayConnection.smali 2019-12-13 11:10:57.224124287 +0300
|
|
--- com.discord-1006/smali/com/discord/stores/StoreGatewayConnection.smali 2019-12-13 13:59:42.313754481 +0300
|
|
***************
|
|
*** 1333,1339 ****
|
|
|
|
sget-object v2, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;
|
|
|
|
! 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
|
|
|
|
--- 1333,1339 ----
|
|
|
|
sget-object v2, Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;->INSTANCE:Lcom/discord/utilities/rest/RestAPI$AppHeadersProvider;
|
|
|
|
! 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
|
|
|
|
diff -crB com.discord-1006-base/smali/com/discord/utilities/icon/IconUtils.smali com.discord-1006/smali/com/discord/utilities/icon/IconUtils.smali
|
|
*** com.discord-1006-base/smali/com/discord/utilities/icon/IconUtils.smali 2019-12-13 11:10:57.340791645 +0300
|
|
--- com.discord-1006/smali/com/discord/utilities/icon/IconUtils.smali 2019-12-13 13:59:42.317087835 +0300
|
|
***************
|
|
*** 441,447 ****
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
! const-string p3, "https://cdn.discordapp.com"
|
|
|
|
.line 2
|
|
invoke-interface {p3}, Ljava/lang/CharSequence;->length()I
|
|
--- 441,447 ----
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
! const-string p3, "https://dev.litecord.top"
|
|
|
|
.line 2
|
|
invoke-interface {p3}, Ljava/lang/CharSequence;->length()I
|
|
***************
|
|
*** 491,497 ****
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v0, "https://cdn.discordapp.com/channel-icons/"
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
--- 491,497 ----
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v0, "https://dev.litecord.top/channel-icons/"
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
***************
|
|
*** 808,814 ****
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
! const-string p2, "https://cdn.discordapp.com"
|
|
|
|
.line 2
|
|
invoke-interface {p2}, Ljava/lang/CharSequence;->length()I
|
|
--- 808,814 ----
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
! const-string p2, "https://dev.litecord.top"
|
|
|
|
.line 2
|
|
invoke-interface {p2}, Ljava/lang/CharSequence;->length()I
|
|
***************
|
|
*** 892,898 ****
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v0, "https://cdn.discordapp.com/icons/"
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
--- 892,898 ----
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v0, "https://dev.litecord.top/icons/"
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
***************
|
|
*** 1112,1118 ****
|
|
:cond_0
|
|
if-eqz p1, :cond_4
|
|
|
|
! const-string p2, "https://cdn.discordapp.com"
|
|
|
|
.line 6
|
|
invoke-interface {p2}, Ljava/lang/CharSequence;->length()I
|
|
--- 1112,1118 ----
|
|
:cond_0
|
|
if-eqz p1, :cond_4
|
|
|
|
! const-string p2, "https://dev.litecord.top"
|
|
|
|
.line 6
|
|
invoke-interface {p2}, Ljava/lang/CharSequence;->length()I
|
|
***************
|
|
*** 1183,1189 ****
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v0, "https://cdn.discordapp.com/avatars/"
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
--- 1183,1189 ----
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v0, "https://dev.litecord.top/avatars/"
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
***************
|
|
*** 2049,2055 ****
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v1, "https://cdn.discordapp.com/app-icons/"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
--- 2049,2055 ----
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v1, "https://dev.litecord.top/app-icons/"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
***************
|
|
*** 2166,2172 ****
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v1, "https://cdn.discordapp.com/app-assets/"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
--- 2166,2172 ----
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v1, "https://dev.litecord.top/app-assets/"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
***************
|
|
*** 2558,2564 ****
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v1, "https://cdn.discordapp.com/app-icons/"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
--- 2558,2564 ----
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
! const-string v1, "https://dev.litecord.top/app-icons/"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
diff -crB com.discord-1006-base/smali/com/discord/utilities/rest/RestAPI$Companion.smali com.discord-1006/smali/com/discord/utilities/rest/RestAPI$Companion.smali
|
|
*** com.discord-1006-base/smali/com/discord/utilities/rest/RestAPI$Companion.smali 2019-12-13 11:10:57.360791763 +0300
|
|
--- com.discord-1006/smali/com/discord/utilities/rest/RestAPI$Companion.smali 2019-12-13 13:59:42.317087835 +0300
|
|
***************
|
|
*** 280,286 ****
|
|
.line 9
|
|
new-instance v1, Lcom/discord/restapi/RestAPIBuilder;
|
|
|
|
! const-string v9, "https://discordapp.com/api/"
|
|
|
|
invoke-direct {v1, v9, v6}, Lcom/discord/restapi/RestAPIBuilder;-><init>(Ljava/lang/String;Lw/n;)V
|
|
|
|
--- 280,286 ----
|
|
.line 9
|
|
new-instance v1, Lcom/discord/restapi/RestAPIBuilder;
|
|
|
|
! const-string v9, "https://dev.litecord.top/api/"
|
|
|
|
invoke-direct {v1, v9, v6}, Lcom/discord/restapi/RestAPIBuilder;-><init>(Ljava/lang/String;Lw/n;)V
|
|
|
|
diff -crB com.discord-1006-base/smali/com/discord/widgets/chat/list/ViewEmbedGameInvite.smali com.discord-1006/smali/com/discord/widgets/chat/list/ViewEmbedGameInvite.smali
|
|
*** com.discord-1006-base/smali/com/discord/widgets/chat/list/ViewEmbedGameInvite.smali 2019-12-13 11:10:57.494125886 +0300
|
|
--- com.discord-1006/smali/com/discord/widgets/chat/list/ViewEmbedGameInvite.smali 2019-12-13 13:59:42.317087835 +0300
|
|
***************
|
|
*** 769,775 ****
|
|
:cond_c
|
|
iget-object v3, v0, Lcom/discord/widgets/chat/list/ViewEmbedGameInvite;->coverImage:Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
! const-string v4, "https://cdn.discordapp.com/app-icons/"
|
|
|
|
.line 19
|
|
invoke-static {v4}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
--- 769,775 ----
|
|
:cond_c
|
|
iget-object v3, v0, Lcom/discord/widgets/chat/list/ViewEmbedGameInvite;->coverImage:Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
! const-string v4, "https://dev.litecord.top/app-icons/"
|
|
|
|
.line 19
|
|
invoke-static {v4}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|