.class public final Lio/sentry/util/DebugMetaPropertiesApplier; .super Ljava/lang/Object; .source "DebugMetaPropertiesApplier.java" # static fields .field public static DEBUG_META_PROPERTIES_FILENAME:Ljava/lang/String; = "sentry-debug-meta.properties" # direct methods .method static constructor ()V .locals 0 return-void .end method .method public constructor ()V .locals 0 .line 10 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method private static applyBundleIds(Lio/sentry/SentryOptions;Ljava/util/List;)V .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lio/sentry/SentryOptions;", "Ljava/util/List<", "Ljava/util/Properties;", ">;)V" } .end annotation .line 24 invoke-virtual {p0}, Lio/sentry/SentryOptions;->getBundleIds()Ljava/util/Set; move-result-object v0 invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z move-result v0 if-eqz v0, :cond_1 .line 25 invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p1 :cond_0 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_1 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Properties; const-string v1, "io.sentry.bundle-ids" .line 26 invoke-virtual {v0, v1}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 .line 27 invoke-virtual {p0}, Lio/sentry/SentryOptions;->getLogger()Lio/sentry/ILogger; move-result-object v1 sget-object v2, Lio/sentry/SentryLevel;->DEBUG:Lio/sentry/SentryLevel; const-string v3, "Bundle IDs found: %s" filled-new-array {v0}, [Ljava/lang/Object; move-result-object v4 invoke-interface {v1, v2, v3, v4}, Lio/sentry/ILogger;->log(Lio/sentry/SentryLevel;Ljava/lang/String;[Ljava/lang/Object;)V if-eqz v0, :cond_0 const-string v1, "," const/4 v2, -0x1 .line 29 invoke-virtual {v0, v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;I)[Ljava/lang/String; move-result-object v0 .line 30 array-length v1, v0 const/4 v2, 0x0 :goto_0 if-ge v2, v1, :cond_0 aget-object v3, v0, v2 .line 31 invoke-virtual {p0, v3}, Lio/sentry/SentryOptions;->addBundleId(Ljava/lang/String;)V add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_1 return-void .end method .method private static applyProguardUuid(Lio/sentry/SentryOptions;Ljava/util/List;)V .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lio/sentry/SentryOptions;", "Ljava/util/List<", "Ljava/util/Properties;", ">;)V" } .end annotation .line 40 invoke-virtual {p0}, Lio/sentry/SentryOptions;->getProguardUuid()Ljava/lang/String; move-result-object v0 if-nez v0, :cond_1 .line 41 invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p1 :cond_0 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_1 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Properties; .line 42 invoke-static {v0}, Lio/sentry/util/DebugMetaPropertiesApplier;->getProguardUuid(Ljava/util/Properties;)Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_0 .line 44 invoke-virtual {p0}, Lio/sentry/SentryOptions;->getLogger()Lio/sentry/ILogger; move-result-object p1 sget-object v1, Lio/sentry/SentryLevel;->DEBUG:Lio/sentry/SentryLevel; const-string v2, "Proguard UUID found: %s" filled-new-array {v0}, [Ljava/lang/Object; move-result-object v3 invoke-interface {p1, v1, v2, v3}, Lio/sentry/ILogger;->log(Lio/sentry/SentryLevel;Ljava/lang/String;[Ljava/lang/Object;)V .line 45 invoke-virtual {p0, v0}, Lio/sentry/SentryOptions;->setProguardUuid(Ljava/lang/String;)V :cond_1 return-void .end method .method public static applyToOptions(Lio/sentry/SentryOptions;Ljava/util/List;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lio/sentry/SentryOptions;", "Ljava/util/List<", "Ljava/util/Properties;", ">;)V" } .end annotation if-eqz p1, :cond_0 .line 17 invoke-static {p0, p1}, Lio/sentry/util/DebugMetaPropertiesApplier;->applyBundleIds(Lio/sentry/SentryOptions;Ljava/util/List;)V .line 18 invoke-static {p0, p1}, Lio/sentry/util/DebugMetaPropertiesApplier;->applyProguardUuid(Lio/sentry/SentryOptions;Ljava/util/List;)V :cond_0 return-void .end method .method public static getProguardUuid(Ljava/util/Properties;)Ljava/lang/String; .locals 1 const-string v0, "io.sentry.ProguardUuids" .line 53 invoke-virtual {p0, v0}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 return-object p0 .end method