热汗舞蹈 v1.24.1.0版本的 MD5 值为:f1dc6ef07903515a73f51f41f372123e
以下内容为反编译后的 l.java 源代码,内容仅作参考
package pa;
import android.content.Context;
import android.util.Log;
import com.dancefitme.cn.DanceFitApp;
import com.dancefitme.cn.core.Config;
import com.dancefitme.cn.model.User;
import com.sensorsdata.analytics.android.sdk.AbstractSensorsDataAPI;
import com.sensorsdata.analytics.android.sdk.SAAdvertisingConfig;
import com.sensorsdata.analytics.android.sdk.SAConfigOptions;
import com.sensorsdata.analytics.android.sdk.SensorsDataAPI;
import com.sensorsdata.analytics.android.sdk.SensorsDataDynamicSuperProperties;
import com.sensorsdata.analytics.android.sdk.plugin.property.SAPropertyPlugin;
import com.sensorsdata.analytics.android.sdk.plugin.property.beans.SAPropertiesFetcher;
import com.sensorsdata.analytics.android.sdk.plugin.property.beans.SAPropertyFilter;
import com.sensorsdata.analytics.android.sdk.util.SensorsDataUtils;
import com.tencent.thumbplayer.tplayer.plugins.report.TPReportParams;
import component.dancefitme.droidassist.PrivacyApiTransform;
import java.lang.reflect.Field;
import java.util.ArrayList;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.json.JSONException;
import org.json.JSONObject;
import td.p;
@Metadata(bv = {}, d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\bÆ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0010\u0010\u0011J\u000e\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002J\u0016\u0010\n\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\bJ\u0006\u0010\u000b\u001a\u00020\u0004J\u0006\u0010\f\u001a\u00020\u0006J\u0010\u0010\r\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010\u000e\u001a\u00020\u0004H\u0002J\u0010\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0002H\u0002¨\u0006\u0012"}, d2 = {"Lpa/l;", "", "Landroid/content/Context;", "context", "Lsa/j;", "e", "", "eventName", "Lorg/json/JSONObject;", SAPropertyFilter.PROPERTIES, "c", "b", "d", "i", "g", "f", "<init>", "()V", "app_dancefitRelease"}, k = 1, mv = {1, 6, 0})
public final class l {
@NotNull
public static final l f36166a = new l();
@NotNull
public static String f36167b = "";
public static long f36168c;
@Metadata(bv = {}, d1 = {"\u0000#\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016J\u0012\u0010\t\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0016¨\u0006\n"}, d2 = {"pa/l$a", "Lcom/sensorsdata/analytics/android/sdk/plugin/property/SAPropertyPlugin;", "Lcom/sensorsdata/analytics/android/sdk/plugin/property/beans/SAPropertyFilter;", "filter", "", "isMatchedWithFilter", "Lcom/sensorsdata/analytics/android/sdk/plugin/property/beans/SAPropertiesFetcher;", "fetcher", "Lsa/j;", SAPropertyFilter.PROPERTIES, "app_dancefitRelease"}, k = 1, mv = {1, 6, 0})
public static final class a extends SAPropertyPlugin {
@Override
public boolean isMatchedWithFilter(@Nullable SAPropertyFilter sAPropertyFilter) {
String event;
return (sAPropertyFilter == null || (event = sAPropertyFilter.getEvent()) == null || !event.equals("$AppStart")) ? false : true;
}
@Override
public void properties(@Nullable SAPropertiesFetcher sAPropertiesFetcher) {
try {
fb.h.c(sAPropertiesFetcher);
sAPropertiesFetcher.getProperties().put("PlatformType", "Android");
} catch (JSONException e10) {
e10.printStackTrace();
}
}
}
public static final JSONObject h() {
String str;
String str2;
JSONObject jSONObject = new JSONObject();
u3.j jVar = u3.j.f37682a;
if (!u3.j.j(jVar, null, 1, null)) {
str = "100";
} else if (jVar.h()) {
str = "104";
} else {
str = User.isVip$default(jVar.d(), 0, 1, null) ? "102" : "101";
}
if (u3.j.j(jVar, null, 1, null)) {
str2 = jVar.h() ? "1" : "2";
} else {
str2 = TPReportParams.ERROR_CODE_NO_ERROR;
}
jSONObject.put("vip_userinfo", str);
jSONObject.put("loginstatus", str2);
return jSONObject;
}
public final void b() {
SensorsDataAPI sharedInstance;
u3.j jVar = u3.j.f37682a;
if (u3.j.j(jVar, null, 1, null) && (sharedInstance = SensorsDataAPI.sharedInstance()) != null) {
sharedInstance.login(jVar.d().getUid());
g();
}
}
public final void c(@NotNull String str, @NotNull JSONObject jSONObject) {
fb.h.f(str, "eventName");
fb.h.f(jSONObject, SAPropertyFilter.PROPERTIES);
SensorsDataAPI sharedInstance = SensorsDataAPI.sharedInstance();
if (sharedInstance == null) {
return;
}
sharedInstance.trackTimerEnd(str, jSONObject);
DanceFitApp a10 = DanceFitApp.f7394b.a();
String jSONObject2 = jSONObject.toString();
fb.h.e(jSONObject2, "properties.toString()");
a10.b(str, jSONObject2);
}
@NotNull
public final String d() {
if (PrivacyApiTransform.INSTANCE.agreePrivacyPolicy()) {
String str = f36167b;
if (str.length() == 0) {
str = f36166a.f(DanceFitApp.f7394b.a());
}
f36167b = str;
return str;
}
return "";
}
public final void e(@NotNull Context context) {
fb.h.f(context, "context");
try {
String str = f36167b;
if (str.length() == 0) {
str = f36166a.f(DanceFitApp.f7394b.a());
}
f36167b = str;
SAConfigOptions enableAutoAddChannelCallbackEvent = new SAConfigOptions("https://sc.dailyyoga.com.cn/sa?project=production").setAutoTrackEventType(3).enableAutoAddChannelCallbackEvent(true);
enableAutoAddChannelCallbackEvent.registerPropertyPlugin(new a());
ArrayList arrayList = new ArrayList();
arrayList.add("$AppInstall");
enableAutoAddChannelCallbackEvent.setAdvertConfig(new SAAdvertisingConfig("https://sat0.net/sa?project=meiriyujia-production", arrayList, null));
SensorsDataAPI.startWithConfigOptions(context, enableAutoAddChannelCallbackEvent);
SensorsDataAPI sharedInstance = SensorsDataAPI.sharedInstance(context);
if (sharedInstance == null) {
return;
}
sharedInstance.enableLog(false);
JSONObject jSONObject = new JSONObject();
jSONObject.put("PlatformType", "Android");
sharedInstance.registerSuperProperties(jSONObject);
sharedInstance.trackFragmentAppViewScreen();
b();
g();
i(context);
SensorsDataAPI.sharedInstance().trackFragmentAppViewScreen();
Config config = Config.f7437a;
config.d();
config.p();
} catch (Exception e10) {
e10.printStackTrace();
}
}
public final String f(Context context) {
if (System.currentTimeMillis() - f36168c < 1000) {
return "";
}
f36168c = System.currentTimeMillis();
String identifier = SensorsDataUtils.getIdentifier(context);
Log.d(AbstractSensorsDataAPI.TAG, "androidId:" + identifier);
if (SensorsDataUtils.isValidAndroidId(identifier)) {
fb.h.e(identifier, "androidId");
if (p.v(identifier, "DanceFitMe", false, 2, null)) {
fb.h.e(identifier, "androidId");
return identifier;
}
Field declaredField = SensorsDataUtils.class.getDeclaredField("androidID");
declaredField.setAccessible(true);
declaredField.set(null, "DanceFitMe" + identifier);
String identifier2 = SensorsDataUtils.getIdentifier(context);
Log.d(AbstractSensorsDataAPI.TAG, "androidId:" + identifier2);
fb.h.e(identifier2, "androidId");
return identifier2;
}
return "";
}
public final void g() {
SensorsDataAPI.sharedInstance().registerDynamicSuperProperties(new SensorsDataDynamicSuperProperties() {
@Override
public final JSONObject getDynamicSuperProperties() {
JSONObject h10;
h10 = l.h();
return h10;
}
});
}
public final void i(Context context) {
try {
String h10 = q5.c.f36379a.h();
JSONObject jSONObject = new JSONObject();
jSONObject.put("DownloadChannel", h10);
SensorsDataAPI.sharedInstance(context).trackAppInstall(jSONObject);
} catch (Exception e10) {
e10.printStackTrace();
}
}
}