snapshot/lib/snapshot/setup.rb in fastlane-2.217.0 vs snapshot/lib/snapshot/setup.rb in fastlane-2.218.0
- old
+ new
@@ -17,11 +17,11 @@
snapshot_helper_filename = "SnapshotHelper.swift"
end
if File.exist?(snapfile_path)
if print_instructions_on_failure
- print_instructions(snapshot_helper_filename: snapshot_helper_filename, snapfile_path: snapfile_path)
+ print_instructions(snapshot_helper_filename: snapshot_helper_filename)
return
else
UI.user_error!("Snapfile already exists at path '#{snapfile_path}'. Run 'fastlane snapshot' to generate screenshots.")
end
end
@@ -35,10 +35,10 @@
puts("✅ Successfully created new Snapfile at '#{snapfile_path}'".green)
puts("-------------------------------------------------------".yellow)
print_instructions(snapshot_helper_filename: snapshot_helper_filename, snapfile_path: snapfile_path)
end
- def self.print_instructions(snapshot_helper_filename: nil, snapfile_path: nil)
+ def self.print_instructions(snapshot_helper_filename: nil)
puts("Open your Xcode project and make sure to do the following:".yellow)
puts("1) Add a new UI Test target to your project".yellow)
puts("2) Add the ./fastlane/#{snapshot_helper_filename} to your UI Test target".yellow)
puts(" You can move the file anywhere you want".yellow)
puts("3) Call `setupSnapshot(app)` when launching your app".yellow)