diff --git a/.maestro/enrichedInput/screenshots/android/codeblock_no_link_detection.png b/.maestro/enrichedInput/screenshots/android/codeblock_no_link_detection.png index 22acdaf6..78e27577 100644 Binary files a/.maestro/enrichedInput/screenshots/android/codeblock_no_link_detection.png and b/.maestro/enrichedInput/screenshots/android/codeblock_no_link_detection.png differ diff --git a/.maestro/enrichedInput/screenshots/android/codeblock_style_blocking.png b/.maestro/enrichedInput/screenshots/android/codeblock_style_blocking.png index ad4efbb2..44ae7072 100644 Binary files a/.maestro/enrichedInput/screenshots/android/codeblock_style_blocking.png and b/.maestro/enrichedInput/screenshots/android/codeblock_style_blocking.png differ diff --git a/.maestro/enrichedInput/screenshots/android/paragraph_styles_blocks.png b/.maestro/enrichedInput/screenshots/android/paragraph_styles_blocks.png index 75979ebe..4d075df9 100644 Binary files a/.maestro/enrichedInput/screenshots/android/paragraph_styles_blocks.png and b/.maestro/enrichedInput/screenshots/android/paragraph_styles_blocks.png differ diff --git a/.maestro/scripts/setup-android-emulator.sh b/.maestro/scripts/setup-android-emulator.sh index 3c74de08..605c8f6b 100755 --- a/.maestro/scripts/setup-android-emulator.sh +++ b/.maestro/scripts/setup-android-emulator.sh @@ -77,6 +77,7 @@ until adb -s "$SERIAL" shell getprop sys.boot_completed 2>/dev/null | grep -q "^ done adb -s "$SERIAL" shell pm disable-user --user 0 com.google.android.inputmethod.latin +adb -s "$SERIAL" shell settings put secure spell_checker_enabled 0 echo "Emulator ready: $AVD_NAME ($SERIAL)" echo "DEVICE_ID=$SERIAL" diff --git a/.maestro/scripts/setup-ios-simulator.sh b/.maestro/scripts/setup-ios-simulator.sh index 66f4cb74..5f9d8ea2 100755 --- a/.maestro/scripts/setup-ios-simulator.sh +++ b/.maestro/scripts/setup-ios-simulator.sh @@ -25,6 +25,21 @@ if [ -z "$UDID" ]; then exit 1 fi +# disable automatic text manipulation: auto-correction, spelling-check and auto-capitalization +SIM_PREFS_DIR="$HOME/Library/Developer/CoreSimulator/Devices/$UDID/data/Library/Preferences" +mkdir -p "$SIM_PREFS_DIR" + +PLIST="$SIM_PREFS_DIR/com.apple.keyboard.preferences.plist" + +/usr/libexec/PlistBuddy -c "Add :KeyboardAutocorrection bool false" "$PLIST" 2>/dev/null || \ +/usr/libexec/PlistBuddy -c "Set :KeyboardAutocorrection bool false" "$PLIST" + +/usr/libexec/PlistBuddy -c "Add :KeyboardCheckSpelling bool false" "$PLIST" 2>/dev/null || \ +/usr/libexec/PlistBuddy -c "Set :KeyboardCheckSpelling bool false" "$PLIST" + +/usr/libexec/PlistBuddy -c "Add :KeyboardAutocapitalization bool false" "$PLIST" 2>/dev/null || \ +/usr/libexec/PlistBuddy -c "Set :KeyboardAutocapitalization bool false" "$PLIST" + STATE=$(xcrun simctl list devices | grep "$UDID" | grep -oE '\(Booted\)|\(Shutdown\)' || true) if [ "$STATE" != "(Booted)" ]; then echo "Booting '$DEVICE_NAME' ($UDID)..."