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

请教一下Java如何调用Kotlin客户端的suspend函数? #1278

Closed
TyCoding opened this issue Jul 25, 2023 · 3 comments
Closed

请教一下Java如何调用Kotlin客户端的suspend函数? #1278

TyCoding opened this issue Jul 25, 2023 · 3 comments
Labels
invalid This doesn't seem right

Comments

@TyCoding
Copy link

看到项目中只有基于Kotlin的Client,但Java中貌似不能直接调用 Kotlin 的 suspend 函数

@JamesChenX JamesChenX added the question Further information is requested label Jul 25, 2023
@JamesChenX
Copy link
Member

We have no plan to support Java to use turms-client-kotlin for two reasons:

  1. Java is a really terrible language to write UI components, and Java on Android is fragmentary and has terrible support for async programming.
  2. Kotlin (just like Dart, and Swift) is the modern language for most UI-based applications.

So the suggestion here is: Please use Kotlin for your new applications.

@TyCoding
Copy link
Author

谢谢您的回答,但实际中我们的Java系统确实需要连接IM Server端接收或者推送消息,请问您一下,有比较优雅的写法吗?还是说我的Java系统必须重新实现一遍ImClient?

@JamesChenX
Copy link
Member

JamesChenX commented Jul 26, 2023

If you have to use Java for your client application, I can add a Java client SDK for you.
So what platforms do you need to support? (Android, Desktop, etc), and if you need to support Android, I will set the min supported Android SDK to 24 (Android 7.0) because it supports CompletableFuture without introducing other libs.

And I will try to deliver the SDK next month when I am available, but I am extremely busy recently, so I cannot make a promise.

@JamesChenX JamesChenX added feature and removed question Further information is requested labels Jul 26, 2023
@JamesChenX JamesChenX added this to the 1.0.0 milestone Jul 26, 2023
@JamesChenX JamesChenX removed this from the 1.0.0 milestone Aug 11, 2023
@JamesChenX JamesChenX added invalid This doesn't seem right and removed feature status:pending labels May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants