lib/snapshot/runner.rb in snapshot-1.0.2 vs lib/snapshot/runner.rb in snapshot-1.0.3
- old
+ new
@@ -4,9 +4,17 @@
module Snapshot
class Runner
attr_accessor :number_of_retries
def work
+ if File.exist?("./fastlane/snapshot.js") or File.exist?("./snapshot.js")
+ Helper.log.warn "Found old snapshot configuration file 'snapshot.js'".red
+ Helper.log.warn "You updated to snapshot 1.0 which now uses UI Automation".red
+ Helper.log.warn "Please follow the migration guide: https://github.com/KrauseFx/snapshot/blob/master/MigrationGuide.md".red
+ Helper.log.warn "And read the updated documentation: https://github.com/KrauseFx/snapshot".red
+ sleep 3 # to be sure the user sees this, as compiling clears the screen
+ end
+
FastlaneCore::PrintTable.print_values(config: Snapshot.config, hide_keys: [], title: "Summary")
clear_previous_screenshots if Snapshot.config[:clear_previous_screenshots]
Helper.log.info "Building and running project - this might take some time...".green