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/patches/notrack/832.patch

247 lines
7.6 KiB
Diff

diff -crB -x dist -x res -x build com.discord-832-base/smali/com/discord/utilities/analytics/AnalyticsUtils$Tracker.smali com.discord-832/smali/com/discord/utilities/analytics/AnalyticsUtils$Tracker.smali
*** com.discord-832-base/smali/com/discord/utilities/analytics/AnalyticsUtils$Tracker.smali 2019-01-19 04:41:50.756429597 +0300
--- com.discord-832/smali/com/discord/utilities/analytics/AnalyticsUtils$Tracker.smali 2019-01-19 23:42:54.573066848 +0300
***************
*** 407,466 ****
.method public static synthetic setTrackingData$default(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Ljava/lang/String;ZILjava/lang/Object;)V
.locals 0
-
- and-int/lit8 p3, p3, 0x2
-
- if-eqz p3, :cond_0
-
- const/4 p2, 0x0
-
- .line 141
- :cond_0
- invoke-virtual {p0, p1, p2}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->setTrackingData(Ljava/lang/String;Z)V
-
return-void
.end method
.method public static synthetic track$default(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Ljava/lang/String;Ljava/util/Map;ILjava/lang/Object;)V
.locals 0
-
- and-int/lit8 p3, p3, 0x2
-
- if-eqz p3, :cond_0
-
- .line 166
- invoke-static {}, Lkotlin/a/ab;->emptyMap()Ljava/util/Map;
-
- move-result-object p2
-
- :cond_0
- invoke-virtual {p0, p1, p2}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->track(Ljava/lang/String;Ljava/util/Map;)V
-
return-void
.end method
.method public static synthetic track$default(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Lkotlin/Pair;Ljava/util/Map;Ljava/lang/Long;ILjava/lang/Object;)V
.locals 0
-
- and-int/lit8 p5, p4, 0x2
-
- if-eqz p5, :cond_0
-
- .line 157
- invoke-static {}, Lkotlin/a/ab;->emptyMap()Ljava/util/Map;
-
- move-result-object p2
-
- :cond_0
- and-int/lit8 p4, p4, 0x4
-
- if-eqz p4, :cond_1
-
- const/4 p3, 0x0
-
- :cond_1
- invoke-virtual {p0, p1, p2, p3}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->track(Lkotlin/Pair;Ljava/util/Map;Ljava/lang/Long;)V
-
return-void
.end method
--- 407,422 ----
***************
*** 636,797 ****
.end method
.method public final track(Ljava/lang/String;Ljava/util/Map;)V
! .locals 2
! .annotation system Ldalvik/annotation/Signature;
! value = {
! "(",
! "Ljava/lang/String;",
! "Ljava/util/Map<",
! "Ljava/lang/String;",
! "+",
! "Ljava/lang/Object;",
! ">;)V"
! }
! .end annotation
!
! const-string v0, "event"
!
! invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
!
! const-string v0, "properties"
!
! invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
!
! .line 167
! iget-object v0, p0, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->eventsQueue:Ljava/util/concurrent/ConcurrentLinkedQueue;
!
! new-instance v1, Lcom/discord/restapi/RestAPIParams$Track$Event;
!
! invoke-direct {v1, p1, p2}, Lcom/discord/restapi/RestAPIParams$Track$Event;-><init>(Ljava/lang/String;Ljava/util/Map;)V
!
! invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z
!
! .line 169
! sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
!
! const-wide/16 v0, 0x5dc
!
! invoke-static {v0, v1, p1}, Lrx/Observable;->g(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
!
! move-result-object p1
!
! .line 170
! new-instance p2, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$track$1;
!
! invoke-direct {p2, p0}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$track$1;-><init>(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;)V
!
! check-cast p2, Lrx/functions/Action1;
!
! invoke-virtual {p1, p2}, Lrx/Observable;->b(Lrx/functions/Action1;)Lrx/Subscription;
!
return-void
.end method
.method public final track(Lkotlin/Pair;Ljava/util/Map;Ljava/lang/Long;)V
! .locals 7
! .annotation system Ldalvik/annotation/Signature;
! value = {
! "(",
! "Lkotlin/Pair<",
! "Ljava/lang/String;",
! "Ljava/lang/Long;",
! ">;",
! "Ljava/util/Map<",
! "Ljava/lang/String;",
! "+",
! "Ljava/lang/Object;",
! ">;",
! "Ljava/lang/Long;",
! ")V"
! }
! .end annotation
!
! const-string v0, "throttleKey"
!
! invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
!
! const-string v0, "properties"
!
! invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
!
! const/4 v4, 0x0
!
! const/4 v5, 0x4
!
! const/4 v6, 0x0
!
! move-object v1, p0
!
! move-object v2, p1
!
! move-object v3, p3
!
! .line 158
! invoke-static/range {v1 .. v6}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->isEventThrottled$default(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Lkotlin/Pair;Ljava/lang/Long;ZILjava/lang/Object;)Z
!
! move-result p3
!
! if-eqz p3, :cond_0
!
! return-void
!
! .line 1000
! :cond_0
! iget-object p1, p1, Lkotlin/Pair;->first:Ljava/lang/Object;
!
! .line 162
! check-cast p1, Ljava/lang/String;
!
! .line 163
! invoke-virtual {p0, p1, p2}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->track(Ljava/lang/String;Ljava/util/Map;)V
!
return-void
.end method
.method public final trackFireBase(Ljava/lang/String;Ljava/util/Map;)V
! .locals 1
! .annotation system Ldalvik/annotation/Signature;
! value = {
! "(",
! "Ljava/lang/String;",
! "Ljava/util/Map<",
! "Ljava/lang/String;",
! "+",
! "Ljava/lang/Object;",
! ">;)V"
! }
! .end annotation
!
! const-string v0, "event"
!
! invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
!
! const-string v0, "properties"
!
! invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
!
! .line 177
! new-instance v0, Landroid/os/Bundle;
!
! invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
!
! invoke-direct {p0, v0, p2}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->putMap(Landroid/os/Bundle;Ljava/util/Map;)Landroid/os/Bundle;
!
! move-result-object p2
!
! .line 178
! sget-object v0, Lcom/discord/utilities/analytics/AnalyticsUtils;->INSTANCE:Lcom/discord/utilities/analytics/AnalyticsUtils;
!
! invoke-static {v0}, Lcom/discord/utilities/analytics/AnalyticsUtils;->access$getFireBaseInstance$p(Lcom/discord/utilities/analytics/AnalyticsUtils;)Lcom/google/firebase/analytics/FirebaseAnalytics;
!
! move-result-object v0
!
! if-eqz v0, :cond_0
!
! invoke-virtual {v0, p1, p2}, Lcom/google/firebase/analytics/FirebaseAnalytics;->b(Ljava/lang/String;Landroid/os/Bundle;)V
!
! return-void
!
! :cond_0
return-void
.end method
--- 592,607 ----
.end method
.method public final track(Ljava/lang/String;Ljava/util/Map;)V
! .locals 0
return-void
.end method
.method public final track(Lkotlin/Pair;Ljava/util/Map;Ljava/lang/Long;)V
! .locals 0
return-void
.end method
.method public final trackFireBase(Ljava/lang/String;Ljava/util/Map;)V
! .locals 0
return-void
.end method