187 lines
5 KiB
Smali
187 lines
5 KiB
Smali
.class final Lio/fabric/sdk/android/a/b/p;
|
|
.super Ljava/lang/Object;
|
|
.source "FirebaseAppImpl.java"
|
|
|
|
# interfaces
|
|
.implements Lio/fabric/sdk/android/a/b/o;
|
|
|
|
|
|
# instance fields
|
|
.field private final aYJ:Ljava/lang/reflect/Method;
|
|
|
|
.field private final aYK:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Ljava/lang/Class;Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/NoSuchMethodException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p2, p0, Lio/fabric/sdk/android/a/b/p;->aYK:Ljava/lang/Object;
|
|
|
|
const-string p2, "isDataCollectionDefaultEnabled"
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {p1, p2, v0}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lio/fabric/sdk/android/a/b/p;->aYJ:Ljava/lang/reflect/Method;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static aQ(Landroid/content/Context;)Lio/fabric/sdk/android/a/b/o;
|
|
.locals 4
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "com.google.firebase.FirebaseApp"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "getInstance"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v2, v1, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {p0, 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;
|
|
|
|
invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lio/fabric/sdk/android/a/b/p;
|
|
|
|
invoke-direct {v1, p0, v0}, Lio/fabric/sdk/android/a/b/p;-><init>(Ljava/lang/Class;Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v1
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wB()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Fabric"
|
|
|
|
const-string v2, "Unexpected error loading FirebaseApp instance."
|
|
|
|
invoke-interface {v0, v1, v2, p0}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wB()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Fabric"
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Could not find method: "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/NoSuchMethodException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {v0, v1, p0}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wB()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "Fabric"
|
|
|
|
const-string v1, "Could not find class: com.google.firebase.FirebaseApp"
|
|
|
|
invoke-interface {p0, v0, v1}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final isDataCollectionDefaultEnabled()Z
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lio/fabric/sdk/android/a/b/p;->aYJ:Ljava/lang/reflect/Method;
|
|
|
|
iget-object v2, p0, Lio/fabric/sdk/android/a/b/p;->aYK:Ljava/lang/Object;
|
|
|
|
new-array v3, v0, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wB()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "Fabric"
|
|
|
|
const-string v4, "Cannot check isDataCollectionDefaultEnabled on FirebaseApp."
|
|
|
|
invoke-interface {v2, v3, v4, v1}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
return v0
|
|
.end method
|