- 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
69 lines
3.6 KiB
Java
69 lines
3.6 KiB
Java
package com.unity3d.ads.adplayer;
|
|
|
|
import android.webkit.JavascriptInterface;
|
|
import com.unity3d.ads.adplayer.model.WebViewBridgeInterface;
|
|
import kotlin.ResultKt;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
|
|
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
|
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
|
|
@DebugMetadata(c = "com.unity3d.ads.adplayer.AndroidWebViewContainer$addJavascriptInterface$2", f = "AndroidWebViewContainer.kt", l = {}, m = "invokeSuspend")
|
|
/* loaded from: classes4.dex */
|
|
public final class AndroidWebViewContainer$addJavascriptInterface$2 extends SuspendLambda implements Function2 {
|
|
final /* synthetic */ String $name;
|
|
final /* synthetic */ WebViewBridge $webViewBridgeInterface;
|
|
int label;
|
|
final /* synthetic */ AndroidWebViewContainer this$0;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public AndroidWebViewContainer$addJavascriptInterface$2(AndroidWebViewContainer androidWebViewContainer, String str, WebViewBridge webViewBridge, Continuation continuation) {
|
|
super(2, continuation);
|
|
this.this$0 = androidWebViewContainer;
|
|
this.$name = str;
|
|
this.$webViewBridgeInterface = webViewBridge;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Continuation create(Object obj, Continuation continuation) {
|
|
return new AndroidWebViewContainer$addJavascriptInterface$2(this.this$0, this.$name, this.$webViewBridgeInterface, continuation);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation continuation) {
|
|
return ((AndroidWebViewContainer$addJavascriptInterface$2) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
if (this.label == 0) {
|
|
ResultKt.throwOnFailure(obj);
|
|
final WebViewBridge webViewBridge = this.$webViewBridgeInterface;
|
|
this.this$0.getWebView().addJavascriptInterface(new WebViewBridgeInterface() { // from class: com.unity3d.ads.adplayer.AndroidWebViewContainer$addJavascriptInterface$2$wrapper$1
|
|
@Override // com.unity3d.ads.adplayer.model.WebViewBridgeInterface
|
|
@JavascriptInterface
|
|
public void handleInvocation(String message) {
|
|
Intrinsics.checkNotNullParameter(message, "message");
|
|
WebViewBridge.this.handleInvocation(message);
|
|
}
|
|
|
|
@Override // com.unity3d.ads.adplayer.model.WebViewBridgeInterface
|
|
@JavascriptInterface
|
|
public void handleCallback(String callbackId, String callbackStatus, String rawParameters) {
|
|
Intrinsics.checkNotNullParameter(callbackId, "callbackId");
|
|
Intrinsics.checkNotNullParameter(callbackStatus, "callbackStatus");
|
|
Intrinsics.checkNotNullParameter(rawParameters, "rawParameters");
|
|
WebViewBridge.this.handleCallback(callbackId, callbackStatus, rawParameters);
|
|
}
|
|
}, this.$name);
|
|
return Unit.INSTANCE;
|
|
}
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
}
|
|
}
|