Skip to content

Commit 46f1597

Browse files
authored
Make SentryClient constructor public (#4045)
* Make SentryClient constructor public * changelog * Mark internal
1 parent 02442c0 commit 46f1597

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Internal
6+
7+
- Make `SentryClient` constructor public ([#4045](https://github.com/getsentry/sentry-java/pull/4045))
8+
39
## 8.0.0-rc.4
410

511
### Features

sentry/api/sentry.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,6 +2484,7 @@ public final class io/sentry/SentryBaseEvent$Serializer {
24842484
}
24852485

24862486
public final class io/sentry/SentryClient : io/sentry/ISentryClient {
2487+
public fun <init> (Lio/sentry/SentryOptions;)V
24872488
public fun captureCheckIn (Lio/sentry/CheckIn;Lio/sentry/IScope;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId;
24882489
public fun captureEnvelope (Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId;
24892490
public fun captureEvent (Lio/sentry/SentryEvent;Lio/sentry/IScope;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId;

sentry/src/main/java/io/sentry/SentryClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public boolean isEnabled() {
4545
return enabled;
4646
}
4747

48-
SentryClient(final @NotNull SentryOptions options) {
48+
@ApiStatus.Internal
49+
public SentryClient(final @NotNull SentryOptions options) {
4950
this.options = Objects.requireNonNull(options, "SentryOptions is required.");
5051
this.enabled = true;
5152

0 commit comments

Comments
 (0)