- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
90 lines
2.3 KiB
Java
90 lines
2.3 KiB
Java
package com.ironsource;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.text.TextUtils;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.qf;
|
|
import com.ironsource.sdk.utils.IronSourceQaProperties;
|
|
import com.ironsource.sdk.utils.IronSourceStorageUtils;
|
|
import com.ironsource.sdk.utils.SDKUtils;
|
|
import com.ironsource.v8;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class hm {
|
|
private final ce b = el.N().f();
|
|
ed a = new ed();
|
|
|
|
public void a() {
|
|
JSONObject jSONObject = new JSONObject(IronSourceQaProperties.getInstance().getParameters());
|
|
if (jSONObject.length() > 0) {
|
|
this.a.a("debug", jSONObject);
|
|
}
|
|
}
|
|
|
|
public void a(Context context) {
|
|
if (context instanceof Activity) {
|
|
this.a.a(ad.n, Boolean.valueOf(this.b.a((Activity) context)));
|
|
}
|
|
}
|
|
|
|
public void a(qf.c cVar) {
|
|
this.a.a(ad.g1, Integer.valueOf(cVar.ordinal()));
|
|
}
|
|
|
|
public void a(List<String> list) {
|
|
this.a.a(ad.j1, list);
|
|
}
|
|
|
|
public void a(Map<String, JSONObject> map) {
|
|
for (Map.Entry<String, JSONObject> entry : map.entrySet()) {
|
|
this.a.a(entry.getKey(), (Object) entry.getValue());
|
|
}
|
|
}
|
|
|
|
public void a(JSONObject jSONObject) {
|
|
this.a.a(ad.l, jSONObject);
|
|
}
|
|
|
|
public void a(boolean z) {
|
|
this.a.a(ad.A0, Boolean.valueOf(z));
|
|
}
|
|
|
|
public void b() {
|
|
String controllerConfig = SDKUtils.getControllerConfig();
|
|
if (TextUtils.isEmpty(controllerConfig)) {
|
|
return;
|
|
}
|
|
try {
|
|
this.a.a(ad.i, new JSONObject(controllerConfig).opt(v8.a.p));
|
|
} catch (JSONException e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
}
|
|
}
|
|
|
|
public void b(Context context) {
|
|
this.a.a("gpi", Boolean.valueOf(un.d(context)));
|
|
}
|
|
|
|
public void c() {
|
|
this.a.a("uxt", Boolean.valueOf(IronSourceStorageUtils.isUxt()));
|
|
}
|
|
|
|
public void d() {
|
|
this.a.a(ad.M, "8.4.0");
|
|
}
|
|
|
|
public void e() {
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(ad.x, zm.f);
|
|
hashMap.put(ad.w, zm.e);
|
|
this.a.a(hashMap);
|
|
}
|
|
}
|