- 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
264 lines
11 KiB
Java
264 lines
11 KiB
Java
package com.ironsource.adapters.vungle;
|
|
|
|
import android.content.Context;
|
|
import com.ironsource.adapters.vungle.banner.VungleBannerAdapter;
|
|
import com.ironsource.adapters.vungle.interstitial.VungleInterstitialAdapter;
|
|
import com.ironsource.adapters.vungle.rewardedvideo.VungleRewardedVideoAdapter;
|
|
import com.ironsource.mediationsdk.AbstractAdapter;
|
|
import com.ironsource.mediationsdk.INetworkInitCallbackListener;
|
|
import com.ironsource.mediationsdk.IntegrationData;
|
|
import com.ironsource.mediationsdk.IronSource;
|
|
import com.ironsource.mediationsdk.LoadWhileShowSupportState;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.mediationsdk.metadata.MetaData;
|
|
import com.ironsource.mediationsdk.metadata.MetaDataUtils;
|
|
import com.vungle.ads.VungleAds;
|
|
import com.vungle.ads.VunglePrivacySettings;
|
|
import csdk.gluads.ironsource.EAIronSource;
|
|
import java.util.HashSet;
|
|
import java.util.List;
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
import kotlin.enums.EnumEntries;
|
|
import kotlin.enums.EnumEntriesKt;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SourceDebugExtension({"SMAP\nVungleAdapter.kt\nKotlin\n*S Kotlin\n*F\n+ 1 VungleAdapter.kt\ncom/ironsource/adapters/vungle/VungleAdapter\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,198:1\n1#2:199\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class VungleAdapter extends AbstractAdapter implements INetworkInitCallbackListener {
|
|
public static final String APP_ID = "AppID";
|
|
private static final String GitHash = "be1d808";
|
|
private static final String META_DATA_VUNGLE_CONSENT_MESSAGE_VERSION = "1.0.0";
|
|
private static final String META_DATA_VUNGLE_COPPA_KEY = "Vungle_COPPA";
|
|
public static final String PLACEMENT_ID = "PlacementId";
|
|
private static final String VERSION = "4.3.26";
|
|
private static final String VUNGLE_KEYWORD = "Vungle";
|
|
public static final Companion Companion = new Companion(null);
|
|
private static AtomicBoolean isInitiated = new AtomicBoolean(false);
|
|
private static Companion.InitState mInitState = Companion.InitState.INIT_STATE_NONE;
|
|
private static final HashSet<INetworkInitCallbackListener> initCallbackListeners = new HashSet<>();
|
|
|
|
public static final String getAdapterSDKVersion() {
|
|
return Companion.getAdapterSDKVersion();
|
|
}
|
|
|
|
public static final IntegrationData getIntegrationData(Context context) {
|
|
return Companion.getIntegrationData(context);
|
|
}
|
|
|
|
public static final VungleAdapter startAdapter(String str) {
|
|
return Companion.startAdapter(str);
|
|
}
|
|
|
|
public final Companion.InitState getInitState() {
|
|
return mInitState;
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public String getVersion() {
|
|
return VERSION;
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public boolean isUsingActivityBeforeImpression(IronSource.AD_UNIT adUnit) {
|
|
Intrinsics.checkNotNullParameter(adUnit, "adUnit");
|
|
return false;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public VungleAdapter(String providerName) {
|
|
super(providerName);
|
|
Intrinsics.checkNotNullParameter(providerName, "providerName");
|
|
setRewardedVideoAdapter(new VungleRewardedVideoAdapter(this));
|
|
setInterstitialAdapter(new VungleInterstitialAdapter(this));
|
|
setBannerAdapter(new VungleBannerAdapter(this));
|
|
this.mLWSSupportState = LoadWhileShowSupportState.LOAD_WHILE_SHOW_BY_INSTANCE;
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final InitState getMInitState$gluads_release() {
|
|
return VungleAdapter.mInitState;
|
|
}
|
|
|
|
public final void setMInitState$gluads_release(InitState initState) {
|
|
Intrinsics.checkNotNullParameter(initState, "<set-?>");
|
|
VungleAdapter.mInitState = initState;
|
|
}
|
|
|
|
public final HashSet<INetworkInitCallbackListener> getInitCallbackListeners$gluads_release() {
|
|
return VungleAdapter.initCallbackListeners;
|
|
}
|
|
|
|
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
|
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
|
public static final class InitState {
|
|
private static final /* synthetic */ EnumEntries $ENTRIES;
|
|
private static final /* synthetic */ InitState[] $VALUES;
|
|
public static final InitState INIT_STATE_NONE = new InitState("INIT_STATE_NONE", 0);
|
|
public static final InitState INIT_STATE_IN_PROGRESS = new InitState("INIT_STATE_IN_PROGRESS", 1);
|
|
public static final InitState INIT_STATE_SUCCESS = new InitState("INIT_STATE_SUCCESS", 2);
|
|
public static final InitState INIT_STATE_FAILED = new InitState("INIT_STATE_FAILED", 3);
|
|
|
|
private static final /* synthetic */ InitState[] $values() {
|
|
return new InitState[]{INIT_STATE_NONE, INIT_STATE_IN_PROGRESS, INIT_STATE_SUCCESS, INIT_STATE_FAILED};
|
|
}
|
|
|
|
public static EnumEntries getEntries() {
|
|
return $ENTRIES;
|
|
}
|
|
|
|
private InitState(String str, int i) {
|
|
}
|
|
|
|
static {
|
|
InitState[] $values = $values();
|
|
$VALUES = $values;
|
|
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
|
}
|
|
|
|
public static InitState valueOf(String str) {
|
|
return (InitState) Enum.valueOf(InitState.class, str);
|
|
}
|
|
|
|
public static InitState[] values() {
|
|
return (InitState[]) $VALUES.clone();
|
|
}
|
|
}
|
|
|
|
public final VungleAdapter startAdapter(String providerName) {
|
|
Intrinsics.checkNotNullParameter(providerName, "providerName");
|
|
if (EAIronSource.adapterDisabled(VungleAdapter.class.getName())) {
|
|
return null;
|
|
}
|
|
return new VungleAdapter(providerName);
|
|
}
|
|
|
|
public final IntegrationData getIntegrationData(Context context) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
return new IntegrationData("Vungle", VungleAdapter.VERSION);
|
|
}
|
|
|
|
public final String getAdapterSDKVersion() {
|
|
return VungleAds.Companion.getSdkVersion();
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public String getCoreSDKVersion() {
|
|
return Companion.getAdapterSDKVersion();
|
|
}
|
|
|
|
public final void initSDK(Context context, String appID) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(appID, "appID");
|
|
if (mInitState == Companion.InitState.INIT_STATE_NONE || mInitState == Companion.InitState.INIT_STATE_IN_PROGRESS) {
|
|
initCallbackListeners.add(this);
|
|
}
|
|
if (isInitiated.compareAndSet(false, true)) {
|
|
IronLog.ADAPTER_API.verbose("appId = " + appID);
|
|
mInitState = Companion.InitState.INIT_STATE_IN_PROGRESS;
|
|
VungleAds.Companion companion = VungleAds.Companion;
|
|
companion.setIntegrationName(VungleAds.WrapperFramework.ironsource, VERSION);
|
|
companion.init(context, appID, new VungleInitListener());
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public void setMetaData(String key, List<String> values) {
|
|
Intrinsics.checkNotNullParameter(key, "key");
|
|
Intrinsics.checkNotNullParameter(values, "values");
|
|
if (values.isEmpty()) {
|
|
return;
|
|
}
|
|
String str = values.get(0);
|
|
IronLog.ADAPTER_API.verbose("key = " + key + ", value = " + str);
|
|
String formatValueForType = MetaDataUtils.formatValueForType(str, MetaData.MetaDataValueTypes.META_DATA_VALUE_BOOLEAN);
|
|
Intrinsics.checkNotNullExpressionValue(formatValueForType, "formatValueForType(...)");
|
|
if (MetaDataUtils.isValidCCPAMetaData(key, str)) {
|
|
setCCPAValue(MetaDataUtils.getMetaDataBooleanValue(str));
|
|
} else if (MetaDataUtils.isValidMetaData(key, META_DATA_VUNGLE_COPPA_KEY, formatValueForType)) {
|
|
setCOPPAValue(MetaDataUtils.getMetaDataBooleanValue(formatValueForType));
|
|
}
|
|
}
|
|
|
|
private final void setCCPAValue(boolean z) {
|
|
boolean z2 = !z;
|
|
IronLog.ADAPTER_API.verbose("ccpa = " + z2);
|
|
VunglePrivacySettings.setCCPAStatus(z2);
|
|
}
|
|
|
|
private final void setCOPPAValue(boolean z) {
|
|
if (mInitState == Companion.InitState.INIT_STATE_NONE) {
|
|
IronLog.ADAPTER_API.verbose("coppa = " + z);
|
|
VunglePrivacySettings.setCOPPAStatus(z);
|
|
return;
|
|
}
|
|
IronLog.INTERNAL.verbose("COPPA value can be set only before the initialization of Vungle");
|
|
}
|
|
|
|
@Override // com.ironsource.mediationsdk.AbstractAdapter
|
|
public void setConsent(boolean z) {
|
|
IronLog.ADAPTER_API.verbose("gdpr = " + z);
|
|
VunglePrivacySettings.setGDPRStatus(z, META_DATA_VUNGLE_CONSENT_MESSAGE_VERSION);
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:6:0x0022, code lost:
|
|
|
|
if (r1 == null) goto L9;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.util.Map<java.lang.String, java.lang.Object> getBiddingData() {
|
|
/*
|
|
r6 = this;
|
|
java.util.HashMap r0 = new java.util.HashMap
|
|
r0.<init>()
|
|
com.vungle.ads.VungleAds$Companion r1 = com.vungle.ads.VungleAds.Companion
|
|
com.ironsource.environment.ContextProvider r2 = com.ironsource.environment.ContextProvider.getInstance()
|
|
android.content.Context r2 = r2.getApplicationContext()
|
|
java.lang.String r3 = "getApplicationContext(...)"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r3)
|
|
java.lang.String r1 = r1.getBiddingToken(r2)
|
|
if (r1 == 0) goto L24
|
|
int r2 = r1.length()
|
|
if (r2 <= 0) goto L21
|
|
goto L22
|
|
L21:
|
|
r1 = 0
|
|
L22:
|
|
if (r1 != 0) goto L26
|
|
L24:
|
|
java.lang.String r1 = ""
|
|
L26:
|
|
java.lang.String r2 = r6.getCoreSDKVersion()
|
|
com.ironsource.mediationsdk.logger.IronLog r3 = com.ironsource.mediationsdk.logger.IronLog.ADAPTER_API
|
|
java.lang.StringBuilder r4 = new java.lang.StringBuilder
|
|
r4.<init>()
|
|
java.lang.String r5 = "sdkVersion = "
|
|
r4.append(r5)
|
|
r4.append(r2)
|
|
java.lang.String r5 = ", token = "
|
|
r4.append(r5)
|
|
r4.append(r1)
|
|
java.lang.String r4 = r4.toString()
|
|
r3.verbose(r4)
|
|
java.lang.String r3 = "sdkVersion"
|
|
r0.put(r3, r2)
|
|
java.lang.String r2 = "token"
|
|
r0.put(r2, r1)
|
|
return r0
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adapters.vungle.VungleAdapter.getBiddingData():java.util.Map");
|
|
}
|
|
}
|