Files
rr3-apk/decompiled/sources/com/ironsource/sdk/controller/o.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

129 lines
3.9 KiB
Java

package com.ironsource.sdk.controller;
import android.content.Context;
import android.text.TextUtils;
import com.ironsource.i9;
import com.ironsource.mj;
import com.ironsource.sdk.utils.Logger;
import com.ironsource.wp;
import com.ironsource.zm;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class o {
private static final String c = "o";
private static final String d = "activate";
private static final String e = "startSession";
private static final String f = "finishSession";
private static final String g = "impressionOccurred";
private static final String h = "getOmidData";
private static final String i = "omidFunction";
private static final String j = "omidParams";
private static final String k = "success";
private static final String l = "fail";
private static final String m = "%s | unsupported OMID API";
private final Context a;
private final zm b = new zm();
public static class b {
String a;
JSONObject b;
String c;
String d;
private b() {
}
}
public o(Context context) {
this.a = context;
}
private b a(String str) throws JSONException {
JSONObject jSONObject = new JSONObject(str);
b bVar = new b();
bVar.a = jSONObject.optString(i);
bVar.b = jSONObject.optJSONObject(j);
bVar.c = jSONObject.optString("success");
bVar.d = jSONObject.optString("fail");
return bVar;
}
public void a(String str, mj mjVar) throws Exception {
char c2;
b a2 = a(str);
wp wpVar = new wp();
JSONObject jSONObject = a2.b;
if (jSONObject != null) {
String optString = jSONObject.optString("adViewId", "");
if (!TextUtils.isEmpty(optString)) {
wpVar.b("adViewId", optString);
}
}
try {
String str2 = a2.a;
switch (str2.hashCode()) {
case -1655974669:
if (str2.equals(d)) {
c2 = 0;
break;
}
c2 = 65535;
break;
case -984459207:
if (str2.equals(h)) {
c2 = 4;
break;
}
c2 = 65535;
break;
case 70701699:
if (str2.equals(f)) {
c2 = 2;
break;
}
c2 = 65535;
break;
case 1208109646:
if (str2.equals(g)) {
c2 = 3;
break;
}
c2 = 65535;
break;
case 1850541012:
if (str2.equals(e)) {
c2 = 1;
break;
}
c2 = 65535;
break;
default:
c2 = 65535;
break;
}
if (c2 != 0) {
if (c2 == 1) {
this.b.d(a2.b);
} else if (c2 == 2) {
this.b.b(a2.b);
} else if (c2 == 3) {
this.b.c(a2.b);
} else if (c2 != 4) {
throw new IllegalArgumentException(String.format(m, a2.a));
}
mjVar.a(true, a2.c, wpVar);
}
this.b.a(this.a);
wpVar = this.b.a();
mjVar.a(true, a2.c, wpVar);
} catch (Exception e2) {
i9.d().a(e2);
wpVar.b("errMsg", e2.getMessage());
Logger.i(c, "OMIDJSAdapter " + a2.a + " Exception: " + e2.getMessage());
mjVar.a(false, a2.d, wpVar);
}
}
}