r/iOSProgramming • • Aug 12 '20

Article Source Code Walkthrough of Telegram-iOS

Most Telegram client apps are open-sourced to prove its gene of security. They also started a new process to allow others to verify the iOS and Android source code is the same version that’s used on AppStore and Google Play. This series of articles is all about Telegram-iOS. The codebase shows its solutions to many practical engineering problems that other iOS engineers would encounter, such as reliable network, secure storage, reactive events, multimedia playback, interactive UX, complex list UI, customization/hacks to system controllers, etc.

289 Upvotes

10 comments sorted by

13

u/[deleted] Aug 13 '20

Unit Test
There are basically no unit tests in the project.

🤔

4

u/SophiaofPrussia Aug 12 '20

whoaa, major kudos to you

3

u/eugenf78 Aug 12 '20

Awesome! King respects!

1

u/-insaan- Swift Aug 13 '20

Thank you for this!

1

u/stpdprgr Jan 16 '21

I have one question smilingly obvious question about Telegram's code base, but I haven't found the answer anywhere else.

Many files in the code base are just enormous, for instance ChatControllerImpl is 11k loc. Which makes it super hard to navigated around the project, especially taking into account how bad Xcode is with navigating with "go to definition" on big Swift code bases. Can someone explain why they didn't choose to break those massive files into smaller chunks?

1

u/baykarmehmet Jan 24 '24

Is there an updated version of these tutorials?

1

u/ak96 May 06 '24

Looking for the same! I am trying to fork TG-iOS and make my own client! But this codebase is hard to navigate. Did you have any luck?

1

u/baykarmehmet Jun 20 '24

I am working on understanding the source code. I can successfully build and install the app on both a simulator and a real device. However, grasping the entire codebase remains challenging. To manage this, I dedicate each day to reviewing a different module:)

1

u/tushar_1210 Aug 12 '20

Big ups, a great way to take your ios game to next level