CTCV2/app/src/main/java/com/discord/utilities/analytics/AnalyticSuperProperties.java

76 lines
1.8 KiB
Java

package com.discord.utilities.analytics;
import com.PatchConfig;
import java.util.Map;
import lanchon.dexpatcher.annotation.DexEdit;
import lanchon.dexpatcher.annotation.DexWrap;
@DexEdit
public final class AnalyticSuperProperties {
// disable-mobileindicator patches
@SuppressWarnings("UnnecessaryReturnStatement")
@DexWrap
private final void setSuperProperties(Map map) {
if (!PatchConfig.DISABLE_MOBILE_INDICATOR_ENABLED) {
// Patch not enabled
setSuperProperties(map);
return;
}
}
@SuppressWarnings("UnnecessaryReturnStatement")
@DexWrap
private final synchronized void updateSuperProperties(Map map) {
if (!PatchConfig.DISABLE_MOBILE_INDICATOR_ENABLED) {
// Patch not enabled
updateSuperProperties(map);
return;
}
}
// end of disable-mobileindicator patches
// notrack patches
@SuppressWarnings("UnnecessaryReturnStatement")
@DexWrap
private final void setBaselineProperties() {
if (!PatchConfig.NOTRACK_ENABLED) {
// Patch not enabled
setBaselineProperties();
return;
}
// TODO do we need anything in here?
}
@SuppressWarnings("UnnecessaryReturnStatement")
@DexWrap
public final void setAdvertiserId(String str) {
if (!PatchConfig.NOTRACK_ENABLED) {
// Patch not enabled
setAdvertiserId(str);
return;
}
}
@SuppressWarnings("UnnecessaryReturnStatement")
@DexWrap
public final void setCampaignProperties(String str) {
if (!PatchConfig.NOTRACK_ENABLED) {
// Patch not enabled
setCampaignProperties(str);
return;
}
}
// end of notrack patches
}