d0.smali
.class public final Lx8/d0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lx8/c0;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lx8/d0$a;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
.end annotation
# static fields
.field public static final g:Lx8/d0$a;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private static final h:D
# instance fields
.field private final b:Lcom/google/firebase/FirebaseApp;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final c:Lcom/google/firebase/installations/FirebaseInstallationsApi;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final d:Lz8/f;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final e:Lx8/i;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final f:Lkotlin/coroutines/CoroutineContext;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 2
new-instance v0, Lx8/d0$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lx8/d0$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lx8/d0;->g:Lx8/d0$a;
invoke-static {}, Ljava/lang/Math;->random()D
move-result-wide v0
sput-wide v0, Lx8/d0;->h:D
return-void
.end method
.method public constructor <init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/installations/FirebaseInstallationsApi;Lz8/f;Lx8/i;Lkotlin/coroutines/CoroutineContext;)V
.registers 7
.param p1 # Lcom/google/firebase/FirebaseApp;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p2 # Lcom/google/firebase/installations/FirebaseInstallationsApi;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p3 # Lz8/f;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p4 # Lx8/i;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p5 # Lkotlin/coroutines/CoroutineContext;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
const-string v0, "firebaseApp"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "firebaseInstallations"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "sessionSettings"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "eventGDTLogger"
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "backgroundDispatcher"
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lx8/d0;->b:Lcom/google/firebase/FirebaseApp;
iput-object p2, p0, Lx8/d0;->c:Lcom/google/firebase/installations/FirebaseInstallationsApi;
iput-object p3, p0, Lx8/d0;->d:Lz8/f;
iput-object p4, p0, Lx8/d0;->e:Lx8/i;
iput-object p5, p0, Lx8/d0;->f:Lkotlin/coroutines/CoroutineContext;
return-void
.end method
.method public static final synthetic b(Lx8/d0;Lx8/a0;)V
.registers 2
invoke-direct {p0, p1}, Lx8/d0;->g(Lx8/a0;)V
return-void
.end method
.method public static final synthetic c(Lx8/d0;)Lcom/google/firebase/FirebaseApp;
.registers 1
iget-object p0, p0, Lx8/d0;->b:Lcom/google/firebase/FirebaseApp;
return-object p0
.end method
.method public static final synthetic d(Lx8/d0;Lkotlin/coroutines/d;)Ljava/lang/Object;
.registers 2
invoke-direct {p0, p1}, Lx8/d0;->h(Lkotlin/coroutines/d;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static final synthetic e(Lx8/d0;)Lz8/f;
.registers 1
iget-object p0, p0, Lx8/d0;->d:Lz8/f;
return-object p0
.end method
.method public static final synthetic f(Lx8/d0;Lkotlin/coroutines/d;)Ljava/lang/Object;
.registers 2
invoke-direct {p0, p1}, Lx8/d0;->j(Lkotlin/coroutines/d;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method private final g(Lx8/a0;)V
.registers 5
const-string v0, "SessionFirelogPublisher"
:try_start_2
iget-object v1, p0, Lx8/d0;->e:Lx8/i;
invoke-interface {v1, p1}, Lx8/i;->a(Lx8/a0;)V
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Successfully logged Session Start event: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Lx8/a0;->c()Lx8/f0;
move-result-object p1
invoke-virtual {p1}, Lx8/f0;->e()Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:try_end_23
.catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_23} :catch_24
goto :goto_2a
:catch_24
move-exception p1
const-string v1, "Error logging Session Start event to DataTransport: "
invoke-static {v0, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_2a
return-void
.end method
.method private final h(Lkotlin/coroutines/d;)Ljava/lang/Object;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/d<",
"-",
"Ljava/lang/String;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
instance-of v0, p1, Lx8/d0$b;
if-eqz v0, :cond_13
move-object v0, p1
check-cast v0, Lx8/d0$b;
iget v1, v0, Lx8/d0$b;->f:I
const/high16 v2, -0x80000000
and-int v3, v1, v2
if-eqz v3, :cond_13
sub-int/2addr v1, v2
iput v1, v0, Lx8/d0$b;->f:I
goto :goto_18
:cond_13
new-instance v0, Lx8/d0$b;
invoke-direct {v0, p0, p1}, Lx8/d0$b;-><init>(Lx8/d0;Lkotlin/coroutines/d;)V
:goto_18
iget-object p1, v0, Lx8/d0$b;->d:Ljava/lang/Object;
invoke-static {}, Lma/b;->c()Ljava/lang/Object;
move-result-object v1
iget v2, v0, Lx8/d0$b;->f:I
const/4 v3, 0x1
if-eqz v2, :cond_33
if-ne v2, v3, :cond_2b
:try_start_25
invoke-static {p1}, Lka/o;->b(Ljava/lang/Object;)V
:try_end_28
.catch Ljava/lang/Exception; {:try_start_25 .. :try_end_28} :catch_29
goto :goto_4a
:catch_29
move-exception p1
goto :goto_4d
:cond_2b
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_33
invoke-static {p1}, Lka/o;->b(Ljava/lang/Object;)V
:try_start_36
iget-object p1, p0, Lx8/d0;->c:Lcom/google/firebase/installations/FirebaseInstallationsApi;
invoke-interface {p1}, Lcom/google/firebase/installations/FirebaseInstallationsApi;->getId()Lcom/google/android/gms/tasks/Task;
move-result-object p1
const-string v2, "firebaseInstallations.id"
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
iput v3, v0, Lx8/d0$b;->f:I
invoke-static {p1, v0}, Lkb/b;->a(Lcom/google/android/gms/tasks/Task;Lkotlin/coroutines/d;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v1, :cond_4a
return-object v1
:cond_4a
:goto_4a
check-cast p1, Ljava/lang/String;
:try_end_4c
.catch Ljava/lang/Exception; {:try_start_36 .. :try_end_4c} :catch_29
goto :goto_56
:goto_4d
const-string v0, "SessionFirelogPublisher"
const-string v1, "Error getting Firebase Installation ID. Using an empty ID"
invoke-static {v0, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
const-string p1, ""
:goto_56
return-object p1
.end method
.method private final i()Z
.registers 6
sget-wide v0, Lx8/d0;->h:D
iget-object v2, p0, Lx8/d0;->d:Lz8/f;
invoke-virtual {v2}, Lz8/f;->b()D
move-result-wide v2
cmpg-double v4, v0, v2
if-gtz v4, :cond_e
const/4 v0, 0x1
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
return v0
.end method
.method private final j(Lkotlin/coroutines/d;)Ljava/lang/Object;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/d<",
"-",
"Ljava/lang/Boolean;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
instance-of v0, p1, Lx8/d0$d;
if-eqz v0, :cond_13
move-object v0, p1
check-cast v0, Lx8/d0$d;
iget v1, v0, Lx8/d0$d;->g:I
const/high16 v2, -0x80000000
and-int v3, v1, v2
if-eqz v3, :cond_13
sub-int/2addr v1, v2
iput v1, v0, Lx8/d0$d;->g:I
goto :goto_18
:cond_13
new-instance v0, Lx8/d0$d;
invoke-direct {v0, p0, p1}, Lx8/d0$d;-><init>(Lx8/d0;Lkotlin/coroutines/d;)V
:goto_18
iget-object p1, v0, Lx8/d0$d;->e:Ljava/lang/Object;
invoke-static {}, Lma/b;->c()Ljava/lang/Object;
move-result-object v1
iget v2, v0, Lx8/d0$d;->g:I
const-string v3, "SessionFirelogPublisher"
const/4 v4, 0x1
if-eqz v2, :cond_37
if-ne v2, v4, :cond_2f
iget-object v0, v0, Lx8/d0$d;->d:Ljava/lang/Object;
check-cast v0, Lx8/d0;
invoke-static {p1}, Lka/o;->b(Ljava/lang/Object;)V
goto :goto_4d
:cond_2f
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_37
invoke-static {p1}, Lka/o;->b(Ljava/lang/Object;)V
const-string p1, "Data Collection is enabled for at least one Subscriber"
invoke-static {v3, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
iget-object p1, p0, Lx8/d0;->d:Lz8/f;
iput-object p0, v0, Lx8/d0$d;->d:Ljava/lang/Object;
iput v4, v0, Lx8/d0$d;->g:I
invoke-virtual {p1, v0}, Lz8/f;->g(Lkotlin/coroutines/d;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v1, :cond_4c
return-object v1
:cond_4c
move-object v0, p0
:goto_4d
iget-object p1, v0, Lx8/d0;->d:Lz8/f;
invoke-virtual {p1}, Lz8/f;->d()Z
move-result p1
const/4 v1, 0x0
if-nez p1, :cond_60
const-string p1, "Sessions SDK disabled. Events will not be sent."
:goto_58
invoke-static {v3, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
invoke-static {v1}, Lna/b;->a(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
:cond_60
invoke-direct {v0}, Lx8/d0;->i()Z
move-result p1
if-nez p1, :cond_69
const-string p1, "Sessions SDK has dropped this session due to sampling."
goto :goto_58
:cond_69
invoke-static {v4}, Lna/b;->a(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.end method
# virtual methods
.method public a(Lx8/z;)V
.registers 9
.param p1 # Lx8/z;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
const-string v0, "sessionDetails"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lx8/d0;->f:Lkotlin/coroutines/CoroutineContext;
invoke-static {v0}, Lbb/n0;->a(Lkotlin/coroutines/CoroutineContext;)Lbb/m0;
move-result-object v1
const/4 v2, 0x0
const/4 v3, 0x0
new-instance v4, Lx8/d0$c;
const/4 v0, 0x0
invoke-direct {v4, p0, p1, v0}, Lx8/d0$c;-><init>(Lx8/d0;Lx8/z;Lkotlin/coroutines/d;)V
const/4 v5, 0x3
const/4 v6, 0x0
invoke-static/range {v1 .. v6}, Lbb/g;->d(Lbb/m0;Lkotlin/coroutines/CoroutineContext;Lbb/o0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lbb/v1;
return-void
.end method