···3export const BUILD_ENV = process.env.EXPO_PUBLIC_ENV
4export const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development'
5export const IS_TESTFLIGHT = process.env.EXPO_PUBLIC_ENV === 'testflight'
067// This is the commit hash that the current bundle was made from. The user can see the commit hash in the app's settings
8// along with the other version info. Useful for debugging/reporting.
···3export const BUILD_ENV = process.env.EXPO_PUBLIC_ENV
4export const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development'
5export const IS_TESTFLIGHT = process.env.EXPO_PUBLIC_ENV === 'testflight'
6+export const IS_INTERNAL = IS_DEV || IS_TESTFLIGHT
78// This is the commit hash that the current bundle was made from. The user can see the commit hash in the app's settings
9// along with the other version info. Useful for debugging/reporting.
+2-2
src/lib/statsig/gates.ts
···1export type Gate =
2 // Keep this alphabetic please.
3- | 'debug_show_feedcontext'
4- | 'post_feed_lang_window'
5 | 'suggested_feeds_interstitial'
···1export type Gate =
2 // Keep this alphabetic please.
3+ | 'debug_show_feedcontext' // DISABLED DUE TO EME
4+ | 'post_feed_lang_window' // DISABLED DUE TO EME
5 | 'suggested_feeds_interstitial'
+6-1
src/state/session/logging.ts
···2import {sha256} from 'js-sha256'
3import {Statsig} from 'statsig-react-native-expo'
405import {Schema} from '../persisted'
6import {Action, State} from './reducer'
7import {SessionAccount} from './types'
···93 // Drop these logs for now.
94 return
95 }
96- if (!Statsig.checkGate('debug_session')) {
097 return
98 }
00099 const messageIndex = nextMessageIndex++
100 const {type, ...content} = log
101 let payload = JSON.stringify(content, replacer)
···2import {sha256} from 'js-sha256'
3import {Statsig} from 'statsig-react-native-expo'
45+import {IS_INTERNAL} from '#/lib/app-info'
6import {Schema} from '../persisted'
7import {Action, State} from './reducer'
8import {SessionAccount} from './types'
···94 // Drop these logs for now.
95 return
96 }
97+ // DISABLING THIS GATE DUE TO EME @TODO EME-GATE
98+ if (!IS_INTERNAL) {
99 return
100 }
101+ // if (!Statsig.checkGate('debug_session')) {
102+ // return
103+ // }
104 const messageIndex = nextMessageIndex++
105 const {type, ...content} = log
106 let payload = JSON.stringify(content, replacer)
+2-3
src/view/com/util/post-ctrls/PostCtrls.tsx
···17import {msg, plural} from '@lingui/macro'
18import {useLingui} from '@lingui/react'
19020import {POST_CTRL_HITSLOP} from '#/lib/constants'
21import {CountWheel} from '#/lib/custom-animations/CountWheel'
22import {AnimatedLikeIcon} from '#/lib/custom-animations/LikeIcon'
23import {useHaptics} from '#/lib/haptics'
24import {makeProfileLink} from '#/lib/routes/links'
25import {shareUrl} from '#/lib/sharing'
26-import {useGate} from '#/lib/statsig/statsig'
27import {toShareUrl} from '#/lib/strings/url-helpers'
28import {Shadow} from '#/state/cache/types'
29import {useFeedFeedbackContext} from '#/state/feed-feedback'
···85 const {sendInteraction} = useFeedFeedbackContext()
86 const {captureAction} = useProgressGuideControls()
87 const playHaptic = useHaptics()
88- const gate = useGate()
89 const isBlocked = Boolean(
90 post.author.viewer?.blocking ||
91 post.author.viewer?.blockedBy ||
···375 threadgateRecord={threadgateRecord}
376 />
377 </View>
378- {gate('debug_show_feedcontext') && feedContext && (
379 <Pressable
380 accessible={false}
381 style={{
···17import {msg, plural} from '@lingui/macro'
18import {useLingui} from '@lingui/react'
1920+import {IS_INTERNAL} from '#/lib/app-info'
21import {POST_CTRL_HITSLOP} from '#/lib/constants'
22import {CountWheel} from '#/lib/custom-animations/CountWheel'
23import {AnimatedLikeIcon} from '#/lib/custom-animations/LikeIcon'
24import {useHaptics} from '#/lib/haptics'
25import {makeProfileLink} from '#/lib/routes/links'
26import {shareUrl} from '#/lib/sharing'
027import {toShareUrl} from '#/lib/strings/url-helpers'
28import {Shadow} from '#/state/cache/types'
29import {useFeedFeedbackContext} from '#/state/feed-feedback'
···85 const {sendInteraction} = useFeedFeedbackContext()
86 const {captureAction} = useProgressGuideControls()
87 const playHaptic = useHaptics()
088 const isBlocked = Boolean(
89 post.author.viewer?.blocking ||
90 post.author.viewer?.blockedBy ||
···374 threadgateRecord={threadgateRecord}
375 />
376 </View>
377+ {IS_INTERNAL && feedContext && (
378 <Pressable
379 accessible={false}
380 style={{