Sha256: 57cf561397f15b94513b6e802885205d7f3866f09511416e2789ab3481f0ef9e

Contents?: true

Size: 530 Bytes

Versions: 6

Compression:

Stored size: 530 Bytes

Contents

module Snapshot
  module Fixes
    # Having "Connect Hardware Keyboard" enabled causes issues with entering text in secure textfields
    # Fixes https://github.com/fastlane/snapshot/issues/433

    class HardwareKeyboardFix
      def self.patch
        Snapshot.kill_simulator # First we need to kill the simulator

        UI.verbose "Patching simulator to work with secure text fields"

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snapshot-1.12.1 lib/snapshot/fixes/hardware_keyboard_fix.rb
snapshot-1.12.0 lib/snapshot/fixes/hardware_keyboard_fix.rb
snapshot-1.11.1 lib/snapshot/fixes/hardware_keyboard_fix.rb
snapshot-1.11.0 lib/snapshot/fixes/hardware_keyboard_fix.rb
snapshot-1.10.0 lib/snapshot/fixes/hardware_keyboard_fix.rb
snapshot-1.9.0 lib/snapshot/fixes/hardware_keyboard_fix.rb