- 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
134 lines
7.4 KiB
Java
134 lines
7.4 KiB
Java
package com.vungle.ads.internal.load;
|
|
|
|
import android.content.Context;
|
|
import com.vungle.ads.AdMarkupInvalidError;
|
|
import com.vungle.ads.AnalyticsClient;
|
|
import com.vungle.ads.ServiceLocator;
|
|
import com.vungle.ads.SingleValueMetric;
|
|
import com.vungle.ads.internal.ConfigManager;
|
|
import com.vungle.ads.internal.downloader.Downloader;
|
|
import com.vungle.ads.internal.executor.Executors;
|
|
import com.vungle.ads.internal.model.AdPayload;
|
|
import com.vungle.ads.internal.model.BidPayload;
|
|
import com.vungle.ads.internal.network.TpatSender;
|
|
import com.vungle.ads.internal.network.VungleApiClient;
|
|
import com.vungle.ads.internal.omsdk.OMInjector;
|
|
import com.vungle.ads.internal.protos.Sdk;
|
|
import com.vungle.ads.internal.signals.SignalManager;
|
|
import com.vungle.ads.internal.util.Logger;
|
|
import com.vungle.ads.internal.util.PathProvider;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import kotlin.Lazy;
|
|
import kotlin.LazyKt__LazyJVMKt;
|
|
import kotlin.LazyThreadSafetyMode;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class RealtimeAdLoader extends BaseAdLoader {
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public RealtimeAdLoader(Context context, VungleApiClient vungleApiClient, Executors sdkExecutors, OMInjector omInjector, Downloader downloader, PathProvider pathProvider, AdRequest adRequest) {
|
|
super(context, vungleApiClient, sdkExecutors, omInjector, downloader, pathProvider, adRequest);
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(vungleApiClient, "vungleApiClient");
|
|
Intrinsics.checkNotNullParameter(sdkExecutors, "sdkExecutors");
|
|
Intrinsics.checkNotNullParameter(omInjector, "omInjector");
|
|
Intrinsics.checkNotNullParameter(downloader, "downloader");
|
|
Intrinsics.checkNotNullParameter(pathProvider, "pathProvider");
|
|
Intrinsics.checkNotNullParameter(adRequest, "adRequest");
|
|
}
|
|
|
|
@Override // com.vungle.ads.internal.load.BaseAdLoader
|
|
public void requestAd() {
|
|
Lazy lazy;
|
|
BidPayload adMarkup = getAdRequest().getAdMarkup();
|
|
if (adMarkup != null) {
|
|
if (ConfigManager.INSTANCE.rtaDebuggingEnabled()) {
|
|
try {
|
|
String decodedAdsResponse = adMarkup.getDecodedAdsResponse();
|
|
Logger.Companion.d("RTA_DEBUGGER", String.valueOf(decodedAdsResponse));
|
|
ServiceLocator.Companion companion = ServiceLocator.Companion;
|
|
final Context context = getContext();
|
|
lazy = LazyKt__LazyJVMKt.lazy(LazyThreadSafetyMode.SYNCHRONIZED, new Function0() { // from class: com.vungle.ads.internal.load.RealtimeAdLoader$requestAd$$inlined$inject$1
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v2, types: [com.vungle.ads.internal.network.VungleApiClient, java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final VungleApiClient invoke() {
|
|
return ServiceLocator.Companion.getInstance(context).getService(VungleApiClient.class);
|
|
}
|
|
});
|
|
if (decodedAdsResponse != null) {
|
|
new RTADebugger(m3903requestAd$lambda0(lazy)).reportAdMarkup(decodedAdsResponse);
|
|
}
|
|
} catch (Throwable unused) {
|
|
}
|
|
}
|
|
AdPayload adPayload = adMarkup.getAdPayload();
|
|
Integer version = adMarkup.getVersion();
|
|
if (version != null && version.intValue() == 2 && adPayload != null) {
|
|
handleAdMetaData$vungle_ads_release(adPayload, new SingleValueMetric(Sdk.SDKMetric.SDKMetricType.CONFIG_LOADED_FROM_ADM_LOAD));
|
|
return;
|
|
} else {
|
|
AnalyticsClient.INSTANCE.logError$vungle_ads_release(213, "The ad response did not contain valid ad markup.", (r13 & 4) != 0 ? null : getAdRequest().getPlacement().getReferenceId(), (r13 & 8) != 0 ? null : null, (r13 & 16) != 0 ? null : adMarkup.getEventId());
|
|
onAdLoadFailed(new AdMarkupInvalidError());
|
|
return;
|
|
}
|
|
}
|
|
AnalyticsClient.INSTANCE.logError$vungle_ads_release(208, "Unable to create data object from payload string.", (r13 & 4) != 0 ? null : getAdRequest().getPlacement().getReferenceId(), (r13 & 8) != 0 ? null : null, (r13 & 16) != 0 ? null : null);
|
|
onAdLoadFailed(new AdMarkupInvalidError());
|
|
}
|
|
|
|
/* renamed from: requestAd$lambda-0, reason: not valid java name */
|
|
private static final VungleApiClient m3903requestAd$lambda0(Lazy lazy) {
|
|
return (VungleApiClient) lazy.getValue();
|
|
}
|
|
|
|
@Override // com.vungle.ads.internal.load.BaseAdLoader
|
|
public void onAdLoadReady() {
|
|
AdPayload advertisement$vungle_ads_release = getAdvertisement$vungle_ads_release();
|
|
sendWinNotification(advertisement$vungle_ads_release != null ? advertisement$vungle_ads_release.getWinNotifications() : null);
|
|
}
|
|
|
|
private final void sendWinNotification(List<String> list) {
|
|
Lazy lazy;
|
|
if (list == null || !list.isEmpty()) {
|
|
ServiceLocator.Companion companion = ServiceLocator.Companion;
|
|
final Context context = getContext();
|
|
lazy = LazyKt__LazyJVMKt.lazy(LazyThreadSafetyMode.SYNCHRONIZED, new Function0() { // from class: com.vungle.ads.internal.load.RealtimeAdLoader$sendWinNotification$$inlined$inject$1
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v2, types: [com.vungle.ads.internal.signals.SignalManager, java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final SignalManager invoke() {
|
|
return ServiceLocator.Companion.getInstance(context).getService(SignalManager.class);
|
|
}
|
|
});
|
|
VungleApiClient vungleApiClient = getVungleApiClient();
|
|
String referenceId = getAdRequest().getPlacement().getReferenceId();
|
|
AdPayload advertisement$vungle_ads_release = getAdvertisement$vungle_ads_release();
|
|
String creativeId = advertisement$vungle_ads_release != null ? advertisement$vungle_ads_release.getCreativeId() : null;
|
|
AdPayload advertisement$vungle_ads_release2 = getAdvertisement$vungle_ads_release();
|
|
TpatSender tpatSender = new TpatSender(vungleApiClient, referenceId, creativeId, advertisement$vungle_ads_release2 != null ? advertisement$vungle_ads_release2.eventId() : null, getSdkExecutors().getIoExecutor(), getPathProvider(), m3904sendWinNotification$lambda2(lazy));
|
|
if (list != null) {
|
|
Iterator<T> it = list.iterator();
|
|
while (it.hasNext()) {
|
|
tpatSender.sendWinNotification((String) it.next(), getSdkExecutors().getJobExecutor());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: sendWinNotification$lambda-2, reason: not valid java name */
|
|
private static final SignalManager m3904sendWinNotification$lambda2(Lazy lazy) {
|
|
return (SignalManager) lazy.getValue();
|
|
}
|
|
}
|