Browse Source

Changes of com.discord v1280

master
root 1 month ago
parent
commit
0698471595
35 changed files with 1180 additions and 512 deletions
  1. +3
    -3
      com.discord/apktool.yml
  2. BIN
     
  3. BIN
     
  4. BIN
     
  5. +1
    -1
      com.discord/res/values/strings.xml
  6. +3
    -3
      com.discord/smali/com/discord/BuildConfig.smali
  7. +0
    -4
      com.discord/smali/com/discord/app/App.smali
  8. +15
    -3
      com.discord/smali/com/discord/app/AppActivity$b.smali
  9. +1
    -1
      com.discord/smali/com/discord/app/AppActivity$c.smali
  10. +2
    -2
      com.discord/smali/com/discord/app/AppActivity$d.smali
  11. +2
    -2
      com.discord/smali/com/discord/app/AppActivity.smali
  12. +480
    -0
      com.discord/smali/com/discord/models/sticker/dto/ModelUserStickerPack.smali
  13. +1
    -21
      com.discord/smali/com/discord/restapi/RestAPIInterface.smali
  14. +1
    -1
      com.discord/smali/com/discord/stores/StoreClientVersion.smali
  15. +1
    -1
      com.discord/smali/com/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$authNavHandler$1.smali
  16. +1
    -1
      com.discord/smali/com/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$oAuthStateHandler$1.smali
  17. +1
    -1
      com.discord/smali/com/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$verificationNavHandler$1.smali
  18. +5
    -5
      com.discord/smali/com/discord/stores/StoreStickers$OwnedStickerPackState$Loaded.smali
  19. +0
    -70
      com.discord/smali/com/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2$1.smali
  20. +1
    -9
      com.discord/smali/com/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2.smali
  21. +78
    -3
      com.discord/smali/com/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2$1.smali
  22. +2
    -2
      com.discord/smali/com/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2.smali
  23. +0
    -94
      com.discord/smali/com/discord/stores/StoreStickers.smali
  24. +3
    -3
      com.discord/smali/com/discord/utilities/analytics/AnalyticSuperProperties.smali
  25. +39
    -46
      com.discord/smali/com/discord/utilities/billing/GooglePlayBillingManager$GooglePlayBillingManagerLifecycleListener.smali
  26. +83
    -0
      com.discord/smali/com/discord/utilities/billing/GooglePlayBillingManager$init$1.smali
  27. +64
    -46
      com.discord/smali/com/discord/utilities/billing/GooglePlayBillingManager.smali
  28. +1
    -1
      com.discord/smali/com/discord/utilities/rest/RestAPI$AppHeadersProvider.smali
  29. +1
    -30
      com.discord/smali/com/discord/utilities/rest/RestAPI.smali
  30. +25
    -7
      com.discord/smali/com/discord/widgets/chat/input/sticker/StickerPackStoreSheetViewModel.smali
  31. +116
    -29
      com.discord/smali/com/discord/widgets/chat/input/sticker/StickerPickerViewModel.smali
  32. +1
    -1
      com.discord/smali/com/discord/widgets/debugging/WidgetFatalCrash.smali
  33. +35
    -8
      com.discord/smali/f/a/b/m.smali
  34. +1
    -1
      com.discord/smali_classes2/com/discord/widgets/settings/WidgetSettings.smali
  35. +213
    -113
      com.discord/smali_classes2/com/discord/widgets/settings/premium/WidgetSettingsPremium.smali

+ 3
- 3
com.discord/apktool.yml View File

@@ -1,5 +1,5 @@
!!brut.androlib.meta.MetaInfo
apkFileName: com.discord-1279.apk
apkFileName: com.discord-1280.apk
compressionType: false
doNotCompress:
- resources.arsc
@@ -3111,5 +3111,5 @@ usesFramework:
tag: null
version: 2.4.2-83a459-SNAPSHOT
versionInfo:
versionCode: '1279'
versionName: '41.10'
versionCode: '1280'
versionName: '41.11'

BIN
View File


BIN
View File


BIN
View File


+ 1
- 1
com.discord/res/values/strings.xml View File

@@ -1156,7 +1156,7 @@ We’re here to make a good impression."</string>
<string name="color_picker_presets">Presets</string>
<string name="color_picker_title">Select a color</string>
<string name="color_picker_transparency">Transparency</string>
<string name="com.crashlytics.android.build_id">04ab6940807843bb8d824243008c2c97</string>
<string name="com.crashlytics.android.build_id">a5876c594c154667b8ea29ae2711532a</string>
<string name="coming_soon">Coming Soon</string>
<string name="command_giphy_description">Search Animated GIFs on the Web</string>
<string name="command_me_description">Displays text with emphasis.</string>


+ 3
- 3
com.discord/smali/com/discord/BuildConfig.smali View File

@@ -42,11 +42,11 @@

.field public static final SAMSUNGxDISCORD_CLIENT_ID:Ljava/lang/String; = "97t47j218f"

.field public static final USER_AGENT:Ljava/lang/String; = "Discord-Android/1279"
.field public static final USER_AGENT:Ljava/lang/String; = "Discord-Android/1280"

.field public static final VERSION_CODE:I = 0x4ff
.field public static final VERSION_CODE:I = 0x500

.field public static final VERSION_NAME:Ljava/lang/String; = "41.10"
.field public static final VERSION_NAME:Ljava/lang/String; = "41.11"


# direct methods


+ 0
- 4
com.discord/smali/com/discord/app/App.smali View File

@@ -301,10 +301,6 @@
monitor-exit v1

:goto_2
sget-object v0, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;

invoke-virtual {v0, p0}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->init(Landroid/app/Application;)V

const-string v0, "Application initialized."

invoke-static {v0}, Lcom/discord/app/AppLog;->i(Ljava/lang/String;)V


+ 15
- 3
com.discord/smali/com/discord/app/AppActivity$b.smali View File

@@ -56,7 +56,7 @@
.end method

.method public final invoke()V
.locals 3
.locals 4

