From a9966a0353dc9d46c1ea60d141acd57affead7c9 Mon Sep 17 00:00:00 2001 From: DrKLO Date: Fri, 14 Jun 2019 21:23:49 +0700 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eb50d18ed..eedebcd48 100644 --- a/README.md +++ b/README.md @@ -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 – there’s a link for each of the variables showing where and which data to obtain. +7. You are ready to compile Telegram. ### Localization