53 lines
2.1 KiB
Java
53 lines
2.1 KiB
Java
package com.discord.utilities.analytics;
|
|
|
|
import c.i.a.f.h.l.g;
|
|
import c.i.a.f.h.l.n;
|
|
import com.discord.app.AppLog;
|
|
import com.discord.models.user.MeUser;
|
|
import com.discord.utilities.user.UserUtils;
|
|
import com.google.firebase.analytics.FirebaseAnalytics;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.Objects;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: AnalyticsUtils.kt */
|
|
public final class AnalyticsUtils$initAppOpen$1 extends o implements Function1<MeUser, Unit> {
|
|
public static final AnalyticsUtils$initAppOpen$1 INSTANCE = new AnalyticsUtils$initAppOpen$1();
|
|
|
|
public AnalyticsUtils$initAppOpen$1() {
|
|
super(1);
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(MeUser meUser) {
|
|
invoke(meUser);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(MeUser meUser) {
|
|
m.checkNotNullParameter(meUser, "meUser");
|
|
if (m.areEqual(meUser, UserUtils.INSTANCE.getEMPTY_USER())) {
|
|
AppLog.g(0L, null, null);
|
|
FirebaseAnalytics access$getFireBaseInstance$p = AnalyticsUtils.access$getFireBaseInstance$p(AnalyticsUtils.INSTANCE);
|
|
if (access$getFireBaseInstance$p != null) {
|
|
g gVar = access$getFireBaseInstance$p.b;
|
|
Objects.requireNonNull(gVar);
|
|
gVar.e.execute(new n(gVar, null));
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
FirebaseAnalytics access$getFireBaseInstance$p2 = AnalyticsUtils.access$getFireBaseInstance$p(AnalyticsUtils.INSTANCE);
|
|
if (access$getFireBaseInstance$p2 != null) {
|
|
String valueOf = String.valueOf(meUser.getId());
|
|
g gVar2 = access$getFireBaseInstance$p2.b;
|
|
Objects.requireNonNull(gVar2);
|
|
gVar2.e.execute(new n(gVar2, valueOf));
|
|
}
|
|
AppLog.g(Long.valueOf(meUser.getId()), meUser.getEmail(), meUser.getUsername());
|
|
}
|
|
}
|