sget-boolean v0, Lcom/discord/app/AppActivity;->r:Z

@@ -128,12 +128,24 @@

move-result-object v1

const-string v2, "applicationContext"
const-string v3, "applicationContext"

invoke-static {v1, v2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v1, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V

invoke-virtual {v0, v1}, Lcom/discord/utilities/ShareUtils;->updateDirectShareTargets(Landroid/content/Context;)V

sget-object v0, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;

iget-object v1, p0, Lcom/discord/app/AppActivity$b;->this$0:Lcom/discord/app/AppActivity;

invoke-virtual {v1}, Landroid/app/Activity;->getApplication()Landroid/app/Application;

move-result-object v1

invoke-static {v1, v2}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V

invoke-virtual {v0, v1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->init(Landroid/app/Application;)V

:cond_0
return-void
.end method

+ 1
- 1
com.discord/smali/com/discord/app/AppActivity$c.smali View File

@@ -74,7 +74,7 @@

if-eqz v0, :cond_4

sget-object v2, Lf/a/b/m;->f:Lf/a/b/m;
sget-object v2, Lf/a/b/m;->g:Lf/a/b/m;

sget-object v2, Lf/a/b/m;->e:Ljava/util/List;



+ 2
- 2
com.discord/smali/com/discord/app/AppActivity$d.smali View File

@@ -114,7 +114,7 @@
goto :goto_1

:cond_2
sget-object v0, Lf/a/b/m;->f:Lf/a/b/m;
sget-object v0, Lf/a/b/m;->g:Lf/a/b/m;

sget-object v0, Lf/a/b/m;->c:Ljava/util/List;

@@ -176,7 +176,7 @@
return-void

:cond_6
sget-object v0, Lf/a/b/m;->f:Lf/a/b/m;
sget-object v0, Lf/a/b/m;->g:Lf/a/b/m;

iget-object v0, p0, Lcom/discord/app/AppActivity$d;->this$0:Lcom/discord/app/AppActivity;



+ 2
- 2
com.discord/smali/com/discord/app/AppActivity.smali View File

@@ -189,7 +189,7 @@
:cond_0
iget-object v0, p1, Lcom/discord/app/AppActivity$a;->a:Ljava/lang/String;

sget-object v3, Lf/a/b/m;->f:Lf/a/b/m;
sget-object v3, Lf/a/b/m;->g:Lf/a/b/m;

sget-object v3, Lf/a/b/m;->e:Ljava/util/List;

@@ -1242,7 +1242,7 @@

invoke-super {p0}, Lcom/discord/app/AppTransitionActivity;->onResume()V

sget-object v0, Lf/a/b/m;->f:Lf/a/b/m;
sget-object v0, Lf/a/b/m;->g:Lf/a/b/m;

const-string v0, "activity"



+ 480
- 0
com.discord/smali/com/discord/models/sticker/dto/ModelUserStickerPack.smali View File

@@ -0,0 +1,480 @@
.class public final Lcom/discord/models/sticker/dto/ModelUserStickerPack;
.super Ljava/lang/Object;
.source "ModelUserStickerPack.kt"


# instance fields
.field public final entitlementId:J

.field public final hasAccess:Z

.field public final packId:J

.field public final premiumTypeRequired:Ljava/lang/Integer;

.field public final stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

.field public final userId:J


# direct methods
.method public constructor <init>(JJJZLjava/lang/Integer;Lcom/discord/models/sticker/dto/ModelStickerPack;)V
.locals 0

invoke-direct {p0}, Ljava/lang/Object;-><init>()V

iput-wide p1, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->userId:J

iput-wide p3, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->packId:J

iput-wide p5, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->entitlementId:J

iput-boolean p7, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->hasAccess:Z

iput-object p8, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->premiumTypeRequired:Ljava/lang/Integer;

iput-object p9, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

return-void
.end method

.method public static synthetic copy$default(Lcom/discord/models/sticker/dto/ModelUserStickerPack;JJJZLjava/lang/Integer;Lcom/discord/models/sticker/dto/ModelStickerPack;ILjava/lang/Object;)Lcom/discord/models/sticker/dto/ModelUserStickerPack;
.locals 10

move-object v0, p0

and-int/lit8 v1, p10, 0x1

if-eqz v1, :cond_0

iget-wide v1, v0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->userId:J

goto :goto_0

:cond_0
move-wide v1, p1

:goto_0
and-int/lit8 v3, p10, 0x2

if-eqz v3, :cond_1

iget-wide v3, v0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->packId:J

goto :goto_1

:cond_1
move-wide v3, p3

:goto_1
and-int/lit8 v5, p10, 0x4

if-eqz v5, :cond_2

iget-wide v5, v0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->entitlementId:J

goto :goto_2

:cond_2
move-wide v5, p5

:goto_2
and-int/lit8 v7, p10, 0x8

if-eqz v7, :cond_3

iget-boolean v7, v0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->hasAccess:Z

goto :goto_3

:cond_3
move/from16 v7, p7

:goto_3
and-int/lit8 v8, p10, 0x10

if-eqz v8, :cond_4

iget-object v8, v0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->premiumTypeRequired:Ljava/lang/Integer;

goto :goto_4

:cond_4
move-object/from16 v8, p8

:goto_4
and-int/lit8 v9, p10, 0x20

if-eqz v9, :cond_5

iget-object v9, v0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

goto :goto_5

:cond_5
move-object/from16 v9, p9

:goto_5
move-wide p1, v1

move-wide p3, v3

move-wide p5, v5

move/from16 p7, v7

move-object/from16 p8, v8

move-object/from16 p9, v9

invoke-virtual/range {p0 .. p9}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->copy(JJJZLjava/lang/Integer;Lcom/discord/models/sticker/dto/ModelStickerPack;)Lcom/discord/models/sticker/dto/ModelUserStickerPack;

move-result-object v0

return-object v0
.end method


# virtual methods
.method public final component1()J
.locals 2

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->userId:J

return-wide v0
.end method

.method public final component2()J
.locals 2

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->packId:J

return-wide v0
.end method

.method public final component3()J
.locals 2

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->entitlementId:J

return-wide v0
.end method

.method public final component4()Z
.locals 1

iget-boolean v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->hasAccess:Z

return v0
.end method

.method public final component5()Ljava/lang/Integer;
.locals 1

iget-object v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->premiumTypeRequired:Ljava/lang/Integer;

return-object v0
.end method

.method public final component6()Lcom/discord/models/sticker/dto/ModelStickerPack;
.locals 1

iget-object v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

return-object v0
.end method

.method public final copy(JJJZLjava/lang/Integer;Lcom/discord/models/sticker/dto/ModelStickerPack;)Lcom/discord/models/sticker/dto/ModelUserStickerPack;
.locals 11

new-instance v10, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

move-object v0, v10

move-wide v1, p1

move-wide v3, p3

move-wide/from16 v5, p5

move/from16 v7, p7

move-object/from16 v8, p8

move-object/from16 v9, p9

invoke-direct/range {v0 .. v9}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;-><init>(JJJZLjava/lang/Integer;Lcom/discord/models/sticker/dto/ModelStickerPack;)V

return-object v10
.end method

.method public equals(Ljava/lang/Object;)Z
.locals 5

if-eq p0, p1, :cond_1

instance-of v0, p1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

if-eqz v0, :cond_0

check-cast p1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->userId:J

iget-wide v2, p1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->userId:J

cmp-long v4, v0, v2

if-nez v4, :cond_0

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->packId:J

iget-wide v2, p1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->packId:J

cmp-long v4, v0, v2

if-nez v4, :cond_0

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->entitlementId:J

iget-wide v2, p1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->entitlementId:J

cmp-long v4, v0, v2

if-nez v4, :cond_0

iget-boolean v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->hasAccess:Z

iget-boolean v1, p1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->hasAccess:Z

if-ne v0, v1, :cond_0

iget-object v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->premiumTypeRequired:Ljava/lang/Integer;

iget-object v1, p1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->premiumTypeRequired:Ljava/lang/Integer;

invoke-static {v0, v1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_0

iget-object v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

iget-object p1, p1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

invoke-static {v0, p1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z

move-result p1

if-eqz p1, :cond_0

goto :goto_0

:cond_0
const/4 p1, 0x0

return p1

:cond_1
:goto_0
const/4 p1, 0x1

return p1
.end method

.method public final getEntitlementId()J
.locals 2

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->entitlementId:J

return-wide v0
.end method

.method public final getHasAccess()Z
.locals 1

iget-boolean v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->hasAccess:Z

return v0
.end method

.method public final getPackId()J
.locals 2

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->packId:J

return-wide v0
.end method

.method public final getPremiumTypeRequired()Ljava/lang/Integer;
.locals 1

iget-object v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->premiumTypeRequired:Ljava/lang/Integer;

return-object v0
.end method

.method public final getStickerPack()Lcom/discord/models/sticker/dto/ModelStickerPack;
.locals 1

iget-object v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

return-object v0
.end method

.method public final getUserId()J
.locals 2

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->userId:J

return-wide v0
.end method

.method public hashCode()I
.locals 7

iget-wide v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->userId:J

const/16 v2, 0x20

ushr-long v3, v0, v2

xor-long/2addr v0, v3

long-to-int v1, v0

mul-int/lit8 v1, v1, 0x1f

iget-wide v3, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->packId:J

ushr-long v5, v3, v2

xor-long/2addr v3, v5

long-to-int v0, v3

add-int/2addr v1, v0

mul-int/lit8 v1, v1, 0x1f

iget-wide v3, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->entitlementId:J

ushr-long v5, v3, v2

xor-long v2, v3, v5

long-to-int v0, v2

add-int/2addr v1, v0

mul-int/lit8 v1, v1, 0x1f

iget-boolean v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->hasAccess:Z

if-eqz v0, :cond_0

const/4 v0, 0x1

:cond_0
add-int/2addr v1, v0

mul-int/lit8 v1, v1, 0x1f

iget-object v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->premiumTypeRequired:Ljava/lang/Integer;

const/4 v2, 0x0

if-eqz v0, :cond_1

invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I

move-result v0

goto :goto_0

:cond_1
const/4 v0, 0x0

:goto_0
add-int/2addr v1, v0

mul-int/lit8 v1, v1, 0x1f

iget-object v0, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

if-eqz v0, :cond_2

invoke-virtual {v0}, Lcom/discord/models/sticker/dto/ModelStickerPack;->hashCode()I

move-result v2

:cond_2
add-int/2addr v1, v2

return v1
.end method

.method public toString()Ljava/lang/String;
.locals 3

const-string v0, "ModelUserStickerPack(userId="

invoke-static {v0}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v0

iget-wide v1, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->userId:J

invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

const-string v1, ", packId="

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

iget-wide v1, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->packId:J

invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

const-string v1, ", entitlementId="

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

iget-wide v1, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->entitlementId:J

invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

const-string v1, ", hasAccess="

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

iget-boolean v1, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->hasAccess:Z

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

const-string v1, ", premiumTypeRequired="

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

iget-object v1, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->premiumTypeRequired:Ljava/lang/Integer;

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

const-string v1, ", stickerPack="

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

iget-object v1, p0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->stickerPack:Lcom/discord/models/sticker/dto/ModelStickerPack;

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

const-string v1, ")"

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v0

return-object v0
.end method

+ 1
- 21
com.discord/smali/com/discord/restapi/RestAPIInterface.smali View File

@@ -392,26 +392,6 @@
.end annotation
.end method

.method public abstract claimStickerPack(J)Lrx/Observable;
.param p1 # J
.annotation runtime Lk0/k0/q;
value = "packId"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)",
"Lrx/Observable<",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
">;"
}
.end annotation

.annotation runtime Lk0/k0/n;
value = "users/@me/sticker-packs/{packId}"
.end annotation
.end method

.method public abstract convertDMToGroup(JJ)Lrx/Observable;
.param p1 # J
.annotation runtime Lk0/k0/q;
@@ -1970,7 +1950,7 @@
"()",
"Lrx/Observable<",
"Ljava/util/List<",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;>;"
}
.end annotation


+ 1
- 1
com.discord/smali/com/discord/stores/StoreClientVersion.smali View File

@@ -28,7 +28,7 @@

invoke-direct {p0}, Lcom/discord/stores/Store;-><init>()V

const/16 v0, 0x4ff
const/16 v0, 0x500

iput v0, p0, Lcom/discord/stores/StoreClientVersion;->clientVersion:I



+ 1
- 1
com.discord/smali/com/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$authNavHandler$1.smali View File

@@ -86,7 +86,7 @@

invoke-static {p2, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V

sget-object v0, Lf/a/b/m;->f:Lf/a/b/m;
sget-object v0, Lf/a/b/m;->g:Lf/a/b/m;

sget-object v0, Lf/a/b/m;->a:Ljava/util/List;



+ 1
- 1
com.discord/smali/com/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$oAuthStateHandler$1.smali View File

@@ -92,7 +92,7 @@

if-eqz v0, :cond_0

sget-object v0, Lf/a/b/m;->f:Lf/a/b/m;
sget-object v0, Lf/a/b/m;->g:Lf/a/b/m;

sget-object v0, Lf/a/b/m;->b:Ljava/util/List;



+ 1
- 1
com.discord/smali/com/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$verificationNavHandler$1.smali View File

@@ -86,7 +86,7 @@

invoke-static {p2, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V

sget-object v0, Lf/a/b/m;->f:Lf/a/b/m;
sget-object v0, Lf/a/b/m;->g:Lf/a/b/m;

sget-object v0, Lf/a/b/m;->d:Ljava/util/List;



+ 5
- 5
com.discord/smali/com/discord/stores/StoreStickers$OwnedStickerPackState$Loaded.smali View File

@@ -20,7 +20,7 @@
value = {
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;"
}
.end annotation
@@ -35,7 +35,7 @@
"(",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;)V"
}
.end annotation
@@ -79,7 +79,7 @@
"()",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;"
}
.end annotation
@@ -96,7 +96,7 @@
"(",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;)",
"Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;"
}
@@ -155,7 +155,7 @@
"()",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;"
}
.end annotation


