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

[Question] Support for Android #29

Open
vellrya opened this issue Mar 21, 2021 · 11 comments
Open

[Question] Support for Android #29

vellrya opened this issue Mar 21, 2021 · 11 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@vellrya
Copy link

vellrya commented Mar 21, 2021

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)

@cavallium
Copy link
Member

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.

@cavallium cavallium added enhancement New feature or request help wanted Extra attention is needed labels Mar 21, 2021
@vellrya
Copy link
Author

vellrya commented Mar 21, 2021

But its possible (example with not optimized tdlib): https://github.com/osmandapp/OsmAnd/tree/master/OsmAnd-telegram

@cavallium
Copy link
Member

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.

@cavallium
Copy link
Member

By the way, the optimized variant is mainly for bots, if you are making a GUI client you should use the non-optimized variant.

@vellrya
Copy link
Author

vellrya commented Mar 21, 2021

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.

@ErrorxCode
Copy link

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.

@cavallium
Copy link
Member

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

@passerbyo
Copy link

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

@cavallium cavallium mentioned this issue Sep 12, 2023
@tretdm
Copy link

tretdm commented Mar 3, 2024

SCR_20240303_101027

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.

@cavallium
Copy link
Member

SCR_20240303_101027

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.

@andrew-ld
Copy link
Member

@tretdm you can try core library desugaring https://developer.android.com/studio/write/java8-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants