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

115 lines
3.2 KiB
Java

package com.ironsource.sdk.controller;
import com.ironsource.i8;
import com.ironsource.i9;
import com.ironsource.j8;
import com.ironsource.jr;
import com.ironsource.kd;
import com.ironsource.mediationsdk.logger.IronLog;
import com.ironsource.sdk.utils.SDKUtils;
import com.ironsource.v8;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class FeaturesManager {
private static volatile FeaturesManager c = null;
private static final String d = "debugMode";
private Map<String, ?> a;
private final ArrayList<String> b = new a();
public class a extends ArrayList<String> {
public a() {
add(v8.d.f);
add(v8.d.e);
add(v8.d.g);
add(v8.d.h);
add(v8.d.i);
add(v8.d.j);
add(v8.d.k);
add(v8.d.l);
add(v8.d.m);
}
}
private FeaturesManager() {
if (c != null) {
throw new RuntimeException("Use getInstance() method to get the single instance of this class.");
}
this.a = new HashMap();
}
public static FeaturesManager getInstance() {
if (c == null) {
synchronized (FeaturesManager.class) {
try {
if (c == null) {
c = new FeaturesManager();
}
} finally {
}
}
}
return c;
}
public ArrayList<String> a() {
return new ArrayList<>(this.b);
}
public JSONObject getDataManagerConfig() {
JSONObject networkConfiguration = SDKUtils.getNetworkConfiguration();
return networkConfiguration.has(v8.a.c) ? networkConfiguration.optJSONObject(v8.a.c) : new JSONObject();
}
public int getDebugMode() {
Integer num = 0;
try {
if (this.a.containsKey("debugMode")) {
num = (Integer) this.a.get("debugMode");
}
} catch (Exception e) {
i9.d().a(e);
IronLog.INTERNAL.error(e.toString());
}
if (num != null) {
return num.intValue();
}
return 0;
}
public i8 getFeatureFlagCatchUrlError() {
return new i8(SDKUtils.getNetworkConfiguration().optJSONObject(i8.a.c));
}
public j8 getFeatureFlagClickCheck() {
return new j8(SDKUtils.getNetworkConfiguration());
}
public kd getFeatureFlagHealthCheck() {
return new kd(SDKUtils.getNetworkConfiguration().optJSONObject(v8.a.q));
}
public int getInitRecoverTrials() {
JSONObject optJSONObject = SDKUtils.getNetworkConfiguration().optJSONObject(v8.a.e);
if (optJSONObject != null) {
return optJSONObject.optInt(v8.a.d, 0);
}
return 0;
}
public jr getSessionHistoryConfig() {
JSONObject networkConfiguration = SDKUtils.getNetworkConfiguration();
return new jr(networkConfiguration.has(v8.a.r) ? networkConfiguration.optJSONObject(v8.a.r) : new JSONObject());
}
public void updateDebugConfigurations(Map<String, Object> map) {
if (map == null) {
return;
}
this.a = map;
}
}