Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 e.java 源代码,内容仅作参考
package myobfuscated.gs0;
import android.app.Application;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import com.appsflyer.AppsFlyerLib;
import com.picsart.studio.Resource;
import com.picsart.studio.apiv3.model.Settings;
import com.picsart.user.model.User;
import com.picsart.user.userstate.UserStateSingleton;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.d4.g0;
import myobfuscated.h4.q;
import myobfuscated.ik2.h;
import org.jetbrains.annotations.NotNull;
public final class e implements c {
public static boolean g;
@NotNull
public final myobfuscated.dz.c<q<Resource<myobfuscated.v32.a>>> a;
@NotNull
public final AppsFlyerLib b;
@NotNull
public final h<myobfuscated.hs0.a> c;
@NotNull
public final myobfuscated.zg1.a d;
@NotNull
public final a e;
@NotNull
public final h<myobfuscated.tw.d> f;
public e(@NotNull myobfuscated.dz.c getLoginLiveDataWrapper, @NotNull AppsFlyerLib appsFlyerLib, @NotNull h appsFlyerDeeplinkNavigator, @NotNull myobfuscated.zg1.a preferencesService, @NotNull a appsFlyerAnalytics, @NotNull h analyticsUseCase) {
myobfuscated.xl1.a appLaunchInfo = myobfuscated.xl1.a.a;
Intrinsics.checkNotNullParameter(getLoginLiveDataWrapper, "getLoginLiveDataWrapper");
Intrinsics.checkNotNullParameter(appLaunchInfo, "appLaunchInfo");
Intrinsics.checkNotNullParameter(appsFlyerLib, "appsFlyerLib");
Intrinsics.checkNotNullParameter(appsFlyerDeeplinkNavigator, "appsFlyerDeeplinkNavigator");
Intrinsics.checkNotNullParameter(preferencesService, "preferencesService");
Intrinsics.checkNotNullParameter(appsFlyerAnalytics, "appsFlyerAnalytics");
Intrinsics.checkNotNullParameter(analyticsUseCase, "analyticsUseCase");
this.a = getLoginLiveDataWrapper;
this.b = appsFlyerLib;
this.c = appsFlyerDeeplinkNavigator;
this.d = preferencesService;
this.e = appsFlyerAnalytics;
this.f = analyticsUseCase;
}
@Override
public final void a() {
AppsFlyerLib appsFlyerLib = this.b;
appsFlyerLib.setAndroidIdData(null);
appsFlyerLib.setImeiData(null);
}
@Override
public final void b(@NotNull Application application) {
Intrinsics.checkNotNullParameter(application, "application");
if (Settings.isAppsFlyerEnabled()) {
Context applicationContext = application.getApplicationContext();
AppsFlyerLib appsFlyerLib = this.b;
appsFlyerLib.setOneLinkCustomDomain("https://applink.picsart.com", "https://ablinks.picsart.com");
String str = com.picsart.steganography.a.b;
Intrinsics.e(applicationContext);
appsFlyerLib.init(str, new d(this, applicationContext), applicationContext);
appsFlyerLib.subscribeForDeepLink(new myobfuscated.d4.c(5, this, applicationContext));
UserStateSingleton userStateSingleton = UserStateSingleton.a;
User user = userStateSingleton.a().getUser();
new Handler(Looper.getMainLooper()).post(new g0(23, this, new com.beautify.studio.impl.blemishFix.presentation.e(2, user, this)));
String valueOf = String.valueOf(user.u());
if (!userStateSingleton.a().b()) {
valueOf = null;
}
appsFlyerLib.setCustomerUserId(valueOf);
appsFlyerLib.start(application);
if (Settings.isChinaBuild()) {
AppsFlyerLib.getInstance().setCollectIMEI(false);
AppsFlyerLib.getInstance().setCollectAndroidID(false);
}
}
}
@Override
public final void c(@NotNull Context context) {
Intrinsics.checkNotNullParameter(context, "context");
if (!Settings.isAppsFlyerEnabled() || Settings.isChinaBuild()) {
return;
}
this.b.start(context);
}
@Override
public final void d(@NotNull Context context, String str) {
Intrinsics.checkNotNullParameter(context, "context");
this.b.updateServerUninstallToken(context, str);
}
@Override
public final boolean e() {
return g;
}
}