Update README.md

This commit is contained in:
DrKLO 2019-06-14 21:23:49 +07:00
parent 9ffc7787d6
commit a9966a0353
1 changed files with 9 additions and 4 deletions

View File

@ -20,12 +20,17 @@ Telegram API manuals: https://core.telegram.org/api
MTproto protocol manuals: https://core.telegram.org/mtproto
### Usage
### Compilation Guide
**Beware of using the dev branch and uploading it to any markets, in many cases it not will work as expected**.
You will require Android Studio 3.4, Android NDK rev. 16b (https://developer.android.com/ndk/downloads/older_releases.html) and Android SDK 8.1
First of all, take a look at **src/main/java/org/telegram/messenger/BuildVars.java** and fill it with correct values.
Import the root folder into your IDE (tested on Android Studio), then run project.
1. Download the Telegram source code from https://github.com/DrKLO/Telegram ( git clone https://github.com/DrKLO/Telegram.git )
2. Copy your release.keystore into TMessagesProj/config
3. Fill out RELEASE_KEY_PASSWORD, RELEASE_KEY_ALIAS, RELEASE_STORE_PASSWORD in gradle.properties to access your release.keystore
4. Go to https://console.firebase.google.com/, create two android apps with application IDs org.telegram.messenger and org.telegram.messenger.beta, turn on firebase messaging and download google-services.json, which should be copied to the same folder as TMessagesProj.
5. Open the project in the Studio (note that it should be opened, NOT imported).
6. Fill out values in TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java theres a link for each of the variables showing where and which data to obtain.
7. You are ready to compile Telegram.
### Localization