Compare commits

..

3 Commits
0.0.3 ... 0.0.6

Author SHA1 Message Date
cpdl
ea82c50d79 修改 tostring导致异常 2024-12-06 11:13:48 +08:00
cpdl
70423d9756 测试 2024-12-05 15:38:58 +08:00
cpdl
a8942269b4 test 2024-11-18 13:05:40 +08:00
2 changed files with 20 additions and 2 deletions

View File

@@ -49,7 +49,25 @@ public class CommonUtil {
res.put("errMsg", errMsg);
}
Log.i("F-OpenIMSDK(native call flutter)", "thread: " + threadName + " { method:" + method + ", type:" + type + " }");
FlutterOpenimSdkPlugin.channel.invokeMethod(method, res);
FlutterOpenimSdkPlugin.channel.invokeMethod(method, res, new MethodChannel.Result() {
@Override
public void success(Object result) {
// 处理成功返回值
Log.i("F-OpenIMSDK(native call flutter)", "Method " + method + " returned: ");
}
@Override
public void error(String errorCode, String errorMessage, Object errorDetails) {
// 处理错误
Log.e("F-OpenIMSDK(native call flutter)", "Method " + method + " error: " + errorCode + ", " + errorMessage);
}
@Override
public void notImplemented() {
// 处理未实现的方法
Log.w("F-OpenIMSDK(native call flutter)", "Method " + method + " not implemented");
}
});
});
}

View File

@@ -19,7 +19,7 @@ A new Flutter project.
#s.ios.vendored_frameworks = 'frameworks/*.xcframework'
#s.vendored_frameworks = 'frameworks/*.xcframework'
s.dependency 'openim_sdk_core_ios','0.0.1'
s.dependency 'openim_sdk_core_ios','0.2.0'
s.static_framework = true
s.library = 'resolv'