+ 0
- 70
com.discord/smali/com/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2$1.smali View File

@@ -1,70 +0,0 @@
.class public final Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2$1;
.super Lc0/n/c/k;
.source "StoreStickers.kt"

# interfaces
.implements Lkotlin/jvm/functions/Function0;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;->invoke(Ljava/lang/Void;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
value = {
"Lc0/n/c/k;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;"
}
.end annotation


# instance fields
.field public final synthetic this$0:Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;


# direct methods
.method public constructor <init>(Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;)V
.locals 0

iput-object p1, p0, Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2$1;->this$0:Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;

const/4 p1, 0x0

invoke-direct {p0, p1}, Lc0/n/c/k;-><init>(I)V

return-void
.end method


# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1

invoke-virtual {p0}, Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2$1;->invoke()V

sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;

return-object v0
.end method

.method public final invoke()V
.locals 2

iget-object v0, p0, Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2$1;->this$0:Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;

iget-object v1, v0, Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;->this$0:Lcom/discord/stores/StoreStickers;

iget-object v0, v0, Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;->$pack$inlined:Lcom/discord/models/sticker/dto/ModelStickerPack;

invoke-virtual {v1, v0}, Lcom/discord/stores/StoreStickers;->handleNewOwnedStickerPack(Lcom/discord/models/sticker/dto/ModelStickerPack;)V

return-void
.end method

+ 1
- 9
com.discord/smali/com/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2.smali View File

@@ -71,15 +71,7 @@

iget-object p1, p0, Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;->this$0:Lcom/discord/stores/StoreStickers;

invoke-static {p1}, Lcom/discord/stores/StoreStickers;->access$getDispatcher$p(Lcom/discord/stores/StoreStickers;)Lcom/discord/stores/Dispatcher;

move-result-object p1

new-instance v0, Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2$1;

invoke-direct {v0, p0}, Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2$1;-><init>(Lcom/discord/stores/StoreStickers$claimFreePack$$inlined$let$lambda$2;)V

invoke-virtual {p1, v0}, Lcom/discord/stores/Dispatcher;->schedule(Lkotlin/jvm/functions/Function0;)V
invoke-virtual {p1}, Lcom/discord/stores/StoreStickers;->fetchOwnedStickerPacks()V

return-void
.end method

+ 78
- 3
com.discord/smali/com/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2$1.smali View File

@@ -108,9 +108,9 @@

move-object v4, v2

check-cast v4, Lcom/discord/models/sticker/dto/ModelStickerPack;
check-cast v4, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

invoke-virtual {v4}, Lcom/discord/models/sticker/dto/ModelStickerPack;->getId()J
invoke-virtual {v4}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getPackId()J

move-result-wide v4

@@ -129,6 +129,48 @@

invoke-static {v0, v1}, Lcom/discord/stores/StoreStickers;->access$setOwnedStickerPackState$p(Lcom/discord/stores/StoreStickers;Lcom/discord/stores/StoreStickers$OwnedStickerPackState;)V

iget-object v0, p0, Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2$1;->$ownedPacks:Ljava/util/List;

invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

move-result-object v0

:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

move-result v1

if-eqz v1, :cond_2

invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

move-result-object v1

check-cast v1, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

iget-object v2, p0, Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2$1;->this$0:Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2;

iget-object v2, v2, Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2;->this$0:Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1;

iget-object v2, v2, Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1;->this$0:Lcom/discord/stores/StoreStickers;

invoke-static {v2}, Lcom/discord/stores/StoreStickers;->access$getPurchasingStickerPacks$p(Lcom/discord/stores/StoreStickers;)Ljava/util/Set;

move-result-object v2

invoke-virtual {v1}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getPackId()J

move-result-wide v3

invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

move-result-object v1

invoke-interface {v2, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

goto :goto_1

:cond_2
iget-object v0, p0, Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2$1;->this$0:Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2;

iget-object v0, v0, Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2;->this$0:Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1;
@@ -145,7 +187,40 @@

iget-object v1, p0, Lcom/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2$1;->$ownedPacks:Ljava/util/List;

invoke-virtual {v0, v1}, Lcom/discord/stores/StoreStickers;->handleNewLoadedStickerPacks(Ljava/util/List;)V
new-instance v2, Ljava/util/ArrayList;

invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

move-result-object v1

:cond_3
:goto_2
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

move-result v3

if-eqz v3, :cond_4

invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

move-result-object v3

check-cast v3, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

invoke-virtual {v3}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getStickerPack()Lcom/discord/models/sticker/dto/ModelStickerPack;

move-result-object v3

if-eqz v3, :cond_3

invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

goto :goto_2

:cond_4
invoke-virtual {v0, v2}, Lcom/discord/stores/StoreStickers;->handleNewLoadedStickerPacks(Ljava/util/List;)V

return-void
.end method

+ 2
- 2
com.discord/smali/com/discord/stores/StoreStickers$fetchOwnedStickerPacks$1$2.smali View File

@@ -22,7 +22,7 @@
"Lkotlin/jvm/functions/Function1<",
"Ljava/util/List<",
"+",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;",
"Lkotlin/Unit;",
">;"
@@ -67,7 +67,7 @@
value = {
"(",
"Ljava/util/List<",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;)V"
}
.end annotation


+ 0
- 94
com.discord/smali/com/discord/stores/StoreStickers.smali View File

@@ -708,100 +708,6 @@
return-void
.end method

.method public final handleNewOwnedStickerPack(Lcom/discord/models/sticker/dto/ModelStickerPack;)V
.locals 3
.annotation runtime Lcom/discord/stores/StoreThread;
.end annotation

const-string v0, "stickerPack"

invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V

iget-object v0, p0, Lcom/discord/stores/StoreStickers;->ownedStickerPackState:Lcom/discord/stores/StoreStickers$OwnedStickerPackState;

instance-of v1, v0, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;

if-nez v1, :cond_0

const/4 v0, 0x0

:cond_0
check-cast v0, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;

if-eqz v0, :cond_2

invoke-virtual {v0}, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;->getOwnedStickerPacks()Ljava/util/Map;

move-result-object v0

invoke-static {v0}, Lf/h/a/f/e/n/f;->toMutableMap(Ljava/util/Map;)Ljava/util/Map;

move-result-object v0

invoke-virtual {p1}, Lcom/discord/models/sticker/dto/ModelStickerPack;->getId()J

move-result-wide v1

invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

move-result-object v1

move-object v2, v0

check-cast v2, Ljava/util/HashMap;

invoke-virtual {v2, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

new-instance p1, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;

invoke-direct {p1, v0}, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;-><init>(Ljava/util/Map;)V

iput-object p1, p0, Lcom/discord/stores/StoreStickers;->ownedStickerPackState:Lcom/discord/stores/StoreStickers$OwnedStickerPackState;

check-cast v0, Ljava/util/LinkedHashMap;

invoke-virtual {v0}, Ljava/util/LinkedHashMap;->keySet()Ljava/util/Set;

move-result-object p1

invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

move-result-object p1

:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

move-result v0

if-eqz v0, :cond_1

invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

move-result-object v0

check-cast v0, Ljava/lang/Number;

invoke-virtual {v0}, Ljava/lang/Number;->longValue()J

move-result-wide v0

iget-object v2, p0, Lcom/discord/stores/StoreStickers;->purchasingStickerPacks:Ljava/util/Set;

invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

move-result-object v0

invoke-interface {v2, v0}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

goto :goto_0

:cond_1
invoke-virtual {p0}, Lcom/discord/stores/StoreV2;->markChanged()V

:cond_2
return-void
.end method

.method public final handlePreLogout()V
.locals 4
.annotation runtime Lcom/discord/stores/StoreThread;


+ 3
- 3
com.discord/smali/com/discord/utilities/analytics/AnalyticSuperProperties.smali View File

@@ -173,7 +173,7 @@

const-string v3, "browser_user_agent"

const-string v4, "Discord-Android/1279"
const-string v4, "Discord-Android/1280"

invoke-direct {v2, v3, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

@@ -181,7 +181,7 @@

const/4 v1, 0x2

const/16 v2, 0x4ff
const/16 v2, 0x500

invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

@@ -201,7 +201,7 @@

const-string v3, "client_version"

const-string v4, "41.10"
const-string v4, "41.11"

invoke-direct {v2, v3, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V



+ 39
- 46
com.discord/smali/com/discord/utilities/billing/GooglePlayBillingManager$GooglePlayBillingManagerLifecycleListener.smali View File

@@ -1,10 +1,7 @@
.class public final Lcom/discord/utilities/billing/GooglePlayBillingManager$GooglePlayBillingManagerLifecycleListener;
.super Ljava/lang/Object;
.super Lcom/discord/utilities/rx/ActivityLifecycleCallbacks;
.source "GooglePlayBillingManager.kt"

# interfaces
.implements Landroid/app/Application$ActivityLifecycleCallbacks;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
@@ -21,110 +18,106 @@
.method public constructor <init>()V
.locals 0

invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-direct {p0}, Lcom/discord/utilities/rx/ActivityLifecycleCallbacks;-><init>()V

return-void
.end method


# virtual methods
.method public onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 0
.method public onActivityCreated(Lcom/discord/app/AppActivity;Landroid/os/Bundle;)V
.locals 1

const-string p2, "activity"
const-string v0, "activity"

invoke-static {p1, p2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V

instance-of p1, p1, Lcom/discord/app/AppActivity$Main;
invoke-super {p0, p1, p2}, Lcom/discord/utilities/rx/ActivityLifecycleCallbacks;->onActivityCreated(Lcom/discord/app/AppActivity;Landroid/os/Bundle;)V

if-eqz p1, :cond_0
sget-object p2, Lf/a/b/m;->g:Lf/a/b/m;

sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;
sget-object p2, Lf/a/b/m;->f:Ljava/util/List;

invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->onActivityCreated()V
invoke-virtual {p1, p2}, Lcom/discord/app/AppActivity;->l(Ljava/util/List;)Z

:cond_0
return-void
.end method
move-result p1

.method public onActivityDestroyed(Landroid/app/Activity;)V
.locals 1
if-eqz p1, :cond_0

const-string v0, "activity"
sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;

invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->access$isAuthenticated$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;)Z

instance-of p1, p1, Lcom/discord/app/AppActivity$Main;
move-result p1

if-eqz p1, :cond_0

sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;

invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->onActivityDestroyed()V
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->onActivityCreated()V

:cond_0
return-void
.end method

.method public onActivityPaused(Landroid/app/Activity;)V
.method public onActivityDestroyed(Lcom/discord/app/AppActivity;)V
.locals 1

const-string v0, "activity"

invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V

return-void
.end method
invoke-super {p0, p1}, Lcom/discord/utilities/rx/ActivityLifecycleCallbacks;->onActivityDestroyed(Lcom/discord/app/AppActivity;)V

.method public onActivityResumed(Landroid/app/Activity;)V
.locals 1
sget-object v0, Lf/a/b/m;->g:Lf/a/b/m;

const-string v0, "activity"
sget-object v0, Lf/a/b/m;->f:Ljava/util/List;

invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1, v0}, Lcom/discord/app/AppActivity;->l(Ljava/util/List;)Z

instance-of p1, p1, Lcom/discord/app/AppActivity$Main;
move-result p1

if-eqz p1, :cond_0

sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;

invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->queryPurchases()V
invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->onActivityDestroyed()V

:cond_0
return-void
.end method

.method public onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
.method public onActivityResumed(Lcom/discord/app/AppActivity;)V
.locals 1

const-string v0, "activity"

invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V

const-string p1, "outState"
invoke-super {p0, p1}, Lcom/discord/utilities/rx/ActivityLifecycleCallbacks;->onActivityResumed(Lcom/discord/app/AppActivity;)V

invoke-static {p2, p1}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lf/a/b/m;->g:Lf/a/b/m;

return-void
.end method
sget-object v0, Lf/a/b/m;->f:Ljava/util/List;

.method public onActivityStarted(Landroid/app/Activity;)V
.locals 1
invoke-virtual {p1, v0}, Lcom/discord/app/AppActivity;->l(Ljava/util/List;)Z

const-string v0, "activity"
move-result p1

invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz p1, :cond_0

return-void
.end method
sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;

.method public onActivityStopped(Landroid/app/Activity;)V
.locals 1
invoke-static {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->access$isAuthenticated$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;)Z

const-string v0, "activity"
move-result p1

invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz p1, :cond_0

sget-object p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;

invoke-virtual {p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->queryPurchases()V

:cond_0
return-void
.end method

+ 83
- 0
com.discord/smali/com/discord/utilities/billing/GooglePlayBillingManager$init$1.smali View File

@@ -0,0 +1,83 @@
.class public final Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;
.super Lc0/n/c/k;
.source "GooglePlayBillingManager.kt"

# interfaces
.implements Lkotlin/jvm/functions/Function1;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/utilities/billing/GooglePlayBillingManager;->init(Landroid/app/Application;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
value = {
"Lc0/n/c/k;",
"Lkotlin/jvm/functions/Function1<",
"Ljava/lang/Boolean;",
"Lkotlin/Unit;",
">;"
}
.end annotation


# static fields
.field public static final INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;


# direct methods
.method public static constructor <clinit>()V
.locals 1

new-instance v0, Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;

invoke-direct {v0}, Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;-><init>()V

sput-object v0, Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;

return-void
.end method

.method public constructor <init>()V
.locals 1

const/4 v0, 0x1

invoke-direct {p0, v0}, Lc0/n/c/k;-><init>(I)V

return-void
.end method


# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0

check-cast p1, Ljava/lang/Boolean;

invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

move-result p1

invoke-virtual {p0, p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;->invoke(Z)V

sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;

return-object p1
.end method

.method public final invoke(Z)V
.locals 1

sget-object v0, Lcom/discord/utilities/billing/GooglePlayBillingManager;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager;

invoke-static {v0, p1}, Lcom/discord/utilities/billing/GooglePlayBillingManager;->access$setAuthenticated$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;Z)V

return-void
.end method

+ 64
- 46
com.discord/smali/com/discord/utilities/billing/GooglePlayBillingManager.smali View File

@@ -29,6 +29,8 @@

.field public static billingClient:Lcom/android/billingclient/api/BillingClient;

.field public static isAuthenticated:Z

.field public static isReconnecting:Ljava/util/concurrent/atomic/AtomicBoolean;


@@ -96,6 +98,14 @@
throw p0
.end method

.method public static final synthetic access$isAuthenticated$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;)Z
.locals 0

sget-boolean p0, Lcom/discord/utilities/billing/GooglePlayBillingManager;->isAuthenticated:Z

return p0
.end method

.method public static final synthetic access$isReconnecting$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;)Ljava/util/concurrent/atomic/AtomicBoolean;
.locals 0

@@ -104,6 +114,14 @@
return-object p0
.end method

.method public static final synthetic access$setAuthenticated$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;Z)V
.locals 0

sput-boolean p1, Lcom/discord/utilities/billing/GooglePlayBillingManager;->isAuthenticated:Z

return-void
.end method

.method public static final synthetic access$setBackoffTimeMs$p(Lcom/discord/utilities/billing/GooglePlayBillingManager;Ljava/util/concurrent/atomic/AtomicLong;)V
.locals 0

@@ -168,7 +186,7 @@

# virtual methods
.method public final init(Landroid/app/Application;)V
.locals 3
.locals 9

const-string v0, "application"

@@ -198,6 +216,34 @@

invoke-virtual {p1, v0}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V

sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;

invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getAuthentication()Lcom/discord/stores/StoreAuthentication;

move-result-object p1

invoke-virtual {p1}, Lcom/discord/stores/StoreAuthentication;->getIsAuthed$app_productionDiscordExternalRelease()Lrx/Observable;

move-result-object v0

const-class v1, Lcom/discord/utilities/billing/GooglePlayBillingManager;

const/4 v2, 0x0

const/4 v3, 0x0

const/4 v4, 0x0

const/4 v5, 0x0

sget-object v6, Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;->INSTANCE:Lcom/discord/utilities/billing/GooglePlayBillingManager$init$1;

const/16 v7, 0x1e

const/4 v8, 0x0

invoke-static/range {v0 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V

return-void

:cond_0
@@ -1384,7 +1430,7 @@
.end method

.method public onSkuDetailsResponse(Lcom/android/billingclient/api/BillingResult;Ljava/util/List;)V
.locals 9
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
@@ -1404,10 +1450,6 @@

iget-object p1, p1, Lcom/android/billingclient/api/BillingResult;->b:Ljava/lang/String;

const/16 v1, 0x20

const-string v2, "onSkuDetailsResponse: "

packed-switch v0, :pswitch_data_0

goto :goto_1
@@ -1432,41 +1474,13 @@
goto :goto_1

:pswitch_1
sget-object p2, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;

invoke-virtual {p2}, Lcom/discord/stores/StoreStream$Companion;->getGooglePlaySkuDetails()Lcom/discord/stores/StoreGooglePlaySkuDetails;

move-result-object p2

invoke-virtual {p2}, Lcom/discord/stores/StoreGooglePlaySkuDetails;->handleError()V

sget-object v3, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;

new-instance p2, Ljava/lang/StringBuilder;

invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v4

const/4 v5, 0x0

const/4 v6, 0x0
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;

const/4 v7, 0x6
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getGooglePlaySkuDetails()Lcom/discord/stores/StoreGooglePlaySkuDetails;

const/4 v8, 0x0
move-result-object p1

invoke-static/range {v3 .. v8}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
invoke-virtual {p1}, Lcom/discord/stores/StoreGooglePlaySkuDetails;->handleError()V

goto :goto_1

@@ -1479,33 +1493,37 @@

invoke-virtual {p2}, Lcom/discord/stores/StoreGooglePlaySkuDetails;->handleError()V

sget-object v3, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
sget-object v1, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;

new-instance p2, Ljava/lang/StringBuilder;

invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

const-string v2, "onSkuDetailsResponse: "

invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const/16 v0, 0x20

invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v4
move-result-object v2

const/4 v5, 0x0
const/4 v3, 0x0

const/4 v6, 0x0
const/4 v4, 0x0

const/4 v7, 0x6
const/4 v5, 0x6

const/4 v8, 0x0
const/4 v6, 0x0

invoke-static/range {v3 .. v8}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
invoke-static/range {v1 .. v6}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V

:goto_1
return-void


+ 1
- 1
com.discord/smali/com/discord/utilities/rest/RestAPI$AppHeadersProvider.smali View File

@@ -159,7 +159,7 @@
.method public getUserAgent()Ljava/lang/String;
.locals 1

const-string v0, "Discord-Android/1279"
const-string v0, "Discord-Android/1280"

return-object v0
.end method

+ 1
- 30
com.discord/smali/com/discord/utilities/rest/RestAPI.smali View File

@@ -1291,35 +1291,6 @@
return-object p1
.end method

.method public claimStickerPack(J)Lrx/Observable;
.locals 1
.param p1 # J
.annotation runtime Lk0/k0/q;
value = "packId"
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)",
"Lrx/Observable<",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
">;"
}
.end annotation

.annotation runtime Lk0/k0/n;
value = "users/@me/sticker-packs/{packId}"
.end annotation

iget-object v0, p0, Lcom/discord/utilities/rest/RestAPI;->_api:Lcom/discord/restapi/RestAPIInterface;

invoke-interface {v0, p1, p2}, Lcom/discord/restapi/RestAPIInterface;->claimStickerPack(J)Lrx/Observable;

move-result-object p1

return-object p1
.end method

.method public convertDMToGroup(JJ)Lrx/Observable;
.locals 1
.param p1 # J
@@ -3911,7 +3882,7 @@
"()",
"Lrx/Observable<",
"Ljava/util/List<",
"Lcom/discord/models/sticker/dto/ModelStickerPack;",
"Lcom/discord/models/sticker/dto/ModelUserStickerPack;",
">;>;"
}
.end annotation


