lib/run_loop/device.rb in run_loop-3.0.1 vs lib/run_loop/device.rb in run_loop-4.0.0

- old
+ new

@@ -38,11 +38,10 @@ attr_reader :version attr_reader :udid attr_reader :state attr_reader :simulator_root_dir attr_reader :simulator_accessibility_plist_path - attr_reader :simulator_preferences_plist_path attr_reader :simulator_log_file_path # Create a new device. # # @param [String] name The name of the device. For sims this should be @@ -324,18 +323,10 @@ directory = File.join(simulator_root_dir, "data", "Library", "Preferences") pbuddy.ensure_plist(directory, "com.apple.Accessibility.plist") end # @!visibility private - def simulator_preferences_plist_path - return nil if physical_device? - - directory = File.join(simulator_root_dir, "data", "Library", "Preferences") - pbuddy.ensure_plist(directory, "com.apple.Preferences.plist") - end - - # @!visibility private def simulator_log_file_path return nil if physical_device? @simulator_log_file_path ||= File.join(CORE_SIMULATOR_LOGS_DIR, udid, 'system.log') end @@ -532,19 +523,9 @@ end end end running_apps - end - - def simulator_software_keyboard_will_show? - plist = simulator_preferences_plist_path - pbuddy.plist_read("AutomaticMinimizationEnabled", plist).to_i == 0 - end - - def simulator_ensure_software_keyboard_will_show - plist = simulator_preferences_plist_path - pbuddy.plist_set("AutomaticMinimizationEnabled", "integer", 0, plist) end =begin PRIVATE METHODS =end