You can obtain your tokens from https://core.telegram.org/api/obtaining_api_id.
Export API_ID and API_TOKEN environment options with your tokens before
running Cmake to use them.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
The commit b2ee90263d introduced regression in whole places where smilies are used. Now it seems to be fixed.
Thanks for testing for @saphire , @Randl and @zgwerby for reporting issue #233 .
Closes#233.
- Brand new logo!
- Yandex.Maps as CMake-configurable option for displaying locations;
- Partial update to API 72 (from API 71 of v1.1.23);
- Minor bugfixes and refactorings.
This commit adds the helper interface ILocationMapTileHelper for getting
info about current location (e.g. location URL or map tile image URL).
This commit adds the following classes:
1. The interface ILocationMapTileHelper;
2. YandexMapsLocationTileHelper - uses Yandex.Maps Static API as backend for
getting tile info;
3. GoogleMapsLocationTileHelper - uses Google Maps Statis API as backend;
Please note that these classes aren't used yet, it will be used in next commit.
Also please note that all virtual functions has been extracted from classes definitions
to avoid the -WWeak-tables warning. (See Clang manual about this warning).
You could enable it via CMake option KEPKA_OPTION_USE_YANDEX_MAPS:
cmake -DKEPKA_OPTION_USE_YANDEX_MAPS=ON ..
It is used instead of Google Maps API for locations and on location click.
Sometimes Google Maps return no maps data. It is related with recent free
API usages count decrease from 750k requests to 28k (according to
https://habr.com/post/417715/).
The code on this commit will be cleaned up and rewritten using Maps API
string builders in next commit.
These logo variants are available under Creative Commons
Attribution Share-Alike License 4.0. See
https://creativecommons.org/licenses/by-sa/4.0/
(c) 2018 leha-bot.
The short guide about branding and logo usages
(from /Telegram/Resources/art) in Kepka:
1. logo_256.png/logo_256_no_margin.png -
used in /Telegram/SourceFiles/window/main_window.cpp for loading logo
(nowrap logo is used on Mac), in /Telegram/SourceFiles/messenger.[cpp|h],
in /Telegram/SourceFiles/platform/linux/specific_linux.cpp and in qrc.
Required for branding;
2. icon64.png - Doxyfile and MacOS image assets (they are duplicated in
/Telegram/Telegram/Images.xcassets/[Icon.iconset|AppIcon.appiconset);
3. icon[<resolution>[@x2]].png - MacOS image assets. We will update
these icons in next commit;
4. favicon.ico - seems unused;
5. icon256.ico - Windows Resource for EXE;
There is also a dangling reference inside
/Telegram/Resources/uwp/AppX/AppxManifest.xml. It shoud be fixed in some
of next commits.
Also update usage in intro widget. Please note that the language strings
with placeholders must be created using {lang_id}(lt_{placeholder},
lang({placeholder}), where you should replace {lang_id} with your actual
language string identifier and {placeholder} with your actual string
data.
IPO optimizations will be disabled by default. To enable you need to
forward cmake build flag -DENABLE_IPO:BOOL=ON.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>