Telegram-X icon indicating copy to clipboard operation
Telegram-X copied to clipboard

Provide an ability to build FOSS-friendly variant

Open vkryl opened this issue 3 years ago • 6 comments

Telegram X should officially support building FOSS-friendly build type that doesn't rely on any closed-source software. This issue will include a (most likely incomplete) list of things needed to support building and thoughts on how it might be implemented.

  • setup.sh has to accept some argument (e.g. --foss) and pass it through to any other descendant script like build_ffmpeg_impl.sh to make sure that all FOSS-unfriendly software is excluded and some app.foss=true is set inside local.properties file for later use in build scripts
  • Conditionally exclude any FOSS-unfriendly dependencies inside app's build.gradle.kts and set a BuildConfig variable to be able to use it at runtime (e.g. for displaying some indicator that FOSS edition of Telegram X is used)
  • Do some FOSS-friendly map implementation that extends from MapController.java (e.g. OpenStreetMap)
  • Notifications currently heavily rely on Firebase. FOSS edition could display a foreground notification with the current connection status with Telegram servers and force application to be always connected (this foreground notification should be included in the main build too, as it could be useful in non-FOSS builds in cases when Firebase is unavailable).
  • Location-related code should be reworked and abstracted from working with specific API (currently Telegram X uses Google Location Services API for a beautiful pop-up that allows enabling location without needing to go to system settings)

Once FOSS-friendly builds will be supported by Telegram X, they will be included and published by Publisher to provide all verification benefits the default build provides.

vkryl avatar May 26 '22 11:05 vkryl

Maybe it's also worth to add F-Droid support or create own F-Droid compatible repository?

JuniorJPDJ avatar Jul 04 '22 15:07 JuniorJPDJ

Maybe it's also worth to add F-Droid support or create own F-Droid compatible repository?

I am not familiar with its exact specifications, but, AFAIK, in order to create it all components of the app must be open source, therefore Telegram X doesn't meet this criteria until it will be possible to build FOSS-friendly variant by passing some arguments to setup.sh or local.properties which would exclude any closed-source components (such as Google Play Services).

Note that this issue doesn't have assignee — meaning that currently nobody is working on it and it is PR-welcome.

vkryl avatar Jul 04 '22 16:07 vkryl

welcome my dear join powermining.uk treading investment company registered now you will receive free $50 dollars send messages to admin now and start earning @POWERMININ_GANGELAGE thanks me later take care 🥰

On Mon, 4 Jul 2022, 17:04 Vyacheslav, @.***> wrote:

Maybe it's also worth to add F-Droid support or create own F-Droid compatible repository?

I am not familiar with its exact specifications, but, AFAIK, in order to create it all components of the app must be open source, therefore Telegram X doesn't meet this criteria until it will be possible to build FOSS-friendly variant by passing some arguments to setup.sh or local.properties which would exclude any closed-source components (such as Google Play Services).

Note that this issue doesn't have assignee — meaning that currently nobody is working on it and it is PR-welcome.

— Reply to this email directly, view it on GitHub https://github.com/TGX-Android/Telegram-X/issues/145#issuecomment-1173968760, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ3KRS3SUGIT5AKM5RESP6TVSMDRTANCNFSM5XA3REDA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Minegoldfx1 avatar Jul 07 '22 22:07 Minegoldfx1

It would be great to see this Android app on F-Droid!

F-Droid is an Android app store specifically for free/libre open-source apps. It would be great if your app could be released there, as it is the number one for getting FLOSS Android apps for many people. F-Droid also builds all apps from source (optionally even reproducible), so downloads from there can be trusted.

The app developer FAQ or the quick start guide may help you to get started.

BTW a release on F-Droid could also bring some (more) popularity (in case that is intended), as it will show up in the app (new apps are featured there).

rugk avatar Jan 13 '23 18:01 rugk

Also because installed from play store this application is forced to censor some groups / channels / content.

MartinX3 avatar Jan 13 '23 18:01 MartinX3

Today I found PR, that adds UnifiedPush support for Telegram FOSS: https://github.com/Telegram-FOSS-Team/Telegram-FOSS/pull/715

This may be useful as a reference implementation for the future FOSS port.

000exploit avatar Dec 17 '23 21:12 000exploit