Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add gate debug code (#10264)

authored by

Eric Bailey and committed by
GitHub
5fb3af71 e8045468

+16
+16
src/analytics/PassiveAnalytics.tsx
··· 2 2 3 3 import {getCurrentState, onAppStateChange} from '#/lib/appState' 4 4 import {useAnalytics} from '#/analytics' 5 + import {Features, features} from '#/analytics/features' 6 + import {IS_DEV, IS_TESTFLIGHT} from '#/env' 5 7 6 8 /** 7 9 * Tracks passive analytics like app foreground/background time. ··· 22 24 secondsActive: Math.round( 23 25 (performance.now() - lastActive.current) / 1e3, 24 26 ), 27 + }) 28 + } 29 + 30 + if (IS_DEV || IS_TESTFLIGHT) { 31 + const feats = Object.values(Features).reduce( 32 + (acc, feat) => { 33 + acc[feat] = features.evalFeature(feat) 34 + return acc 35 + }, 36 + {} as Record<Features, any>, 37 + ) 38 + ax.logger.info('FEATURES', { 39 + features: feats, 40 + definitions: features.getFeatures(), 25 41 }) 26 42 } 27 43 })