package io.sentry.util; import io.sentry.SentryLevel; import io.sentry.SentryOptions; import java.util.Iterator; import java.util.List; import java.util.Properties; /* loaded from: classes3.dex */ public final class DebugMetaPropertiesApplier { public static String DEBUG_META_PROPERTIES_FILENAME = "sentry-debug-meta.properties"; public static void applyToOptions(SentryOptions sentryOptions, List list) { if (list != null) { applyBundleIds(sentryOptions, list); applyProguardUuid(sentryOptions, list); } } private static void applyBundleIds(SentryOptions sentryOptions, List list) { if (sentryOptions.getBundleIds().isEmpty()) { Iterator it = list.iterator(); while (it.hasNext()) { String property = it.next().getProperty("io.sentry.bundle-ids"); sentryOptions.getLogger().log(SentryLevel.DEBUG, "Bundle IDs found: %s", property); if (property != null) { for (String str : property.split(",", -1)) { sentryOptions.addBundleId(str); } } } } } private static void applyProguardUuid(SentryOptions sentryOptions, List list) { if (sentryOptions.getProguardUuid() == null) { Iterator it = list.iterator(); while (it.hasNext()) { String proguardUuid = getProguardUuid(it.next()); if (proguardUuid != null) { sentryOptions.getLogger().log(SentryLevel.DEBUG, "Proguard UUID found: %s", proguardUuid); sentryOptions.setProguardUuid(proguardUuid); return; } } } } public static String getProguardUuid(Properties properties) { return properties.getProperty("io.sentry.ProguardUuids"); } }