.class Lcom/bugsnag/android/Configuration; .super Ljava/lang/Object; .source "Configuration.java" # static fields .field static final DEFAULT_ENDPOINT:Ljava/lang/String; = "https://notify.bugsnag.com" # instance fields .field final apiKey:Ljava/lang/String; .field appVersion:Ljava/lang/String; .field final beforeNotifyTasks:Ljava/util/Collection; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Collection", "<", "Lcom/bugsnag/android/BeforeNotify;", ">;" } .end annotation .end field .field buildUUID:Ljava/lang/String; .field context:Ljava/lang/String; .field endpoint:Ljava/lang/String; .field filters:[Ljava/lang/String; .field ignoreClasses:[Ljava/lang/String; .field metaData:Lcom/bugsnag/android/MetaData; .field notifyReleaseStages:[Ljava/lang/String; .field projectPackages:[Ljava/lang/String; .field releaseStage:Ljava/lang/String; .field sendThreads:Z # direct methods .method constructor (Ljava/lang/String;)V .locals 4 .param p1, "apiKey" # Ljava/lang/String; .prologue const/4 v3, 0x1 invoke-direct {p0}, Ljava/lang/Object;->()V const-string v0, "https://notify.bugsnag.com" iput-object v0, p0, Lcom/bugsnag/android/Configuration;->endpoint:Ljava/lang/String; new-array v0, v3, [Ljava/lang/String; const/4 v1, 0x0 const-string v2, "password" aput-object v2, v0, v1 iput-object v0, p0, Lcom/bugsnag/android/Configuration;->filters:[Ljava/lang/String; const/4 v0, 0x0 iput-object v0, p0, Lcom/bugsnag/android/Configuration;->notifyReleaseStages:[Ljava/lang/String; iput-boolean v3, p0, Lcom/bugsnag/android/Configuration;->sendThreads:Z new-instance v0, Lcom/bugsnag/android/MetaData; invoke-direct {v0}, Lcom/bugsnag/android/MetaData;->()V iput-object v0, p0, Lcom/bugsnag/android/Configuration;->metaData:Lcom/bugsnag/android/MetaData; new-instance v0, Ljava/util/LinkedList; invoke-direct {v0}, Ljava/util/LinkedList;->()V iput-object v0, p0, Lcom/bugsnag/android/Configuration;->beforeNotifyTasks:Ljava/util/Collection; iput-object p1, p0, Lcom/bugsnag/android/Configuration;->apiKey:Ljava/lang/String; return-void .end method # virtual methods .method beforeNotify(Lcom/bugsnag/android/BeforeNotify;)V .locals 1 .param p1, "beforeNotify" # Lcom/bugsnag/android/BeforeNotify; .prologue iget-object v0, p0, Lcom/bugsnag/android/Configuration;->beforeNotifyTasks:Ljava/util/Collection; invoke-interface {v0, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z return-void .end method .method getNotifyEndpoint()Ljava/lang/String; .locals 1 .prologue iget-object v0, p0, Lcom/bugsnag/android/Configuration;->endpoint:Ljava/lang/String; return-object v0 .end method .method inProject(Ljava/lang/String;)Z .locals 6 .param p1, "className" # Ljava/lang/String; .prologue const/4 v1, 0x0 iget-object v2, p0, Lcom/bugsnag/android/Configuration;->projectPackages:[Ljava/lang/String; if-eqz v2, :cond_0 iget-object v3, p0, Lcom/bugsnag/android/Configuration;->projectPackages:[Ljava/lang/String; array-length v4, v3 move v2, v1 :goto_0 if-ge v2, v4, :cond_0 aget-object v0, v3, v2 .local v0, "packageName":Ljava/lang/String; if-eqz v0, :cond_1 invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z move-result v5 if-eqz v5, :cond_1 const/4 v1, 0x1 .end local v0 # "packageName":Ljava/lang/String; :cond_0 return v1 .restart local v0 # "packageName":Ljava/lang/String; :cond_1 add-int/lit8 v2, v2, 0x1 goto :goto_0 .end method .method shouldIgnoreClass(Ljava/lang/String;)Z .locals 2 .param p1, "className" # Ljava/lang/String; .prologue iget-object v1, p0, Lcom/bugsnag/android/Configuration;->ignoreClasses:[Ljava/lang/String; if-nez v1, :cond_0 const/4 v1, 0x0 :goto_0 return v1 :cond_0 iget-object v1, p0, Lcom/bugsnag/android/Configuration;->ignoreClasses:[Ljava/lang/String; invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List; move-result-object v0 .local v0, "classes":Ljava/util/List;, "Ljava/util/List;" invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z move-result v1 goto :goto_0 .end method .method shouldNotifyForReleaseStage(Ljava/lang/String;)Z .locals 2 .param p1, "releaseStage" # Ljava/lang/String; .prologue iget-object v1, p0, Lcom/bugsnag/android/Configuration;->notifyReleaseStages:[Ljava/lang/String; if-nez v1, :cond_0 const/4 v1, 0x1 :goto_0 return v1 :cond_0 iget-object v1, p0, Lcom/bugsnag/android/Configuration;->notifyReleaseStages:[Ljava/lang/String; invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List; move-result-object v0 .local v0, "stages":Ljava/util/List;, "Ljava/util/List;" invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z move-result v1 goto :goto_0 .end method