tdlight-java
tdlight-java copied to clipboard
[Question] Support for Android
Hello, thank you for your fantastic work!
I searched carefully for any information in your git repository, but did not find an answer to the question, can tdlight be used on Android? If not, maybe I can use wrapper with the official library?
I have not worked with native libraries before, thanks in advance for the clarification)
Unfortunately this wrapper is not made for Android because I don't know the limitations/peculiarities of the Android runtime.
Also, it seems that tdlib itself is very difficult to build for Android, so I can't compile the natives for Android.
But its possible (example with not optimized tdlib): https://github.com/osmandapp/OsmAnd/tree/master/OsmAnd-telegram
It's possible but I don't have the time and the necessary skills to add Android support to tdlight-java.
I'm leaving this issue open, if someone wants to make a pull request with this feature in the future I'll appreciate.
By the way, the optimized variant is mainly for bots, if you are making a GUI client you should use the non-optimized variant.
I think I cannot create something better then official client :)
I need to use only small part of telegram client api such as file/media download as part of my app (I don't even need messages), thats why I think optimized library should be good for this purpose.
It's possible but I don't have the time and the necessary skills to add Android support to tdlight-java.
I'm leaving this issue open, if someone wants to make a pull request with this feature in the future I'll appreciate.
I can help you. I am an android developer and had great experience in building android libraries. But, I need a reference guide for using this lib.
I can help you. I am an android developer and had great experience in building android libraries. But, I need a reference guide for using this lib.
https://github.com/tdlight-team/tdlight-java/tree/master/example
It's possible but I don't have the time and the necessary skills to add Android support to tdlight-java. I'm leaving this issue open, if someone wants to make a pull request with this feature in the future I'll appreciate.
I can help you. I am an android developer and had great experience in building android libraries. But, I need a reference guide for using this lib.
how about
In addition to Android support, it is also necessary to resolve the issue of compatibility with some methods that use classes that are only available in Android O and above.
For example, java.nio.file.Path
.
In addition to Android support, it is also necessary to resolve the issue of compatibility with some methods that use classes that are only available in Android O and above.
For example,
java.nio.file.Path
.
java Path has existed for 13 years, I will not use the 1996 alternative because Android refused to support basic java APIs until Android O. However, Android O has been around since 2017, so I'd say it's more than enough to support the 6 most recent versions.
@tretdm you can try core library desugaring https://developer.android.com/studio/write/java8-support