lib/screengrab/runner.rb in screengrab-0.5.5 vs lib/screengrab/runner.rb in screengrab-0.5.6
- old
+ new
@@ -284,10 +284,10 @@
# Different versions of adb are inconsistent about whether they will pull down the containing
# directory for the screenshots, so we'll try to remove that path from the directory name when
# creating the destination path.
# See: https://github.com/fastlane/fastlane/pull/4915#issuecomment-236368649
- dest_dir = dest_dir.gsub('screengrab/', '')
+ dest_dir = dest_dir.gsub(%r{(app_)?screengrab/}, '')
# We then replace the last segment of the screenshots directory path with the device_type
# specific name, as expected by supply
#
# (Moved to: fastlane/metadata/android/en-US/images/phoneScreenshots)