Sha256: 90f64d5a0db9b135630d8fd633c43a60e832a93dcba5e72bc44cd39ebccdec9b
Contents?: true
Size: 941 Bytes
Versions: 76
Compression:
Stored size: 941 Bytes
Contents
module Snapshot module Fixes # This fix is needed due to a bug in UI Tests that creates invalid screenshots when the # simulator is not scaled to a 100% # Issue: https://github.com/fastlane/snapshot/issues/249 # Radar: https://openradar.appspot.com/radar?id=6127019184095232 class SimulatorZoomFix def self.patch UI.message "Patching all simulators '#{config_path}' to scale to 100%" FastlaneCore::DeviceManager.simulators.each do |simulator| simulator_name = simulator.name.tr("\s", "-") key = "SimulatorWindowLastScale-com.apple.CoreSimulator.SimDeviceType.#{simulator_name}" Helper.backticks("defaults write '#{config_path}' '#{key}' '1.0'", print: FastlaneCore::Globals.verbose?) end end def self.config_path File.join(File.expand_path("~"), "Library", "Preferences", "com.apple.iphonesimulator.plist") end end end end
Version data entries
76 entries across 76 versions & 1 rubygems