Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Surface options to opt out of the Android NDK integration #1452

Merged
merged 5 commits into from
Sep 26, 2023

Conversation

bitsandfoxes
Copy link
Contributor

Relates to: getsentry/sentry-java#2955
Gives more granular control over the Android native support by allowing to disable the NDK integration.
Added an opt-out for scope sync while at it.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 26, 2023

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Surface options to opt out of the Android `NDK integration` ([#1452](https://github.com/getsentry/sentry-unity/pull/1452))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 4bf95db

Comment on lines +157 to +166
/// <summary>
/// Whether the SDK should add the NDK integration for Android
/// </summary>
public bool NdkIntegrationEnabled { get; set; } = true;

/// <summary>
/// Whether the SDK should sync the scope to the NDK layer for Android
/// </summary>
public bool NdkScopeSyncEnabled { get; set; } = true;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I use either or, or do they depend on each other?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NdkIntegrationEnabled completely disabled the NDK integration.
NdkScopeSyncEnabled enabled the scope sync if the NDK integration has been enabled.
The editor window reflects that:
image

@bitsandfoxes bitsandfoxes merged commit 0407855 into main Sep 26, 2023
@bitsandfoxes bitsandfoxes deleted the feat/ndk-control branch September 26, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants