diff --git a/ios/patching/002-social-app-ios-lib.patch b/ios/patching/002-social-app-ios-lib.patch index 8381b72..c241a84 100644 --- a/ios/patching/002-social-app-ios-lib.patch +++ b/ios/patching/002-social-app-ios-lib.patch @@ -37,8 +37,8 @@ index 231447b4f..33c51cc0a 100644 export const webLinks = { - tos: `https://bsky.social/about/support/tos`, - privacy: `https://bsky.social/about/support/privacy-policy`, -+ tos: `https://bsky.social/abouthttps://syu.is/terms`, -+ privacy: `https://bsky.social/abouthttps://syu.is/privacy-policy`, ++ tos: `https://syu.is/about/support/tos`, ++ privacy: `https://syu.is/about/support/privacy-policy`, community: `https://bsky.social/about/support/community-guidelines`, communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`, } diff --git a/ios/patching/003-social-app-ios-view.patch b/ios/patching/003-social-app-ios-view.patch index 809f0d2..539fedb 100644 --- a/ios/patching/003-social-app-ios-view.patch +++ b/ios/patching/003-social-app-ios-view.patch @@ -104,7 +104,7 @@ index d7208df13..b711f71c7 100644 - /> - + @@ -16,7 +16,7 @@ index 6b8257b91..35202224b 100644 @@ -31,7 +31,7 @@ index dd319a4c6..0e80f956a 100644 - label={_(msg`Bluesky Social Terms of Service`)} - to="https://bsky.social/about/support/tos" + label={_(msg`syu.is Terms of Service`)} -+ to="https://bsky.social/abouthttps://syu.is/terms" ++ to="https://syu.is/about/support/tos" style={[a.text_md, a.leading_normal]} overridePresentation> - Bluesky Social Terms of Service diff --git a/ios/patching/006-social-app-ios-shell.patch b/ios/patching/006-social-app-ios-shell.patch index 2b81dda..b2ea406 100644 --- a/ios/patching/006-social-app-ios-shell.patch +++ b/ios/patching/006-social-app-ios-shell.patch @@ -7,7 +7,7 @@ index 9915d0a2d..c200a7c67 100644 You must be at least 13 years old to use Bluesky. Read our{' '} Terms of Service {' '} @@ -700,14 +700,14 @@ index 1d097fc9a..e11a3a202 100644 )} {_(msg`Privacy`)} {' • '} {_(msg`Terms`)} diff --git a/ios/patching/007-social-app-ios-misc.patch b/ios/patching/007-social-app-ios-misc.patch index 049b12d..40e6be4 100644 --- a/ios/patching/007-social-app-ios-misc.patch +++ b/ios/patching/007-social-app-ios-misc.patch @@ -126,13 +126,13 @@ index 8365057e8..59c8506a2 100644 terms: { overridePresentation: false, - to: `https://bsky.social/about/support/tos`, -+ to: `https://bsky.social/abouthttps://syu.is/terms`, ++ to: `https://syu.is/about/support/tos`, label: _(msg`Terms of Service`), }, privacy: { overridePresentation: false, - to: `https://bsky.social/about/support/privacy-policy`, -+ to: `https://bsky.social/abouthttps://syu.is/privacy-policy`, ++ to: `https://syu.is/about/support/privacy-policy`, label: _(msg`Privacy Policy`), }, copyright: { diff --git a/ios/patching/019-social-app-ios-entitlements-plugin.patch b/ios/patching/019-social-app-ios-entitlements-plugin.patch new file mode 100644 index 0000000..d71c6a8 --- /dev/null +++ b/ios/patching/019-social-app-ios-entitlements-plugin.patch @@ -0,0 +1,30 @@ +diff --git a/plugins/withCodeSignEntitlements.js b/plugins/withCodeSignEntitlements.js +new file mode 100644 +index 000000000..e69de29bb +--- /dev/null ++++ b/plugins/withCodeSignEntitlements.js +@@ -0,0 +1,22 @@ ++/* eslint-disable @typescript-eslint/no-var-requires */ ++const { withXcodeProject } = require('@expo/config-plugins') ++ ++const withCodeSignEntitlements = (config) => { ++ return withXcodeProject(config, (config) => { ++ const xcodeProject = config.modResults ++ const configurations = xcodeProject.pbxXCBuildConfigurationSection() ++ ++ for (const key in configurations) { ++ const configuration = configurations[key] ++ if ( ++ configuration.buildSettings && ++ !configuration.comment.includes('TEST') ++ ) { ++ configuration.buildSettings.CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION = ++ 'YES' ++ } ++ } ++ ++ return config ++ }) ++} ++ ++module.exports = withCodeSignEntitlements diff --git a/ios/setup.zsh b/ios/setup.zsh index 2d857a5..e66de42 100755 --- a/ios/setup.zsh +++ b/ios/setup.zsh @@ -46,7 +46,7 @@ function apply-patch() { pushd ${target_dir} > /dev/null # Check if patch is already applied (reverse dry-run succeeds) - if patch --dry-run -p1 -R < ${patch_file} > /dev/null 2>&1; then + if patch -f --dry-run -p1 -R < ${patch_file} > /dev/null 2>&1; then echo "✅ Already applied - skipping" popd > /dev/null echo ""