From f6a447e25445aca7c0d591d964a6a5af3e3f8141 Mon Sep 17 00:00:00 2001 From: feruzm Date: Sat, 26 Dec 2020 22:19:44 +0200 Subject: [PATCH] fix env variable --- .env.example | 1 - src/config/ecencyApi.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index c171c2243..c93871d1c 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,6 @@ ACTIVITY_WEBSOCKET_URL= BACKEND_URL= ECENCY_BACKEND_API= NEW_IMAGE_API= -OLD_IMAGE_API= PIN_KEY= DEFAULT_PIN= SEARCH_API_TOKEN= diff --git a/src/config/ecencyApi.js b/src/config/ecencyApi.js index 3e75c6f89..4fb43c912 100644 --- a/src/config/ecencyApi.js +++ b/src/config/ecencyApi.js @@ -1,11 +1,12 @@ import axios from 'axios'; import Config from 'react-native-config'; +import VersionNumber from 'react-native-version-number'; const api = axios.create({ baseURL: Config.ECENCY_BACKEND_API, headers: { 'Content-Type': 'application/json', - 'User-Agent': Config.USER_AGENT, + 'User-Agent': `${Config.USER_AGENT}/${VersionNumber.appVersion}`, }, });