- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
164 lines
4.5 KiB
Java
164 lines
4.5 KiB
Java
package com.ironsource.mediationsdk;
|
|
|
|
import android.text.TextUtils;
|
|
import com.ironsource.environment.ContextProvider;
|
|
import com.ironsource.i9;
|
|
import com.ironsource.lg;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLogger;
|
|
import com.ironsource.mediationsdk.logger.IronSourceLoggerManager;
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import com.ironsource.v2;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public abstract class y implements lg.b {
|
|
protected AbstractAdapter a;
|
|
protected v2 b;
|
|
private boolean c;
|
|
protected JSONObject d;
|
|
protected String e;
|
|
protected int f;
|
|
protected Long g = null;
|
|
|
|
public y(v2 v2Var, AbstractAdapter abstractAdapter) {
|
|
this.b = v2Var;
|
|
this.a = abstractAdapter;
|
|
this.d = v2Var.c();
|
|
}
|
|
|
|
private void a(String str, int i) {
|
|
IronSourceLoggerManager.getLogger().log(IronSourceLogger.IronSourceTag.INTERNAL, k() + " " + c() + " : " + str, i);
|
|
}
|
|
|
|
public void a(String str) {
|
|
a(str, 0);
|
|
}
|
|
|
|
public void a(boolean z) {
|
|
this.c = z;
|
|
}
|
|
|
|
@Override // com.ironsource.lg.b
|
|
public int b() {
|
|
return this.b.e();
|
|
}
|
|
|
|
public void b(String str) {
|
|
a(str, 3);
|
|
}
|
|
|
|
@Override // com.ironsource.lg.b
|
|
public String c() {
|
|
return this.b.f();
|
|
}
|
|
|
|
public void c(String str) {
|
|
this.e = d.b().c(str);
|
|
}
|
|
|
|
public abstract IronSource.AD_UNIT d();
|
|
|
|
public Long e() {
|
|
return this.g;
|
|
}
|
|
|
|
public String f() {
|
|
return String.format("%s %s", i(), Integer.valueOf(hashCode()));
|
|
}
|
|
|
|
public int g() {
|
|
return this.b.d();
|
|
}
|
|
|
|
public boolean h() {
|
|
return this.c;
|
|
}
|
|
|
|
public String i() {
|
|
return this.b.h().isMultipleInstances() ? this.b.h().getProviderTypeForReflection() : this.b.h().getProviderName();
|
|
}
|
|
|
|
public String j() {
|
|
return this.b.g();
|
|
}
|
|
|
|
public abstract String k();
|
|
|
|
public int l() {
|
|
return 1;
|
|
}
|
|
|
|
public Map<String, Object> m() {
|
|
HashMap hashMap = new HashMap();
|
|
try {
|
|
AbstractAdapter abstractAdapter = this.a;
|
|
hashMap.put(IronSourceConstants.EVENTS_PROVIDER_ADAPTER_VERSION, abstractAdapter != null ? abstractAdapter.getVersion() : "");
|
|
AbstractAdapter abstractAdapter2 = this.a;
|
|
hashMap.put(IronSourceConstants.EVENTS_PROVIDER_SDK_VERSION, abstractAdapter2 != null ? abstractAdapter2.getCoreSDKVersion() : "");
|
|
hashMap.put("spId", this.b.i());
|
|
hashMap.put(IronSourceConstants.EVENTS_PROVIDER, this.b.a());
|
|
hashMap.put("instanceType", Integer.valueOf(p() ? 2 : 1));
|
|
hashMap.put(IronSourceConstants.EVENTS_PROGRAMMATIC, Integer.valueOf(l()));
|
|
if (!TextUtils.isEmpty(this.e)) {
|
|
hashMap.put("dynamicDemandSource", this.e);
|
|
}
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
IronSourceLoggerManager.getLogger().logException(IronSourceLogger.IronSourceTag.NATIVE, "getProviderEventData " + c() + ")", th);
|
|
}
|
|
return hashMap;
|
|
}
|
|
|
|
public int n() {
|
|
return this.f;
|
|
}
|
|
|
|
public boolean o() {
|
|
IronLog ironLog = IronLog.INTERNAL;
|
|
ironLog.verbose();
|
|
try {
|
|
if (ContextProvider.getInstance().getCurrentActiveActivity() != null || !this.a.isUsingActivityBeforeImpression(d())) {
|
|
return false;
|
|
}
|
|
ironLog.verbose(c() + " - is using activity before impression and activity is null");
|
|
return true;
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
b("Exception while calling adapter.isUsingActivityBeforeImpression() - " + th.getLocalizedMessage());
|
|
return true;
|
|
}
|
|
}
|
|
|
|
public boolean p() {
|
|
return this.b.j();
|
|
}
|
|
|
|
public void q() {
|
|
try {
|
|
AbstractAdapter abstractAdapter = this.a;
|
|
if (abstractAdapter != null) {
|
|
abstractAdapter.releaseMemory(this.b.b(), this.d);
|
|
}
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
IronLog.INTERNAL.error("exception - " + th.getMessage());
|
|
}
|
|
this.a = null;
|
|
}
|
|
|
|
public boolean r() {
|
|
if (o()) {
|
|
return false;
|
|
}
|
|
return p() || s();
|
|
}
|
|
|
|
public boolean s() {
|
|
return this.b.k();
|
|
}
|
|
}
|