File tree Expand file tree Collapse file tree
src/app/components/BuildBanner Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Hide experimental build banner in mobile app
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { AlertBox } from 'app/components/AlertBox'
55import { buildBannerZIndex } from '../../../styles/theme/elementSizes'
66import styled from 'styled-components'
77import { deploys } from '../../../config'
8+ import { runtimeIs } from '../../lib/runtimeIs'
89
910const StickyBanner = styled ( Box ) `
1011 position: sticky;
@@ -23,6 +24,12 @@ export const BuildBanner = () => {
2324 return null
2425 }
2526
27+ if ( runtimeIs === 'mobile-app' ) {
28+ // On web we want to deploy the exact same bundle on staging and then production, so we
29+ // show banner based on location. That can't work with apk files.
30+ return null
31+ }
32+
2633 if ( deploys . production . includes ( window . location . origin ) ) {
2734 return null
2835 }
You can’t perform that action at this time.
0 commit comments