From 6d89ea44817f9b3064f74d1d916a689199421d74 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 24 Feb 2026 20:30:45 +0900 Subject: [PATCH] fix patch social-app ios --- ios/patching/005-social-app-ios-screens.patch | 62 ++++++++----------- .../021-social-app-ios-clean-feed.patch | 54 +++++++--------- .../038-social-app-ios-profile-services.patch | 18 +++--- .../042-social-app-ios-at-links.patch | 4 +- .../044-social-app-ios-splash-video.patch | 8 +-- .../045-social-app-ios-composer-cancel.patch | 40 ++++++++++++ ios/setup.zsh | 1 + 7 files changed, 107 insertions(+), 80 deletions(-) create mode 100644 ios/patching/045-social-app-ios-composer-cancel.patch diff --git a/ios/patching/005-social-app-ios-screens.patch b/ios/patching/005-social-app-ios-screens.patch index 6910090..c522bc4 100644 --- a/ios/patching/005-social-app-ios-screens.patch +++ b/ios/patching/005-social-app-ios-screens.patch @@ -1,8 +1,6 @@ -diff --git a/src/screens/Settings/AboutSettings.tsx b/src/screens/Settings/AboutSettings.tsx -index 9ba067a2f..e34b9f9b0 100644 --- a/src/screens/Settings/AboutSettings.tsx +++ b/src/screens/Settings/AboutSettings.tsx -@@ -78,7 +78,7 @@ export function AboutSettingsScreen({}: Props) { +@@ -79,7 +79,7 @@ -@@ -86,7 +86,7 @@ export function AboutSettingsScreen({}: Props) { +@@ -87,7 +87,7 @@ -diff --git a/src/screens/Takendown.tsx b/src/screens/Takendown.tsx -index 660aecf1a..f19a62c0f 100644 --- a/src/screens/Takendown.tsx +++ b/src/screens/Takendown.tsx -@@ -212,10 +212,10 @@ export function Takendown() { +@@ -210,10 +210,10 @@ Your account was found to be in violation of the{' '} . You have been sent an email outlining the specific violation and suspension period, if applicable. You can appeal this -diff --git a/src/view/screens/PrivacyPolicy.tsx b/src/view/screens/PrivacyPolicy.tsx -index a89eaadc4..71ce7c81f 100644 --- a/src/view/screens/PrivacyPolicy.tsx +++ b/src/view/screens/PrivacyPolicy.tsx -@@ -1,51 +1,49 @@ +@@ -1,52 +1,49 @@ import React from 'react' -import {View} from 'react-native' --import {msg, Trans} from '@lingui/macro' +-import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' +-import {Trans} from '@lingui/react/macro' -import {useFocusEffect} from '@react-navigation/native' - -import {usePalette} from '#/lib/hooks/usePalette' @@ -62,26 +57,25 @@ index a89eaadc4..71ce7c81f 100644 +import {ScrollView} from 'react-native' import * as Layout from '#/components/Layout' -import {ViewHeader} from '../com/util/ViewHeader' -- ++import {useSetTitle} from '#/lib/hooks/useSetTitle' ++import {atoms as a, useTheme} from '#/alf' ++import {Text} from '#/components/Typography' + -type Props = NativeStackScreenProps -export const PrivacyPolicyScreen = (_props: Props) => { - const pal = usePalette('default') - const {_} = useLingui() - const setMinimalShellMode = useSetMinimalShellMode() -- ++export function PrivacyPolicyScreen() { ++ useSetTitle('Privacy Policy') ++ const t = useTheme() + - useFocusEffect( - React.useCallback(() => { - setMinimalShellMode(false) - }, [setMinimalShellMode]), - ) -+import {useSetTitle} from '#/lib/hooks/useSetTitle' -+import {atoms as a, useTheme} from '#/alf' -+import {Text} from '#/components/Typography' -+ -+export function PrivacyPolicyScreen() { -+ useSetTitle('Privacy Policy') -+ const t = useTheme() - +- return ( - @@ -135,15 +129,14 @@ index a89eaadc4..71ce7c81f 100644 ) -diff --git a/src/view/screens/TermsOfService.tsx b/src/view/screens/TermsOfService.tsx -index d843c713c..c6a36268b 100644 --- a/src/view/screens/TermsOfService.tsx +++ b/src/view/screens/TermsOfService.tsx -@@ -1,49 +1,49 @@ +@@ -1,50 +1,49 @@ import React from 'react' -import {View} from 'react-native' --import {msg, Trans} from '@lingui/macro' +-import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' +-import {Trans} from '@lingui/react/macro' -import {useFocusEffect} from '@react-navigation/native' - -import {usePalette} from '#/lib/hooks/usePalette' @@ -159,26 +152,25 @@ index d843c713c..c6a36268b 100644 +import {ScrollView} from 'react-native' import * as Layout from '#/components/Layout' -import {ViewHeader} from '../com/util/ViewHeader' -- ++import {useSetTitle} from '#/lib/hooks/useSetTitle' ++import {atoms as a, useTheme} from '#/alf' ++import {Text} from '#/components/Typography' + -type Props = NativeStackScreenProps -export const TermsOfServiceScreen = (_props: Props) => { - const pal = usePalette('default') - const setMinimalShellMode = useSetMinimalShellMode() - const {_} = useLingui() -- ++export function TermsOfServiceScreen() { ++ useSetTitle('Terms of Service') ++ const t = useTheme() + - useFocusEffect( - React.useCallback(() => { - setMinimalShellMode(false) - }, [setMinimalShellMode]), - ) -+import {useSetTitle} from '#/lib/hooks/useSetTitle' -+import {atoms as a, useTheme} from '#/alf' -+import {Text} from '#/components/Typography' -+ -+export function TermsOfServiceScreen() { -+ useSetTitle('Terms of Service') -+ const t = useTheme() - +- return ( - diff --git a/ios/patching/021-social-app-ios-clean-feed.patch b/ios/patching/021-social-app-ios-clean-feed.patch index 4aead81..220f5a5 100644 --- a/ios/patching/021-social-app-ios-clean-feed.patch +++ b/ios/patching/021-social-app-ios-clean-feed.patch @@ -1,10 +1,8 @@ -diff --git a/src/view/com/posts/DiscoverFallbackHeader.tsx b/src/view/com/posts/DiscoverFallbackHeader.tsx -index e35a33aaf..a36f84ae0 100644 --- a/src/view/com/posts/DiscoverFallbackHeader.tsx +++ b/src/view/com/posts/DiscoverFallbackHeader.tsx -@@ -7,37 +7,5 @@ import {TextLink} from '../util/Link' +@@ -7,37 +7,5 @@ import {Text} from '../util/text/Text' - + export function DiscoverFallbackHeader() { - const pal = usePalette('default') - return ( @@ -41,20 +39,18 @@ index e35a33aaf..a36f84ae0 100644 - ) + return null } -diff --git a/src/view/com/posts/FollowingEmptyState.tsx b/src/view/com/posts/FollowingEmptyState.tsx -index 352cc1dc0..f477521af 100644 --- a/src/view/com/posts/FollowingEmptyState.tsx +++ b/src/view/com/posts/FollowingEmptyState.tsx -@@ -1,37 +1,14 @@ +@@ -1,38 +1,15 @@ import React from 'react' import {StyleSheet, View} from 'react-native' -import { - FontAwesomeIcon, - type FontAwesomeIconStyle, -} from '@fortawesome/react-native-fontawesome' - import {Trans} from '@lingui/macro' + import {Trans} from '@lingui/react/macro' -import {useNavigation} from '@react-navigation/native' - + import {usePalette} from '#/lib/hooks/usePalette' import {MagnifyingGlassIcon} from '#/lib/icons' -import {type NavigationProp} from '#/lib/routes/types' @@ -62,12 +58,12 @@ index 352cc1dc0..f477521af 100644 -import {IS_WEB} from '#/env' -import {Button} from '../util/forms/Button' import {Text} from '../util/text/Text' - + export function FollowingEmptyState() { const pal = usePalette('default') - const palInverted = usePalette('inverted') - const navigation = useNavigation() -- + - const onPressFindAccounts = React.useCallback(() => { - if (IS_WEB) { - navigation.navigate('Search', {}) @@ -80,10 +76,11 @@ index 352cc1dc0..f477521af 100644 - const onPressDiscoverFeeds = React.useCallback(() => { - navigation.navigate('Feeds') - }, [navigation]) - +- return ( -@@ -45,36 +22,6 @@ export function FollowingEmptyState() { + +@@ -45,36 +22,6 @@ happening. @@ -120,7 +117,7 @@ index 352cc1dc0..f477521af 100644 ) -@@ -98,13 +45,4 @@ const styles = StyleSheet.create({ +@@ -98,13 +45,4 @@ marginLeft: 'auto', marginRight: 'auto', }, @@ -134,32 +131,30 @@ index 352cc1dc0..f477521af 100644 - borderRadius: 30, - }, }) -diff --git a/src/view/com/posts/FollowingEndOfFeed.tsx b/src/view/com/posts/FollowingEndOfFeed.tsx -index e3c84d782..efb55d406 100644 --- a/src/view/com/posts/FollowingEndOfFeed.tsx +++ b/src/view/com/posts/FollowingEndOfFeed.tsx -@@ -1,36 +1,13 @@ +@@ -1,37 +1,14 @@ import React from 'react' import {Dimensions, StyleSheet, View} from 'react-native' -import { - FontAwesomeIcon, - type FontAwesomeIconStyle, -} from '@fortawesome/react-native-fontawesome' - import {Trans} from '@lingui/macro' + import {Trans} from '@lingui/react/macro' -import {useNavigation} from '@react-navigation/native' - + import {usePalette} from '#/lib/hooks/usePalette' -import {type NavigationProp} from '#/lib/routes/types' import {s} from '#/lib/styles' -import {IS_WEB} from '#/env' -import {Button} from '../util/forms/Button' import {Text} from '../util/text/Text' - + export function FollowingEndOfFeed() { const pal = usePalette('default') - const palInverted = usePalette('inverted') - const navigation = useNavigation() -- + - const onPressFindAccounts = React.useCallback(() => { - if (IS_WEB) { - navigation.navigate('Search', {}) @@ -172,10 +167,11 @@ index e3c84d782..efb55d406 100644 - const onPressDiscoverFeeds = React.useCallback(() => { - navigation.navigate('Feeds') - }, [navigation]) - +- return ( @@ -183,7 +179,8 @@ index e3c84d782..efb55d406 100644 - You've reached the end of your feed! Find some more accounts to - follow. - -- ++ You've reached the end of your feed! + -