Mirror — see github.com/blacksky-algorithms/blacksky.community
6
fork

Configure Feed

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

Rename isBskyPds to isBlackskyPds and fix bundleIdentifier default

- Rename isBskyPds to isBlackskyPds in analytics metadata, utils,
and GrowthBook attributes to reflect Blacksky PDS branding
- Change bundleIdentifier fallback from hardcoded 'dev' to use
EXPO_PUBLIC_ENV so builds correctly report 'staging' or 'production'

+5 -5
+1 -1
src/analytics/features/index.ts
··· 81 81 countryCode: geolocation.countryCode, 82 82 regionCode: geolocation.regionCode, 83 83 did: session?.did, 84 - isBskyPds: session?.isBskyPds, 84 + isBlackskyPds: session?.isBlackskyPds, 85 85 appLanguage: preferences?.appLanguage, 86 86 contentLanguages: preferences?.contentLanguages, 87 87 currentScreen: getNavigationMetadata()?.currentScreen,
+2 -2
src/analytics/metadata.ts
··· 16 16 17 17 export type SessionMetadata = { 18 18 did: string 19 - isBskyPds: boolean 19 + isBlackskyPds: boolean 20 20 } 21 21 22 22 export type PreferencesMetadata = { ··· 75 75 appVersion: base.appVersion, 76 76 countryCode: geolocation.countryCode, 77 77 regionCode: geolocation.regionCode, 78 - isBskyPds: session?.isBskyPds || 'anonymous', 78 + isBlackskyPds: session?.isBlackskyPds || 'anonymous', 79 79 } 80 80 }
+1 -1
src/analytics/utils.ts
··· 27 27 } else { 28 28 return { 29 29 did: account.did, 30 - isBskyPds: account.service.startsWith(BSKY_SERVICE), 30 + isBlackskyPds: account.service.startsWith(BSKY_SERVICE), 31 31 } 32 32 } 33 33 }
+1 -1
src/env/common.ts
··· 46 46 * Useful for debugging/reporting. 47 47 */ 48 48 export const BUNDLE_IDENTIFIER: string = 49 - process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER || 'dev' 49 + process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER || ENV || 'dev' 50 50 51 51 /** 52 52 * This will always be in the format of YYMMDDHH, so that it always increases