mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
52 lines
1.9 KiB
Java
52 lines
1.9 KiB
Java
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<Properties> list) {
|
|
if (list != null) {
|
|
applyBundleIds(sentryOptions, list);
|
|
applyProguardUuid(sentryOptions, list);
|
|
}
|
|
}
|
|
|
|
private static void applyBundleIds(SentryOptions sentryOptions, List<Properties> list) {
|
|
if (sentryOptions.getBundleIds().isEmpty()) {
|
|
Iterator<Properties> 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<Properties> list) {
|
|
if (sentryOptions.getProguardUuid() == null) {
|
|
Iterator<Properties> 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");
|
|
}
|
|
}
|