+ 25
- 7
com.discord/smali/com/discord/widgets/chat/input/sticker/StickerPackStoreSheetViewModel.smali View File

@@ -152,6 +152,8 @@

instance-of v3, v0, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;

const/4 v6, 0x0

if-eqz v3, :cond_0

check-cast v0, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;
@@ -160,23 +162,39 @@

move-result-object v0

iget-wide v6, p0, Lcom/discord/widgets/chat/input/sticker/StickerPackStoreSheetViewModel;->stickerPackId:J
iget-wide v7, p0, Lcom/discord/widgets/chat/input/sticker/StickerPackStoreSheetViewModel;->stickerPackId:J

invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

move-result-object v3

invoke-interface {v0, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

if-eqz v0, :cond_0

invoke-virtual {v0}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getHasAccess()Z

move-result v0
move-result v3

move v8, v0
if-eqz v3, :cond_0

invoke-virtual {v0}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getStickerPack()Lcom/discord/models/sticker/dto/ModelStickerPack;

move-result-object v0

if-eqz v0, :cond_0

const/4 v0, 0x1

const/4 v8, 0x1

goto :goto_0

:cond_0
const/4 v0, 0x0

const/4 v8, 0x0

:goto_0


+ 116
- 29
com.discord/smali/com/discord/widgets/chat/input/sticker/StickerPickerViewModel.smali View File

@@ -306,7 +306,7 @@

instance-of p1, v0, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;

if-eqz p1, :cond_1
if-eqz p1, :cond_4

check-cast v0, Lcom/discord/stores/StoreStickers$OwnedStickerPackState$Loaded;

@@ -314,26 +314,91 @@

move-result-object p1

goto :goto_1

:cond_1
sget-object p1, Lc0/i/m;->d:Lc0/i/m;

:goto_1
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;

move-result-object p1

invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
new-instance v0, Ljava/util/ArrayList;

invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

move-result-object p1

:cond_1
:goto_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

move-result v7

if-eqz v7, :cond_2

invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

move-result-object v7

move-object v8, v7

check-cast v8, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

invoke-virtual {v8}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getHasAccess()Z

move-result v8

if-eqz v8, :cond_1

invoke-interface {v0, v7}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

goto :goto_1

:cond_2
new-instance p1, Ljava/util/ArrayList;

invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

move-result-object v0

:cond_3
:goto_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

move-result v7

if-eqz v7, :cond_5

invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

move-result-object v7

check-cast v7, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

invoke-virtual {v7}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getStickerPack()Lcom/discord/models/sticker/dto/ModelStickerPack;

move-result-object v7

if-eqz v7, :cond_3

invoke-interface {p1, v7}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

goto :goto_2

:cond_4
sget-object p1, Lc0/i/l;->d:Lc0/i/l;

:cond_5
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

move-result-object p1

:goto_3
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

move-result v0

if-eqz v0, :cond_3
if-eqz v0, :cond_7

invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

@@ -347,16 +412,16 @@

cmp-long v9, v2, v7

if-nez v9, :cond_2
if-nez v9, :cond_6

const/4 v7, 0x1

goto :goto_3
goto :goto_4

:cond_2
:cond_6
const/4 v7, 0x0

:goto_3
:goto_4
invoke-virtual {v0}, Lcom/discord/models/sticker/dto/ModelStickerPack;->getStickers()Ljava/util/List;

move-result-object v8
@@ -389,9 +454,9 @@

move v4, v8

goto :goto_2
goto :goto_3

:cond_3
:cond_7
return-object v1
.end method

@@ -459,7 +524,7 @@

iget-object v3, p0, Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel;->locale:Ljava/util/Locale;

if-eqz v2, :cond_8
if-eqz v2, :cond_a

invoke-virtual {v2, v3}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

@@ -564,21 +629,43 @@

move-result-object v3

:cond_3
:goto_2
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

move-result v6

if-eqz v6, :cond_3
if-eqz v6, :cond_5

invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

move-result-object v6

check-cast v6, Lcom/discord/models/sticker/dto/ModelStickerPack;
check-cast v6, Lcom/discord/models/sticker/dto/ModelUserStickerPack;

invoke-virtual {v6}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getStickerPack()Lcom/discord/models/sticker/dto/ModelStickerPack;

move-result-object v8

if-eqz v8, :cond_3

invoke-virtual {v6}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getHasAccess()Z

move-result v8

if-nez v8, :cond_4

goto :goto_2

:cond_4
sget-object v8, Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel;->Companion:Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel$Companion;

invoke-virtual {v6}, Lcom/discord/models/sticker/dto/ModelUserStickerPack;->getStickerPack()Lcom/discord/models/sticker/dto/ModelStickerPack;

move-result-object v6

invoke-static {v6}, Lc0/n/c/j;->checkNotNull(Ljava/lang/Object;)V

iget-object v9, p0, Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel;->locale:Ljava/util/Locale;

invoke-static {v8, v6, v2, v1, v9}, Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel$Companion;->access$buildOwnedStickerListItems(Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel$Companion;Lcom/discord/models/sticker/dto/ModelStickerPack;Ljava/lang/String;ILjava/util/Locale;)Ljava/util/List;
@@ -589,24 +676,24 @@

goto :goto_2

:cond_3
:cond_5
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z

move-result v0

const/4 v1, 0x0

if-eqz v0, :cond_4
if-eqz v0, :cond_6

const/4 v0, 0x1

goto :goto_3

:cond_4
:cond_6
const/4 v0, 0x0

:goto_3
if-eqz v0, :cond_5
if-eqz v0, :cond_7

new-instance p1, Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel$ViewState$NoOwnedPacks;

@@ -618,26 +705,26 @@

goto :goto_5

:cond_5
:cond_7
invoke-interface {v4}, Ljava/util/Collection;->isEmpty()Z

move-result v0

if-eqz v0, :cond_7
if-eqz v0, :cond_9

invoke-interface {v2}, Ljava/lang/CharSequence;->length()I

move-result v0

if-lez v0, :cond_6
if-lez v0, :cond_8

goto :goto_4

:cond_6
:cond_8
const/4 v7, 0x0

:goto_4
if-eqz v7, :cond_7
if-eqz v7, :cond_9

new-instance v0, Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel$ViewState$EmptySearchResults;

@@ -653,7 +740,7 @@

goto :goto_5

:cond_7
:cond_9
new-instance v0, Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel$ViewState$Stickers;

invoke-virtual {p1}, Lcom/discord/widgets/chat/input/sticker/StickerPickerViewModel$StoreState$Loaded;->getSearchInputStringUpper()Ljava/lang/String;
@@ -669,7 +756,7 @@
:goto_5
return-void

:cond_8
:cond_a
new-instance p1, Ljava/lang/NullPointerException;

const-string v0, "null cannot be cast to non-null type java.lang.String"


+ 1
- 1
com.discord/smali/com/discord/widgets/debugging/WidgetFatalCrash.smali View File

@@ -446,7 +446,7 @@

new-array v2, v0, [Ljava/lang/Object;

const-string v4, "41.10"
const-string v4, "41.11"

aput-object v4, v2, v3



+ 35
- 8
com.discord/smali/f/a/b/m.smali View File

@@ -63,7 +63,18 @@
.end annotation
.end field

.field public static final f:Lf/a/b/m;
.field public static final f:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lc0/r/b<",
"Lcom/discord/widgets/tabs/WidgetTabsHost;",
">;>;"
}
.end annotation
.end field

.field public static final g:Lf/a/b/m;


# direct methods