Skip to content

Commit 713488a

Browse files
authored
Merge pull request #3063 from StoDevX/constants-release-build-to-dev-mode
Replace isReleaseBuild with isDevMode
2 parents a22f8e0 + 322f38a commit 713488a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

modules/constants/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export const isPre = () => IS_PRE
2525
let IS_RC: boolean
2626
export const isRc = () => IS_RC
2727

28-
export const isReleaseBuild = () => IS_ALPHA || IS_BETA || IS_PRE || IS_RC
28+
// checks if the build should show debugging tools
29+
export const isDevMode = () => !IS_PRODUCTION || (IS_ALPHA || IS_BETA || IS_PRE || IS_RC)
2930

3031
export const setVersionInfo = (versionStr: string) => {
3132
let [version, buildNum] = versionStr.split('+')

source/views/home/notice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as glamorous from 'glamorous-native'
55
import * as c from '@frogpond/colors'
66
import sample from 'lodash/sample'
77
import {CELL_MARGIN} from './button'
8-
import {isReleaseBuild} from '@frogpond/constants'
8+
import {isDevMode} from '@frogpond/constants'
99

1010
let messages = [
1111
'☃️ An Unofficial App Project ☃️',
@@ -18,7 +18,7 @@ let messages = [
1818
'Made with ❤️ in Northfield, MN',
1919
]
2020

21-
if (!isReleaseBuild()) {
21+
if (isDevMode()) {
2222
messages = [
2323
...messages,
2424
'made with ⃟ in Ñ̸̞͖̘̱̰̥͇̗̂͌̇̎͊ͯ̎̓̎ͥ̋̐ͤͪͭ̚͘͢͢ø̸̛̞͊̎ͩ̍̉̑ͯͫͥ̚͟ͅ ̱̬̹̱̦®̵̬͖͙̻̩͓̖̠͉͈͍̈́̅͂͛̅̀͗ͤ̓́͡†̵̧͙̥̫̫͎̘̩̲̥̖̈̌͋̀ͨ̑̽̍̆̓̒̒̄̈́͒̓̕͜ ͍̩̫̼ͅ˙̶͕̰̗͓̯̫̲̮͕̪̝͎̩̬̺̔ͯ̌̈̽̌ͨ͊͊͐̀͆̽̐̓̃́̚͢͟ ̞̞̤ƒ͚͙̤ͭͪ͑̄͆͑ͯ̆͗̆ͨ̍̀͟͢ ̙͎̝͕͔̠͉̩̯͕͚̗̤ͅî̹̗̩̫̝̝͙̠̹̣̺̤̆ͭ̾̋ͬ̂ͫ̃̏ͥͬ́͜͠é̚ ̸͔͕̗̞̰́̅̅͒ ̪̩̞̰̫͓̞̱̫̞̭̯¬ͫ̾̆ ̍ͣ̎̀ͫͪͪ̋͌̂ ̪̘̯̝̤͌̆ͮ̕͜͜͡∂̢̛͕̻͖̈͌ͮ̂̾ͪͪ̑͋͂̂̂̂̈́̈́̓̌̍̌͜͞ ͙̫̤',

source/views/menus/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as React from 'react'
44
import {TabNavigator, TabBarIcon} from '@frogpond/navigation-tabs'
5-
import {IS_PRODUCTION} from '@frogpond/constants'
5+
import {isDevMode} from '@frogpond/constants'
66

77
import {BonAppHostedMenu} from './menu-bonapp'
88
import {GitHubHostedMenu} from './menu-github'
@@ -89,7 +89,7 @@ export const MenusView = TabNavigator({
8989
},
9090
},
9191

92-
...(!IS_PRODUCTION ? {BonAppDevToolView: {screen: BonAppPickerView}} : {}),
92+
...(isDevMode() ? {BonAppDevToolView: {screen: BonAppPickerView}} : {}),
9393
})
9494
MenusView.navigationOptions = {
9595
title: 'Menus',

0 commit comments

Comments
 (0)