deer social fork for personal usage. but you might see a use idk. github mirror
4
fork

Configure Feed

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

really awesome dev icon

ayla 5d39467c 6cf5c9fa

+32 -44
+11 -2
app.config.js
··· 45 45 runtimeVersion: { 46 46 policy: 'appVersion', 47 47 }, 48 - icon: './assets/app-icons/ios_icon_default_light.png', 48 + icon: IS_DEV 49 + ? './assets/app-icons/ios_icon_dev.png' 50 + : './assets/app-icons/ios_icon_default_light.png', 49 51 userInterfaceStyle: 'automatic', 50 52 primaryColor: '#4b9b6c', 51 53 newArchEnabled: false, ··· 148 150 barStyle: 'light-content', 149 151 }, 150 152 android: { 151 - icon: './assets/app-icons/android_icon_default_light.png', 153 + icon: IS_DEV 154 + ? './assets/app-icons/android_icon_dev.png' 155 + : './assets/app-icons/android_icon_default_light.png', 152 156 adaptiveIcon: { 153 157 foregroundImage: './assets/icon-android-foreground.png', 154 158 monochromeImage: './assets/icon-android-foreground.png', ··· 319 323 default_dark: { 320 324 ios: './assets/app-icons/ios_icon_default_dark.png', 321 325 android: './assets/app-icons/android_icon_default_dark.png', 326 + prerendered: true, 327 + }, 328 + dev: { 329 + ios: './assets/app-icons/ios_icon_dev.png', 330 + android: './assets/app-icons/android_icon_dev.png', 322 331 prerendered: true, 323 332 }, 324 333
assets/app-icons/android_icon_dev.png

This is a binary file and will not be displayed.

assets/app-icons/ios_icon_dev.png

This is a binary file and will not be displayed.

+1 -36
src/screens/Settings/AppIconSettings/index.tsx
··· 7 7 8 8 import {PressableScale} from '#/lib/custom-animations/PressableScale' 9 9 import {type CommonNavigatorParams} from '#/lib/routes/types' 10 - import {useGate} from '#/lib/statsig/statsig' 11 10 import {isAndroid} from '#/platform/detection' 12 11 import {AppIconImage} from '#/screens/Settings/AppIconSettings/AppIconImage' 13 12 import {type AppIconSet} from '#/screens/Settings/AppIconSettings/types' ··· 16 15 import * as Toggle from '#/components/forms/Toggle' 17 16 import * as Layout from '#/components/Layout' 18 17 import {Text} from '#/components/Typography' 19 - import {IS_INTERNAL} from '#/env' 20 18 21 19 type Props = NativeStackScreenProps<CommonNavigatorParams, 'AppIconSettings'> 22 20 export function AppIconSettingsScreen({}: Props) { 23 - const t = useTheme() 24 21 const {_} = useLingui() 25 22 const sets = useAppIconSets() 26 - const gate = useGate() 27 23 const [currentAppIcon, setCurrentAppIcon] = useState(() => 28 24 getAppIconName(DynamicAppIcon.getAppIcon()), 29 25 ) 30 26 31 27 const onSetAppIcon = (icon: DynamicAppIcon.IconName) => { 32 28 if (isAndroid) { 33 - const next = 34 - sets.defaults.find(i => i.id === icon) ?? 35 - sets.core.find(i => i.id === icon) 29 + const next = sets.defaults.find(i => i.id === icon) 36 30 Alert.alert( 37 31 next 38 32 ? _(msg`Change app icon to "${next.name}"`) ··· 85 79 </Row> 86 80 ))} 87 81 </Group> 88 - 89 - {IS_INTERNAL && gate('debug_subscriptions') && ( 90 - <> 91 - <Text 92 - style={[ 93 - a.text_md, 94 - a.mt_xl, 95 - a.mb_sm, 96 - a.font_semi_bold, 97 - t.atoms.text_contrast_medium, 98 - ]}> 99 - <Trans>Bluesky+</Trans> 100 - </Text> 101 - <Group 102 - label={_(msg`Bluesky+ icons`)} 103 - value={currentAppIcon} 104 - onChange={onSetAppIcon}> 105 - {sets.core.map((icon, i) => ( 106 - <Row 107 - key={icon.id} 108 - icon={icon} 109 - isEnd={i === sets.core.length - 1}> 110 - <AppIcon icon={icon} key={icon.id} size={40} /> 111 - <RowText>{icon.name}</RowText> 112 - </Row> 113 - ))} 114 - </Group> 115 - </> 116 - )} 117 82 </Layout.Content> 118 83 </Layout.Screen> 119 84 )
+1 -1
src/screens/Settings/AppIconSettings/types.ts
··· 2 2 import type * as DynamicAppIcon from '@mozzius/expo-dynamic-app-icon' 3 3 4 4 export type AppIconSet = { 5 - id: DynamicAppIcon.IconName 5 + id: DynamicAppIcon.IconName | string 6 6 name: string 7 7 iosImage: () => ImageSourcePropType 8 8 androidImage: () => ImageSourcePropType
+19 -4
src/screens/Settings/AppIconSettings/useAppIconSets.ts
··· 38 38 }, 39 39 }, 40 40 { 41 - id: 'next', 42 - name: _(msg({context: 'Name of app icon variant', message: 'Next'})), 41 + id: 'dev', 42 + name: _( 43 + msg({ 44 + context: 'Name of app icon variant', 45 + message: 'Dev mode!!!', 46 + }), 47 + ), 43 48 iosImage: () => { 44 - return require(`../../../../assets/app-icons/icon_default_next.png`) 49 + return require(`../../../../assets/app-icons/ios_icon_dev.png`) 45 50 }, 46 51 androidImage: () => { 47 - return require(`../../../../assets/app-icons/icon_default_next.png`) 52 + return require(`../../../../assets/app-icons/android_icon_dev.png`) 48 53 }, 49 54 }, 55 + // { 56 + // id: 'next', 57 + // name: _(msg({context: 'Name of app icon variant', message: 'Next'})), 58 + // iosImage: () => { 59 + // return require(`../../../../assets/app-icons/icon_default_next.png`) 60 + // }, 61 + // androidImage: () => { 62 + // return require(`../../../../assets/app-icons/icon_default_next.png`) 63 + // }, 64 + // }, 50 65 ] satisfies AppIconSet[] 51 66 52 67 /**
-1
src/screens/Settings/AppIconSettings/useCurrentAppIcon.ts
··· 20 20 return useMemo(() => { 21 21 return ( 22 22 appIconSets.defaults.find(i => i.id === currentAppIcon) ?? 23 - appIconSets.core.find(i => i.id === currentAppIcon) ?? 24 23 appIconSets.defaults[0] 25 24 ) 26 25 }, [appIconSets, currentAppIcon])