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
12 changes: 7 additions & 5 deletions packages/flutter/lib/src/native/c/binding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class SentryNative {
: _lookup = lookup;

/// Decrements the reference count on the value.
void value_decref(
/// Returns 0 if the value was freed or is a primitive (no tracking needed),
/// or non-zero if it still has references.
int value_decref(
sentry_value_u value,
) {
return _value_decref(
Expand All @@ -32,10 +34,10 @@ class SentryNative {
}

late final _value_decrefPtr =
_lookup<ffi.NativeFunction<ffi.Void Function(sentry_value_u)>>(
_lookup<ffi.NativeFunction<ffi.Int Function(sentry_value_u)>>(
'sentry_value_decref');
late final _value_decref =
_value_decrefPtr.asFunction<void Function(sentry_value_u)>();
_value_decrefPtr.asFunction<int Function(sentry_value_u)>();

/// Creates a null value.
sentry_value_u value_new_null() {
Expand Down Expand Up @@ -306,7 +308,7 @@ class SentryNative {
late final _value_as_int32 =
_value_as_int32Ptr.asFunction<int Function(sentry_value_u)>();

/// Converts a value into a 64bit signed integer.
/// Converts a value into a 64-bit signed integer.
int value_as_int64(
sentry_value_u value,
) {
Expand All @@ -321,7 +323,7 @@ class SentryNative {
late final _value_as_int64 =
_value_as_int64Ptr.asFunction<int Function(sentry_value_u)>();

/// Converts a value into a 64bit unsigned integer.
/// Converts a value into a 64-bit unsigned integer.
int value_as_uint64(
sentry_value_u value,
) {
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/sentry-native/CMakeCache.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Basically, this is a properties file we use both in CMake and update-deps.yml to update dependencies.

repo=https://github.com/getsentry/sentry-native
version=0.14.2
version=0.15.1
Loading