Class: Snapshot::Fixes::HardwareKeyboardFix

Inherits:
Object
  • Object
show all
Defined in:
snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb

Overview

Having “Connect Hardware Keyboard” enabled causes issues with entering text in secure textfields Fixes github.com/fastlane/fastlane/issues/2494

Class Method Summary collapse

Class Method Details

.patchObject



9
10
11
12
13
# File 'snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb', line 9

def self.patch
  UI.verbose("Patching simulator to work with secure text fields")

  Helper.backticks("defaults write com.apple.iphonesimulator ConnectHardwareKeyboard 0", print: FastlaneCore::Globals.verbose?)
end