Skip to content

Commit a6f4f04

Browse files
authored
Merge 5fc8d3f into 9246ed4
2 parents 9246ed4 + 5fc8d3f commit a6f4f04

File tree

6 files changed

+29
-24
lines changed

6 files changed

+29
-24
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
- Add debouncing mechanism and before-capture callbacks for screenshots and view hierarchies ([#2773](https://github.com/getsentry/sentry-java/pull/2773))
88

9+
### Fixes
10+
11+
Breaking changes:
12+
- Move enableNdk from SentryOptions to SentryAndroidOptions ([#2793](https://github.com/getsentry/sentry-java/pull/2793))
13+
914
## 6.23.0
1015

1116
### Features

sentry-android-core/api/sentry-android-core.api

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public final class io/sentry/android/core/SentryAndroidOptions : io/sentry/Sentr
225225
public fun isEnableAppLifecycleBreadcrumbs ()Z
226226
public fun isEnableAutoActivityLifecycleTracing ()Z
227227
public fun isEnableFramesTracking ()Z
228+
public fun isEnableNdk ()Z
228229
public fun isEnableNetworkEventBreadcrumbs ()Z
229230
public fun isEnableRootCheck ()Z
230231
public fun isEnableSystemEventBreadcrumbs ()Z
@@ -243,6 +244,7 @@ public final class io/sentry/android/core/SentryAndroidOptions : io/sentry/Sentr
243244
public fun setEnableAppLifecycleBreadcrumbs (Z)V
244245
public fun setEnableAutoActivityLifecycleTracing (Z)V
245246
public fun setEnableFramesTracking (Z)V
247+
public fun setEnableNdk (Z)V
246248
public fun setEnableNetworkEventBreadcrumbs (Z)V
247249
public fun setEnableRootCheck (Z)V
248250
public fun setEnableSystemEventBreadcrumbs (Z)V

sentry-android-core/src/main/java/io/sentry/android/core/NdkIntegration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public final void register(final @NotNull IHub hub, final @NotNull SentryOptions
6868
}
6969
}
7070

71-
private void disableNdkIntegration(final @NotNull SentryOptions options) {
71+
private void disableNdkIntegration(final @NotNull SentryAndroidOptions options) {
7272
options.setEnableNdk(false);
7373
options.setEnableScopeSync(false);
7474
}

sentry-android-core/src/main/java/io/sentry/android/core/SentryAndroidOptions.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ public final class SentryAndroidOptions extends SentryOptions {
157157

158158
private @Nullable BeforeCaptureCallback beforeViewHierarchyCaptureCallback;
159159

160+
/** Turns NDK on or off. Default is enabled. */
161+
private boolean enableNdk = true;
162+
160163
public interface BeforeCaptureCallback {
161164

162165
/**
@@ -510,4 +513,22 @@ public void setBeforeViewHierarchyCaptureCallback(
510513
final @NotNull BeforeCaptureCallback beforeViewHierarchyCaptureCallback) {
511514
this.beforeViewHierarchyCaptureCallback = beforeViewHierarchyCaptureCallback;
512515
}
516+
517+
/**
518+
* Check if NDK is ON or OFF Default is ON
519+
*
520+
* @return true if ON or false otherwise
521+
*/
522+
public boolean isEnableNdk() {
523+
return enableNdk;
524+
}
525+
526+
/**
527+
* Sets NDK to ON or OFF
528+
*
529+
* @param enableNdk true if ON or false otherwise
530+
*/
531+
public void setEnableNdk(boolean enableNdk) {
532+
this.enableNdk = enableNdk;
533+
}
513534
}

sentry/api/sentry.api

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,6 @@ public class io/sentry/SentryOptions {
17181718
public fun isEnableAutoSessionTracking ()Z
17191719
public fun isEnableDeduplication ()Z
17201720
public fun isEnableExternalConfiguration ()Z
1721-
public fun isEnableNdk ()Z
17221721
public fun isEnableScopeSync ()Z
17231722
public fun isEnableShutdownHook ()Z
17241723
public fun isEnableTimeToFullDisplayTracing ()Z
@@ -1751,7 +1750,6 @@ public class io/sentry/SentryOptions {
17511750
public fun setEnableAutoSessionTracking (Z)V
17521751
public fun setEnableDeduplication (Z)V
17531752
public fun setEnableExternalConfiguration (Z)V
1754-
public fun setEnableNdk (Z)V
17551753
public fun setEnableScopeSync (Z)V
17561754
public fun setEnableShutdownHook (Z)V
17571755
public fun setEnableTimeToFullDisplayTracing (Z)V

sentry/src/main/java/io/sentry/SentryOptions.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ public class SentryOptions {
103103
*/
104104
private boolean debug;
105105

106-
/** Turns NDK on or off. Default is enabled. */
107-
private boolean enableNdk = true;
108-
109106
/** Logger interface to log useful debugging information if debug is enabled */
110107
private @NotNull ILogger logger = NoOpLogger.getInstance();
111108

@@ -589,24 +586,6 @@ public void setEnvelopeReader(final @Nullable IEnvelopeReader envelopeReader) {
589586
envelopeReader != null ? envelopeReader : NoOpEnvelopeReader.getInstance();
590587
}
591588

592-
/**
593-
* Check if NDK is ON or OFF Default is ON
594-
*
595-
* @return true if ON or false otherwise
596-
*/
597-
public boolean isEnableNdk() {
598-
return enableNdk;
599-
}
600-
601-
/**
602-
* Sets NDK to ON or OFF
603-
*
604-
* @param enableNdk true if ON or false otherwise
605-
*/
606-
public void setEnableNdk(boolean enableNdk) {
607-
this.enableNdk = enableNdk;
608-
}
609-
610589
/**
611590
* Returns the shutdown timeout in Millis
612591
*

0 commit comments

Comments
 (0)