Skip to content

Commit 8b7b282

Browse files
authored
Merge branch 'main' into dennykim/remove-outdated-ios-reachability
2 parents fb436a8 + 1fbb7df commit 8b7b282

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

lib/android_build/maesdk/src/main/cpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ target_include_directories(${TARGETNAME} PUBLIC
160160
${SDK_ROOT}/sqlite
161161
${SDK_ROOT}lib/pal
162162
${SDK_ROOT}
163+
${SDK_ROOT}/lib/modules/sanitizer/detectors
164+
${SDK_ROOT}/lib/modules/sanitizer
163165
${CURL_INCLUDE_DIRS})
164166

165167

lib/jni/SanitizerHelper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace MAT_NS_BEGIN
1010
{
11-
struct Sanitizer {
11+
struct SanitizerHelper {
1212
/**
1313
* Get the current instance of Sanitizer.
1414
* @return SanitizerPtr if it is initialized, nullptr otherwise.

lib/jni/Sanitizer_jni.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// SPDX-License-Identifier: Apache-2.0
44
//
55

6-
#include "ctmacros.hpp"
76
#include "JniConvertors.hpp"
87
#include "modules/sanitizer/Sanitizer.hpp"
98
#include "SanitizerHelper.hpp"
@@ -38,10 +37,10 @@ Java_com_microsoft_applications_events_Sanitizer_nativeInitialize(
3837
SanitizerConfiguration sanitizerConfig(reinterpret_cast<ILogger*>(iLoggerNativePtr));
3938

4039
if (notificationEventName != nullptr) {
41-
config.NotificationEventName = JStringToStdString(env, notificationEventName).c_str();
40+
sanitizerConfig.NotificationEventName = JStringToStdString(env, notificationEventName).c_str();
4241
}
4342

44-
spSanitizer = std::make_shared<Sanitizer>(config);
43+
spSanitizer = std::make_shared<Sanitizer>(sanitizerConfig);
4544
return true;
4645
}
4746

@@ -74,10 +73,10 @@ extern "C"
7473
JNIEXPORT jboolean JNICALL
7574
Java_com_microsoft_applications_events_Sanitizer_setEnabled(JNIEnv *env, jclass clazz,
7675
jboolean enabled) {
77-
if (spDataInspector == nullptr) {
76+
if (spSanitizer == nullptr) {
7877
return false;
7978
}
8079

81-
spDataInspector->SetEnabled(static_cast<bool>(enabled));
80+
spSanitizer->SetEnabled(static_cast<bool>(enabled));
8281
return true;
8382
}

lib/modules

0 commit comments

Comments
 (0)