216 lines
4.8 KiB
Smali
216 lines
4.8 KiB
Smali
.class public final Lcom/crashlytics/android/answers/j;
|
|
.super Ljava/lang/Object;
|
|
.source "AppMeasurementEventLogger.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/crashlytics/android/answers/p;
|
|
|
|
|
|
# instance fields
|
|
.field private final nW:Ljava/lang/reflect/Method;
|
|
|
|
.field private final nX:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/answers/j;->nX:Ljava/lang/Object;
|
|
|
|
iput-object p2, p0, Lcom/crashlytics/android/answers/j;->nW:Ljava/lang/reflect/Method;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Landroid/content/Context;Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 5
|
|
|
|
:try_start_0
|
|
const-string v0, "getInstance"
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v2, v1, [Ljava/lang/Class;
|
|
|
|
const-class v3, Landroid/content/Context;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-virtual {p1, v0, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p0, v1, v4
|
|
|
|
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static d(Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
.locals 4
|
|
|
|
:try_start_0
|
|
const-string v0, "logEventInternal"
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-array v1, v1, [Ljava/lang/Class;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const-class v3, Ljava/lang/String;
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const-class v3, Landroid/os/Bundle;
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
invoke-virtual {p0, v0, v1}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static r(Landroid/content/Context;)Lcom/crashlytics/android/answers/p;
|
|
.locals 2
|
|
|
|
invoke-static {p0}, Lcom/crashlytics/android/answers/j;->s(Landroid/content/Context;)Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
invoke-static {p0, v0}, Lcom/crashlytics/android/answers/j;->a(Landroid/content/Context;Ljava/lang/Class;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
invoke-static {v0}, Lcom/crashlytics/android/answers/j;->d(Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
return-object v1
|
|
|
|
:cond_2
|
|
new-instance v1, Lcom/crashlytics/android/answers/j;
|
|
|
|
invoke-direct {v1, p0, v0}, Lcom/crashlytics/android/answers/j;-><init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private static s(Landroid/content/Context;)Ljava/lang/Class;
|
|
.locals 1
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "com.google.android.gms.measurement.AppMeasurement"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)V
|
|
.locals 4
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/crashlytics/android/answers/j;->nW:Ljava/lang/reflect/Method;
|
|
|
|
iget-object v1, p0, Lcom/crashlytics/android/answers/j;->nX:Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x3
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object p1, v2, v3
|
|
|
|
const/4 p1, 0x1
|
|
|
|
aput-object p2, v2, p1
|
|
|
|
const/4 p1, 0x2
|
|
|
|
aput-object p3, v2, p1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
.locals 1
|
|
|
|
const-string v0, "fab"
|
|
|
|
invoke-virtual {p0, v0, p1, p2}, Lcom/crashlytics/android/answers/j;->a(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
return-void
|
|
.end method
|