diff --git a/app/index.js b/app/index.js index fdc547bb2..809cfe228 100644 --- a/app/index.js +++ b/app/index.js @@ -41,7 +41,7 @@ import debounce from './utils/debounce'; RNScreens.enableScreens(); -const configValue = RNConfigReader.PLAY_BUILD; +const isPlayBuild = RNConfigReader.PLAY_BUILD; const parseDeepLinking = (url) => { if (url) { @@ -163,7 +163,7 @@ export default class Root extends React.Component { if (!allowCrashReport) { loggerConfig.autoNotify = false; loggerConfig.registerBeforeSendCallback(() => false); - if (configValue) { + if (isPlayBuild) { analytics().setAnalyticsCollectionEnabled(false); } } diff --git a/app/notifications/push/index.js b/app/notifications/push/index.js index ccab5e2b2..b1511f2bd 100644 --- a/app/notifications/push/index.js +++ b/app/notifications/push/index.js @@ -37,8 +37,8 @@ export const onNotification = (notification) => { export const getDeviceToken = () => PushNotification.getDeviceToken(); export const setBadgeCount = count => PushNotification.setBadgeCount(count); export const initializePushNotifications = () => { - const configValue = RNConfigReader.PLAY_BUILD; - if (configValue) { + const isPlayBuild = RNConfigReader.PLAY_BUILD; + if (isPlayBuild) { setBadgeCount(); return PushNotification.configure({ onNotification diff --git a/app/utils/log.js b/app/utils/log.js index 86d1f9111..1011b8842 100644 --- a/app/utils/log.js +++ b/app/utils/log.js @@ -3,7 +3,7 @@ import firebase from 'react-native-firebase'; import RNConfigReader from 'react-native-config-reader'; import config from '../../config'; -const configValue = RNConfigReader.PLAY_BUILD; +const isPlayBuild = RNConfigReader.PLAY_BUILD; const bugsnag = new Client(config.BUGSNAG_API_KEY); export const { analytics } = firebase != null; @@ -19,7 +19,7 @@ export const logServerVersion = (serverVersion) => { }; export const setCurrentScreen = (currentScreen) => { - if (configValue) { + if (isPlayBuild) { analytics().setCurrentScreen(currentScreen); } leaveBreadcrumb(currentScreen, { type: 'navigation' }); diff --git a/app/views/SettingsView/index.js b/app/views/SettingsView/index.js index 6bc5e8935..e5c07a22e 100644 --- a/app/views/SettingsView/index.js +++ b/app/views/SettingsView/index.js @@ -37,7 +37,7 @@ import { onReviewPress } from '../../utils/review'; import { getUserSelector } from '../../selectors/login'; import SafeAreaView from '../../containers/SafeAreaView'; -const configValue = RNConfigReader.PLAY_BUILD; +const isPlayBuild = RNConfigReader.PLAY_BUILD; const SectionSeparator = React.memo(({ theme }) => (