1067 lines
35 KiB
Smali
1067 lines
35 KiB
Smali
.class public Lcom/bugsnag/android/Client;
|
|
.super Ljava/lang/Object;
|
|
.source "Client.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final BLOCKING:Z = true
|
|
|
|
|
|
# instance fields
|
|
.field private final appContext:Landroid/content/Context;
|
|
|
|
.field private final appData:Lcom/bugsnag/android/AppData;
|
|
|
|
.field private final breadcrumbs:Lcom/bugsnag/android/Breadcrumbs;
|
|
|
|
.field private final config:Lcom/bugsnag/android/Configuration;
|
|
|
|
.field private final deviceData:Lcom/bugsnag/android/DeviceData;
|
|
|
|
.field private final errorStore:Lcom/bugsnag/android/ErrorStore;
|
|
|
|
.field private final user:Lcom/bugsnag/android/User;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
.param p1, "androidContext" # Landroid/content/Context;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.prologue
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/bugsnag/android/Client;-><init>(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "androidContext" # Landroid/content/Context;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2, "apiKey" # Ljava/lang/String;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.prologue
|
|
const/4 v0, 0x1
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/bugsnag/android/Client;-><init>(Landroid/content/Context;Ljava/lang/String;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Z)V
|
|
.locals 5
|
|
.param p1, "androidContext" # Landroid/content/Context;
|
|
.annotation build Landroid/support/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2, "apiKey" # Ljava/lang/String;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3, "enableExceptionHandler" # Z
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v2, Lcom/bugsnag/android/User;
|
|
|
|
invoke-direct {v2}, Lcom/bugsnag/android/User;-><init>()V
|
|
|
|
iput-object v2, p0, Lcom/bugsnag/android/Client;->user:Lcom/bugsnag/android/User;
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.local v1, "buildUUID":Ljava/lang/String;
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
:try_start_0
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
const/16 v4, 0x80
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v0
|
|
|
|
.local v0, "ai":Landroid/content/pm/ApplicationInfo;
|
|
iget-object v2, v0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
const-string v3, "com.bugsnag.android.API_KEY"
|
|
|
|
invoke-virtual {v2, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object v2, v0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
const-string v3, "com.bugsnag.android.BUILD_UUID"
|
|
|
|
invoke-virtual {v2, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-result-object v1
|
|
|
|
.end local v0 # "ai":Landroid/content/pm/ApplicationInfo;
|
|
:cond_0
|
|
:goto_0
|
|
if-nez p2, :cond_1
|
|
|
|
new-instance v2, Ljava/lang/NullPointerException;
|
|
|
|
const-string v3, "You must provide a Bugsnag API key"
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_1
|
|
new-instance v2, Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v2, p2}, Lcom/bugsnag/android/Configuration;-><init>(Ljava/lang/String;)V
|
|
|
|
iput-object v2, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object v1, v2, Lcom/bugsnag/android/Configuration;->buildUUID:Ljava/lang/String;
|
|
|
|
:cond_2
|
|
new-instance v2, Lcom/bugsnag/android/AppData;
|
|
|
|
iget-object v3, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
iget-object v4, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v2, v3, v4}, Lcom/bugsnag/android/AppData;-><init>(Landroid/content/Context;Lcom/bugsnag/android/Configuration;)V
|
|
|
|
iput-object v2, p0, Lcom/bugsnag/android/Client;->appData:Lcom/bugsnag/android/AppData;
|
|
|
|
new-instance v2, Lcom/bugsnag/android/DeviceData;
|
|
|
|
iget-object v3, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
invoke-direct {v2, v3}, Lcom/bugsnag/android/DeviceData;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v2, p0, Lcom/bugsnag/android/Client;->deviceData:Lcom/bugsnag/android/DeviceData;
|
|
|
|
invoke-static {}, Lcom/bugsnag/android/AppState;->init()V
|
|
|
|
new-instance v2, Lcom/bugsnag/android/Breadcrumbs;
|
|
|
|
invoke-direct {v2}, Lcom/bugsnag/android/Breadcrumbs;-><init>()V
|
|
|
|
iput-object v2, p0, Lcom/bugsnag/android/Client;->breadcrumbs:Lcom/bugsnag/android/Breadcrumbs;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/String;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
iget-object v4, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v4}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
invoke-virtual {p0, v2}, Lcom/bugsnag/android/Client;->setProjectPackages([Ljava/lang/String;)V
|
|
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->deviceData:Lcom/bugsnag/android/DeviceData;
|
|
|
|
invoke-virtual {v2}, Lcom/bugsnag/android/DeviceData;->getUserId()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, v2}, Lcom/bugsnag/android/Client;->setUserId(Ljava/lang/String;)V
|
|
|
|
new-instance v2, Lcom/bugsnag/android/ErrorStore;
|
|
|
|
iget-object v3, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iget-object v4, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
invoke-direct {v2, v3, v4}, Lcom/bugsnag/android/ErrorStore;-><init>(Lcom/bugsnag/android/Configuration;Landroid/content/Context;)V
|
|
|
|
iput-object v2, p0, Lcom/bugsnag/android/Client;->errorStore:Lcom/bugsnag/android/ErrorStore;
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
invoke-virtual {p0}, Lcom/bugsnag/android/Client;->enableExceptionHandler()V
|
|
|
|
:cond_3
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->errorStore:Lcom/bugsnag/android/ErrorStore;
|
|
|
|
invoke-virtual {v2}, Lcom/bugsnag/android/ErrorStore;->flush()V
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method private notify(Lcom/bugsnag/android/Error;Z)V
|
|
.locals 3
|
|
.param p1, "error" # Lcom/bugsnag/android/Error;
|
|
.param p2, "blocking" # Z
|
|
|
|
.prologue
|
|
invoke-virtual {p1}, Lcom/bugsnag/android/Error;->shouldIgnoreClass()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->appData:Lcom/bugsnag/android/AppData;
|
|
|
|
invoke-virtual {v2}, Lcom/bugsnag/android/AppData;->getReleaseStage()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/bugsnag/android/Configuration;->shouldNotifyForReleaseStage(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->appData:Lcom/bugsnag/android/AppData;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/bugsnag/android/Error;->setAppData(Lcom/bugsnag/android/AppData;)V
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->deviceData:Lcom/bugsnag/android/DeviceData;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/bugsnag/android/Error;->setDeviceData(Lcom/bugsnag/android/DeviceData;)V
|
|
|
|
new-instance v1, Lcom/bugsnag/android/AppState;
|
|
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
invoke-direct {v1, v2}, Lcom/bugsnag/android/AppState;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {p1, v1}, Lcom/bugsnag/android/Error;->setAppState(Lcom/bugsnag/android/AppState;)V
|
|
|
|
new-instance v1, Lcom/bugsnag/android/DeviceState;
|
|
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->appContext:Landroid/content/Context;
|
|
|
|
invoke-direct {v1, v2}, Lcom/bugsnag/android/DeviceState;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {p1, v1}, Lcom/bugsnag/android/Error;->setDeviceState(Lcom/bugsnag/android/DeviceState;)V
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->breadcrumbs:Lcom/bugsnag/android/Breadcrumbs;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/bugsnag/android/Error;->setBreadcrumbs(Lcom/bugsnag/android/Breadcrumbs;)V
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->user:Lcom/bugsnag/android/User;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/bugsnag/android/Error;->setUser(Lcom/bugsnag/android/User;)V
|
|
|
|
invoke-direct {p0, p1}, Lcom/bugsnag/android/Client;->runBeforeNotifyTasks(Lcom/bugsnag/android/Error;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const-string v1, "Skipping notification - beforeNotify task returned false"
|
|
|
|
invoke-static {v1}, Lcom/bugsnag/android/Logger;->info(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
new-instance v0, Lcom/bugsnag/android/Notification;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1}, Lcom/bugsnag/android/Notification;-><init>(Lcom/bugsnag/android/Configuration;)V
|
|
|
|
.local v0, "notification":Lcom/bugsnag/android/Notification;
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/Notification;->addError(Lcom/bugsnag/android/Error;)V
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/bugsnag/android/Client;->deliver(Lcom/bugsnag/android/Notification;Lcom/bugsnag/android/Error;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
new-instance v1, Lcom/bugsnag/android/Client$1;
|
|
|
|
invoke-direct {v1, p0, v0, p1}, Lcom/bugsnag/android/Client$1;-><init>(Lcom/bugsnag/android/Client;Lcom/bugsnag/android/Notification;Lcom/bugsnag/android/Error;)V
|
|
|
|
invoke-static {v1}, Lcom/bugsnag/android/Async;->run(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method private runBeforeNotifyTasks(Lcom/bugsnag/android/Error;)Z
|
|
.locals 4
|
|
.param p1, "error" # Lcom/bugsnag/android/Error;
|
|
|
|
.prologue
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iget-object v2, v2, Lcom/bugsnag/android/Configuration;->beforeNotifyTasks:Ljava/util/Collection;
|
|
|
|
invoke-interface {v2}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/bugsnag/android/BeforeNotify;
|
|
|
|
.local v0, "beforeNotify":Lcom/bugsnag/android/BeforeNotify;
|
|
:try_start_0
|
|
invoke-interface {v0, p1}, Lcom/bugsnag/android/BeforeNotify;->run(Lcom/bugsnag/android/Error;)Z
|
|
:try_end_0
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.end local v0 # "beforeNotify":Lcom/bugsnag/android/BeforeNotify;
|
|
:goto_1
|
|
return v2
|
|
|
|
.restart local v0 # "beforeNotify":Lcom/bugsnag/android/BeforeNotify;
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
.local v1, "ex":Ljava/lang/Throwable;
|
|
const-string v3, "BeforeNotify threw an Exception"
|
|
|
|
invoke-static {v3, v1}, Lcom/bugsnag/android/Logger;->warn(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v0 # "beforeNotify":Lcom/bugsnag/android/BeforeNotify;
|
|
.end local v1 # "ex":Ljava/lang/Throwable;
|
|
:cond_1
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addToTab(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
|
|
.locals 1
|
|
.param p1, "tab" # Ljava/lang/String;
|
|
.param p2, "key" # Ljava/lang/String;
|
|
.param p3, "value" # Ljava/lang/Object;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iget-object v0, v0, Lcom/bugsnag/android/Configuration;->metaData:Lcom/bugsnag/android/MetaData;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lcom/bugsnag/android/MetaData;->addToTab(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public beforeNotify(Lcom/bugsnag/android/BeforeNotify;)V
|
|
.locals 1
|
|
.param p1, "beforeNotify" # Lcom/bugsnag/android/BeforeNotify;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/Configuration;->beforeNotify(Lcom/bugsnag/android/BeforeNotify;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public clearBreadcrumbs()V
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->breadcrumbs:Lcom/bugsnag/android/Breadcrumbs;
|
|
|
|
invoke-virtual {v0}, Lcom/bugsnag/android/Breadcrumbs;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public clearTab(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "tabName" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iget-object v0, v0, Lcom/bugsnag/android/Configuration;->metaData:Lcom/bugsnag/android/MetaData;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/MetaData;->clearTab(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method deliver(Lcom/bugsnag/android/Notification;Lcom/bugsnag/android/Error;)V
|
|
.locals 7
|
|
.param p1, "notification" # Lcom/bugsnag/android/Notification;
|
|
.param p2, "error" # Lcom/bugsnag/android/Error;
|
|
|
|
.prologue
|
|
:try_start_0
|
|
invoke-virtual {p1}, Lcom/bugsnag/android/Notification;->deliver()I
|
|
|
|
move-result v1
|
|
|
|
.local v1, "errorCount":I
|
|
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
const-string v3, "Sent %d new error(s) to Bugsnag"
|
|
|
|
const/4 v4, 0x1
|
|
|
|
new-array v4, v4, [Ljava/lang/Object;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v6
|
|
|
|
aput-object v6, v4, v5
|
|
|
|
invoke-static {v2, v3, v4}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lcom/bugsnag/android/Logger;->info(Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catch Lcom/bugsnag/android/HttpClient$NetworkException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catch Lcom/bugsnag/android/HttpClient$BadResponseException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.end local v1 # "errorCount":I
|
|
:goto_0
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.local v0, "e":Lcom/bugsnag/android/HttpClient$NetworkException;
|
|
const-string v2, "Could not send error(s) to Bugsnag, saving to disk to send later"
|
|
|
|
invoke-static {v2}, Lcom/bugsnag/android/Logger;->info(Ljava/lang/String;)V
|
|
|
|
iget-object v2, p0, Lcom/bugsnag/android/Client;->errorStore:Lcom/bugsnag/android/ErrorStore;
|
|
|
|
invoke-virtual {v2, p2}, Lcom/bugsnag/android/ErrorStore;->write(Lcom/bugsnag/android/Error;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v0 # "e":Lcom/bugsnag/android/HttpClient$NetworkException;
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
.local v0, "e":Lcom/bugsnag/android/HttpClient$BadResponseException;
|
|
const-string v2, "Bad response when sending data to Bugsnag"
|
|
|
|
invoke-static {v2}, Lcom/bugsnag/android/Logger;->info(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v0 # "e":Lcom/bugsnag/android/HttpClient$BadResponseException;
|
|
:catch_2
|
|
move-exception v0
|
|
|
|
.local v0, "e":Ljava/lang/Exception;
|
|
const-string v2, "Problem sending error to Bugsnag"
|
|
|
|
invoke-static {v2, v0}, Lcom/bugsnag/android/Logger;->warn(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public disableExceptionHandler()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-static {p0}, Lcom/bugsnag/android/ExceptionHandler;->disable(Lcom/bugsnag/android/Client;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public enableExceptionHandler()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-static {p0}, Lcom/bugsnag/android/ExceptionHandler;->enable(Lcom/bugsnag/android/Client;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getMetaData()Lcom/bugsnag/android/MetaData;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iget-object v0, v0, Lcom/bugsnag/android/Configuration;->metaData:Lcom/bugsnag/android/MetaData;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public leaveBreadcrumb(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "breadcrumb" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->breadcrumbs:Lcom/bugsnag/android/Breadcrumbs;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/Breadcrumbs;->add(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notify(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V
|
|
.locals 2
|
|
.param p1, "name" # Ljava/lang/String;
|
|
.param p2, "message" # Ljava/lang/String;
|
|
.param p3, "context" # Ljava/lang/String;
|
|
.param p4, "stacktrace" # [Ljava/lang/StackTraceElement;
|
|
.param p5, "severity" # Lcom/bugsnag/android/Severity;
|
|
.param p6, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1, p2, p4}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p5}, Lcom/bugsnag/android/Error;->setSeverity(Lcom/bugsnag/android/Severity;)V
|
|
|
|
invoke-virtual {v0, p6}, Lcom/bugsnag/android/Error;->setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
|
|
invoke-virtual {v0, p3}, Lcom/bugsnag/android/Error;->setContext(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notify(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V
|
|
.locals 2
|
|
.param p1, "name" # Ljava/lang/String;
|
|
.param p2, "message" # Ljava/lang/String;
|
|
.param p3, "stacktrace" # [Ljava/lang/StackTraceElement;
|
|
.param p4, "severity" # Lcom/bugsnag/android/Severity;
|
|
.param p5, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1, p2, p3}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p4}, Lcom/bugsnag/android/Error;->setSeverity(Lcom/bugsnag/android/Severity;)V
|
|
|
|
invoke-virtual {v0, p5}, Lcom/bugsnag/android/Error;->setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notify(Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
.param p1, "exception" # Ljava/lang/Throwable;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/Throwable;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notify(Ljava/lang/Throwable;Lcom/bugsnag/android/MetaData;)V
|
|
.locals 2
|
|
.param p1, "exception" # Ljava/lang/Throwable;
|
|
.param p2, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/Throwable;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p2}, Lcom/bugsnag/android/Error;->setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notify(Ljava/lang/Throwable;Lcom/bugsnag/android/Severity;)V
|
|
.locals 2
|
|
.param p1, "exception" # Ljava/lang/Throwable;
|
|
.param p2, "severity" # Lcom/bugsnag/android/Severity;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/Throwable;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p2}, Lcom/bugsnag/android/Error;->setSeverity(Lcom/bugsnag/android/Severity;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notify(Ljava/lang/Throwable;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V
|
|
.locals 2
|
|
.param p1, "exception" # Ljava/lang/Throwable;
|
|
.param p2, "severity" # Lcom/bugsnag/android/Severity;
|
|
.param p3, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/Throwable;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p2}, Lcom/bugsnag/android/Error;->setSeverity(Lcom/bugsnag/android/Severity;)V
|
|
|
|
invoke-virtual {v0, p3}, Lcom/bugsnag/android/Error;->setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notifyBlocking(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V
|
|
.locals 2
|
|
.param p1, "name" # Ljava/lang/String;
|
|
.param p2, "message" # Ljava/lang/String;
|
|
.param p3, "context" # Ljava/lang/String;
|
|
.param p4, "stacktrace" # [Ljava/lang/StackTraceElement;
|
|
.param p5, "severity" # Lcom/bugsnag/android/Severity;
|
|
.param p6, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1, p2, p4}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p5}, Lcom/bugsnag/android/Error;->setSeverity(Lcom/bugsnag/android/Severity;)V
|
|
|
|
invoke-virtual {v0, p6}, Lcom/bugsnag/android/Error;->setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
|
|
invoke-virtual {v0, p3}, Lcom/bugsnag/android/Error;->setContext(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notifyBlocking(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V
|
|
.locals 2
|
|
.param p1, "name" # Ljava/lang/String;
|
|
.param p2, "message" # Ljava/lang/String;
|
|
.param p3, "stacktrace" # [Ljava/lang/StackTraceElement;
|
|
.param p4, "severity" # Lcom/bugsnag/android/Severity;
|
|
.param p5, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1, p2, p3}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p4}, Lcom/bugsnag/android/Error;->setSeverity(Lcom/bugsnag/android/Severity;)V
|
|
|
|
invoke-virtual {v0, p5}, Lcom/bugsnag/android/Error;->setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notifyBlocking(Ljava/lang/Throwable;)V
|
|
.locals 2
|
|
.param p1, "exception" # Ljava/lang/Throwable;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/Throwable;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notifyBlocking(Ljava/lang/Throwable;Lcom/bugsnag/android/MetaData;)V
|
|
.locals 2
|
|
.param p1, "exception" # Ljava/lang/Throwable;
|
|
.param p2, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/Throwable;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p2}, Lcom/bugsnag/android/Error;->setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notifyBlocking(Ljava/lang/Throwable;Lcom/bugsnag/android/Severity;)V
|
|
.locals 2
|
|
.param p1, "exception" # Ljava/lang/Throwable;
|
|
.param p2, "severity" # Lcom/bugsnag/android/Severity;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/Throwable;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p2}, Lcom/bugsnag/android/Error;->setSeverity(Lcom/bugsnag/android/Severity;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public notifyBlocking(Ljava/lang/Throwable;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V
|
|
.locals 2
|
|
.param p1, "exception" # Ljava/lang/Throwable;
|
|
.param p2, "severity" # Lcom/bugsnag/android/Severity;
|
|
.param p3, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/bugsnag/android/Error;
|
|
|
|
iget-object v1, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
invoke-direct {v0, v1, p1}, Lcom/bugsnag/android/Error;-><init>(Lcom/bugsnag/android/Configuration;Ljava/lang/Throwable;)V
|
|
|
|
.local v0, "error":Lcom/bugsnag/android/Error;
|
|
invoke-virtual {v0, p2}, Lcom/bugsnag/android/Error;->setSeverity(Lcom/bugsnag/android/Severity;)V
|
|
|
|
invoke-virtual {v0, p3}, Lcom/bugsnag/android/Error;->setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/bugsnag/android/Client;->notify(Lcom/bugsnag/android/Error;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAppVersion(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "appVersion" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->appVersion:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBuildUUID(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "buildUUID" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->buildUUID:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setContext(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "context" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->context:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setEndpoint(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "endpoint" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->endpoint:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs setFilters([Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "filters" # [Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->filters:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs setIgnoreClasses([Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "ignoreClasses" # [Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->ignoreClasses:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMaxBreadcrumbs(I)V
|
|
.locals 1
|
|
.param p1, "numBreadcrumbs" # I
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->breadcrumbs:Lcom/bugsnag/android/Breadcrumbs;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/Breadcrumbs;->setSize(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMetaData(Lcom/bugsnag/android/MetaData;)V
|
|
.locals 1
|
|
.param p1, "metaData" # Lcom/bugsnag/android/MetaData;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->metaData:Lcom/bugsnag/android/MetaData;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs setNotifyReleaseStages([Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "notifyReleaseStages" # [Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->notifyReleaseStages:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs setProjectPackages([Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "projectPackages" # [Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->projectPackages:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setReleaseStage(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "releaseStage" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-object p1, v0, Lcom/bugsnag/android/Configuration;->releaseStage:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSendThreads(Z)V
|
|
.locals 1
|
|
.param p1, "sendThreads" # Z
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->config:Lcom/bugsnag/android/Configuration;
|
|
|
|
iput-boolean p1, v0, Lcom/bugsnag/android/Configuration;->sendThreads:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUser(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "id" # Ljava/lang/String;
|
|
.param p2, "email" # Ljava/lang/String;
|
|
.param p3, "name" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->user:Lcom/bugsnag/android/User;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/User;->setId(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->user:Lcom/bugsnag/android/User;
|
|
|
|
invoke-virtual {v0, p2}, Lcom/bugsnag/android/User;->setEmail(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->user:Lcom/bugsnag/android/User;
|
|
|
|
invoke-virtual {v0, p3}, Lcom/bugsnag/android/User;->setName(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUserEmail(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "email" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->user:Lcom/bugsnag/android/User;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/User;->setEmail(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUserId(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "id" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->user:Lcom/bugsnag/android/User;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/User;->setId(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUserName(Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1, "name" # Ljava/lang/String;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/bugsnag/android/Client;->user:Lcom/bugsnag/android/User;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/bugsnag/android/User;->setName(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|