Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .maestro/scripts/setup-android-emulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
15 changes: 15 additions & 0 deletions .maestro/scripts/setup-ios-simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)..."
Expand Down
Loading