fix(patch): curl URL delimiter bug, add DM grapheme limit patch
This commit is contained in:
@@ -39,6 +39,18 @@ fi
|
||||
echo "1. Installing dependencies (yarn)..."
|
||||
yarn install
|
||||
|
||||
# 1.1. Patch @atproto/api lexicon: chat.bsky.convo maxGraphemes
|
||||
API_DIR="$REPO_DIR/node_modules/@atproto/api"
|
||||
PATCH_FILE="$SCRIPT_DIR/../patching/230-atproto-api-chat-grapheme-limit.patch"
|
||||
if [ -d "$API_DIR" ] && [ -f "$PATCH_FILE" ]; then
|
||||
if patch -f --dry-run -p1 -d "$API_DIR" < "$PATCH_FILE" > /dev/null 2>&1; then
|
||||
patch -f -p1 -d "$API_DIR" < "$PATCH_FILE" > /dev/null 2>&1
|
||||
echo "✅ Patched @atproto/api lexicons.js: chat.bsky.convo maxGraphemes 1000 → 10000"
|
||||
else
|
||||
echo "❌ @atproto/api lexicons.js: patch failed (upstream may have changed)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# 1.5. Copy assets
|
||||
echo "1.5. Copying assets..."
|
||||
if [ -d "$ASSETS_DIR" ]; then
|
||||
@@ -74,7 +86,7 @@ function cleanup_build {
|
||||
echo "2. Running Expo Prebuild..."
|
||||
# Clean old ios folder to remove old entitlements/AppClip targets
|
||||
rm -rf ios
|
||||
npx expo prebuild --platform ios --clean
|
||||
yes | npx expo prebuild --platform ios --clean
|
||||
|
||||
# 3. CocoaPods
|
||||
echo "3. Installing CocoaPods..."
|
||||
|
||||
11
ios/patching/048-social-app-ios-dm-grapheme-limit.patch
Normal file
11
ios/patching/048-social-app-ios-dm-grapheme-limit.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/src/lib/constants.ts
|
||||
+++ b/src/lib/constants.ts
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
export const MAX_DRAFT_GRAPHEME_LENGTH = 1000
|
||||
|
||||
-export const MAX_DM_GRAPHEME_LENGTH = 1000
|
||||
+export const MAX_DM_GRAPHEME_LENGTH = 10000
|
||||
|
||||
// Recommended is 100 per: https://www.w3.org/WAI/GL/WCAG20/tests/test3.html
|
||||
// but increasing limit per user feedback
|
||||
@@ -48,6 +48,7 @@ PATCH_FILES_IOS=(
|
||||
"045-social-app-ios-composer-cancel.patch"
|
||||
"046-social-app-ios-null-url-guards.patch"
|
||||
"047-social-app-ios-dynamic-service.patch" # Dynamic proxy/notif per account (syu.is vs bsky.social)
|
||||
"048-social-app-ios-dm-grapheme-limit.patch"
|
||||
)
|
||||
|
||||
function ios-env() {
|
||||
@@ -156,6 +157,20 @@ function ios-patch-apply-all() {
|
||||
local title="${filename%.*}"
|
||||
patch-apply "$title" "$filename"
|
||||
done
|
||||
|
||||
# Patch @atproto/api lexicon: chat.bsky.convo maxGraphemes 1000 -> 10000
|
||||
local api_dir="$target_dir/node_modules/@atproto/api"
|
||||
local patch_file="$d/patching/230-atproto-api-chat-grapheme-limit.patch"
|
||||
if [ -d "$api_dir" ] && [ -f "$patch_file" ]; then
|
||||
if patch -f --dry-run -p1 -d "$api_dir" < "$patch_file" > /dev/null 2>&1; then
|
||||
patch -f -p1 -d "$api_dir" < "$patch_file" > /dev/null 2>&1
|
||||
echo "✅ Patched @atproto/api lexicons.js: chat.bsky.convo maxGraphemes 1000 → 10000"
|
||||
elif patch -f --dry-run -p1 -R -d "$api_dir" < "$patch_file" > /dev/null 2>&1; then
|
||||
echo "✅ @atproto/api lexicons.js: already patched"
|
||||
else
|
||||
echo "❌ @atproto/api lexicons.js: patch failed (upstream may have changed)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Copy new files that aren't in patches
|
||||
|
||||
Reference in New Issue
Block a user