- 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
85 lines
2.2 KiB
Java
85 lines
2.2 KiB
Java
package com.ironsource;
|
|
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mg;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes2.dex */
|
|
class ir implements mg, mg.a {
|
|
private static final int c = 1;
|
|
private final Map<IronSource.AD_UNIT, Integer> a = new HashMap();
|
|
private final cj b = new cj();
|
|
|
|
public static /* synthetic */ class a {
|
|
static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[IronSource.AD_UNIT.values().length];
|
|
a = iArr;
|
|
try {
|
|
iArr[IronSource.AD_UNIT.REWARDED_VIDEO.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
a[IronSource.AD_UNIT.INTERSTITIAL.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
a[IronSource.AD_UNIT.BANNER.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
a[IronSource.AD_UNIT.NATIVE_AD.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public ir() {
|
|
for (IronSource.AD_UNIT ad_unit : IronSource.AD_UNIT.values()) {
|
|
a(ad_unit, 1);
|
|
}
|
|
}
|
|
|
|
private void a(IronSource.AD_UNIT ad_unit, int i) {
|
|
this.a.put(ad_unit, Integer.valueOf(i));
|
|
int i2 = a.a[ad_unit.ordinal()];
|
|
if (i2 == 1) {
|
|
this.b.d(i);
|
|
return;
|
|
}
|
|
if (i2 == 2) {
|
|
this.b.b(i);
|
|
} else if (i2 == 3) {
|
|
this.b.a(i);
|
|
} else {
|
|
if (i2 != 4) {
|
|
return;
|
|
}
|
|
this.b.c(i);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mg
|
|
public synchronized int a(IronSource.AD_UNIT ad_unit) {
|
|
int i = -1;
|
|
if (ad_unit == null) {
|
|
return -1;
|
|
}
|
|
Integer num = this.a.get(ad_unit);
|
|
if (num != null) {
|
|
i = num.intValue();
|
|
}
|
|
return i;
|
|
}
|
|
|
|
@Override // com.ironsource.mg.a
|
|
public synchronized void b(IronSource.AD_UNIT ad_unit) {
|
|
if (ad_unit == null) {
|
|
return;
|
|
}
|
|
a(ad_unit, this.a.get(ad_unit).intValue() + 1);
|
|
}
|
|
}
|