Skip to content

Commit

Permalink
chore(deps): update Native SDK to v0.7.19 (#4076)
Browse files Browse the repository at this point in the history
* chore: update scripts/update-sentry-native-ndk.sh to 0.7.19

* chore: update scripts/update-sentry-native-ndk.sh to 0.7.19

* Propagate NDK handler strategy to Ndk Options

* Fix Changelog

---------

Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Markus Hintersteiner <markus.hintersteiner@sentry.io>
Co-authored-by: Alexander Dinauer <adinauer@users.noreply.github.com>
  • Loading branch information
4 people authored Jan 30, 2025
1 parent b68011a commit a9719c7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
### Dependencies

- Bump Spring Boot to `3.4.2` ([#4081](https://github.com/getsentry/sentry-java/pull/4081))
- Bump Native SDK from v0.7.14 to v0.7.19 ([#4076](https://github.com/getsentry/sentry-java/pull/4076))
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0719)
- [diff](https://github.com/getsentry/sentry-native/compare/v0.7.14...0.7.19)

## 8.0.0

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ object Config {

val apolloKotlin = "com.apollographql.apollo3:apollo-runtime:3.8.2"

val sentryNativeNdk = "io.sentry:sentry-native-ndk:0.7.14"
val sentryNativeNdk = "io.sentry:sentry-native-ndk:0.7.19"

object OpenTelemetry {
val otelVersion = "1.44.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.sentry.android.ndk;

import io.sentry.android.core.NdkHandlerStrategy;
import io.sentry.android.core.SentryAndroidOptions;
import io.sentry.ndk.NativeModuleListLoader;
import io.sentry.ndk.NdkOptions;
Expand Down Expand Up @@ -54,6 +55,16 @@ public static void init(@NotNull final SentryAndroidOptions options) {
options.getMaxBreadcrumbs(),
options.getNativeSdkName());

final int handlerStrategy = options.getNdkHandlerStrategy();
if (handlerStrategy == NdkHandlerStrategy.SENTRY_HANDLER_STRATEGY_DEFAULT.getValue()) {
ndkOptions.setNdkHandlerStrategy(
io.sentry.ndk.NdkHandlerStrategy.SENTRY_HANDLER_STRATEGY_DEFAULT);
} else if (handlerStrategy
== NdkHandlerStrategy.SENTRY_HANDLER_STRATEGY_CHAIN_AT_START.getValue()) {
ndkOptions.setNdkHandlerStrategy(
io.sentry.ndk.NdkHandlerStrategy.SENTRY_HANDLER_STRATEGY_CHAIN_AT_START);
}

//noinspection UnstableApiUsage
io.sentry.ndk.SentryNdk.init(ndkOptions);

Expand Down

0 comments on commit a9719c7

Please sign in to comment.