Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreshilov <slovaricheg@gmail.com>2018-07-09 10:54:10 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2018-07-09 19:15:34 +0300
commita46a0ef95618c3e1070178bf5ac24b41378ef6d4 (patch)
tree11a93dca746bf2a626fd557b62bd40564fbb3273 /partners_api
parentecbd6c03481dd06a46be5f61ee58a45fa76de580 (diff)
[DNM][partners_api][android][ios] Add auto partners generator support
Diffstat (limited to 'partners_api')
-rw-r--r--partners_api/partners.cpp29
-rw-r--r--partners_api/partners_list.hpp31
2 files changed, 32 insertions, 28 deletions
diff --git a/partners_api/partners.cpp b/partners_api/partners.cpp
index a580b1f0df..540b3932d2 100644
--- a/partners_api/partners.cpp
+++ b/partners_api/partners.cpp
@@ -1,4 +1,5 @@
#include "partners_api/partners.hpp"
+#include "partners_api/partners_list.hpp"
#include "indexer/classificator.hpp"
#include "indexer/feature.hpp"
@@ -12,34 +13,6 @@
#include <vector>
#include <utility>
-std::vector<PartnerInfo> const kPartners = {
- PartnerInfo(2, "LuggageHero"),
- PartnerInfo(3, "BurgerKing", true /* m_hasButton */),
- PartnerInfo(4, "Adidas", true /* m_hasButton */),
- PartnerInfo(6, "AdidasOriginal", true /* m_hasButton */),
- PartnerInfo(7, "AdidasKids", true /* m_hasButton */),
- PartnerInfo(8, "CostaCoffee", true /* m_hasButton */,
- "https://localads.maps.me/redirects/costa_coffee"),
- PartnerInfo(9, "TGIFridays", true /* m_hasButton */,
- "https://localads.maps.me/redirects/tgi_fridays"),
- PartnerInfo(10, "Sportmaster", true /* m_hasButton */,
- "https://localads.maps.me/redirects/sportmaster"),
- PartnerInfo(11, "KFC", true /* m_hasButton */),
- PartnerInfo(12, "AzbukaVkusa", true /* m_hasButton */,
- "https://localads.maps.me/redirects/azbuka_vkusa"),
- PartnerInfo(13, "Shokoladnitsa", true /* m_hasButton */),
- PartnerInfo(14, "Yakitoriya", true /* m_hasButton */),
- PartnerInfo(15, "Menza", true /* m_hasButton */),
- PartnerInfo(16, "YanPrimus", true /* m_hasButton */),
- PartnerInfo(17, "GinNo", true /* m_hasButton */),
- PartnerInfo(18, "MegafonGreenDot", true /* m_hasButton */,
- "https://localads.maps.me/redirects/megafon_green"),
- PartnerInfo(19, "MegafonPurpleDot", true /* m_hasButton */,
- "https://localads.maps.me/redirects/megafon_purple"),
- PartnerInfo(20, "Megafon", true /* m_hasButton */,
- "https://localads.maps.me/redirects/megafon_airport"),
-};
-
namespace
{
int constexpr kFakePartnerIndex = -1;
diff --git a/partners_api/partners_list.hpp b/partners_api/partners_list.hpp
new file mode 100644
index 0000000000..bac38d6c56
--- /dev/null
+++ b/partners_api/partners_list.hpp
@@ -0,0 +1,31 @@
+// This file is autogenerated
+#include "partners_api/partners.hpp"
+#include <vector>
+
+std::vector<PartnerInfo> const kPartners = {
+ PartnerInfo(2, "LuggageHero"),
+ PartnerInfo(3, "BurgerKing", true /* m_hasButton */),
+ PartnerInfo(4, "Adidas", true /* m_hasButton */),
+ PartnerInfo(6, "AdidasOriginal", true /* m_hasButton */),
+ PartnerInfo(7, "AdidasKids", true /* m_hasButton */),
+ PartnerInfo(8, "CostaCoffee", true /* m_hasButton */,
+ "https://localads.maps.me/redirects/costa_coffee"),
+ PartnerInfo(9, "TGIFridays", true /* m_hasButton */,
+ "https://localads.maps.me/redirects/tgi_fridays"),
+ PartnerInfo(10, "Sportmaster", true /* m_hasButton */,
+ "https://localads.maps.me/redirects/sportmaster"),
+ PartnerInfo(11, "KFC", true /* m_hasButton */),
+ PartnerInfo(12, "AzbukaVkusa", true /* m_hasButton */,
+ "https://localads.maps.me/redirects/azbuka_vkusa"),
+ PartnerInfo(13, "Shokoladnitsa", true /* m_hasButton */),
+ PartnerInfo(14, "Yakitoriya", true /* m_hasButton */),
+ PartnerInfo(15, "Menza", true /* m_hasButton */),
+ PartnerInfo(16, "YanPrimus", true /* m_hasButton */),
+ PartnerInfo(17, "GinNo", true /* m_hasButton */),
+ PartnerInfo(18, "MegafonGreenDot", true /* m_hasButton */,
+ "https://localads.maps.me/redirects/megafon_green"),
+ PartnerInfo(19, "MegafonPurpleDot", true /* m_hasButton */,
+ "https://localads.maps.me/redirects/megafon_purple"),
+ PartnerInfo(20, "Megafon", true /* m_hasButton */,
+ "https://localads.maps.me/redirects/megafon_airport"),
+};