正在查看: All File Recovery v1.0.2 应用的 FullScreenWebViewDisplay.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: All File Recovery v1.0.2 应用的 FullScreenWebViewDisplay.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.unity3d.ads.adplayer;
import Bc.F;
import Bc.H;
import Bc.J;
import Bc.U0;
import Bc.X;
import Bc.g0;
import Bc.h0;
import Dc.q0;
import Mc.f;
import Oc.c;
import Pc.d;
import android.os.Bundle;
import android.view.KeyEvent;
import android.webkit.WebView;
import androidx.activity.ComponentActivity;
import com.unity3d.ads.core.data.model.AdObject;
import com.unity3d.ads.core.data.repository.AdRepository;
import com.unity3d.ads.core.domain.SendDiagnosticEvent;
import com.unity3d.ads.core.extensions.JSONObjectExtensionsKt;
import com.unity3d.ads.core.extensions.ProtobufExtensionsKt;
import com.unity3d.services.core.di.IServiceComponent;
import com.unity3d.services.core.di.IServiceProvider;
import com.unity3d.services.core.domain.ISDKDispatchers;
import ef.l;
import ef.m;
import java.util.Map;
import java.util.UUID;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import org.json.JSONObject;
import ud.T;
import ud.U;
import ud.V;
import ud.k;
import ud.q;
import zd.A;
import zd.Z;
import zd.i;
import zd.j;
import zd.n;
@SourceDebugExtension({"SMAP\nFullScreenWebViewDisplay.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FullScreenWebViewDisplay.kt\ncom/unity3d/ads/adplayer/FullScreenWebViewDisplay\n+ 2 IServiceComponent.kt\ncom/unity3d/services/core/di/IServiceComponentKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 CancellableContinuation.kt\nkotlinx/coroutines/CancellableContinuationKt\n+ 5 Transform.kt\nkotlinx/coroutines/flow/FlowKt__TransformKt\n+ 6 Emitters.kt\nkotlinx/coroutines/flow/FlowKt__EmittersKt\n+ 7 SafeCollector.common.kt\nkotlinx/coroutines/flow/internal/SafeCollector_commonKt\n*L\n1#1,176:1\n29#2,5:177\n29#2,5:182\n1#3:187\n314#4,9:188\n323#4,2:202\n20#5:197\n22#5:201\n50#6:198\n55#6:200\n106#7:199\n*S KotlinDebug\n*F\n+ 1 FullScreenWebViewDisplay.kt\ncom/unity3d/ads/adplayer/FullScreenWebViewDisplay\n*L\n40#1:177,5\n47#1:182,5\n98#1:188,9\n98#1:202,2\n107#1:197\n107#1:201\n107#1:198\n107#1:200\n107#1:199\n*E\n"})
public final class FullScreenWebViewDisplay extends ComponentActivity implements IServiceComponent {
@l
private final F adObject$delegate;
@l
private final F dispatchers$delegate;
@l
private String opportunityId = "";
@l
private final F sendDiagnosticEvent$delegate;
@m
private Map<String, ? extends Object> showOptions;
public FullScreenWebViewDisplay() {
final String str = "";
J j = J.c;
this.sendDiagnosticEvent$delegate = H.a(j, new bd.a<SendDiagnosticEvent>() {
{
super(0);
}
@l
public final SendDiagnosticEvent invoke() {
IServiceComponent iServiceComponent = this;
return iServiceComponent.getServiceProvider().getRegistry().getService(str, Reflection.getOrCreateKotlinClass(SendDiagnosticEvent.class));
}
});
this.adObject$delegate = H.b(new bd.a<AdObject>() {
{
super(0);
}
private static final AdRepository invoke$lambda$0(F<? extends AdRepository> f) {
return (AdRepository) f.getValue();
}
@m
public final AdObject m33invoke() {
Object a;
String str2;
final FullScreenWebViewDisplay fullScreenWebViewDisplay = FullScreenWebViewDisplay.this;
final String str3 = "";
F a2 = H.a(J.c, new bd.a<AdRepository>() {
{
super(0);
}
@l
public final AdRepository invoke() {
IServiceComponent iServiceComponent = fullScreenWebViewDisplay;
return iServiceComponent.getServiceProvider().getRegistry().getService(str3, Reflection.getOrCreateKotlinClass(AdRepository.class));
}
});
FullScreenWebViewDisplay fullScreenWebViewDisplay2 = FullScreenWebViewDisplay.this;
try {
AdRepository invoke$lambda$0 = invoke$lambda$0(a2);
str2 = fullScreenWebViewDisplay2.opportunityId;
UUID fromString = UUID.fromString(str2);
Intrinsics.checkNotNullExpressionValue(fromString, "fromString(opportunityId)");
a = invoke$lambda$0.getAd(ProtobufExtensionsKt.toByteString(fromString));
} catch (Throwable th) {
a = h0.a(th);
}
if (a instanceof g0.b) {
a = null;
}
return (AdObject) a;
}
});
this.dispatchers$delegate = H.a(j, new bd.a<ISDKDispatchers>() {
{
super(0);
}
@l
public final ISDKDispatchers invoke() {
IServiceComponent iServiceComponent = this;
return iServiceComponent.getServiceProvider().getRegistry().getService(str, Reflection.getOrCreateKotlinClass(ISDKDispatchers.class));
}
});
}
public final AdObject getAdObject() {
return (AdObject) this.adObject$delegate.getValue();
}
public final ISDKDispatchers getDispatchers() {
return (ISDKDispatchers) this.dispatchers$delegate.getValue();
}
public final SendDiagnosticEvent getSendDiagnosticEvent() {
return (SendDiagnosticEvent) this.sendDiagnosticEvent$delegate.getValue();
}
public final Object listenToAdPlayerEvents(f<? super U0> fVar) {
q qVar = new q(c.e(fVar), 1);
qVar.I();
final Z z = new Z(AndroidFullscreenWebViewAdPlayer.Companion.getDisplayMessages(), new FullScreenWebViewDisplay$listenToAdPlayerEvents$2$1(this, qVar, null));
n.h(new A.h(new i<DisplayMessage>() {
@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 FullScreenWebViewDisplay.kt\ncom/unity3d/ads/adplayer/FullScreenWebViewDisplay\n*L\n1#1,222:1\n21#2:223\n22#2:225\n107#3:224\n*E\n"})
public static final class AnonymousClass2<T> implements j {
final j $this_unsafeFlow;
final FullScreenWebViewDisplay this$0;
@Pc.f(c = "com.unity3d.ads.adplayer.FullScreenWebViewDisplay$listenToAdPlayerEvents$lambda$5$$inlined$filter$1$2", f = "FullScreenWebViewDisplay.kt", i = {}, l = {223}, m = "emit", n = {}, s = {})
@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"})
public static final class AnonymousClass1 extends d {
Object L$0;
Object L$1;
int label;
Object result;
public AnonymousClass1(f fVar) {
super(fVar);
}
@m
public final Object invokeSuspend(@l Object obj) {
this.result = obj;
this.label |= Integer.MIN_VALUE;
return AnonymousClass2.this.emit(null, this);
}
}
public AnonymousClass2(j jVar, FullScreenWebViewDisplay fullScreenWebViewDisplay) {
this.$this_unsafeFlow = jVar;
this.this$0 = fullScreenWebViewDisplay;
}
@ef.m
public final java.lang.Object emit(java.lang.Object r6, @ef.l Mc.f r7) {
throw new UnsupportedOperationException("Method not decompiled: com.unity3d.ads.adplayer.FullScreenWebViewDisplay$listenToAdPlayerEvents$lambda$5$$inlined$filter$1.AnonymousClass2.emit(java.lang.Object, Mc.f):java.lang.Object");
}
}
@m
public Object collect(@l j jVar, @l f fVar2) {
Object collect = z.collect(new AnonymousClass2(jVar, this), fVar2);
return collect == Oc.a.a ? collect : U0.a;
}
}, new FullScreenWebViewDisplay$listenToAdPlayerEvents$2$3(this, null)), androidx.lifecycle.A.a(this));
Object A = qVar.A();
Oc.a aVar = Oc.a.a;
if (A == aVar) {
Intrinsics.checkNotNullParameter(fVar, "frame");
}
return A == aVar ? A : U0.a;
}
public final void loadWebView(WebView webView) {
k.f(U.a(getDispatchers().getMain()), (Mc.j) null, (V) null, new FullScreenWebViewDisplay$loadWebView$1(webView, this, null), 3, (Object) null);
}
@l
public IServiceProvider getServiceProvider() {
return IServiceComponent.DefaultImpls.getServiceProvider(this);
}
public void onCreate(@m Bundle bundle) {
T scope;
Object a;
Map<String, ? extends Object> map;
super.onCreate(bundle);
String stringExtra = getIntent().getStringExtra("opportunityId");
if (stringExtra == null) {
stringExtra = "not_provided";
}
this.opportunityId = stringExtra;
SendDiagnosticEvent.DefaultImpls.invoke$default(getSendDiagnosticEvent(), "native_show_ad_viewer_fullscreen_intent_creation_starts", (Double) null, q0.k(new X("intentOpportunityId", this.opportunityId)), (Map) null, getAdObject(), (Integer) null, 42, (Object) null);
if (Intrinsics.areEqual(this.opportunityId, "not_provided")) {
setResult(0);
k.f(U.a(getDispatchers().getDefault()), (Mc.j) null, (V) null, new FullScreenWebViewDisplay$onCreate$1(this, null), 3, (Object) null);
SendDiagnosticEvent.DefaultImpls.invoke$default(getSendDiagnosticEvent(), "native_show_ad_viewer_fullscreen_intent_creation_fails", (Double) null, q0.k(new X("reason_debug", "no_opportunity_id")), (Map) null, (AdObject) null, (Integer) null, 58, (Object) null);
finish();
return;
}
AdObject adObject = getAdObject();
AdPlayer adPlayer = adObject != null ? adObject.getAdPlayer() : null;
if (adPlayer == null || (scope = adPlayer.getScope()) == null || !U.k(scope)) {
setResult(0);
k.f(U.a(getDispatchers().getDefault()), (Mc.j) null, (V) null, new FullScreenWebViewDisplay$onCreate$2(this, null), 3, (Object) null);
finish();
SendDiagnosticEvent.DefaultImpls.invoke$default(getSendDiagnosticEvent(), "native_show_ad_viewer_fullscreen_intent_creation_fails", (Double) null, q0.k(new X("reason_debug", "ad_player_scope_not_active")), (Map) null, (AdObject) null, (Integer) null, 58, (Object) null);
return;
}
boolean hasExtra = getIntent().hasExtra("orientation");
Boolean valueOf = Boolean.valueOf(hasExtra);
if (!hasExtra) {
valueOf = null;
}
if (valueOf != null) {
setRequestedOrientation(getIntent().getIntExtra("orientation", -1));
}
String stringExtra2 = getIntent().getStringExtra("showOptions");
if (stringExtra2 != null) {
try {
a = JSONObjectExtensionsKt.toBuiltInMap(new JSONObject(stringExtra2));
} catch (Throwable th) {
a = h0.a(th);
}
if (a instanceof g0.b) {
a = null;
}
map = (Map) a;
} else {
map = null;
}
this.showOptions = map;
k.f(androidx.lifecycle.A.a(this), (Mc.j) null, (V) null, new FullScreenWebViewDisplay$onCreate$6(this, null), 3, (Object) null);
}
public void onDestroy() {
super/*android.app.Activity*/.onDestroy();
SendDiagnosticEvent.DefaultImpls.invoke$default(getSendDiagnosticEvent(), "native_show_ad_viewer_fullscreen_intent_destroyed", (Double) null, (Map) null, (Map) null, getAdObject(), (Integer) null, 46, (Object) null);
}
public boolean onKeyDown(int i, @m KeyEvent keyEvent) {
return i == 4;
}
public void onPause() {
super/*android.app.Activity*/.onPause();
k.f(U.a(getDispatchers().getDefault()), (Mc.j) null, (V) null, new FullScreenWebViewDisplay$onPause$1(this, null), 3, (Object) null);
}
public void onResume() {
super/*android.app.Activity*/.onResume();
k.f(U.a(getDispatchers().getDefault()), (Mc.j) null, (V) null, new FullScreenWebViewDisplay$onResume$1(this, null), 3, (Object) null);
}
public void onWindowFocusChanged(boolean z) {
super/*android.app.Activity*/.onWindowFocusChanged(z);
k.f(U.a(getDispatchers().getDefault()), (Mc.j) null, (V) null, new FullScreenWebViewDisplay$onWindowFocusChanged$1(this, z, null), 3, (Object) null);
}
}