no message

This commit is contained in:
cpdl
2025-05-06 17:25:49 +08:00
parent 43515d8058
commit 67bf71c998
35 changed files with 4216 additions and 296 deletions

View File

@@ -14,6 +14,7 @@
#include <sstream>
#include "src/MethodCallHandlerImpl.h"
#include "src/common/stable.h"
#include "src/common/ThreadUtil.h"
class FlutterOpenimSdkPlugin : public flutter::Plugin {
@@ -68,6 +69,11 @@ void FlutterOpenimSdkPlugin::RegisterWithRegistrar(
NimCore::getInstance()->setLogDir(filePath);
// Initialize ThreadUtil to capture the platform thread ID
// This is called on the platform thread already, so it will initialize correctly
ThreadUtil::InitializePlatformThreadId();
YXLOG_API(Info) << "ThreadUtil initialized on platform thread" << YXLOGEnd;
auto plugin = std::make_unique<FlutterOpenimSdkPlugin>();
auto channel = plugin->m_channel->startListening(registrar);
channel->SetMethodCallHandler(