414 lines
12 KiB
Smali
414 lines
12 KiB
Smali
.class public final Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lkotlinx/coroutines/flow/FlowCollector;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1;->collect(Lkotlinx/coroutines/flow/FlowCollector;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlinx/coroutines/flow/FlowCollector;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"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"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $this_unsafeFlow:Lkotlinx/coroutines/flow/FlowCollector;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlinx/coroutines/flow/FlowCollector;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2;->$this_unsafeFlow:Lkotlinx/coroutines/flow/FlowCollector;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
.locals 9
|
|
|
|
instance-of v0, p2, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p2
|
|
|
|
check-cast v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;
|
|
|
|
iget v1, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->label:I
|
|
|
|
const/high16 v2, -0x80000000
|
|
|
|
and-int v3, v1, v2
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
iput v1, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->label:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;
|
|
|
|
invoke-direct {v0, p0, p2}, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;-><init>(Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2;Lkotlin/coroutines/Continuation;)V
|
|
|
|
:goto_0
|
|
iget-object p2, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->result:Ljava/lang/Object;
|
|
|
|
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
iget v2, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->label:I
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
if-eq v2, v4, :cond_2
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
.line 48
|
|
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "call to \'resume\' before \'invoke\' with coroutine"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 244
|
|
:cond_2
|
|
iget-object p1, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->L$1:Ljava/lang/Object;
|
|
|
|
check-cast p1, Lcom/unity3d/ads/core/data/model/ShowEvent;
|
|
|
|
iget-object v2, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->L$0:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lkotlinx/coroutines/flow/FlowCollector;
|
|
|
|
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
|
|
|
|
goto/16 :goto_4
|
|
|
|
.line 0
|
|
:cond_3
|
|
invoke-static {p2}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
|
|
|
|
iget-object v2, p0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2;->$this_unsafeFlow:Lkotlinx/coroutines/flow/FlowCollector;
|
|
|
|
.line 48
|
|
check-cast p1, Lcom/unity3d/ads/adplayer/Invocation;
|
|
|
|
.line 224
|
|
invoke-virtual {p1}, Lcom/unity3d/ads/adplayer/Invocation;->getLocation()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v6
|
|
|
|
sparse-switch v6, :sswitch_data_0
|
|
|
|
goto/16 :goto_6
|
|
|
|
:sswitch_0
|
|
const-string v6, "com.unity3d.services.ads.api.AdViewer.failed"
|
|
|
|
invoke-virtual {p2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
.line 235
|
|
invoke-virtual {p1}, Lcom/unity3d/ads/adplayer/Invocation;->getParameters()[Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lkotlin/collections/ArraysKt;->first([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v6, "null cannot be cast to non-null type org.json.JSONObject"
|
|
|
|
invoke-static {p2, v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p2, Lorg/json/JSONObject;
|
|
|
|
const-string v6, "code"
|
|
|
|
.line 236
|
|
invoke-virtual {p2, v6}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
|
|
|
|
move-result v6
|
|
|
|
const-string v7, "message"
|
|
|
|
.line 237
|
|
invoke-virtual {p2, v7}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
.line 238
|
|
new-instance v7, Lcom/unity3d/ads/core/data/model/ShowEvent$Error;
|
|
|
|
const-string v8, "errorMessage"
|
|
|
|
invoke-static {p2, v8}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v8, "adviewer"
|
|
|
|
invoke-direct {v7, p2, v6, v8}, Lcom/unity3d/ads/core/data/model/ShowEvent$Error;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
move-object p2, v7
|
|
|
|
goto :goto_3
|
|
|
|
:sswitch_1
|
|
const-string v6, "com.unity3d.services.ads.api.AdViewer.started"
|
|
|
|
.line 224
|
|
invoke-virtual {p2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
.line 225
|
|
sget-object p2, Lcom/unity3d/ads/core/data/model/ShowEvent$Started;->INSTANCE:Lcom/unity3d/ads/core/data/model/ShowEvent$Started;
|
|
|
|
goto :goto_3
|
|
|
|
:sswitch_2
|
|
const-string v6, "com.unity3d.services.ads.api.AdViewer.clicked"
|
|
|
|
.line 224
|
|
invoke-virtual {p2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
.line 226
|
|
sget-object p2, Lcom/unity3d/ads/core/data/model/ShowEvent$Clicked;->INSTANCE:Lcom/unity3d/ads/core/data/model/ShowEvent$Clicked;
|
|
|
|
goto :goto_3
|
|
|
|
:sswitch_3
|
|
const-string v6, "com.unity3d.services.ads.api.AdViewer.leftApplication"
|
|
|
|
.line 224
|
|
invoke-virtual {p2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
.line 241
|
|
sget-object p2, Lcom/unity3d/ads/core/data/model/ShowEvent$LeftApplication;->INSTANCE:Lcom/unity3d/ads/core/data/model/ShowEvent$LeftApplication;
|
|
|
|
goto :goto_3
|
|
|
|
:sswitch_4
|
|
const-string v6, "com.unity3d.services.ads.api.AdViewer.completed"
|
|
|
|
.line 224
|
|
invoke-virtual {p2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
.line 227
|
|
new-instance p2, Lcom/unity3d/ads/core/data/model/ShowEvent$Completed;
|
|
|
|
.line 228
|
|
invoke-virtual {p1}, Lcom/unity3d/ads/adplayer/Invocation;->getParameters()[Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v6}, Lkotlin/collections/ArraysKt;->first([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
instance-of v7, v6, Ljava/lang/String;
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
check-cast v6, Ljava/lang/String;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
move-object v6, v5
|
|
|
|
:goto_1
|
|
const-string v7, "COMPLETED"
|
|
|
|
.line 229
|
|
invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
sget-object v6, Lcom/unity3d/ads/adplayer/model/ShowStatus;->COMPLETED:Lcom/unity3d/ads/adplayer/model/ShowStatus;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const-string v7, "SKIPPED"
|
|
|
|
.line 230
|
|
invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_6
|
|
|
|
sget-object v6, Lcom/unity3d/ads/adplayer/model/ShowStatus;->SKIPPED:Lcom/unity3d/ads/adplayer/model/ShowStatus;
|
|
|
|
goto :goto_2
|
|
|
|
.line 231
|
|
:cond_6
|
|
sget-object v6, Lcom/unity3d/ads/adplayer/model/ShowStatus;->ERROR:Lcom/unity3d/ads/adplayer/model/ShowStatus;
|
|
|
|
.line 227
|
|
:goto_2
|
|
invoke-direct {p2, v6}, Lcom/unity3d/ads/core/data/model/ShowEvent$Completed;-><init>(Lcom/unity3d/ads/adplayer/model/ShowStatus;)V
|
|
|
|
goto :goto_3
|
|
|
|
:sswitch_5
|
|
const-string v6, "com.unity3d.services.ads.api.AdViewer.cancelShowTimeout"
|
|
|
|
.line 224
|
|
invoke-virtual {p2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_9
|
|
|
|
.line 240
|
|
sget-object p2, Lcom/unity3d/ads/core/data/model/ShowEvent$CancelTimeout;->INSTANCE:Lcom/unity3d/ads/core/data/model/ShowEvent$CancelTimeout;
|
|
|
|
.line 244
|
|
:goto_3
|
|
iput-object v2, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->L$0:Ljava/lang/Object;
|
|
|
|
iput-object p2, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->L$1:Ljava/lang/Object;
|
|
|
|
iput v4, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->label:I
|
|
|
|
invoke-static {p1, v5, v0, v4, v5}, Lcom/unity3d/ads/adplayer/Invocation;->handle$default(Lcom/unity3d/ads/adplayer/Invocation;Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-ne p1, v1, :cond_7
|
|
|
|
return-object v1
|
|
|
|
:cond_7
|
|
move-object p1, p2
|
|
|
|
.line 48
|
|
:goto_4
|
|
iput-object v5, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->L$0:Ljava/lang/Object;
|
|
|
|
iput-object v5, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->L$1:Ljava/lang/Object;
|
|
|
|
iput v3, v0, Lcom/unity3d/ads/adplayer/WebViewAdPlayer$special$$inlined$map$1$2$1;->label:I
|
|
|
|
invoke-interface {v2, p1, v0}, Lkotlinx/coroutines/flow/FlowCollector;->emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-ne p1, v1, :cond_8
|
|
|
|
return-object v1
|
|
|
|
:cond_8
|
|
:goto_5
|
|
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
|
|
.line 242
|
|
:cond_9
|
|
:goto_6
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "Unexpected location: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Lcom/unity3d/ads/adplayer/Invocation;->getLocation()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p2
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4a8e5ce2 -> :sswitch_5
|
|
-0x37597f61 -> :sswitch_4
|
|
-0x2a2bf1e3 -> :sswitch_3
|
|
-0x1da96085 -> :sswitch_2
|
|
0x3df74fd5 -> :sswitch_1
|
|
0x4de14a69 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|