@@ -100,6 +100,13 @@ const createStyles = (colors) =>
100100
101101const foxImage = require ( '../../../../images/branding/fox.png' ) ; // eslint-disable-line import-x/no-commonjs
102102
103+ const maskSecret = ( val ) =>
104+ val && val . length > 6
105+ ? `${ val . slice ( 0 , 3 ) } ...${ val . slice ( - 3 ) } `
106+ : val
107+ ? '***'
108+ : '—' ;
109+
103110/**
104111 * View that contains app information
105112 */
@@ -216,7 +223,7 @@ class AppInformation extends PureComponent {
216223 < ScrollView contentContainerStyle = { styles . wrapperContent } >
217224 < View style = { styles . logoWrapper } >
218225 < TouchableOpacity
219- delayLongPress = { 10 * 1000 } // 10 seconds
226+ delayLongPress = { 2 * 1000 } // 2 seconds
220227 onLongPress = { this . handleLongPressFox }
221228 activeOpacity = { 1 }
222229 >
@@ -276,6 +283,50 @@ class AppInformation extends PureComponent {
276283 </ >
277284 ) }
278285
286+ < Text style = { styles . branchInfo } >
287+ { '--- Build Config (public) ---' }
288+ </ Text >
289+ < Text style = { styles . branchInfo } >
290+ { `BRIDGE_USE_DEV_APIS: ${ process . env . BRIDGE_USE_DEV_APIS ?? '—' } ` }
291+ </ Text >
292+ < Text style = { styles . branchInfo } >
293+ { `RAMPS_ENVIRONMENT: ${ process . env . RAMPS_ENVIRONMENT ?? '—' } ` }
294+ </ Text >
295+ < Text style = { styles . branchInfo } >
296+ { `RAMP_DEV_BUILD: ${ process . env . RAMP_DEV_BUILD ?? '—' } ` }
297+ </ Text >
298+ < Text style = { styles . branchInfo } >
299+ { `SEEDLESS_ONBOARDING_ENABLED: ${ process . env . SEEDLESS_ONBOARDING_ENABLED ?? '—' } ` }
300+ </ Text >
301+ < Text style = { styles . branchInfo } >
302+ { `MM_PORTFOLIO_API_URL: ${ process . env . MM_PORTFOLIO_API_URL ?? '—' } ` }
303+ </ Text >
304+
305+ < Text style = { styles . branchInfo } >
306+ { '--- Secrets (first3...last3) ---' }
307+ </ Text >
308+ < Text style = { styles . branchInfo } >
309+ { `MM_INFURA_PROJECT_ID: ${ maskSecret ( process . env . MM_INFURA_PROJECT_ID ) } ` }
310+ </ Text >
311+ < Text style = { styles . branchInfo } >
312+ { `SEGMENT_WRITE_KEY: ${ maskSecret ( process . env . SEGMENT_WRITE_KEY ) } ` }
313+ </ Text >
314+ < Text style = { styles . branchInfo } >
315+ { `QUICKNODE_BSC_URL: ${ maskSecret ( process . env . QUICKNODE_BSC_URL ) } ` }
316+ </ Text >
317+ < Text style = { styles . branchInfo } >
318+ { `QUICKNODE_SEI_URL: ${ maskSecret ( process . env . QUICKNODE_SEI_URL ) } ` }
319+ </ Text >
320+ < Text style = { styles . branchInfo } >
321+ { `EXPO_TOKEN: ${ maskSecret ( process . env . EXPO_TOKEN ) } ` }
322+ </ Text >
323+ < Text style = { styles . branchInfo } >
324+ { `MM_SENTRY_DSN: ${ maskSecret ( process . env . MM_SENTRY_DSN ) } ` }
325+ </ Text >
326+ < Text style = { styles . branchInfo } >
327+ { `MM_CHARTING_LIBRARY_URL: ${ maskSecret ( process . env . MM_CHARTING_LIBRARY_URL ) } ` }
328+ </ Text >
329+
279330 { this . props . preinstalledSnaps . map ( ( snap ) => (
280331 < Text key = { snap . name } style = { styles . branchInfo } >
281332 { snap . name } : { snap . version } ({ snap . status } )
0 commit comments