Files
rr3-apk/decompiled/sources/com/ironsource/uo.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

166 lines
6.9 KiB
Java

package com.ironsource;
import android.adservices.measurement.MeasurementManager;
import android.annotation.SuppressLint;
import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.os.OutcomeReceiver;
import com.glu.plugins.gluanalytics.AnalyticsData;
import com.ironsource.mediationsdk.utils.IronSourceUtils;
import com.ironsource.v8;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executor;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.FunctionReferenceImpl;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsJVMKt;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class uo {
private final ge a;
private final Function0 b;
private final me c;
private final Executor d;
public /* synthetic */ class a extends FunctionReferenceImpl implements Function0 {
public static final a a = new a();
public a() {
super(0, System.class, "currentTimeMillis", "currentTimeMillis()J", 0);
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public final Long invoke() {
return Long.valueOf(System.currentTimeMillis());
}
}
public static final class b implements OutcomeReceiver {
public b() {
}
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public void onError(Exception error) {
Intrinsics.checkNotNullParameter(error, "error");
uo.this.a(error.getMessage());
}
public void onResult(Object obj) {
uo.this.c();
}
}
public uo() {
this(null, null, null, null, 15, null);
}
public uo(ge eventManager, Function0 getTimeFunction, me serviceProvider, Executor executor) {
Intrinsics.checkNotNullParameter(eventManager, "eventManager");
Intrinsics.checkNotNullParameter(getTimeFunction, "getTimeFunction");
Intrinsics.checkNotNullParameter(serviceProvider, "serviceProvider");
Intrinsics.checkNotNullParameter(executor, "executor");
this.a = eventManager;
this.b = getTimeFunction;
this.c = serviceProvider;
this.d = executor;
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ uo(com.ironsource.ge r1, kotlin.jvm.functions.Function0 r2, com.ironsource.me r3, java.util.concurrent.Executor r4, int r5, kotlin.jvm.internal.DefaultConstructorMarker r6) {
/*
r0 = this;
r6 = r5 & 1
if (r6 == 0) goto Ld
com.ironsource.rp r1 = com.ironsource.rp.i()
java.lang.String r6 = "getInstance()"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r6)
Ld:
r6 = r5 & 2
if (r6 == 0) goto L13
com.ironsource.uo$a r2 = com.ironsource.uo.a.a
L13:
r6 = r5 & 4
if (r6 == 0) goto L1d
com.ironsource.el$b r3 = com.ironsource.el.p
com.ironsource.me r3 = r3.d()
L1d:
r5 = r5 & 8
if (r5 == 0) goto L2a
java.util.concurrent.ExecutorService r4 = java.util.concurrent.Executors.newSingleThreadExecutor()
java.lang.String r5 = "newSingleThreadExecutor()"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r5)
L2a:
r0.<init>(r1, r2, r3, r4)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.ironsource.uo.<init>(com.ironsource.ge, kotlin.jvm.functions.Function0, com.ironsource.me, java.util.concurrent.Executor, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
private final Uri a(Context context) {
boolean equals;
ce f = this.c.f();
String connectionType = IronSourceUtils.getConnectionType(context);
Uri.Builder appendQueryParameter = new Uri.Builder().scheme("https").authority("android-att.ironsrc.mobi").path("register_trigger").appendQueryParameter(AnalyticsData.S_OS_VERSION, Build.VERSION.RELEASE).appendQueryParameter("apiLevel", String.valueOf(Build.VERSION.SDK_INT)).appendQueryParameter("deviceModel", Build.MODEL).appendQueryParameter("sdkVersion", IronSourceUtils.getSDKVersion()).appendQueryParameter("bundleID", context.getPackageName()).appendQueryParameter("gaid", f.p(context)).appendQueryParameter(ad.u0, f.D(context)).appendQueryParameter("auid", f.s(context)).appendQueryParameter("isFirstSession", String.valueOf(b(context))).appendQueryParameter("coppa", b()).appendQueryParameter(ad.Y, String.valueOf(g1.a())).appendQueryParameter("origin", "1").appendQueryParameter("timestamp", String.valueOf(((Number) this.b.invoke()).longValue())).appendQueryParameter("deviceLanguage", f.b(context)).appendQueryParameter("deviceCarrier", f.j(context)).appendQueryParameter(v8.i.t, connectionType);
equals = StringsKt__StringsJVMKt.equals(connectionType, "wifi", true);
Uri build = appendQueryParameter.appendQueryParameter("wifi", String.valueOf(equals)).build();
Intrinsics.checkNotNullExpressionValue(build, "Builder()\n .schem…arameter\n .build()");
return build;
}
@SuppressLint({"NewApi"})
private final OutcomeReceiver a() {
return new b();
}
/* JADX INFO: Access modifiers changed from: private */
public final void a(String str) {
this.a.a(new kb(56, new JSONObject().put("reason", str)));
}
private final String b() {
ConcurrentHashMap<String, List<String>> c = lj.b().c();
List<String> list = c != null ? c.get(com.ironsource.mediationsdk.metadata.a.b) : null;
String str = list != null ? (String) CollectionsKt___CollectionsKt.first((List) list) : null;
return str == null ? "" : str;
}
private final boolean b(Context context) {
return IronSourceUtils.getFirstSession(context);
}
/* JADX INFO: Access modifiers changed from: private */
public final void c() {
this.a.a(new kb(55, null));
}
private final void d() {
this.a.a(new kb(54, null));
}
@SuppressLint({"NewApi"})
public final void c(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
d();
try {
MeasurementManager a2 = g1.a(context);
if (a2 == null) {
a("could not obtain measurement manager");
} else {
a2.registerTrigger(a(context), this.d, a());
}
} catch (Exception e) {
a(e.getMessage());
i9.d().a(e);
}
}
}