.class public final Lcom/bugsnag/android/Bugsnag; .super Ljava/lang/Object; .source "Bugsnag.java" # static fields .field private static client:Lcom/bugsnag/android/Client; # direct methods .method private constructor ()V .locals 0 .prologue invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static addToTab(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V .locals 1 .param p0, "tab" # Ljava/lang/String; .param p1, "key" # Ljava/lang/String; .param p2, "value" # Ljava/lang/Object; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0, p1, p2}, Lcom/bugsnag/android/Client;->addToTab(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V return-void .end method .method public static beforeNotify(Lcom/bugsnag/android/BeforeNotify;)V .locals 1 .param p0, "beforeNotify" # Lcom/bugsnag/android/BeforeNotify; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->beforeNotify(Lcom/bugsnag/android/BeforeNotify;)V return-void .end method .method public static clearBreadcrumbs()V .locals 1 .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0}, Lcom/bugsnag/android/Client;->clearBreadcrumbs()V return-void .end method .method public static clearTab(Ljava/lang/String;)V .locals 1 .param p0, "tabName" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->clearTab(Ljava/lang/String;)V return-void .end method .method public static enableExceptionHandler()V .locals 1 .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0}, Lcom/bugsnag/android/Client;->enableExceptionHandler()V return-void .end method .method public static getClient()Lcom/bugsnag/android/Client; .locals 2 .prologue sget-object v0, Lcom/bugsnag/android/Bugsnag;->client:Lcom/bugsnag/android/Client; if-nez v0, :cond_0 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "You must call Bugsnag.init before any other Bugsnag methods" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 :cond_0 sget-object v0, Lcom/bugsnag/android/Bugsnag;->client:Lcom/bugsnag/android/Client; return-object v0 .end method .method public static getMetaData()Lcom/bugsnag/android/MetaData; .locals 1 .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0}, Lcom/bugsnag/android/Client;->getMetaData()Lcom/bugsnag/android/MetaData; move-result-object v0 return-object v0 .end method .method public static init(Landroid/content/Context;)Lcom/bugsnag/android/Client; .locals 1 .param p0, "androidContext" # Landroid/content/Context; .prologue new-instance v0, Lcom/bugsnag/android/Client; invoke-direct {v0, p0}, Lcom/bugsnag/android/Client;->(Landroid/content/Context;)V sput-object v0, Lcom/bugsnag/android/Bugsnag;->client:Lcom/bugsnag/android/Client; sget-object v0, Lcom/bugsnag/android/Bugsnag;->client:Lcom/bugsnag/android/Client; return-object v0 .end method .method public static init(Landroid/content/Context;Ljava/lang/String;)Lcom/bugsnag/android/Client; .locals 1 .param p0, "androidContext" # Landroid/content/Context; .param p1, "apiKey" # Ljava/lang/String; .prologue new-instance v0, Lcom/bugsnag/android/Client; invoke-direct {v0, p0, p1}, Lcom/bugsnag/android/Client;->(Landroid/content/Context;Ljava/lang/String;)V sput-object v0, Lcom/bugsnag/android/Bugsnag;->client:Lcom/bugsnag/android/Client; sget-object v0, Lcom/bugsnag/android/Bugsnag;->client:Lcom/bugsnag/android/Client; return-object v0 .end method .method public static init(Landroid/content/Context;Ljava/lang/String;Z)Lcom/bugsnag/android/Client; .locals 1 .param p0, "androidContext" # Landroid/content/Context; .param p1, "apiKey" # Ljava/lang/String; .param p2, "enableExceptionHandler" # Z .prologue new-instance v0, Lcom/bugsnag/android/Client; invoke-direct {v0, p0, p1, p2}, Lcom/bugsnag/android/Client;->(Landroid/content/Context;Ljava/lang/String;Z)V sput-object v0, Lcom/bugsnag/android/Bugsnag;->client:Lcom/bugsnag/android/Client; sget-object v0, Lcom/bugsnag/android/Bugsnag;->client:Lcom/bugsnag/android/Client; return-object v0 .end method .method public static leaveBreadcrumb(Ljava/lang/String;)V .locals 1 .param p0, "message" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->leaveBreadcrumb(Ljava/lang/String;)V return-void .end method .method public static notify(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V .locals 7 .param p0, "name" # Ljava/lang/String; .param p1, "message" # Ljava/lang/String; .param p2, "context" # Ljava/lang/String; .param p3, "stacktrace" # [Ljava/lang/StackTraceElement; .param p4, "severity" # Lcom/bugsnag/android/Severity; .param p5, "metaData" # Lcom/bugsnag/android/MetaData; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 move-object v1, p0 move-object v2, p1 move-object v3, p2 move-object v4, p3 move-object v5, p4 move-object v6, p5 invoke-virtual/range {v0 .. v6}, Lcom/bugsnag/android/Client;->notify(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V return-void .end method .method public static notify(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V .locals 6 .param p0, "name" # Ljava/lang/String; .param p1, "message" # Ljava/lang/String; .param p2, "stacktrace" # [Ljava/lang/StackTraceElement; .param p3, "severity" # Lcom/bugsnag/android/Severity; .param p4, "metaData" # Lcom/bugsnag/android/MetaData; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 move-object v1, p0 move-object v2, p1 move-object v3, p2 move-object v4, p3 move-object v5, p4 invoke-virtual/range {v0 .. v5}, Lcom/bugsnag/android/Client;->notify(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/StackTraceElement;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V return-void .end method .method public static notify(Ljava/lang/Throwable;)V .locals 1 .param p0, "exception" # Ljava/lang/Throwable; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->notify(Ljava/lang/Throwable;)V return-void .end method .method public static notify(Ljava/lang/Throwable;Lcom/bugsnag/android/MetaData;)V .locals 1 .param p0, "exception" # Ljava/lang/Throwable; .param p1, "metaData" # Lcom/bugsnag/android/MetaData; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0, p1}, Lcom/bugsnag/android/Client;->notify(Ljava/lang/Throwable;Lcom/bugsnag/android/MetaData;)V return-void .end method .method public static notify(Ljava/lang/Throwable;Lcom/bugsnag/android/Severity;)V .locals 1 .param p0, "exception" # Ljava/lang/Throwable; .param p1, "severity" # Lcom/bugsnag/android/Severity; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0, p1}, Lcom/bugsnag/android/Client;->notify(Ljava/lang/Throwable;Lcom/bugsnag/android/Severity;)V return-void .end method .method public static notify(Ljava/lang/Throwable;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V .locals 1 .param p0, "exception" # Ljava/lang/Throwable; .param p1, "severity" # Lcom/bugsnag/android/Severity; .param p2, "metaData" # Lcom/bugsnag/android/MetaData; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0, p1, p2}, Lcom/bugsnag/android/Client;->notify(Ljava/lang/Throwable;Lcom/bugsnag/android/Severity;Lcom/bugsnag/android/MetaData;)V return-void .end method .method public static setAppVersion(Ljava/lang/String;)V .locals 1 .param p0, "appVersion" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setAppVersion(Ljava/lang/String;)V return-void .end method .method public static setBuildUUID(Ljava/lang/String;)V .locals 1 .param p0, "buildUUID" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setBuildUUID(Ljava/lang/String;)V return-void .end method .method public static setContext(Ljava/lang/String;)V .locals 1 .param p0, "context" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setContext(Ljava/lang/String;)V return-void .end method .method public static setEndpoint(Ljava/lang/String;)V .locals 1 .param p0, "endpoint" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setEndpoint(Ljava/lang/String;)V return-void .end method .method public static varargs setFilters([Ljava/lang/String;)V .locals 1 .param p0, "filters" # [Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setFilters([Ljava/lang/String;)V return-void .end method .method public static varargs setIgnoreClasses([Ljava/lang/String;)V .locals 1 .param p0, "ignoreClasses" # [Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setIgnoreClasses([Ljava/lang/String;)V return-void .end method .method public static setMaxBreadcrumbs(I)V .locals 1 .param p0, "numBreadcrumbs" # I .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setMaxBreadcrumbs(I)V return-void .end method .method public static setMetaData(Lcom/bugsnag/android/MetaData;)V .locals 1 .param p0, "metaData" # Lcom/bugsnag/android/MetaData; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setMetaData(Lcom/bugsnag/android/MetaData;)V return-void .end method .method public static varargs setNotifyReleaseStages([Ljava/lang/String;)V .locals 1 .param p0, "notifyReleaseStages" # [Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setNotifyReleaseStages([Ljava/lang/String;)V return-void .end method .method public static varargs setProjectPackages([Ljava/lang/String;)V .locals 1 .param p0, "projectPackages" # [Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setProjectPackages([Ljava/lang/String;)V return-void .end method .method public static setReleaseStage(Ljava/lang/String;)V .locals 1 .param p0, "releaseStage" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setReleaseStage(Ljava/lang/String;)V return-void .end method .method public static setSendThreads(Z)V .locals 1 .param p0, "sendThreads" # Z .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setSendThreads(Z)V return-void .end method .method public static setUser(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V .locals 1 .param p0, "id" # Ljava/lang/String; .param p1, "email" # Ljava/lang/String; .param p2, "name" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0, p1, p2}, Lcom/bugsnag/android/Client;->setUser(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V return-void .end method .method public static setUserEmail(Ljava/lang/String;)V .locals 1 .param p0, "email" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setUserEmail(Ljava/lang/String;)V return-void .end method .method public static setUserId(Ljava/lang/String;)V .locals 1 .param p0, "id" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setUserId(Ljava/lang/String;)V return-void .end method .method public static setUserName(Ljava/lang/String;)V .locals 1 .param p0, "name" # Ljava/lang/String; .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0, p0}, Lcom/bugsnag/android/Client;->setUserName(Ljava/lang/String;)V return-void .end method # virtual methods .method public disableExceptionHandler()V .locals 1 .prologue invoke-static {}, Lcom/bugsnag/android/Bugsnag;->getClient()Lcom/bugsnag/android/Client; move-result-object v0 invoke-virtual {v0}, Lcom/bugsnag/android/Client;->disableExceptionHandler()V return-void .end method