Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.picsart.analytics.services;
import android.content.Context;
import android.content.IntentFilter;
import androidx.annotation.NonNull;
import com.google.gson.Gson;
import com.picsart.analytics.PAanalytics;
import com.picsart.analytics.data.NetRequest;
import com.picsart.analytics.services.i;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import kotlin.jvm.functions.Function0;
import myobfuscated.mx.m;
import myobfuscated.mx.n;
import myobfuscated.sx.j;
import myobfuscated.sx.k;
import myobfuscated.sx.q;
public final class e {
public static final AtomicBoolean o = new AtomicBoolean(false);
public static final AtomicBoolean p = new AtomicBoolean(false);
public static final AtomicBoolean q = new AtomicBoolean(false);
public static final AtomicBoolean r = new AtomicBoolean(false);
public static final String s = e.class.getSimpleName();
public static String t = "https://analytics.picsart.com/requests";
@NonNull
public final j a;
public final Context b;
public final myobfuscated.mx.f c;
public final m d;
@NonNull
public final a e;
@NonNull
public final Gson f;
@NonNull
public final myobfuscated.mx.g g;
@NonNull
public final Function0<String> h;
@NonNull
public final Function0<Boolean> i;
@NonNull
public final Function0<Boolean> j;
@NonNull
public final n k;
public Long m;
public Integer l = null;
public boolean n = false;
public e(@NonNull Context context, @NonNull Gson gson, @NonNull myobfuscated.mx.f fVar, @NonNull myobfuscated.mx.g gVar, @NonNull a aVar, @NonNull m mVar, @NonNull n nVar, @NonNull j jVar, @NonNull myobfuscated.fx.g gVar2, @NonNull myobfuscated.fx.g gVar3, @NonNull Function0 function0) {
this.b = context.getApplicationContext();
this.f = gson;
this.c = fVar;
this.d = mVar;
this.g = gVar;
this.k = nVar;
context.getSharedPreferences("com.picsart.analytics", 0);
new IntentFilter().addAction("android.intent.action.LOCALE_CHANGED");
this.e = aVar;
this.a = jVar;
this.h = function0;
this.i = gVar2;
this.j = gVar3;
}
public final void a(@NonNull q qVar) {
Long l = this.m;
m mVar = this.d;
if (l == null || l.longValue() == 0) {
this.m = Long.valueOf(mVar.getCount());
}
PAanalytics pAanalytics = PAanalytics.INSTANCE;
List<NetRequest> c = mVar.c(Math.min(pAanalytics.getSendingEventsCount(), this.m.longValue()));
boolean isEmpty = c.isEmpty();
AtomicBoolean atomicBoolean = o;
if (isEmpty) {
this.k.b(mVar.getCount());
atomicBoolean.set(false);
qVar.a(i.b.a);
return;
}
this.l = Integer.valueOf(((NetRequest) defpackage.e.h(c, 1)).a);
if (this.n) {
return;
}
if (!this.i.invoke().booleanValue() || !this.j.invoke().booleanValue()) {
qVar.a(i.b.a);
atomicBoolean.set(false);
return;
}
this.n = true;
myobfuscated.lx.j jVar = new myobfuscated.lx.j(t);
jVar.b = myobfuscated.ky.a.b(this.f, new myobfuscated.lx.f(c, new myobfuscated.lx.e(this.b.getPackageName(), this.h.invoke(), pAanalytics.isFreshInstall())), "", new myobfuscated.tt.a().getType());
String str = s;
myobfuscated.jy.e.j("Trying to send requests to server", str);
myobfuscated.jy.e.j("count :" + c.size(), str);
myobfuscated.jy.e.j(c, str);
this.a.get().b(jVar, new k(this, qVar));
}
}