Skip to content

Commit c296b28

Browse files
authored
Make DebugImagesLoader public (#2993)
* DebugImagesLoader is now public, to allow manually init the NDK
1 parent 0f88e95 commit c296b28

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- Make `DebugImagesLoader` public ([#2993](https://github.com/getsentry/sentry-java/pull/2993))
8+
59
### Fixes
610

711
- Set export flag on Android receivers on API 33+ ([#2990](https://github.com/getsentry/sentry-java/pull/2990))

sentry-android-ndk/api/sentry-android-ndk.api

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ public final class io/sentry/android/ndk/BuildConfig {
66
public fun <init> ()V
77
}
88

9+
public final class io/sentry/android/ndk/DebugImagesLoader : io/sentry/android/core/IDebugImagesLoader {
10+
public fun <init> (Lio/sentry/android/core/SentryAndroidOptions;Lio/sentry/android/ndk/NativeModuleListLoader;)V
11+
public fun clearDebugImages ()V
12+
public fun loadDebugImages ()Ljava/util/List;
13+
}
14+
915
public final class io/sentry/android/ndk/NdkScopeObserver : io/sentry/IScopeObserver {
1016
public fun <init> (Lio/sentry/SentryOptions;)V
1117
public fun addBreadcrumb (Lio/sentry/Breadcrumb;)V

sentry-android-ndk/src/main/java/io/sentry/android/ndk/DebugImagesLoader.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
import org.jetbrains.annotations.Nullable;
1313
import org.jetbrains.annotations.VisibleForTesting;
1414

15-
final class DebugImagesLoader implements IDebugImagesLoader {
15+
/**
16+
* Class used for loading the list of debug images from sentry-native. Using this class requires
17+
* manually initializing the SDK.
18+
*/
19+
public final class DebugImagesLoader implements IDebugImagesLoader {
1620

1721
private final @NotNull SentryOptions options;
1822

@@ -23,7 +27,7 @@ final class DebugImagesLoader implements IDebugImagesLoader {
2327
/** we need to lock it because it could be called from different threads */
2428
private static final @NotNull Object debugImagesLock = new Object();
2529

26-
DebugImagesLoader(
30+
public DebugImagesLoader(
2731
final @NotNull SentryAndroidOptions options,
2832
final @NotNull NativeModuleListLoader moduleListLoader) {
2933
this.options = Objects.requireNonNull(options, "The SentryAndroidOptions is required.");

0 commit comments

Comments
 (0)