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

Release/v6.6.0 #2042

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
baadae6
feat(correlation): added the trace correlation property to the Event …
lemnik Apr 25, 2024
187e954
Merge pull request #2023 from bugsnag/PLAT-12049/correlation-event-model
lemnik Apr 29, 2024
b00e1b8
Merge pull request #2029 from bugsnag/master
lemnik May 16, 2024
084df8b
Add Android 14 tests
twometresteve May 15, 2024
950d5a2
Merge branch 'next' into tms/android-14
twometresteve May 18, 2024
c61bd2b
Merge pull request #2032 from bugsnag/tms/android-14
twometresteve May 21, 2024
df65b5f
refactor(ndk): added BSG_KSJSONCodec to the NDK plugin
lemnik May 1, 2024
6c59e8f
refactor(ndk): add simplified ISO 8601 time formatting to BSG_KSCrash…
lemnik May 2, 2024
7681abf
refactor(ndk): rewrote the event_writer.c to output JSON instead of a…
lemnik May 2, 2024
481b0de
refactor(ndk): removed old binary-dump event logic & added a new test…
lemnik May 9, 2024
6d74432
fix(ndk): fixed a bug where the breadcrumb metadata was double-nested
lemnik May 9, 2024
6f06a86
fix(ndk): moved the NDK JSON payloads back to their own directory so …
lemnik May 9, 2024
a1882f6
fix(ndk): BugsnagEventMapper now handles date formats in the "t{epoch…
lemnik May 13, 2024
dd2f56a
fix(ndk): added thread.type to ndk events, and removed invalid / paus…
lemnik May 13, 2024
09751aa
fix(ndk): fixed NDK thread writing behaviour
lemnik May 13, 2024
ece1825
fix(ndk): added the static usage metrics data to the native events
lemnik May 14, 2024
0abb887
test(ndk): added a basic ReportDiscardScanner test
lemnik May 15, 2024
6c17539
refactor(ndk event): replaced STRING_**_EMPTY macros with inline func…
lemnik May 21, 2024
74b6001
refactor(ndk event): copy the entire event_path instead of relying on…
lemnik May 21, 2024
3161e39
refactor(ndk event): NaN & Inf values are encoded to JSON as 'null'
lemnik May 22, 2024
308c95f
Merge pull request #2027 from bugsnag/PLAT-12009/json-event
lemnik May 22, 2024
6c29641
Update AGP and related versions for mazerunner (#2030)
YYChen01988 May 22, 2024
9f62d7a
fix(Session Tracker) fixed logic of discarding session (#2033)
YYChen01988 May 24, 2024
5bc8d99
fix(errorCallback) separating throw exception out (#2036)
YYChen01988 May 31, 2024
2201a50
refactor(ndk event): iterate directly over metadata elements in NDK i…
lemnik May 30, 2024
9a6104c
test(ndk): fixed event_serialization.json to align with the expected …
lemnik May 30, 2024
af3f5bc
test(ndk): manually cause a stack-overflow in CXXStackoverflowScenari…
lemnik May 30, 2024
2cce055
Merge pull request #2035 from bugsnag/PLAT-12075/ndk-metadata-iterator
lemnik Jun 4, 2024
d5ac07d
Reinstate instrumentation tests using MacOS test boxes as a platform …
Cawllec Jun 6, 2024
843bdb7
Merge branch 'next' into integration/error-correlation
lemnik Jun 12, 2024
5040101
feat(native): support kernels running with a 16kB page size
lemnik Jun 13, 2024
341930e
feat(event correlation): changed the casing of the `traceid`->`traceI…
lemnik Jun 13, 2024
e87cc38
Merge pull request #2040 from bugsnag/PLAT-12268/16kb-page-support
lemnik Jun 13, 2024
e7eaf36
Merge branch 'next' into integration/error-correlation
lemnik Jun 13, 2024
1f49c06
chore(changelog): fixed the CHANGELOG entry for PR#2040
lemnik Jun 13, 2024
02dfd6e
Merge pull request #2038 from bugsnag/integration/error-correlation
lemnik Jun 13, 2024
e8d6bdc
release/v6.6.0
YYChen01988 Jun 19, 2024
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## TBD

### Enhancements

* Support for Android Kernels with a 16kB page size
[]()

### Bug fixes

* Corrected the behavior when `Bugsnag.startSession` is called when `config.autoTrackSessions=true`, the first automatic session will now be correctly discarded
Expand Down
24 changes: 14 additions & 10 deletions bugsnag-android-core/src/main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
set(BUGSNAG_VERSION 1.0.1)
add_library( # Specifies the name of the library.
bugsnag-root-detection
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
jni/root_detection.c
)
bugsnag-root-detection
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
jni/root_detection.c
)

include_directories(jni)

set_target_properties(bugsnag-root-detection
PROPERTIES
COMPILE_OPTIONS
-Werror -Wall -pedantic)
set(EXTRA_LINK_FLAGS "-Wl,-z,max-page-size=16384")

set_target_properties(
bugsnag-root-detection
PROPERTIES
COMPILE_OPTIONS -Werror -Wall -pedantic
LINK_FLAGS "${EXTRA_LINK_FLAGS}"
)
36 changes: 20 additions & 16 deletions bugsnag-plugin-android-anr/src/main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
set(BUGSNAG_VERSION 1.0.1)
add_library( # Specifies the name of the library.
bugsnag-plugin-android-anr
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
jni/anr_google.c
jni/anr_handler.c
jni/bugsnag_anr.c
jni/utils/string.c
)
bugsnag-plugin-android-anr
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
jni/anr_google.c
jni/anr_handler.c
jni/bugsnag_anr.c
jni/utils/string.c
)

include_directories(jni)

set(EXTRA_LINK_FLAGS "-Wl,-z,max-page-size=16384")

target_link_libraries( # Specifies the target library.
bugsnag-plugin-android-anr
# Links the log library to the target library.
log)
bugsnag-plugin-android-anr
# Links the log library to the target library.
log)

set_target_properties(bugsnag-plugin-android-anr
PROPERTIES
COMPILE_OPTIONS
-Werror -Wall -pedantic)
set_target_properties(
bugsnag-plugin-android-anr
PROPERTIES
COMPILE_OPTIONS -Werror -Wall -pedantic
LINK_FLAGS "${EXTRA_LINK_FLAGS}"
)
90 changes: 47 additions & 43 deletions bugsnag-plugin-android-ndk/src/main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,58 +1,62 @@
set(BUGSNAG_VERSION 1.0.1)
add_library( # Specifies the name of the library.
bugsnag-ndk

# Sets the library as a shared library.
SHARED

# Provides a relative path to your source file(s).
jni/bugsnag_ndk.c
jni/bugsnag.c
jni/metadata.c
jni/safejni.c
jni/jni_cache.c
jni/event.c
jni/featureflags.c
jni/internal_metrics.c
jni/handlers/signal_handler.c
jni/handlers/cpp_handler.cpp
jni/utils/crash_info.c
jni/utils/serializer/buffered_writer.c
jni/utils/serializer/event_writer.c
jni/utils/serializer/BSG_KSJSONCodec.c
jni/utils/serializer/BSG_KSCrashStringConversion.c
jni/utils/stack_unwinder.cpp
jni/utils/seqlock.c
jni/utils/serializer.c
jni/utils/string.c
jni/utils/threads.c
jni/utils/memory.c
jni/deps/parson/parson.c
bugsnag-ndk

# Sets the library as a shared library.
SHARED

# Provides a relative path to your source file(s).
jni/bugsnag_ndk.c
jni/bugsnag.c
jni/metadata.c
jni/safejni.c
jni/jni_cache.c
jni/event.c
jni/featureflags.c
jni/internal_metrics.c
jni/handlers/signal_handler.c
jni/handlers/cpp_handler.cpp
jni/utils/crash_info.c
jni/utils/serializer/buffered_writer.c
jni/utils/serializer/event_writer.c
jni/utils/serializer/BSG_KSJSONCodec.c
jni/utils/serializer/BSG_KSCrashStringConversion.c
jni/utils/stack_unwinder.cpp
jni/utils/seqlock.c
jni/utils/serializer.c
jni/utils/string.c
jni/utils/threads.c
jni/utils/memory.c
jni/deps/parson/parson.c
)

include_directories(
jni
jni/deps
jni/external/libunwindstack-ndk/include
jni
jni/deps
jni/external/libunwindstack-ndk/include
)

target_include_directories(bugsnag-ndk PRIVATE ${BUGSNAG_DIR}/assets/include)

target_link_libraries( # Specifies the target library.
bugsnag-ndk
# Links the log library to the target library.
log)
target_link_libraries(
# Specifies the target library.
bugsnag-ndk
# Links the log library to the target library.
log
)

# Avoid exporting symbols in release mode to keep internals private
# More symbols are exported in debug mode for the sake of unit testing
set(EXTRA_LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/exported_native_symbols-${CMAKE_BUILD_TYPE}.txt")

set_target_properties(bugsnag-ndk
PROPERTIES
COMPILE_OPTIONS -Werror -Wall -pedantic
LINK_FLAGS "${EXTRA_LINK_FLAGS}"
CXX_STANDARD 17
CXX_STANDARD_REQUIRED YES)
set(EXTRA_LINK_FLAGS "-Wl,-z,max-page-size=16384,--version-script=${CMAKE_CURRENT_LIST_DIR}/exported_native_symbols-${CMAKE_BUILD_TYPE}.txt")

set_target_properties(
bugsnag-ndk
PROPERTIES
COMPILE_OPTIONS -Werror -Wall -pedantic
LINK_FLAGS "${EXTRA_LINK_FLAGS}"
CXX_STANDARD 17
CXX_STANDARD_REQUIRED YES
)

add_subdirectory(jni/external/libunwindstack-ndk/cmake)
target_link_libraries(bugsnag-ndk unwindstack)
9 changes: 9 additions & 0 deletions examples/sdk-app-example/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@ find_package(bugsnag-plugin-android-ndk REQUIRED CONFIG)
add_library(entrypoint SHARED
src/main/cpp/entrypoint.cpp)

set(EXTRA_LINK_FLAGS "-Wl,-z,max-page-size=16384")

target_include_directories(entrypoint PRIVATE ${BUGSNAG_INCLUDE_DIR})
target_link_libraries(entrypoint bugsnag-plugin-android-ndk::bugsnag-ndk)

set_target_properties(
entrypoint
PROPERTIES
COMPILE_OPTIONS -Werror -Wall -pedantic
LINK_FLAGS "${EXTRA_LINK_FLAGS}"
)
4 changes: 2 additions & 2 deletions scripts/run-cpp-check.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cppcheck --error-exitcode=2 --enable=warning,performance bugsnag-plugin-android-anr/src/main/jni && \
cppcheck --error-exitcode=2 --enable=warning,performance bugsnag-plugin-android-ndk/src/main/jni -i bugsnag-plugin-android-ndk/src/main/jni/deps -i bugsnag-plugin-android-ndk/src/main/jni/external
cppcheck --error-exitcode=2 --enable=warning,performance --check-level=exhaustive bugsnag-plugin-android-anr/src/main/jni && \
cppcheck --error-exitcode=2 --enable=warning,performance --check-level=exhaustive bugsnag-plugin-android-ndk/src/main/jni -i bugsnag-plugin-android-ndk/src/main/jni/deps -i bugsnag-plugin-android-ndk/src/main/jni/external
Loading