Skip to content

Commit ced0387

Browse files
author
Krystof Woldrich
committed
feat(debugmeta): Add getProguardUuid
1 parent 8838e01 commit ced0387

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- (Internal) Extract Android Profiler and Measurements for Hybrid SDKs ([#3016](https://github.com/getsentry/sentry-java/pull/3016))
88
- (Internal) Remove SentryOptions dependency from AndroidProfiler ([#3051](https://github.com/getsentry/sentry-java/pull/3051))
99
- (Internal) Add `readBytesFromFile` for use in Hybrid SDKs ([#3052](https://github.com/getsentry/sentry-java/pull/3052))
10+
- (Internal) Add `getProguardUuid` for use in Hybrid SDKs ([#3054](https://github.com/getsentry/sentry-java/pull/3054))
1011

1112
### Fixes
1213

sentry/api/sentry.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4365,6 +4365,7 @@ public final class io/sentry/util/DebugMetaPropertiesApplier {
43654365
public static field DEBUG_META_PROPERTIES_FILENAME Ljava/lang/String;
43664366
public fun <init> ()V
43674367
public static fun applyToOptions (Lio/sentry/SentryOptions;Ljava/util/Properties;)V
4368+
public static fun getProguardUuid (Ljava/util/Properties;)Ljava/lang/String;
43684369
}
43694370

43704371
public final class io/sentry/util/ExceptionUtils {

sentry/src/main/java/io/sentry/util/DebugMetaPropertiesApplier.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ private static void applyBundleIds(
3636
private static void applyProguardUuid(
3737
final @NotNull SentryOptions options, final @NotNull Properties debugMetaProperties) {
3838
if (options.getProguardUuid() == null) {
39-
final @Nullable String proguardUuid =
40-
debugMetaProperties.getProperty("io.sentry.ProguardUuids");
39+
final @Nullable String proguardUuid = getProguardUuid(debugMetaProperties);
4140
options.getLogger().log(SentryLevel.DEBUG, "Proguard UUID found: %s", proguardUuid);
4241
options.setProguardUuid(proguardUuid);
4342
}
4443
}
44+
45+
public static @Nullable String getProguardUuid(final @NotNull Properties debugMetaProperties) {
46+
return debugMetaProperties.getProperty("io.sentry.ProguardUuids");
47+
}
4548
}

0 commit comments

Comments
 (0)