Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Unreleased

### Dependencies

- Bump Native SDK from v0.16.6 to v0.17.0 ([#2862](https://github.com/getsentry/sentry-unity/pull/2862))
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0170)
- [diff](https://github.com/getsentry/sentry-native/compare/0.16.6...0.17.0)

## 4.10.2

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion modules/sentry-native
Submodule sentry-native updated 94 files
+1 −1 .clang-format
+2 −2 .codechecker-suppress
+2 −2 .github/workflows/ci.yml
+4 −4 .github/workflows/codeql.yml
+4 −0 .github/workflows/release.yml
+57 −0 CHANGELOG.md
+2 −0 CONTRIBUTING.md
+128 −84 examples/example.c
+1 −1 external/crashpad
+195 −147 include/sentry.h
+48 −42 ndk/build.gradle.kts
+8 −1 ndk/gradle.properties
+ − ndk/gradle/wrapper/gradle-wrapper.jar
+3 −1 ndk/gradle/wrapper/gradle-wrapper.properties
+9 −10 ndk/gradlew
+24 −34 ndk/gradlew.bat
+0 −2 ndk/lib/api/sentry-native-ndk.api
+41 −28 ndk/lib/build.gradle.kts
+0 −9 ndk/lib/src/main/java/io/sentry/ndk/NdkOptions.java
+9 −11 ndk/lib/src/main/jni/sentry.c
+2 −5 ndk/sample/build.gradle.kts
+2 −1 ndk/settings.gradle
+107 −155 src/backends/native/sentry_crash_daemon.c
+36 −19 src/backends/sentry_backend_breakpad.cpp
+233 −113 src/backends/sentry_backend_crashpad.cpp
+29 −14 src/backends/sentry_backend_inproc.c
+129 −131 src/backends/sentry_backend_native.c
+44 −25 src/integrations/sentry_integration_wer.c
+31 −0 src/path/sentry_path.c
+1 −1 src/sentry_app_hang_monitor.c
+601 −240 src/sentry_attachment.c
+84 −73 src/sentry_attachment.h
+0 −2 src/sentry_backend.h
+210 −229 src/sentry_core.c
+34 −10 src/sentry_core.h
+31 −22 src/sentry_database.c
+9 −2 src/sentry_database.h
+101 −36 src/sentry_envelope.c
+8 −2 src/sentry_envelope.h
+118 −32 src/sentry_hint.c
+29 −1 src/sentry_hint.h
+80 −83 src/sentry_logs.c
+36 −40 src/sentry_metrics.c
+22 −0 src/sentry_mpack.h
+26 −49 src/sentry_options.c
+4 −3 src/sentry_options.h
+6 −0 src/sentry_path.h
+34 −10 src/sentry_ratelimiter.c
+4 −0 src/sentry_ratelimiter.h
+1,491 −434 src/sentry_scope.c
+125 −72 src/sentry_scope.h
+14 −3 src/sentry_session.c
+208 −0 src/sentry_sync.h
+2 −15 src/sentry_telemetry.c
+12 −62 src/sentry_tracing.c
+2 −2 src/sentry_tracing.h
+9 −24 src/sentry_value.c
+6 −0 src/sentry_value.h
+1 −24 src/session_replay/sentry_session_replay.c
+2 −2 src/transports/sentry_http_transport.c
+1 −1 tests/__init__.py
+22 −5 tests/assertions.py
+62 −4 tests/benchmark.py
+4 −0 tests/benchmark/CMakeLists.txt
+29 −0 tests/benchmark/benchmark_breadcrumbs.cpp
+35 −0 tests/benchmark/benchmark_contexts.cpp
+13 −4 tests/benchmark/benchmark_logs.cpp
+65 −0 tests/benchmark/benchmark_metrics.cpp
+171 −30 tests/benchmark/benchmark_scope.cpp
+33 −0 tests/benchmark/benchmark_tags.cpp
+2 −1 tests/fixtures/inproc_stress/concurrent_crash.c
+6 −4 tests/fixtures/inproc_stress/main.c
+6 −3 tests/fixtures/stack_usage/stack_usage.c
+15 −2 tests/test_integration_client_reports.py
+65 −4 tests/test_integration_crashpad.py
+4 −0 tests/test_integration_http.py
+95 −12 tests/test_integration_native.py
+29 −16 tests/test_integration_stdout.py
+7 −0 tests/test_integration_wer.py
+2 −2 tests/unit/test_app_hang.c
+370 −96 tests/unit/test_attachments.c
+217 −7 tests/unit/test_basic.c
+127 −4 tests/unit/test_concurrency.c
+256 −17 tests/unit/test_envelopes.c
+20 −19 tests/unit/test_feedback.c
+5 −4 tests/unit/test_logs.c
+164 −0 tests/unit/test_options.c
+10 −0 tests/unit/test_path.c
+38 −0 tests/unit/test_ratelimiter.c
+502 −162 tests/unit/test_scope.c
+257 −0 tests/unit/test_sync.c
+67 −29 tests/unit/test_tracing.c
+20 −0 tests/unit/test_value.c
+24 −0 tests/unit/tests.inc
17 changes: 0 additions & 17 deletions package-dev/Plugins/Switch/SentryStub~/sentry_native_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,6 @@ void sentry_options_set_attach_screenshot(void* options, int attach)
(void)attach;
}

void sentry_options_set_enable_metrics(void* options, int enable_metrics)
{
(void)options;
(void)enable_metrics;
}

void sentry_options_set_enable_logs(void* options, int enable_logs)
{
(void)options;
(void)enable_logs;
}

void sentry_options_set_shutdown_timeout(void* options, uint64_t shutdown_timeout)
{
(void)options;
Expand Down Expand Up @@ -343,11 +331,6 @@ int sentry_get_crashed_last_run(void)
return 0;
}

int sentry_clear_crashed_last_run(void)
{
return 0;
}

int sentry_reinstall_backend(void)
{
/* Success, matching sentry-native's `int sentry_reinstall_backend(void)` */
Expand Down
13 changes: 1 addition & 12 deletions src/Sentry.Unity.Native/SentryNativeBridge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ is RuntimePlatform.WindowsPlayer or RuntimePlatform.WindowsServer
Logger?.LogDebug("Setting ShutdownTimeout: {0}ms", shutdownTimeoutMs);
sentry_options_set_shutdown_timeout(cOptions, shutdownTimeoutMs);

Logger?.LogDebug("Setting EnableLogs: {0}", options.EnableLogs);
sentry_options_set_enable_logs(cOptions, options.EnableLogs ? 1 : 0);

if (options.UnityInfo.IL2CPP)
{
Logger?.LogDebug("Setting the native logger");
Expand All @@ -134,12 +131,10 @@ is RuntimePlatform.WindowsPlayer or RuntimePlatform.WindowsServer

public static void Close() => sentry_close();

// Call after native init() to check if the application has crashed in the previous run and clear the status.
// Because the file is removed, the result will change on subsequent calls so it must be cached for the current runtime.
// Call after native init(), which reads and clears the persisted crash marker.
internal static bool HandleCrashedLastRun(SentryUnityOptions options)
{
var result = sentry_get_crashed_last_run() == 1;
sentry_clear_crashed_last_run();
return result;
}

Expand Down Expand Up @@ -197,9 +192,6 @@ internal static string GetDatabasePath(SentryUnityOptions options, IApplication?
[DllImport(SentryLib)]
private static extern void sentry_options_set_shutdown_timeout(IntPtr options, ulong shutdown_timeout);

[DllImport(SentryLib)]
private static extern void sentry_options_set_enable_logs(IntPtr options, int enable_logs);

[DllImport(SentryLib)]
private static extern void sentry_options_set_enable_app_hang_tracking(IntPtr options, int enabled);

Expand Down Expand Up @@ -368,9 +360,6 @@ private static void WithMarshalledStruct<T>(T structure, Action<IntPtr> action)
[DllImport(SentryLib)]
private static extern int sentry_get_crashed_last_run();

[DllImport(SentryLib)]
private static extern int sentry_clear_crashed_last_run();

[DllImport(SentryLib)]
private static extern void sentry_reinstall_backend();

Expand Down
Loading