- 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
1550 lines
90 KiB
Java
1550 lines
90 KiB
Java
package com.unity3d.ads.adplayer;
|
|
|
|
import android.util.Base64;
|
|
import androidx.annotation.CallSuper;
|
|
import com.unity3d.ads.adplayer.AdPlayer;
|
|
import com.unity3d.ads.adplayer.model.OnActivityDestroyedEvent;
|
|
import com.unity3d.ads.adplayer.model.OnAllowedPiiChangeEvent;
|
|
import com.unity3d.ads.adplayer.model.OnBroadcastEvent;
|
|
import com.unity3d.ads.adplayer.model.OnFocusChangeEvent;
|
|
import com.unity3d.ads.adplayer.model.OnMuteChangeEvent;
|
|
import com.unity3d.ads.adplayer.model.OnPrivacyFsmChangeEvent;
|
|
import com.unity3d.ads.adplayer.model.OnStorageEvent;
|
|
import com.unity3d.ads.adplayer.model.OnUserConsentChangeEvent;
|
|
import com.unity3d.ads.adplayer.model.OnVisibilityChangeEvent;
|
|
import com.unity3d.ads.adplayer.model.OnVolumeChangeEvent;
|
|
import com.unity3d.ads.adplayer.model.WebViewEvent;
|
|
import com.unity3d.ads.core.data.repository.DeviceInfoRepository;
|
|
import com.unity3d.ads.core.data.repository.SessionRepository;
|
|
import com.unity3d.ads.core.domain.ExecuteAdViewerRequest;
|
|
import com.unity3d.ads.core.domain.SendDiagnosticEvent;
|
|
import com.unity3d.services.core.device.Storage;
|
|
import com.unity3d.services.core.device.StorageEventInfo;
|
|
import com.vungle.ads.internal.protos.Sdk;
|
|
import kotlin.ResultKt;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
|
|
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
|
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
|
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.FunctionReferenceImpl;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
|
import kotlinx.coroutines.CoroutineDispatcher;
|
|
import kotlinx.coroutines.CoroutineExceptionHandler;
|
|
import kotlinx.coroutines.CoroutineName;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
import kotlinx.coroutines.CoroutineScopeKt;
|
|
import kotlinx.coroutines.flow.Flow;
|
|
import kotlinx.coroutines.flow.FlowCollector;
|
|
import kotlinx.coroutines.flow.FlowKt;
|
|
import kotlinx.coroutines.flow.MutableSharedFlow;
|
|
import kotlinx.coroutines.flow.MutableStateFlow;
|
|
import kotlinx.coroutines.flow.SharedFlow;
|
|
import kotlinx.coroutines.flow.SharingStarted;
|
|
import kotlinx.coroutines.flow.StateFlowKt;
|
|
import org.json.JSONObject;
|
|
|
|
@SourceDebugExtension({"SMAP\nWebViewAdPlayer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n+ 2 CoroutineExceptionHandler.kt\nkotlinx/coroutines/CoroutineExceptionHandlerKt\n+ 3 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 4 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 5 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n+ 6 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n*L\n1#1,300:1\n49#2,4:301\n20#3:305\n22#3:309\n47#3:310\n49#3:314\n20#3:315\n22#3:319\n47#3:320\n49#3:324\n20#3:325\n22#3:329\n47#3:330\n49#3:334\n20#3:335\n22#3:339\n47#3:340\n49#3:344\n20#3:345\n22#3:349\n47#3:350\n49#3:354\n50#4:306\n55#4:308\n50#4:311\n55#4:313\n50#4:316\n55#4:318\n50#4:321\n55#4:323\n50#4:326\n55#4:328\n50#4:331\n55#4:333\n50#4:336\n55#4:338\n50#4:341\n55#4:343\n50#4:346\n55#4:348\n50#4:351\n55#4:353\n106#5:307\n106#5:312\n106#5:317\n106#5:322\n106#5:327\n106#5:332\n106#5:337\n106#5:342\n106#5:347\n106#5:352\n515#6:355\n500#6,6:356\n*S KotlinDebug\n*F\n+ 1 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n80#1:301,4\n87#1:305\n87#1:309\n88#1:310\n88#1:314\n120#1:315\n120#1:319\n121#1:320\n121#1:324\n137#1:325\n137#1:329\n138#1:330\n138#1:334\n148#1:335\n148#1:339\n149#1:340\n149#1:344\n155#1:345\n155#1:349\n156#1:350\n156#1:354\n87#1:306\n87#1:308\n88#1:311\n88#1:313\n120#1:316\n120#1:318\n121#1:321\n121#1:323\n137#1:326\n137#1:328\n138#1:331\n138#1:333\n148#1:336\n148#1:338\n149#1:341\n149#1:343\n155#1:346\n155#1:348\n156#1:351\n156#1:353\n87#1:307\n88#1:312\n120#1:317\n121#1:322\n137#1:327\n138#1:332\n148#1:337\n149#1:342\n155#1:347\n156#1:352\n219#1:355\n219#1:356,6\n*E\n"})
|
|
/* loaded from: classes4.dex */
|
|
public final class WebViewAdPlayer implements AdPlayer {
|
|
private final WebViewBridge bridge;
|
|
private final DeviceInfoRepository deviceInfoRepository;
|
|
private final CoroutineDispatcher dispatcher;
|
|
private final ExecuteAdViewerRequest executeAdViewerRequest;
|
|
private final MutableStateFlow isCompletedManually;
|
|
private final Flow onBroadcastEvents;
|
|
private final Flow onLoadEvent;
|
|
private final Flow onRequestEvents;
|
|
private final Flow onShowEvent;
|
|
private final CoroutineScope scope;
|
|
private final CoroutineExceptionHandler scopeCancellationHandler;
|
|
private final SendDiagnosticEvent sendDiagnosticEvent;
|
|
private final SessionRepository sessionRepository;
|
|
private final Function1 storageEventCallback;
|
|
private final Flow updateCampaignState;
|
|
private final WebViewContainer webViewContainer;
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Flow getOnLoadEvent() {
|
|
return this.onLoadEvent;
|
|
}
|
|
|
|
public final Flow getOnRequestEvents() {
|
|
return this.onRequestEvents;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Flow getOnShowEvent() {
|
|
return this.onShowEvent;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public CoroutineScope getScope() {
|
|
return this.scope;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Flow getUpdateCampaignState() {
|
|
return this.updateCampaignState;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public WebViewContainer getWebViewContainer() {
|
|
return this.webViewContainer;
|
|
}
|
|
|
|
public WebViewAdPlayer(WebViewBridge bridge, DeviceInfoRepository deviceInfoRepository, SessionRepository sessionRepository, ExecuteAdViewerRequest executeAdViewerRequest, CoroutineDispatcher dispatcher, SendDiagnosticEvent sendDiagnosticEvent, WebViewContainer webViewContainer, CoroutineScope adPlayerScope) {
|
|
Intrinsics.checkNotNullParameter(bridge, "bridge");
|
|
Intrinsics.checkNotNullParameter(deviceInfoRepository, "deviceInfoRepository");
|
|
Intrinsics.checkNotNullParameter(sessionRepository, "sessionRepository");
|
|
Intrinsics.checkNotNullParameter(executeAdViewerRequest, "executeAdViewerRequest");
|
|
Intrinsics.checkNotNullParameter(dispatcher, "dispatcher");
|
|
Intrinsics.checkNotNullParameter(sendDiagnosticEvent, "sendDiagnosticEvent");
|
|
Intrinsics.checkNotNullParameter(webViewContainer, "webViewContainer");
|
|
Intrinsics.checkNotNullParameter(adPlayerScope, "adPlayerScope");
|
|
this.bridge = bridge;
|
|
this.deviceInfoRepository = deviceInfoRepository;
|
|
this.sessionRepository = sessionRepository;
|
|
this.executeAdViewerRequest = executeAdViewerRequest;
|
|
this.dispatcher = dispatcher;
|
|
this.sendDiagnosticEvent = sendDiagnosticEvent;
|
|
this.webViewContainer = webViewContainer;
|
|
MutableStateFlow MutableStateFlow = StateFlowKt.MutableStateFlow(Boolean.FALSE);
|
|
this.isCompletedManually = MutableStateFlow;
|
|
Function1 function1 = new Function1() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$storageEventCallback$1
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$storageEventCallback$1$1", f = "WebViewAdPlayer.kt", l = {72}, m = "invokeSuspend")
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$storageEventCallback$1$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends SuspendLambda implements Function2 {
|
|
final /* synthetic */ StorageEventInfo $it;
|
|
int label;
|
|
final /* synthetic */ WebViewAdPlayer this$0;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(WebViewAdPlayer webViewAdPlayer, StorageEventInfo storageEventInfo, Continuation continuation) {
|
|
super(2, continuation);
|
|
this.this$0 = webViewAdPlayer;
|
|
this.$it = storageEventInfo;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Continuation create(Object obj, Continuation continuation) {
|
|
return new AnonymousClass1(this.this$0, this.$it, continuation);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) {
|
|
return ((AnonymousClass1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
Object coroutine_suspended;
|
|
WebViewBridge webViewBridge;
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
int i = this.label;
|
|
if (i == 0) {
|
|
ResultKt.throwOnFailure(obj);
|
|
webViewBridge = this.this$0.bridge;
|
|
OnStorageEvent onStorageEvent = new OnStorageEvent(this.$it.getEventType(), this.$it.getStorageType(), this.$it.getValue());
|
|
this.label = 1;
|
|
if (webViewBridge.sendEvent(onStorageEvent, this) == coroutine_suspended) {
|
|
return coroutine_suspended;
|
|
}
|
|
} else {
|
|
if (i != 1) {
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
}
|
|
ResultKt.throwOnFailure(obj);
|
|
}
|
|
return Unit.INSTANCE;
|
|
}
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Object invoke(Object obj) {
|
|
invoke((StorageEventInfo) obj);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
public final void invoke(StorageEventInfo it) {
|
|
Intrinsics.checkNotNullParameter(it, "it");
|
|
BuildersKt__Builders_commonKt.launch$default(WebViewAdPlayer.this.getScope(), null, null, new AnonymousClass1(WebViewAdPlayer.this, it, null), 3, null);
|
|
}
|
|
};
|
|
this.storageEventCallback = function1;
|
|
WebViewAdPlayer$special$$inlined$CoroutineExceptionHandler$1 webViewAdPlayer$special$$inlined$CoroutineExceptionHandler$1 = new WebViewAdPlayer$special$$inlined$CoroutineExceptionHandler$1(CoroutineExceptionHandler.Key, this);
|
|
this.scopeCancellationHandler = webViewAdPlayer$special$$inlined$CoroutineExceptionHandler$1;
|
|
this.scope = CoroutineScopeKt.plus(CoroutineScopeKt.plus(CoroutineScopeKt.plus(adPlayerScope, dispatcher), new CoroutineName("WebViewAdPlayer")), webViewAdPlayer$special$$inlined$CoroutineExceptionHandler$1);
|
|
final SharedFlow onInvocation = bridge.getOnInvocation();
|
|
final Flow flow = new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n21#2:223\n22#2:225\n87#3:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1$2", f = "WebViewAdPlayer.kt", l = {Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r6, kotlin.coroutines.Continuation r7) {
|
|
/*
|
|
r5 = this;
|
|
boolean r0 = r7 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1.AnonymousClass2.AnonymousClass1
|
|
if (r0 == 0) goto L13
|
|
r0 = r7
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1$2$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1.AnonymousClass2.AnonymousClass1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1$2$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1$2$1
|
|
r0.<init>(r7)
|
|
L18:
|
|
java.lang.Object r7 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 1
|
|
if (r2 == 0) goto L31
|
|
if (r2 != r3) goto L29
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L50
|
|
L29:
|
|
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
|
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
|
r6.<init>(r7)
|
|
throw r6
|
|
L31:
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
kotlinx.coroutines.flow.FlowCollector r7 = r5.$this_unsafeFlow
|
|
r2 = r6
|
|
com.unity3d.ads.adplayer.Invocation r2 = (com.unity3d.ads.adplayer.Invocation) r2
|
|
java.lang.String[] r4 = com.unity3d.ads.adplayer.WebViewAdPlayerKt.access$getSHOW_EVENTS$p()
|
|
java.lang.String r2 = r2.getLocation()
|
|
boolean r2 = kotlin.collections.ArraysKt.contains(r4, r2)
|
|
if (r2 == 0) goto L50
|
|
r0.label = r3
|
|
java.lang.Object r6 = r7.emit(r6, r0)
|
|
if (r6 != r1) goto L50
|
|
return r1
|
|
L50:
|
|
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
};
|
|
this.onShowEvent = FlowKt.flowCombine(new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$1
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n48#2:223\n89#3,22:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$1$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$1$2", f = "WebViewAdPlayer.kt", l = {244, Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$1$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0103 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0043 */
|
|
/* JADX WARN: Removed duplicated region for block: B:27:0x00f5 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:28:0x00f6 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r10, kotlin.coroutines.Continuation r11) {
|
|
/*
|
|
Method dump skipped, instructions count: 316
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
}, MutableStateFlow, new WebViewAdPlayer$onShowEvent$3(null));
|
|
final SharedFlow onInvocation2 = bridge.getOnInvocation();
|
|
final Flow flow2 = new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n21#2:223\n22#2:225\n120#3:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2$2", f = "WebViewAdPlayer.kt", l = {Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r6, kotlin.coroutines.Continuation r7) {
|
|
/*
|
|
r5 = this;
|
|
boolean r0 = r7 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2.AnonymousClass2.AnonymousClass1
|
|
if (r0 == 0) goto L13
|
|
r0 = r7
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2$2$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2.AnonymousClass2.AnonymousClass1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2$2$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2$2$1
|
|
r0.<init>(r7)
|
|
L18:
|
|
java.lang.Object r7 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 1
|
|
if (r2 == 0) goto L31
|
|
if (r2 != r3) goto L29
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L50
|
|
L29:
|
|
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
|
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
|
r6.<init>(r7)
|
|
throw r6
|
|
L31:
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
kotlinx.coroutines.flow.FlowCollector r7 = r5.$this_unsafeFlow
|
|
r2 = r6
|
|
com.unity3d.ads.adplayer.Invocation r2 = (com.unity3d.ads.adplayer.Invocation) r2
|
|
java.lang.String[] r4 = com.unity3d.ads.adplayer.WebViewAdPlayerKt.access$getLOAD_EVENTS$p()
|
|
java.lang.String r2 = r2.getLocation()
|
|
boolean r2 = kotlin.collections.ArraysKt.contains(r4, r2)
|
|
if (r2 == 0) goto L50
|
|
r0.label = r3
|
|
java.lang.Object r6 = r7.emit(r6, r0)
|
|
if (r6 != r1) goto L50
|
|
return r1
|
|
L50:
|
|
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$2.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
};
|
|
this.onLoadEvent = FlowKt.take(FlowKt.shareIn(new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n48#2:223\n122#3,9:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2$2", f = "WebViewAdPlayer.kt", l = {224, Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0061 */
|
|
/* JADX WARN: Removed duplicated region for block: B:22:0x0095 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:23:0x0087 */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x0041 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r8, kotlin.coroutines.Continuation r9) {
|
|
/*
|
|
r7 = this;
|
|
boolean r0 = r9 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2.AnonymousClass2.AnonymousClass1
|
|
if (r0 == 0) goto L13
|
|
r0 = r9
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2$2$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2.AnonymousClass2.AnonymousClass1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2$2$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2$2$1
|
|
r0.<init>(r9)
|
|
L18:
|
|
java.lang.Object r9 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 2
|
|
r4 = 1
|
|
r5 = 0
|
|
if (r2 == 0) goto L41
|
|
if (r2 == r4) goto L35
|
|
if (r2 != r3) goto L2d
|
|
kotlin.ResultKt.throwOnFailure(r9)
|
|
goto L96
|
|
L2d:
|
|
java.lang.IllegalStateException r8 = new java.lang.IllegalStateException
|
|
java.lang.String r9 = "call to 'resume' before 'invoke' with coroutine"
|
|
r8.<init>(r9)
|
|
throw r8
|
|
L35:
|
|
java.lang.Object r8 = r0.L$1
|
|
com.unity3d.ads.adplayer.Invocation r8 = (com.unity3d.ads.adplayer.Invocation) r8
|
|
java.lang.Object r2 = r0.L$0
|
|
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
|
kotlin.ResultKt.throwOnFailure(r9)
|
|
goto L55
|
|
L41:
|
|
kotlin.ResultKt.throwOnFailure(r9)
|
|
kotlinx.coroutines.flow.FlowCollector r2 = r7.$this_unsafeFlow
|
|
com.unity3d.ads.adplayer.Invocation r8 = (com.unity3d.ads.adplayer.Invocation) r8
|
|
r0.L$0 = r2
|
|
r0.L$1 = r8
|
|
r0.label = r4
|
|
java.lang.Object r9 = com.unity3d.ads.adplayer.Invocation.handle$default(r8, r5, r0, r4, r5)
|
|
if (r9 != r1) goto L55
|
|
return r1
|
|
L55:
|
|
java.lang.String r9 = r8.getLocation()
|
|
java.lang.String r4 = "com.unity3d.services.ads.api.AdViewer.loadError"
|
|
boolean r9 = kotlin.jvm.internal.Intrinsics.areEqual(r9, r4)
|
|
if (r9 == 0) goto L87
|
|
java.lang.Object[] r8 = r8.getParameters()
|
|
java.lang.Object r8 = kotlin.collections.ArraysKt.first(r8)
|
|
java.lang.String r9 = "null cannot be cast to non-null type org.json.JSONObject"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNull(r8, r9)
|
|
org.json.JSONObject r8 = (org.json.JSONObject) r8
|
|
java.lang.String r9 = "code"
|
|
int r9 = r8.optInt(r9)
|
|
java.lang.String r4 = "message"
|
|
java.lang.String r8 = r8.optString(r4)
|
|
com.unity3d.ads.adplayer.model.LoadEvent$Error r4 = new com.unity3d.ads.adplayer.model.LoadEvent$Error
|
|
java.lang.String r6 = "errorMessage"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r8, r6)
|
|
r4.<init>(r8, r9)
|
|
goto L89
|
|
L87:
|
|
com.unity3d.ads.adplayer.model.LoadEvent$Completed r4 = com.unity3d.ads.adplayer.model.LoadEvent.Completed.INSTANCE
|
|
L89:
|
|
r0.L$0 = r5
|
|
r0.L$1 = r5
|
|
r0.label = r3
|
|
java.lang.Object r8 = r2.emit(r4, r0)
|
|
if (r8 != r1) goto L96
|
|
return r1
|
|
L96:
|
|
kotlin.Unit r8 = kotlin.Unit.INSTANCE
|
|
return r8
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$2.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
}, getScope(), SharingStarted.Companion.getEagerly(), 1), 1);
|
|
final SharedFlow onInvocation3 = bridge.getOnInvocation();
|
|
final Flow flow3 = new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n21#2:223\n22#2:225\n137#3:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3$2", f = "WebViewAdPlayer.kt", l = {Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r6, kotlin.coroutines.Continuation r7) {
|
|
/*
|
|
r5 = this;
|
|
boolean r0 = r7 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3.AnonymousClass2.AnonymousClass1
|
|
if (r0 == 0) goto L13
|
|
r0 = r7
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3$2$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3.AnonymousClass2.AnonymousClass1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3$2$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3$2$1
|
|
r0.<init>(r7)
|
|
L18:
|
|
java.lang.Object r7 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 1
|
|
if (r2 == 0) goto L31
|
|
if (r2 != r3) goto L29
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L4e
|
|
L29:
|
|
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
|
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
|
r6.<init>(r7)
|
|
throw r6
|
|
L31:
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
kotlinx.coroutines.flow.FlowCollector r7 = r5.$this_unsafeFlow
|
|
r2 = r6
|
|
com.unity3d.ads.adplayer.Invocation r2 = (com.unity3d.ads.adplayer.Invocation) r2
|
|
java.lang.String r2 = r2.getLocation()
|
|
java.lang.String r4 = "com.unity3d.services.ads.api.AdViewer.updateCampaignState"
|
|
boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual(r2, r4)
|
|
if (r2 == 0) goto L4e
|
|
r0.label = r3
|
|
java.lang.Object r6 = r7.emit(r6, r0)
|
|
if (r6 != r1) goto L4e
|
|
return r1
|
|
L4e:
|
|
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$3.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
};
|
|
this.updateCampaignState = new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n48#2:223\n139#3,6:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3$2", f = "WebViewAdPlayer.kt", l = {224, Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0092 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0041 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r7, kotlin.coroutines.Continuation r8) {
|
|
/*
|
|
r6 = this;
|
|
boolean r0 = r8 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3.AnonymousClass2.AnonymousClass1
|
|
if (r0 == 0) goto L13
|
|
r0 = r8
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3$2$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3.AnonymousClass2.AnonymousClass1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3$2$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3$2$1
|
|
r0.<init>(r8)
|
|
L18:
|
|
java.lang.Object r8 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 2
|
|
r4 = 1
|
|
r5 = 0
|
|
if (r2 == 0) goto L41
|
|
if (r2 == r4) goto L35
|
|
if (r2 != r3) goto L2d
|
|
kotlin.ResultKt.throwOnFailure(r8)
|
|
goto L93
|
|
L2d:
|
|
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
|
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
|
r7.<init>(r8)
|
|
throw r7
|
|
L35:
|
|
java.lang.Object r7 = r0.L$1
|
|
com.unity3d.ads.adplayer.Invocation r7 = (com.unity3d.ads.adplayer.Invocation) r7
|
|
java.lang.Object r2 = r0.L$0
|
|
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
|
kotlin.ResultKt.throwOnFailure(r8)
|
|
goto L55
|
|
L41:
|
|
kotlin.ResultKt.throwOnFailure(r8)
|
|
kotlinx.coroutines.flow.FlowCollector r2 = r6.$this_unsafeFlow
|
|
com.unity3d.ads.adplayer.Invocation r7 = (com.unity3d.ads.adplayer.Invocation) r7
|
|
r0.L$0 = r2
|
|
r0.L$1 = r7
|
|
r0.label = r4
|
|
java.lang.Object r8 = com.unity3d.ads.adplayer.Invocation.handle$default(r7, r5, r0, r4, r5)
|
|
if (r8 != r1) goto L55
|
|
return r1
|
|
L55:
|
|
java.lang.Object[] r7 = r7.getParameters()
|
|
java.lang.Object r7 = kotlin.collections.ArraysKt.first(r7)
|
|
java.lang.String r8 = "null cannot be cast to non-null type org.json.JSONObject"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNull(r7, r8)
|
|
org.json.JSONObject r7 = (org.json.JSONObject) r7
|
|
java.lang.String r8 = "data"
|
|
java.lang.String r4 = r7.optString(r8)
|
|
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r8)
|
|
java.nio.charset.Charset r8 = kotlin.text.Charsets.ISO_8859_1
|
|
byte[] r8 = r4.getBytes(r8)
|
|
java.lang.String r4 = "this as java.lang.String).getBytes(charset)"
|
|
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r8, r4)
|
|
java.lang.String r4 = "dataVersion"
|
|
int r7 = r7.optInt(r4)
|
|
java.lang.Integer r7 = kotlin.coroutines.jvm.internal.Boxing.boxInt(r7)
|
|
kotlin.Pair r7 = kotlin.TuplesKt.to(r8, r7)
|
|
r0.L$0 = r5
|
|
r0.L$1 = r5
|
|
r0.label = r3
|
|
java.lang.Object r7 = r2.emit(r7, r0)
|
|
if (r7 != r1) goto L93
|
|
return r1
|
|
L93:
|
|
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
|
return r7
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$3.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
};
|
|
final SharedFlow onInvocation4 = bridge.getOnInvocation();
|
|
final Flow flow4 = new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n21#2:223\n22#2:225\n148#3:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4$2", f = "WebViewAdPlayer.kt", l = {Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r6, kotlin.coroutines.Continuation r7) {
|
|
/*
|
|
r5 = this;
|
|
boolean r0 = r7 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4.AnonymousClass2.AnonymousClass1
|
|
if (r0 == 0) goto L13
|
|
r0 = r7
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4$2$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4.AnonymousClass2.AnonymousClass1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4$2$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4$2$1
|
|
r0.<init>(r7)
|
|
L18:
|
|
java.lang.Object r7 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 1
|
|
if (r2 == 0) goto L31
|
|
if (r2 != r3) goto L29
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L4e
|
|
L29:
|
|
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
|
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
|
r6.<init>(r7)
|
|
throw r6
|
|
L31:
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
kotlinx.coroutines.flow.FlowCollector r7 = r5.$this_unsafeFlow
|
|
r2 = r6
|
|
com.unity3d.ads.adplayer.Invocation r2 = (com.unity3d.ads.adplayer.Invocation) r2
|
|
java.lang.String r2 = r2.getLocation()
|
|
java.lang.String r4 = "com.unity3d.services.ads.api.AdViewer.broadcastEvent"
|
|
boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual(r2, r4)
|
|
if (r2 == 0) goto L4e
|
|
r0.label = r3
|
|
java.lang.Object r6 = r7.emit(r6, r0)
|
|
if (r6 != r1) goto L4e
|
|
return r1
|
|
L4e:
|
|
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$4.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
};
|
|
Flow flow5 = new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n48#2:223\n150#3,2:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4$2", f = "WebViewAdPlayer.kt", l = {224, Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x006d A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0041 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r7, kotlin.coroutines.Continuation r8) {
|
|
/*
|
|
r6 = this;
|
|
boolean r0 = r8 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4.AnonymousClass2.AnonymousClass1
|
|
if (r0 == 0) goto L13
|
|
r0 = r8
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4$2$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4.AnonymousClass2.AnonymousClass1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4$2$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4$2$1
|
|
r0.<init>(r8)
|
|
L18:
|
|
java.lang.Object r8 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 2
|
|
r4 = 1
|
|
r5 = 0
|
|
if (r2 == 0) goto L41
|
|
if (r2 == r4) goto L35
|
|
if (r2 != r3) goto L2d
|
|
kotlin.ResultKt.throwOnFailure(r8)
|
|
goto L6e
|
|
L2d:
|
|
java.lang.IllegalStateException r7 = new java.lang.IllegalStateException
|
|
java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
|
|
r7.<init>(r8)
|
|
throw r7
|
|
L35:
|
|
java.lang.Object r7 = r0.L$1
|
|
com.unity3d.ads.adplayer.Invocation r7 = (com.unity3d.ads.adplayer.Invocation) r7
|
|
java.lang.Object r2 = r0.L$0
|
|
kotlinx.coroutines.flow.FlowCollector r2 = (kotlinx.coroutines.flow.FlowCollector) r2
|
|
kotlin.ResultKt.throwOnFailure(r8)
|
|
goto L55
|
|
L41:
|
|
kotlin.ResultKt.throwOnFailure(r8)
|
|
kotlinx.coroutines.flow.FlowCollector r2 = r6.$this_unsafeFlow
|
|
com.unity3d.ads.adplayer.Invocation r7 = (com.unity3d.ads.adplayer.Invocation) r7
|
|
r0.L$0 = r2
|
|
r0.L$1 = r7
|
|
r0.label = r4
|
|
java.lang.Object r8 = com.unity3d.ads.adplayer.Invocation.handle$default(r7, r5, r0, r4, r5)
|
|
if (r8 != r1) goto L55
|
|
return r1
|
|
L55:
|
|
java.lang.Object[] r7 = r7.getParameters()
|
|
java.lang.Object r7 = kotlin.collections.ArraysKt.first(r7)
|
|
java.lang.String r7 = r7.toString()
|
|
r0.L$0 = r5
|
|
r0.L$1 = r5
|
|
r0.label = r3
|
|
java.lang.Object r7 = r2.emit(r7, r0)
|
|
if (r7 != r1) goto L6e
|
|
return r1
|
|
L6e:
|
|
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
|
return r7
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$4.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
};
|
|
this.onBroadcastEvents = flow5;
|
|
final SharedFlow onInvocation5 = bridge.getOnInvocation();
|
|
final Flow flow6 = new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n21#2:223\n22#2:225\n155#3:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5$2", f = "WebViewAdPlayer.kt", l = {Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x0031 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r6, kotlin.coroutines.Continuation r7) {
|
|
/*
|
|
r5 = this;
|
|
boolean r0 = r7 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5.AnonymousClass2.AnonymousClass1
|
|
if (r0 == 0) goto L13
|
|
r0 = r7
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5$2$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5.AnonymousClass2.AnonymousClass1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5$2$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5$2$1
|
|
r0.<init>(r7)
|
|
L18:
|
|
java.lang.Object r7 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 1
|
|
if (r2 == 0) goto L31
|
|
if (r2 != r3) goto L29
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L50
|
|
L29:
|
|
java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
|
|
java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
|
|
r6.<init>(r7)
|
|
throw r6
|
|
L31:
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
kotlinx.coroutines.flow.FlowCollector r7 = r5.$this_unsafeFlow
|
|
r2 = r6
|
|
com.unity3d.ads.adplayer.Invocation r2 = (com.unity3d.ads.adplayer.Invocation) r2
|
|
java.lang.String[] r4 = com.unity3d.ads.adplayer.WebViewAdPlayerKt.access$getREQUEST_EVENTS$p()
|
|
java.lang.String r2 = r2.getLocation()
|
|
boolean r2 = kotlin.collections.ArraysKt.contains(r4, r2)
|
|
if (r2 == 0) goto L50
|
|
r0.label = r3
|
|
java.lang.Object r6 = r7.emit(r6, r0)
|
|
if (r6 != r1) goto L50
|
|
return r1
|
|
L50:
|
|
kotlin.Unit r6 = kotlin.Unit.INSTANCE
|
|
return r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$filter$5.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
};
|
|
Flow flow7 = new Flow() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$5
|
|
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1\n+ 2 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 3 WebViewAdPlayer.kt\ncom/unity3d/ads/adplayer/WebViewAdPlayer\n*L\n1#1,222:1\n48#2:223\n157#3,32:224\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$5$2, reason: invalid class name */
|
|
public static final class AnonymousClass2<T> implements FlowCollector {
|
|
final /* synthetic */ FlowCollector $this_unsafeFlow;
|
|
final /* synthetic */ WebViewAdPlayer this$0;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$5$2", f = "WebViewAdPlayer.kt", l = {224, 237, 250, 253, Sdk.SDKError.Reason.STALE_CACHED_RESPONSE_VALUE}, m = "emit")
|
|
@SourceDebugExtension({"SMAP\nEmitters.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt$unsafeTransform$1$1$emit$1\n*L\n1#1,222:1\n*E\n"})
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$5$2$1, reason: invalid class name */
|
|
public static final class AnonymousClass1 extends ContinuationImpl {
|
|
Object L$0;
|
|
Object L$1;
|
|
Object L$2;
|
|
Object L$3;
|
|
int label;
|
|
/* synthetic */ Object result;
|
|
|
|
public AnonymousClass1(Continuation continuation) {
|
|
super(continuation);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
this.result = obj;
|
|
this.label |= Integer.MIN_VALUE;
|
|
return AnonymousClass2.this.emit(null, this);
|
|
}
|
|
}
|
|
|
|
public AnonymousClass2(FlowCollector flowCollector, WebViewAdPlayer webViewAdPlayer) {
|
|
this.$this_unsafeFlow = flowCollector;
|
|
this.this$0 = webViewAdPlayer;
|
|
}
|
|
|
|
/* JADX WARN: Can't wrap try/catch for region: R(18:0|1|(2:3|(15:5|6|7|(1:(1:(1:(1:(1:(3:14|15|16)(2:18|19))(6:20|21|22|(1:24)|15|16))(7:25|26|27|22|(0)|15|16))(11:28|29|30|(1:32)(2:36|(1:38)(1:39))|33|(1:35)|27|22|(0)|15|16))(1:40))(2:73|(1:75)(1:76))|41|(2:43|(4:45|(4:49|50|51|(1:53)(1:54))|65|66)(4:67|(4:69|50|51|(0)(0))|65|66))(4:70|(4:72|50|51|(0)(0))|65|66)|30|(0)(0)|33|(0)|27|22|(0)|15|16))|78|6|7|(0)(0)|41|(0)(0)|30|(0)(0)|33|(0)|27|22|(0)|15|16) */
|
|
/* JADX WARN: Code restructure failed: missing block: B:77:0x0063, code lost:
|
|
|
|
r0 = e;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x01bf A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:32:0x011f A[Catch: Exception -> 0x0063, TryCatch #1 {Exception -> 0x0063, blocks: (B:26:0x005e, B:29:0x0076, B:30:0x0115, B:32:0x011f, B:33:0x0132, B:36:0x0122, B:38:0x0126), top: B:7:0x002b }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:35:0x0172 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x0122 A[Catch: Exception -> 0x0063, TryCatch #1 {Exception -> 0x0063, blocks: (B:26:0x005e, B:29:0x0076, B:30:0x0115, B:32:0x011f, B:33:0x0132, B:36:0x0122, B:38:0x0126), top: B:7:0x002b }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:43:0x00cd */
|
|
/* JADX WARN: Removed duplicated region for block: B:53:0x0111 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:54:0x0112 */
|
|
/* JADX WARN: Removed duplicated region for block: B:70:0x00ed */
|
|
/* JADX WARN: Removed duplicated region for block: B:73:0x008c */
|
|
/* JADX WARN: Removed duplicated region for block: B:9:0x002d */
|
|
/* JADX WARN: Type inference failed for: r4v0, types: [int] */
|
|
/* JADX WARN: Type inference failed for: r4v1 */
|
|
/* JADX WARN: Type inference failed for: r4v9 */
|
|
/* JADX WARN: Type inference failed for: r7v1, types: [java.lang.Object[], java.lang.String[]] */
|
|
@Override // kotlinx.coroutines.flow.FlowCollector
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object emit(java.lang.Object r17, kotlin.coroutines.Continuation r18) {
|
|
/*
|
|
Method dump skipped, instructions count: 478
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer$special$$inlined$map$5.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
}
|
|
|
|
@Override // kotlinx.coroutines.flow.Flow
|
|
public Object collect(FlowCollector flowCollector, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object collect = Flow.this.collect(new AnonymousClass2(flowCollector, this), continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return collect == coroutine_suspended ? collect : Unit.INSTANCE;
|
|
}
|
|
};
|
|
this.onRequestEvents = flow7;
|
|
Storage.Companion.addStorageEventCallback(function1);
|
|
AdPlayer.Companion companion = AdPlayer.Companion;
|
|
FlowKt.launchIn(FlowKt.onEach(flow5, new AnonymousClass1(companion.getBroadcastEventChannel())), getScope());
|
|
FlowKt.launchIn(flow7, getScope());
|
|
FlowKt.launchIn(FlowKt.onEach(companion.getBroadcastEventChannel(), new AnonymousClass2(this)), getScope());
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
@CallSuper
|
|
public Object destroy(Continuation continuation) {
|
|
return AdPlayer.DefaultImpls.destroy(this, continuation);
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public void show(ShowOptions showOptions) {
|
|
AdPlayer.DefaultImpls.show(this, showOptions);
|
|
}
|
|
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$1, reason: invalid class name */
|
|
public /* synthetic */ class AnonymousClass1 extends FunctionReferenceImpl implements Function2 {
|
|
public AnonymousClass1(Object obj) {
|
|
super(2, obj, MutableSharedFlow.class, "emit", "emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", 0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(String str, Continuation continuation) {
|
|
return ((MutableSharedFlow) this.receiver).emit(str, continuation);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.unity3d.ads.adplayer.WebViewAdPlayer$2, reason: invalid class name */
|
|
public /* synthetic */ class AnonymousClass2 extends FunctionReferenceImpl implements Function2 {
|
|
public AnonymousClass2(Object obj) {
|
|
super(2, obj, WebViewAdPlayer.class, "onBroadcastEvent", "onBroadcastEvent(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", 0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(String str, Continuation continuation) {
|
|
return ((WebViewAdPlayer) this.receiver).onBroadcastEvent(str, continuation);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0124 */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x0186 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:40:0x00f3 A[RETURN] */
|
|
/* JADX WARN: Removed duplicated region for block: B:41:0x00f4 */
|
|
/* JADX WARN: Removed duplicated region for block: B:42:0x0074 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0025 */
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public java.lang.Object requestShow(java.util.Map<java.lang.String, ? extends java.lang.Object> r12, kotlin.coroutines.Continuation r13) {
|
|
/*
|
|
Method dump skipped, instructions count: 394
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer.requestShow(java.util.Map, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public void dispatchShowCompleted() {
|
|
this.isCompletedManually.setValue(Boolean.TRUE);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
/* JADX WARN: Removed duplicated region for block: B:19:0x005c */
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x0096 */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x0041 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0024 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object sendEvent(kotlin.jvm.functions.Function0 r14, kotlin.coroutines.Continuation r15) {
|
|
/*
|
|
r13 = this;
|
|
boolean r0 = r15 instanceof com.unity3d.ads.adplayer.WebViewAdPlayer$sendEvent$1
|
|
if (r0 == 0) goto L13
|
|
r0 = r15
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$sendEvent$1 r0 = (com.unity3d.ads.adplayer.WebViewAdPlayer$sendEvent$1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer$sendEvent$1 r0 = new com.unity3d.ads.adplayer.WebViewAdPlayer$sendEvent$1
|
|
r0.<init>(r13, r15)
|
|
L18:
|
|
java.lang.Object r15 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 2
|
|
r4 = 1
|
|
if (r2 == 0) goto L41
|
|
if (r2 == r4) goto L35
|
|
if (r2 != r3) goto L2d
|
|
kotlin.ResultKt.throwOnFailure(r15)
|
|
goto Lac
|
|
L2d:
|
|
java.lang.IllegalStateException r14 = new java.lang.IllegalStateException
|
|
java.lang.String r15 = "call to 'resume' before 'invoke' with coroutine"
|
|
r14.<init>(r15)
|
|
throw r14
|
|
L35:
|
|
java.lang.Object r14 = r0.L$1
|
|
kotlin.jvm.functions.Function0 r14 = (kotlin.jvm.functions.Function0) r14
|
|
java.lang.Object r2 = r0.L$0
|
|
com.unity3d.ads.adplayer.WebViewAdPlayer r2 = (com.unity3d.ads.adplayer.WebViewAdPlayer) r2
|
|
kotlin.ResultKt.throwOnFailure(r15)
|
|
goto L56
|
|
L41:
|
|
kotlin.ResultKt.throwOnFailure(r15)
|
|
kotlinx.coroutines.flow.Flow r15 = r13.getOnLoadEvent()
|
|
r0.L$0 = r13
|
|
r0.L$1 = r14
|
|
r0.label = r4
|
|
java.lang.Object r15 = kotlinx.coroutines.flow.FlowKt.single(r15, r0)
|
|
if (r15 != r1) goto L55
|
|
return r1
|
|
L55:
|
|
r2 = r13
|
|
L56:
|
|
com.unity3d.ads.adplayer.model.LoadEvent r15 = (com.unity3d.ads.adplayer.model.LoadEvent) r15
|
|
boolean r4 = r15 instanceof com.unity3d.ads.adplayer.model.LoadEvent.Error
|
|
if (r4 == 0) goto L96
|
|
com.unity3d.ads.core.domain.SendDiagnosticEvent r5 = r2.sendDiagnosticEvent
|
|
java.lang.String r6 = "bridge_send_event_failed"
|
|
r7 = 0
|
|
java.lang.String r14 = "reason"
|
|
java.lang.String r0 = "adviewer"
|
|
kotlin.Pair r14 = kotlin.TuplesKt.to(r14, r0)
|
|
com.unity3d.ads.adplayer.model.LoadEvent$Error r15 = (com.unity3d.ads.adplayer.model.LoadEvent.Error) r15
|
|
java.lang.String r0 = r15.getMessage()
|
|
java.lang.String r1 = "reason_debug"
|
|
kotlin.Pair r0 = kotlin.TuplesKt.to(r1, r0)
|
|
int r15 = r15.getErrorCode()
|
|
java.lang.String r15 = java.lang.String.valueOf(r15)
|
|
java.lang.String r1 = "reason_code"
|
|
kotlin.Pair r15 = kotlin.TuplesKt.to(r1, r15)
|
|
kotlin.Pair[] r14 = new kotlin.Pair[]{r14, r0, r15}
|
|
java.util.Map r8 = kotlin.collections.MapsKt.mapOf(r14)
|
|
r9 = 0
|
|
r10 = 0
|
|
r11 = 26
|
|
r12 = 0
|
|
com.unity3d.ads.core.domain.SendDiagnosticEvent.DefaultImpls.invoke$default(r5, r6, r7, r8, r9, r10, r11, r12)
|
|
kotlin.Unit r14 = kotlin.Unit.INSTANCE
|
|
return r14
|
|
L96:
|
|
java.lang.Object r14 = r14.invoke()
|
|
com.unity3d.ads.adplayer.model.WebViewEvent r14 = (com.unity3d.ads.adplayer.model.WebViewEvent) r14
|
|
com.unity3d.ads.adplayer.WebViewBridge r15 = r2.bridge
|
|
r2 = 0
|
|
r0.L$0 = r2
|
|
r0.L$1 = r2
|
|
r0.label = r3
|
|
java.lang.Object r14 = r15.sendEvent(r14, r0)
|
|
if (r14 != r1) goto Lac
|
|
return r1
|
|
Lac:
|
|
kotlin.Unit r14 = kotlin.Unit.INSTANCE
|
|
return r14
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.WebViewAdPlayer.sendEvent(kotlin.jvm.functions.Function0, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object sendMuteChange(final boolean z, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$sendMuteChange$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
return new OnMuteChangeEvent(z);
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object sendVisibilityChange(final boolean z, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$sendVisibilityChange$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
return new OnVisibilityChangeEvent(z);
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object sendFocusChange(final boolean z, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$sendFocusChange$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
return new OnFocusChangeEvent(z);
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object sendActivityDestroyed(Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$sendActivityDestroyed$2
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
return new OnActivityDestroyedEvent();
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object sendVolumeChange(final double d, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$sendVolumeChange$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
return new OnVolumeChangeEvent(d);
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object sendUserConsentChange(final byte[] bArr, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$sendUserConsentChange$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
String encodeToString = Base64.encodeToString(bArr, 2);
|
|
Intrinsics.checkNotNullExpressionValue(encodeToString, "encodeToString(value, Base64.NO_WRAP)");
|
|
return new OnUserConsentChangeEvent(encodeToString);
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object sendPrivacyFsmChange(final byte[] bArr, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$sendPrivacyFsmChange$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
String encodeToString = Base64.encodeToString(bArr, 2);
|
|
Intrinsics.checkNotNullExpressionValue(encodeToString, "encodeToString(value, Base64.NO_WRAP)");
|
|
return new OnPrivacyFsmChangeEvent(encodeToString);
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object onBroadcastEvent(final String str, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$onBroadcastEvent$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
JSONObject jSONObject = new JSONObject(str);
|
|
String eventType = jSONObject.getString("eventType");
|
|
String optString = jSONObject.optString("data");
|
|
Intrinsics.checkNotNullExpressionValue(eventType, "eventType");
|
|
return new OnBroadcastEvent(eventType, optString);
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.AdPlayer
|
|
public Object onAllowedPiiChange(final byte[] bArr, Continuation continuation) {
|
|
Object coroutine_suspended;
|
|
Object sendEvent = sendEvent(new Function0() { // from class: com.unity3d.ads.adplayer.WebViewAdPlayer$onAllowedPiiChange$2
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final WebViewEvent invoke() {
|
|
String encodeToString = Base64.encodeToString(bArr, 2);
|
|
Intrinsics.checkNotNullExpressionValue(encodeToString, "encodeToString(value, Base64.NO_WRAP)");
|
|
return new OnAllowedPiiChangeEvent(encodeToString);
|
|
}
|
|
}, continuation);
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
return sendEvent == coroutine_suspended ? sendEvent : Unit.INSTANCE;
|
|
}
|
|
}
|