no message
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user