98 lines
2.8 KiB
Java
98 lines
2.8 KiB
Java
package com.discord.utilities.analytics;
|
|
|
|
import com.PatchConfig;
|
|
import com.discord.simpleast.core.node.Node;
|
|
|
|
import java.util.Map;
|
|
|
|
import kotlin.Pair;
|
|
import kotlin.jvm.functions.Function0;
|
|
import lanchon.dexpatcher.annotation.DexEdit;
|
|
import lanchon.dexpatcher.annotation.DexIgnore;
|
|
import lanchon.dexpatcher.annotation.DexWrap;
|
|
|
|
@DexEdit
|
|
public class AnalyticsUtils {
|
|
|
|
// start of notrack patches
|
|
|
|
@DexEdit
|
|
public static final class Tracker {
|
|
|
|
@SuppressWarnings("UnnecessaryReturnStatement")
|
|
@DexWrap
|
|
private final synchronized void drainEventsQueue() {
|
|
if (!PatchConfig.NOTRACK_ENABLED) {
|
|
// Patch not enabled
|
|
drainEventsQueue();
|
|
return;
|
|
}
|
|
}
|
|
|
|
@SuppressWarnings("UnnecessaryReturnStatement")
|
|
@DexWrap
|
|
public static final synchronized void setTrackingData$default(Tracker tracker, String str, boolean z, int i, Object obj) {
|
|
if (!PatchConfig.NOTRACK_ENABLED) {
|
|
// Patch not enabled
|
|
setTrackingData$default(tracker, str, z, i, obj);
|
|
return;
|
|
}
|
|
}
|
|
|
|
@SuppressWarnings("UnnecessaryReturnStatement")
|
|
@DexWrap
|
|
public static final synchronized void track$default(Tracker tracker, String str, Map map, int i, Object obj) {
|
|
if (!PatchConfig.NOTRACK_ENABLED) {
|
|
// Patch not enabled
|
|
track$default(tracker, str, map, i, obj);
|
|
return;
|
|
}
|
|
}
|
|
|
|
@SuppressWarnings("UnnecessaryReturnStatement")
|
|
@DexWrap
|
|
public final synchronized void setTrackingData(String str, boolean z) {
|
|
if (!PatchConfig.NOTRACK_ENABLED) {
|
|
// Patch not enabled
|
|
setTrackingData(str, z);
|
|
return;
|
|
}
|
|
}
|
|
|
|
@SuppressWarnings("UnnecessaryReturnStatement")
|
|
@DexWrap
|
|
public final void track(String str, Map map) {
|
|
if (!PatchConfig.NOTRACK_ENABLED) {
|
|
// Patch not enabled
|
|
track(str, map);
|
|
return;
|
|
}
|
|
}
|
|
|
|
@SuppressWarnings("UnnecessaryReturnStatement")
|
|
@DexWrap
|
|
public final void track(Pair pair, long j, Function0 function0) {
|
|
if (!PatchConfig.NOTRACK_ENABLED) {
|
|
// Patch not enabled
|
|
track(pair, j, function0);
|
|
return;
|
|
}
|
|
}
|
|
|
|
@SuppressWarnings("UnnecessaryReturnStatement")
|
|
@DexWrap
|
|
public final void trackFireBase(String str, Map map) {
|
|
if (!PatchConfig.NOTRACK_ENABLED) {
|
|
// Patch not enabled
|
|
trackFireBase(str, map);
|
|
return;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
// end of notrack patches
|
|
|
|
|
|
}
|