From 9cf48f7cc2843bb62048d4a1e3478e37a5c23362 Mon Sep 17 00:00:00 2001 From: Alexander Zatsepin Date: Mon, 24 Sep 2018 14:08:32 +0300 Subject: [PATCH] Extracted all stage defines to config.h --- android/jni/com/mapswithme/maps/PrivateVariables.cpp | 1 - config.h | 8 ++++++++ map/bookmark_catalog.cpp | 1 - map/cloud.cpp | 1 - map/purchase.cpp | 1 - map/user.cpp | 2 -- partners_api/locals_api.hpp | 2 -- 7 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 config.h diff --git a/android/jni/com/mapswithme/maps/PrivateVariables.cpp b/android/jni/com/mapswithme/maps/PrivateVariables.cpp index af032d457c..72e00ee3b9 100644 --- a/android/jni/com/mapswithme/maps/PrivateVariables.cpp +++ b/android/jni/com/mapswithme/maps/PrivateVariables.cpp @@ -1,4 +1,3 @@ -#define STAGE_PURCHASE_SERVER #include "private.h" #include diff --git a/config.h b/config.h new file mode 100644 index 0000000000..d4b046d7b6 --- /dev/null +++ b/config.h @@ -0,0 +1,8 @@ +#pragma once + +//#define STAGE_BOOKMARKS_CATALOG_SERVER +//#define STAGE_CLOUD_SERVER +//#define STAGE_LOCALS_SERVER +//#define STAGE_PASSPORT_SERVER +#define STAGE_PURCHASE_SERVER +//#define STAGE_UGC_SERVER diff --git a/map/bookmark_catalog.cpp b/map/bookmark_catalog.cpp index 8323048581..eb84be2bbe 100644 --- a/map/bookmark_catalog.cpp +++ b/map/bookmark_catalog.cpp @@ -11,7 +11,6 @@ #include #include -//#define STAGE_BOOKMARKS_CATALOG_SERVER #include "private.h" namespace diff --git a/map/cloud.cpp b/map/cloud.cpp index 4c008948ff..6e1701111b 100644 --- a/map/cloud.cpp +++ b/map/cloud.cpp @@ -24,7 +24,6 @@ #include #include -//#define STAGE_CLOUD_SERVER #include "private.h" using namespace std::chrono; diff --git a/map/purchase.cpp b/map/purchase.cpp index 9fcc3976b7..792a897166 100644 --- a/map/purchase.cpp +++ b/map/purchase.cpp @@ -15,7 +15,6 @@ #include -#define STAGE_PURCHASE_SERVER #include "private.h" namespace diff --git a/map/user.cpp b/map/user.cpp index 8b32e25a96..af9f1675c9 100644 --- a/map/user.cpp +++ b/map/user.cpp @@ -22,8 +22,6 @@ #include #include -//#define STAGE_PASSPORT_SERVER -//#define STAGE_UGC_SERVER #include "private.h" namespace diff --git a/partners_api/locals_api.hpp b/partners_api/locals_api.hpp index 6252a1a8dd..dd734f5fb5 100644 --- a/partners_api/locals_api.hpp +++ b/partners_api/locals_api.hpp @@ -5,8 +5,6 @@ #include -//#define STAGE_LOCALS_SERVER - namespace locals { class RawApi