diff --git a/CHANGELOG.md b/CHANGELOG.md index 66f2693ab30..6807041b529 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Internal + +- Make `SentryClient` constructor public ([#4045](https://github.com/getsentry/sentry-java/pull/4045)) + ## 8.0.0-rc.4 ### Features diff --git a/sentry/api/sentry.api b/sentry/api/sentry.api index 5f4d618ad96..a0d559f12f5 100644 --- a/sentry/api/sentry.api +++ b/sentry/api/sentry.api @@ -2484,6 +2484,7 @@ public final class io/sentry/SentryBaseEvent$Serializer { } public final class io/sentry/SentryClient : io/sentry/ISentryClient { + public fun (Lio/sentry/SentryOptions;)V public fun captureCheckIn (Lio/sentry/CheckIn;Lio/sentry/IScope;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId; public fun captureEnvelope (Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId; public fun captureEvent (Lio/sentry/SentryEvent;Lio/sentry/IScope;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId; diff --git a/sentry/src/main/java/io/sentry/SentryClient.java b/sentry/src/main/java/io/sentry/SentryClient.java index b518c046c5e..1cfbf60313d 100644 --- a/sentry/src/main/java/io/sentry/SentryClient.java +++ b/sentry/src/main/java/io/sentry/SentryClient.java @@ -45,7 +45,8 @@ public boolean isEnabled() { return enabled; } - SentryClient(final @NotNull SentryOptions options) { + @ApiStatus.Internal + public SentryClient(final @NotNull SentryOptions options) { this.options = Objects.requireNonNull(options, "SentryOptions is required."); this.enabled = true;