Files
rr3-apk/decompiled-community/sources/com/applovin/impl/p0.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

50 lines
1.4 KiB
Java

package com.applovin.impl;
import com.amazon.device.ads.DTBAdSize;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.mediation.MaxAdFormat;
import com.vungle.ads.internal.protos.Sdk;
import org.json.JSONObject;
/* loaded from: classes.dex */
public class p0 {
private final String a;
private final DTBAdSize b;
public enum a {
VIDEO,
DISPLAY,
INTERSTITIAL
}
public DTBAdSize a() {
return this.b;
}
public p0(String str, JSONObject jSONObject, MaxAdFormat maxAdFormat) {
this.a = str;
this.b = a(JsonUtils.getInt(jSONObject, "type", a(maxAdFormat).ordinal()), maxAdFormat, str);
}
private a a(MaxAdFormat maxAdFormat) {
return maxAdFormat.isAdViewAd() ? a.DISPLAY : a.INTERSTITIAL;
}
private DTBAdSize a(int i, MaxAdFormat maxAdFormat, String str) {
try {
if (a.VIDEO.ordinal() == i) {
return new DTBAdSize.DTBVideo(Sdk.SDKError.Reason.WEBVIEW_ERROR_VALUE, 480, str);
}
if (a.DISPLAY.ordinal() == i) {
return new DTBAdSize(maxAdFormat.getSize().getWidth(), maxAdFormat.getSize().getHeight(), str);
}
if (a.INTERSTITIAL.ordinal() == i) {
return new DTBAdSize.DTBInterstitialAdSize(str);
}
return null;
} catch (Throwable unused) {
return null;
}
}
}