fastlane 2.74.1 → 2.75.0.beta.20180109010003
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/bin-proxy +2 -2
- data/bin/fastlane +5 -5
- data/cert/lib/cert/commands_generator.rb +1 -1
- data/cert/lib/cert/runner.rb +14 -14
- data/credentials_manager/lib/credentials_manager/account_manager.rb +11 -11
- data/credentials_manager/lib/credentials_manager/appfile_config.rb +11 -11
- data/credentials_manager/lib/credentials_manager/cli.rb +4 -4
- data/deliver/lib/deliver/app_screenshot.rb +19 -2
- data/deliver/lib/deliver/commands_generator.rb +2 -2
- data/deliver/lib/deliver/loader.rb +2 -2
- data/deliver/lib/deliver/options.rb +2 -2
- data/deliver/lib/deliver/setup.rb +1 -1
- data/deliver/lib/deliver/submit_for_review.rb +1 -1
- data/fastlane/lib/fastlane/action.rb +2 -2
- data/fastlane/lib/fastlane/actions/actions_helper.rb +5 -5
- data/fastlane/lib/fastlane/actions/add_extra_platforms.rb +2 -2
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +1 -1
- data/fastlane/lib/fastlane/actions/app_store_build_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/appaloosa.rb +4 -4
- data/fastlane/lib/fastlane/actions/appetize.rb +3 -3
- data/fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb +2 -2
- data/fastlane/lib/fastlane/actions/appium.rb +2 -2
- data/fastlane/lib/fastlane/actions/appledoc.rb +3 -3
- data/fastlane/lib/fastlane/actions/apteligent.rb +2 -2
- data/fastlane/lib/fastlane/actions/artifactory.rb +2 -2
- data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +1 -1
- data/fastlane/lib/fastlane/actions/build_ios_app.rb +1 -1
- data/fastlane/lib/fastlane/actions/capture_ios_screenshots.rb +1 -1
- data/fastlane/lib/fastlane/actions/carthage.rb +4 -4
- data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +4 -4
- data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +1 -1
- data/fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb +1 -1
- data/fastlane/lib/fastlane/actions/cloc.rb +1 -1
- data/fastlane/lib/fastlane/actions/cocoapods.rb +1 -1
- data/fastlane/lib/fastlane/actions/commit_github_file.rb +4 -4
- data/fastlane/lib/fastlane/actions/commit_version_bump.rb +7 -7
- data/fastlane/lib/fastlane/actions/copy_artifacts.rb +1 -1
- data/fastlane/lib/fastlane/actions/crashlytics.rb +2 -2
- data/fastlane/lib/fastlane/actions/debug.rb +2 -2
- data/fastlane/lib/fastlane/actions/delete_keychain.rb +1 -1
- data/fastlane/lib/fastlane/actions/deploygate.rb +7 -7
- data/fastlane/lib/fastlane/actions/docs/cert.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/deliver.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/frameit.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/gym.md +1 -3
- data/fastlane/lib/fastlane/actions/docs/match.md +4 -4
- data/fastlane/lib/fastlane/actions/docs/pem.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/precheck.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/produce.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/scan.md +0 -2
- data/fastlane/lib/fastlane/actions/docs/sigh.md +6 -6
- data/fastlane/lib/fastlane/actions/docs/snapshot.md +4 -4
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +1 -1
- data/fastlane/lib/fastlane/actions/dsym_zip.rb +1 -1
- data/fastlane/lib/fastlane/actions/ensure_no_debug_code.rb +1 -1
- data/fastlane/lib/fastlane/actions/flock.rb +7 -7
- data/fastlane/lib/fastlane/actions/frame_screenshots.rb +1 -1
- data/fastlane/lib/fastlane/actions/gcovr.rb +5 -5
- data/fastlane/lib/fastlane/actions/get_build_number.rb +2 -2
- data/fastlane/lib/fastlane/actions/get_build_number_repository.rb +9 -9
- data/fastlane/lib/fastlane/actions/get_github_release.rb +2 -2
- data/fastlane/lib/fastlane/actions/get_info_plist_value.rb +1 -1
- data/fastlane/lib/fastlane/actions/get_version_number.rb +7 -7
- data/fastlane/lib/fastlane/actions/github_api.rb +2 -2
- data/fastlane/lib/fastlane/actions/hg_commit_version_bump.rb +2 -2
- data/fastlane/lib/fastlane/actions/hockey.rb +5 -5
- data/fastlane/lib/fastlane/actions/ifttt.rb +4 -4
- data/fastlane/lib/fastlane/actions/increment_build_number.rb +3 -3
- data/fastlane/lib/fastlane/actions/increment_version_number.rb +4 -4
- data/fastlane/lib/fastlane/actions/install_on_device.rb +2 -2
- data/fastlane/lib/fastlane/actions/install_xcode_plugin.rb +2 -2
- data/fastlane/lib/fastlane/actions/installr.rb +6 -6
- data/fastlane/lib/fastlane/actions/ipa.rb +1 -1
- data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +1 -1
- data/fastlane/lib/fastlane/actions/lcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/mailgun.rb +3 -3
- data/fastlane/lib/fastlane/actions/modify_services.rb +1 -1
- data/fastlane/lib/fastlane/actions/notification.rb +1 -1
- data/fastlane/lib/fastlane/actions/number_of_commits.rb +1 -1
- data/fastlane/lib/fastlane/actions/onesignal.rb +1 -1
- data/fastlane/lib/fastlane/actions/pod_push.rb +1 -1
- data/fastlane/lib/fastlane/actions/podio_item.rb +6 -6
- data/fastlane/lib/fastlane/actions/puts.rb +1 -1
- data/fastlane/lib/fastlane/actions/read_podspec.rb +1 -1
- data/fastlane/lib/fastlane/actions/recreate_schemes.rb +1 -1
- data/fastlane/lib/fastlane/actions/reset_git_repo.rb +1 -1
- data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
- data/fastlane/lib/fastlane/actions/rocket.rb +2 -2
- data/fastlane/lib/fastlane/actions/run_tests.rb +1 -1
- data/fastlane/lib/fastlane/actions/s3.rb +1 -1
- data/fastlane/lib/fastlane/actions/scp.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_build_number_repository.rb +1 -1
- data/fastlane/lib/fastlane/actions/set_changelog.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_github_release.rb +4 -4
- data/fastlane/lib/fastlane/actions/set_info_plist_value.rb +2 -2
- data/fastlane/lib/fastlane/actions/set_pod_key.rb +1 -1
- data/fastlane/lib/fastlane/actions/setup_circle_ci.rb +4 -4
- data/fastlane/lib/fastlane/actions/setup_jenkins.rb +6 -6
- data/fastlane/lib/fastlane/actions/setup_travis.rb +2 -2
- data/fastlane/lib/fastlane/actions/slack.rb +3 -3
- data/fastlane/lib/fastlane/actions/slather.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +2 -2
- data/fastlane/lib/fastlane/actions/ssh.rb +1 -1
- data/fastlane/lib/fastlane/actions/team_id.rb +1 -1
- data/fastlane/lib/fastlane/actions/team_name.rb +1 -1
- data/fastlane/lib/fastlane/actions/testfairy.rb +7 -7
- data/fastlane/lib/fastlane/actions/tryouts.rb +6 -6
- data/fastlane/lib/fastlane/actions/update_app_group_identifiers.rb +2 -2
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +5 -5
- data/fastlane/lib/fastlane/actions/update_icloud_container_identifiers.rb +10 -10
- data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +1 -1
- data/fastlane/lib/fastlane/actions/update_url_schemes.rb +1 -1
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +4 -4
- data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +4 -4
- data/fastlane/lib/fastlane/actions/verify_build.rb +6 -6
- data/fastlane/lib/fastlane/actions/verify_pod_keys.rb +1 -1
- data/fastlane/lib/fastlane/actions/version_bump_podspec.rb +3 -3
- data/fastlane/lib/fastlane/actions/version_get_podspec.rb +2 -2
- data/fastlane/lib/fastlane/actions/xcode_select.rb +2 -2
- data/fastlane/lib/fastlane/actions/xcode_server_get_assets.rb +3 -3
- data/fastlane/lib/fastlane/actions/xcov.rb +1 -1
- data/fastlane/lib/fastlane/actions/xctool.rb +1 -1
- data/fastlane/lib/fastlane/actions/xcversion.rb +1 -1
- data/fastlane/lib/fastlane/actions/zip.rb +3 -3
- data/fastlane/lib/fastlane/auto_complete.rb +15 -15
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +15 -15
- data/fastlane/lib/fastlane/command_line_handler.rb +1 -1
- data/fastlane/lib/fastlane/commands_generator.rb +26 -26
- data/fastlane/lib/fastlane/configuration_helper.rb +2 -2
- data/fastlane/lib/fastlane/documentation/actions_list.rb +47 -47
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/environment_printer.rb +5 -5
- data/fastlane/lib/fastlane/fast_file.rb +5 -5
- data/fastlane/lib/fastlane/fastlane_require.rb +2 -2
- data/fastlane/lib/fastlane/helper/crashlytics_helper.rb +3 -3
- data/fastlane/lib/fastlane/helper/podspec_helper.rb +1 -1
- data/fastlane/lib/fastlane/helper/sh_helper.rb +2 -2
- data/fastlane/lib/fastlane/helper/xcversion_helper.rb +1 -1
- data/fastlane/lib/fastlane/lane.rb +6 -6
- data/fastlane/lib/fastlane/lane_list.rb +3 -3
- data/fastlane/lib/fastlane/lane_manager.rb +7 -7
- data/fastlane/lib/fastlane/lane_manager_base.rb +15 -15
- data/fastlane/lib/fastlane/markdown_table_formatter.rb +2 -2
- data/fastlane/lib/fastlane/new_action.rb +5 -5
- data/fastlane/lib/fastlane/one_off.rb +1 -1
- data/fastlane/lib/fastlane/plugins/plugin_generator.rb +5 -5
- data/fastlane/lib/fastlane/plugins/plugin_generator_ui.rb +2 -2
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +7 -7
- data/fastlane/lib/fastlane/plugins/plugin_search.rb +5 -5
- data/fastlane/lib/fastlane/plugins/plugin_update_manager.rb +4 -4
- data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +9 -8
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +37 -2
- data/fastlane/lib/fastlane/plugins/template/Gemfile +1 -1
- data/fastlane/lib/fastlane/plugins/template/Rakefile +1 -1
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +3 -0
- data/fastlane/lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/helper/%plugin_name%_helper.rb.erb +4 -0
- data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
- data/fastlane/lib/fastlane/runner.rb +9 -9
- data/fastlane/lib/fastlane/setup/crashlytics_beta.rb +9 -9
- data/fastlane/lib/fastlane/setup/crashlytics_beta_command_line_handler.rb +7 -7
- data/fastlane/lib/fastlane/setup/crashlytics_beta_info_collector.rb +19 -19
- data/fastlane/lib/fastlane/setup/crashlytics_beta_ui.rb +3 -3
- data/fastlane/lib/fastlane/setup/setup_android.rb +4 -4
- data/fastlane/lib/fastlane/setup/setup_ios.rb +9 -9
- data/fastlane/lib/fastlane/supported_platforms.rb +1 -1
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +10 -6
- data/fastlane/lib/fastlane/swift_lane_manager.rb +1 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane_core/README.md +0 -26
- data/fastlane_core/lib/fastlane_core/analytics/analytics_ingester_client.rb +2 -2
- data/fastlane_core/lib/fastlane_core/build_watcher.rb +1 -1
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +2 -2
- data/fastlane_core/lib/fastlane_core/command_executor.rb +3 -3
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +4 -4
- data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +4 -4
- data/fastlane_core/lib/fastlane_core/configuration/configuration_file.rb +4 -4
- data/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb +3 -3
- data/fastlane_core/lib/fastlane_core/device_manager.rb +2 -4
- data/fastlane_core/lib/fastlane_core/fastlane_folder.rb +1 -1
- data/fastlane_core/lib/fastlane_core/globals.rb +3 -3
- data/fastlane_core/lib/fastlane_core/helper.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_upload_package_builder.rb +2 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +2 -2
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +1 -1
- data/fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb +1 -1
- data/fastlane_core/lib/fastlane_core/print_table.rb +5 -5
- data/fastlane_core/lib/fastlane_core/project.rb +7 -7
- data/fastlane_core/lib/fastlane_core/swag.rb +9 -9
- data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +49 -49
- data/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb +18 -18
- data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +1 -1
- data/fastlane_core/lib/fastlane_core/update_checker/changelog.rb +7 -7
- data/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb +11 -11
- data/frameit/lib/frameit/commands_generator.rb +2 -2
- data/frameit/lib/frameit/config_parser.rb +11 -11
- data/frameit/lib/frameit/dependency_checker.rb +7 -7
- data/frameit/lib/frameit/editor.rb +41 -41
- data/frameit/lib/frameit/frame_downloader.rb +12 -12
- data/frameit/lib/frameit/mac_editor.rb +2 -2
- data/frameit/lib/frameit/options.rb +1 -1
- data/frameit/lib/frameit/runner.rb +7 -7
- data/frameit/lib/frameit/screenshot.rb +5 -5
- data/frameit/lib/frameit/strings_parser.rb +6 -6
- data/frameit/lib/frameit/template_finder.rb +3 -3
- data/gym/lib/gym/commands_generator.rb +4 -4
- data/gym/lib/gym/detect_values.rb +1 -1
- data/gym/lib/gym/error_handler.rb +84 -84
- data/gym/lib/gym/generators/build_command_generator.rb +1 -1
- data/gym/lib/gym/runner.rb +24 -24
- data/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb +2 -2
- data/match/lib/assets/READMETemplate.md +3 -3
- data/match/lib/match/commands_generator.rb +3 -3
- data/match/lib/match/encrypt.rb +10 -10
- data/match/lib/match/git_helper.rb +5 -5
- data/match/lib/match/nuke.rb +29 -29
- data/match/lib/match/runner.rb +13 -13
- data/match/lib/match/setup.rb +7 -7
- data/match/lib/match/table_printer.rb +6 -6
- data/match/lib/match/utils.rb +2 -2
- data/pem/lib/pem/commands_generator.rb +1 -1
- data/pem/lib/pem/manager.rb +9 -9
- data/pem/lib/pem/module.rb +1 -1
- data/pilot/lib/pilot/build_manager.rb +8 -8
- data/pilot/lib/pilot/commands_generator.rb +1 -1
- data/pilot/lib/pilot/manager.rb +1 -1
- data/pilot/lib/pilot/options.rb +4 -4
- data/pilot/lib/pilot/tester_manager.rb +10 -10
- data/precheck/lib/precheck/commands_generator.rb +4 -4
- data/precheck/lib/precheck/rule.rb +2 -2
- data/precheck/lib/precheck/rule_processor.rb +7 -7
- data/precheck/lib/precheck/rules/abstract_text_match_rule.rb +2 -2
- data/precheck/lib/precheck/rules/curse_words_rule.rb +3 -3
- data/precheck/lib/precheck/rules/unreachable_urls_rule.rb +3 -3
- data/precheck/lib/precheck/runner.rb +7 -7
- data/produce/lib/produce/commands_generator.rb +48 -48
- data/produce/lib/produce/developer_center.rb +4 -4
- data/produce/lib/produce/group.rb +2 -2
- data/produce/lib/produce/itunes_connect.rb +4 -4
- data/produce/lib/produce/options.rb +3 -3
- data/produce/lib/produce/service.rb +1 -1
- data/scan/lib/scan/commands_generator.rb +2 -2
- data/scan/lib/scan/error_handler.rb +12 -12
- data/scan/lib/scan/runner.rb +3 -3
- data/scan/lib/scan/slack_poster.rb +2 -2
- data/scan/lib/scan/test_command_generator.rb +1 -1
- data/screengrab/lib/screengrab/commands_generator.rb +1 -1
- data/screengrab/lib/screengrab/dependency_checker.rb +9 -9
- data/screengrab/lib/screengrab/options.rb +3 -3
- data/screengrab/lib/screengrab/reports_generator.rb +2 -2
- data/screengrab/lib/screengrab/runner.rb +32 -32
- data/sigh/lib/sigh/commands_generator.rb +18 -18
- data/sigh/lib/sigh/download_all.rb +4 -4
- data/sigh/lib/sigh/local_manage.rb +27 -27
- data/sigh/lib/sigh/manager.rb +1 -1
- data/sigh/lib/sigh/repair.rb +6 -6
- data/sigh/lib/sigh/resign.rb +7 -7
- data/sigh/lib/sigh/runner.rb +26 -26
- data/snapshot/lib/snapshot/collector.rb +7 -7
- data/snapshot/lib/snapshot/commands_generator.rb +7 -7
- data/snapshot/lib/snapshot/dependency_checker.rb +34 -19
- data/snapshot/lib/snapshot/detect_values.rb +2 -0
- data/snapshot/lib/snapshot/error_handler.rb +1 -1
- data/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb +1 -1
- data/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb +1 -1
- data/snapshot/lib/snapshot/reports_generator.rb +2 -2
- data/snapshot/lib/snapshot/reset_simulators.rb +2 -2
- data/snapshot/lib/snapshot/runner.rb +14 -14
- data/snapshot/lib/snapshot/screenshot_flatten.rb +1 -1
- data/snapshot/lib/snapshot/screenshot_rotate.rb +6 -6
- data/snapshot/lib/snapshot/setup.rb +16 -16
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +7 -7
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb +4 -4
- data/snapshot/lib/snapshot/update.rb +8 -8
- data/spaceship/lib/spaceship/base.rb +3 -3
- data/spaceship/lib/spaceship/client.rb +17 -17
- data/spaceship/lib/spaceship/commands_generator.rb +1 -1
- data/spaceship/lib/spaceship/du/du_client.rb +6 -3
- data/spaceship/lib/spaceship/globals.rb +1 -1
- data/spaceship/lib/spaceship/playground.rb +18 -18
- data/spaceship/lib/spaceship/portal/certificate.rb +5 -5
- data/spaceship/lib/spaceship/portal/device.rb +2 -2
- data/spaceship/lib/spaceship/portal/portal_client.rb +7 -7
- data/spaceship/lib/spaceship/portal/provisioning_profile.rb +7 -9
- data/spaceship/lib/spaceship/portal/ui/select_team.rb +13 -13
- data/spaceship/lib/spaceship/spaceauth_runner.rb +16 -16
- data/spaceship/lib/spaceship/test_flight/client.rb +9 -9
- data/spaceship/lib/spaceship/tunes/app_details.rb +1 -1
- data/spaceship/lib/spaceship/tunes/app_version.rb +7 -7
- data/spaceship/lib/spaceship/tunes/app_version_common.rb +1 -1
- data/spaceship/lib/spaceship/tunes/application.rb +1 -1
- data/spaceship/lib/spaceship/tunes/device_type.rb +2 -2
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +54 -54
- data/spaceship/lib/spaceship/two_step_client.rb +19 -19
- data/spaceship/lib/spaceship/ui.rb +1 -1
- data/supply/lib/supply/client.rb +1 -1
- data/supply/lib/supply/commands_generator.rb +1 -1
- data/supply/lib/supply/options.rb +14 -14
- data/supply/lib/supply/uploader.rb +3 -3
- metadata +31 -25
- data/fastlane/lib/.DS_Store +0 -0
- data/fastlane/lib/assets/.DS_Store +0 -0
- data/fastlane/lib/fastlane/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/.DS_Store +0 -0
- data/fastlane/lib/fastlane/actions/docs/.DS_Store +0 -0
- data/fastlane/lib/fastlane/setup/.DS_Store +0 -0
- data/fastlane_core/lib/.DS_Store +0 -0
- data/fastlane_core/lib/fastlane_core/.DS_Store +0 -0
@@ -5,7 +5,7 @@ module Snapshot
|
|
5
5
|
class ScreenshotFlatten
|
6
6
|
# @param (String) The path in which the screenshots are located in
|
7
7
|
def run(path)
|
8
|
-
UI.message
|
8
|
+
UI.message("Removing the alpha channel from generated png files")
|
9
9
|
flatten(path)
|
10
10
|
end
|
11
11
|
|
@@ -8,20 +8,20 @@ module Snapshot
|
|
8
8
|
|
9
9
|
# @param (String) The path in which the screenshots are located in
|
10
10
|
def run(path)
|
11
|
-
UI.verbose
|
11
|
+
UI.verbose("Rotating the screenshots (if necessary)")
|
12
12
|
rotate(path)
|
13
13
|
end
|
14
14
|
|
15
15
|
def rotate(path)
|
16
16
|
Dir.glob([path, '/**/*.png'].join('/')).each do |file|
|
17
|
-
UI.verbose
|
17
|
+
UI.verbose("Rotating '#{file}'")
|
18
18
|
|
19
19
|
command = nil
|
20
|
-
if file.end_with?
|
20
|
+
if file.end_with?("landscapeleft.png")
|
21
21
|
command = "sips -r -90 '#{file}'"
|
22
|
-
elsif file.end_with?
|
22
|
+
elsif file.end_with?("landscaperight.png")
|
23
23
|
command = "sips -r 90 '#{file}'"
|
24
|
-
elsif file.end_with?
|
24
|
+
elsif file.end_with?("portrait_upsidedown.png")
|
25
25
|
command = "sips -r 180 '#{file}'"
|
26
26
|
end
|
27
27
|
|
@@ -33,7 +33,7 @@ module Snapshot
|
|
33
33
|
r.each do |line|
|
34
34
|
# We need to read this otherwise things hang
|
35
35
|
end
|
36
|
-
::Process.wait
|
36
|
+
::Process.wait(pid)
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -25,23 +25,23 @@ module Snapshot
|
|
25
25
|
# ensure that upgrade is cause when going from 8 to 9
|
26
26
|
File.write(File.join(path, snapshot_helper_filename), File.read("#{Snapshot::ROOT}/lib/assets/#{snapshot_helper_filename}"))
|
27
27
|
|
28
|
-
puts
|
29
|
-
puts
|
28
|
+
puts("✅ Successfully created #{snapshot_helper_filename} '#{File.join(path, snapshot_helper_filename)}'".green)
|
29
|
+
puts("✅ Successfully created new Snapfile at '#{snapfile_path}'".green)
|
30
30
|
|
31
|
-
puts
|
32
|
-
puts
|
33
|
-
puts
|
34
|
-
puts
|
35
|
-
puts
|
36
|
-
puts
|
37
|
-
puts
|
38
|
-
puts
|
39
|
-
puts
|
40
|
-
puts
|
41
|
-
puts
|
42
|
-
puts
|
43
|
-
puts
|
44
|
-
puts
|
31
|
+
puts("-------------------------------------------------------".yellow)
|
32
|
+
puts("Open your Xcode project and make sure to do the following:".yellow)
|
33
|
+
puts("1) Add a new UI Test target to your project".yellow)
|
34
|
+
puts("2) Add the ./fastlane/#{snapshot_helper_filename} to your UI Test target".yellow)
|
35
|
+
puts(" You can move the file anywhere you want".yellow)
|
36
|
+
puts("3) Call `setupSnapshot(app)` when launching your app".yellow)
|
37
|
+
puts("")
|
38
|
+
puts(" let app = XCUIApplication()")
|
39
|
+
puts(" setupSnapshot(app)")
|
40
|
+
puts(" app.launch()")
|
41
|
+
puts("")
|
42
|
+
puts("4) Add `snapshot(\"0Launch\")` to wherever you want to create the screenshots".yellow)
|
43
|
+
puts("")
|
44
|
+
puts("More information: https://docs.fastlane.tools/actions/snapshot/".green)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -118,7 +118,7 @@ module Snapshot
|
|
118
118
|
cleanup_after_failure(devices, language, locale, launch_args, return_code)
|
119
119
|
|
120
120
|
# no exception raised... that means we need to retry
|
121
|
-
UI.error
|
121
|
+
UI.error("Caught error... #{return_code}")
|
122
122
|
|
123
123
|
self.current_number_of_retries_due_to_failing_simulator += 1
|
124
124
|
if self.current_number_of_retries_due_to_failing_simulator < 20 && return_code != 65
|
@@ -69,28 +69,28 @@ module Snapshot
|
|
69
69
|
media_type = media_type.to_s
|
70
70
|
|
71
71
|
device_types.each do |device_type|
|
72
|
-
UI.verbose
|
72
|
+
UI.verbose("Adding #{media_type}s to #{device_type}...")
|
73
73
|
device_udid = TestCommandGenerator.device_udid(device_type)
|
74
74
|
|
75
|
-
UI.message
|
75
|
+
UI.message("Launch Simulator #{device_type}")
|
76
76
|
Helper.backticks("xcrun instruments -w #{device_udid} &> /dev/null")
|
77
77
|
|
78
78
|
paths.each do |path|
|
79
|
-
UI.message
|
79
|
+
UI.message("Adding '#{path}'")
|
80
80
|
Helper.backticks("xcrun simctl add#{media_type} #{device_udid} #{path.shellescape} &> /dev/null")
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
85
|
def uninstall_app(device_type)
|
86
|
-
UI.verbose
|
86
|
+
UI.verbose("Uninstalling app '#{launcher_config.app_identifier}' from #{device_type}...")
|
87
87
|
launcher_config.app_identifier ||= UI.input("App Identifier: ")
|
88
88
|
device_udid = TestCommandGenerator.device_udid(device_type)
|
89
89
|
|
90
|
-
UI.message
|
90
|
+
UI.message("Launch Simulator #{device_type}")
|
91
91
|
Helper.backticks("xcrun instruments -w #{device_udid} &> /dev/null")
|
92
92
|
|
93
|
-
UI.message
|
93
|
+
UI.message("Uninstall application #{launcher_config.app_identifier}")
|
94
94
|
Helper.backticks("xcrun simctl uninstall #{device_udid} #{launcher_config.app_identifier} &> /dev/null")
|
95
95
|
end
|
96
96
|
|
@@ -111,7 +111,7 @@ module Snapshot
|
|
111
111
|
AppleLocale: locale,
|
112
112
|
AppleLanguages: [language]
|
113
113
|
}
|
114
|
-
UI.message
|
114
|
+
UI.message("Localizing #{device_type} (AppleLocale=#{locale} AppleLanguages=[#{language}])")
|
115
115
|
plist_path = "#{ENV['HOME']}/Library/Developer/CoreSimulator/Devices/#{device_udid}/data/Library/Preferences/.GlobalPreferences.plist"
|
116
116
|
File.write(plist_path, Plist::Emit.dump(plist))
|
117
117
|
end
|
@@ -34,13 +34,13 @@ module Snapshot
|
|
34
34
|
def run_for_device_and_language(language, locale, device, launch_arguments, retries = 0)
|
35
35
|
return launch_one_at_a_time(language, locale, device, launch_arguments)
|
36
36
|
rescue => ex
|
37
|
-
UI.error
|
37
|
+
UI.error(ex.to_s) # show the reason for failure to the user, but still maybe retry
|
38
38
|
|
39
39
|
if retries < launcher_config.number_of_retries
|
40
|
-
UI.important
|
40
|
+
UI.important("Tests failed, re-trying #{retries + 1} out of #{launcher_config.number_of_retries + 1} times")
|
41
41
|
run_for_device_and_language(language, locale, device, launch_arguments, retries + 1)
|
42
42
|
else
|
43
|
-
UI.error
|
43
|
+
UI.error("Backtrace:\n\t#{ex.backtrace.join("\n\t")}") if FastlaneCore::Globals.verbose?
|
44
44
|
self.collected_errors << ex
|
45
45
|
raise ex if launcher_config.stop_after_first_error
|
46
46
|
return false # for the results
|
@@ -91,7 +91,7 @@ module Snapshot
|
|
91
91
|
ErrorHandler.handle_test_error(output, return_code)
|
92
92
|
|
93
93
|
# no exception raised... that means we need to retry
|
94
|
-
UI.error
|
94
|
+
UI.error("Caught error... #{return_code}")
|
95
95
|
|
96
96
|
self.current_number_of_retries_due_to_failing_simulator += 1
|
97
97
|
if self.current_number_of_retries_due_to_failing_simulator < 20
|
@@ -15,22 +15,22 @@ module Snapshot
|
|
15
15
|
paths = self.class.find_helper
|
16
16
|
UI.user_error!("Couldn't find any SnapshotHelper files in current directory") if paths.count == 0
|
17
17
|
|
18
|
-
UI.message
|
19
|
-
paths.each { |p| UI.message
|
20
|
-
UI.important
|
21
|
-
UI.message
|
22
|
-
UI.message
|
23
|
-
UI.message
|
18
|
+
UI.message("Found the following SnapshotHelper:")
|
19
|
+
paths.each { |p| UI.message("\t#{p}") }
|
20
|
+
UI.important("Are you sure you want to automatically update the helpers listed above?")
|
21
|
+
UI.message("This will overwrite all its content with the latest code.")
|
22
|
+
UI.message("The underlying API will not change. You can always migrate manually by looking at")
|
23
|
+
UI.message("https://github.com/fastlane/fastlane/blob/master/snapshot/lib/assets/SnapshotHelper.swift")
|
24
24
|
|
25
25
|
return 1 unless UI.confirm("Overwrite configuration files?")
|
26
26
|
|
27
27
|
paths.each do |path|
|
28
|
-
UI.message
|
28
|
+
UI.message("Updating '#{path}'...")
|
29
29
|
input_path = Snapshot::Runner.path_to_helper_file_from_gem
|
30
30
|
File.write(path, File.read(input_path))
|
31
31
|
end
|
32
32
|
|
33
|
-
UI.success
|
33
|
+
UI.success("Successfully updated helper files")
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -231,7 +231,7 @@ module Spaceship
|
|
231
231
|
# This will store a list of defined attr_accessors to easily access them when inspecting the values
|
232
232
|
def self.attr_accessor(*vars)
|
233
233
|
@attributes ||= []
|
234
|
-
@attributes.concat
|
234
|
+
@attributes.concat(vars)
|
235
235
|
super(*vars)
|
236
236
|
end
|
237
237
|
|
@@ -261,12 +261,12 @@ module Spaceship
|
|
261
261
|
tree_root = thread[:inspected_objects].nil?
|
262
262
|
thread[:inspected_objects] = Set.new if tree_root
|
263
263
|
|
264
|
-
if thread[:inspected_objects].include?
|
264
|
+
if thread[:inspected_objects].include?(self)
|
265
265
|
# already inspected objects have a default value,
|
266
266
|
# let's follow Ruby's convention for circular references
|
267
267
|
value = "#<Object ...>"
|
268
268
|
else
|
269
|
-
thread[:inspected_objects].add
|
269
|
+
thread[:inspected_objects].add(self)
|
270
270
|
begin
|
271
271
|
value = inspect_value
|
272
272
|
ensure
|
@@ -144,7 +144,7 @@ module Spaceship
|
|
144
144
|
return @current_team_id if @current_team_id
|
145
145
|
|
146
146
|
if teams.count > 1
|
147
|
-
puts
|
147
|
+
puts("The current user is in #{teams.count} teams. Pass a team ID or call `select_team` to choose a team. Using the first one for now.")
|
148
148
|
end
|
149
149
|
@current_team_id ||= teams[0]['contentProvider']['contentProviderId']
|
150
150
|
end
|
@@ -173,7 +173,7 @@ module Spaceship
|
|
173
173
|
end
|
174
174
|
|
175
175
|
response = request(:post) do |req|
|
176
|
-
req.url
|
176
|
+
req.url("ra/v1/session/webSession")
|
177
177
|
req.body = {
|
178
178
|
contentProviderId: team_id,
|
179
179
|
dsId: user_detail_data.ds_id # https://github.com/fastlane/fastlane/issues/6711
|
@@ -210,22 +210,22 @@ module Spaceship
|
|
210
210
|
@current_team_id = current_team_id
|
211
211
|
@cookie = cookie || HTTP::CookieJar.new
|
212
212
|
@client = Faraday.new(self.class.hostname, options) do |c|
|
213
|
-
c.response
|
214
|
-
c.response
|
215
|
-
c.response
|
216
|
-
c.use
|
217
|
-
c.use
|
218
|
-
c.adapter
|
213
|
+
c.response(:json, content_type: /\bjson$/)
|
214
|
+
c.response(:xml, content_type: /\bxml$/)
|
215
|
+
c.response(:plist, content_type: /\bplist$/)
|
216
|
+
c.use(:cookie_jar, jar: @cookie)
|
217
|
+
c.use(FaradayMiddleware::RelsMiddleware)
|
218
|
+
c.adapter(Faraday.default_adapter)
|
219
219
|
|
220
220
|
if ENV['SPACESHIP_DEBUG']
|
221
221
|
# for debugging only
|
222
222
|
# This enables tracking of networking requests using Charles Web Proxy
|
223
|
-
c.proxy
|
223
|
+
c.proxy("https://127.0.0.1:8888")
|
224
224
|
c.ssl[:verify_mode] = OpenSSL::SSL::VERIFY_NONE
|
225
225
|
end
|
226
226
|
|
227
227
|
if ENV["DEBUG"]
|
228
|
-
puts
|
228
|
+
puts("To run _spaceship_ through a local proxy, use SPACESHIP_DEBUG")
|
229
229
|
end
|
230
230
|
end
|
231
231
|
end
|
@@ -429,7 +429,7 @@ module Spaceship
|
|
429
429
|
end
|
430
430
|
|
431
431
|
response = request(:post) do |req|
|
432
|
-
req.url
|
432
|
+
req.url("https://idmsa.apple.com/appleauth/auth/signin")
|
433
433
|
req.body = data.to_json
|
434
434
|
req.headers['Content-Type'] = 'application/json'
|
435
435
|
req.headers['X-Requested-With'] = 'XMLHttpRequest'
|
@@ -507,7 +507,7 @@ module Spaceship
|
|
507
507
|
|
508
508
|
return @service_key
|
509
509
|
rescue => ex
|
510
|
-
puts
|
510
|
+
puts(ex.to_s)
|
511
511
|
raise AppleTimeoutError.new, "Could not receive latest API key from iTunes Connect, this might be a server issue."
|
512
512
|
end
|
513
513
|
|
@@ -526,22 +526,22 @@ module Spaceship
|
|
526
526
|
tries -= 1
|
527
527
|
unless tries.zero?
|
528
528
|
logger.warn("Timeout received: '#{ex.message}'. Retrying after 3 seconds (remaining: #{tries})...")
|
529
|
-
sleep
|
529
|
+
sleep(3) unless Object.const_defined?("SpecHelper")
|
530
530
|
retry
|
531
531
|
end
|
532
532
|
raise ex # re-raise the exception
|
533
533
|
rescue UnauthorizedAccessError => ex
|
534
534
|
if @loggedin && !(tries -= 1).zero?
|
535
535
|
msg = "Auth error received: '#{ex.message}'. Login in again then retrying after 3 seconds (remaining: #{tries})..."
|
536
|
-
puts
|
537
|
-
logger.warn
|
536
|
+
puts(msg) if Spaceship::Globals.verbose?
|
537
|
+
logger.warn(msg)
|
538
538
|
|
539
539
|
if self.class.spaceship_session_env.to_s.length > 0
|
540
540
|
raise UnauthorizedAccessError.new, "Authentication error, you passed an invalid session using the environment variable FASTLANE_SESSION or SPACESHIP_SESSION"
|
541
541
|
end
|
542
542
|
|
543
543
|
do_login(self.user, @password)
|
544
|
-
sleep
|
544
|
+
sleep(3) unless Object.const_defined?("SpecHelper")
|
545
545
|
retry
|
546
546
|
end
|
547
547
|
raise ex # re-raise the exception
|
@@ -685,7 +685,7 @@ module Spaceship
|
|
685
685
|
resp_hash = response.to_hash
|
686
686
|
if resp_hash[:status] == 401
|
687
687
|
msg = "Auth lost"
|
688
|
-
logger.warn
|
688
|
+
logger.warn(msg)
|
689
689
|
raise UnauthorizedAccessError.new, "Unauthorized Access"
|
690
690
|
end
|
691
691
|
|
@@ -48,7 +48,7 @@ module Spaceship
|
|
48
48
|
def get_picture_type(upload_file)
|
49
49
|
resolution = Utilities.resolution(upload_file.file_path)
|
50
50
|
result = device_resolution_map.find do |key, resolutions|
|
51
|
-
resolutions.include?
|
51
|
+
resolutions.include?(resolution)
|
52
52
|
end
|
53
53
|
raise "Unknown device for screen resolution #{resolution}" if result.nil?
|
54
54
|
|
@@ -73,7 +73,7 @@ module Spaceship
|
|
73
73
|
end
|
74
74
|
|
75
75
|
r = request(:post) do |req|
|
76
|
-
req.url
|
76
|
+
req.url("#{self.class.hostname}#{path}")
|
77
77
|
req.body = upload_file.bytes
|
78
78
|
req.headers['Accept'] = 'application/json, text/plain, */*'
|
79
79
|
req.headers['Content-Type'] = upload_file.content_type
|
@@ -104,6 +104,7 @@ module Spaceship
|
|
104
104
|
watch: "MZPFT.SortedN27ScreenShot",
|
105
105
|
ipad: "MZPFT.SortedTabletScreenShot",
|
106
106
|
ipadPro: "MZPFT.SortedJ99ScreenShot",
|
107
|
+
ipad105: "MZPFT.SortedJ207ScreenShot",
|
107
108
|
iphone6: "MZPFT.SortedN61ScreenShot",
|
108
109
|
iphone6Plus: "MZPFT.SortedN56ScreenShot",
|
109
110
|
iphone58: "MZPFT.SortedD22ScreenShot",
|
@@ -119,6 +120,7 @@ module Spaceship
|
|
119
120
|
{
|
120
121
|
ipad: "MZPFT.SortedTabletMessagesScreenShot",
|
121
122
|
ipadPro: "MZPFT.SortedJ99MessagesScreenShot",
|
123
|
+
ipad105: "MZPFT.SortedJ207MessagesScreenShot",
|
122
124
|
iphone6: "MZPFT.SortedN61MessagesScreenShot",
|
123
125
|
iphone6Plus: "MZPFT.SortedN56MessagesScreenShot",
|
124
126
|
iphone58: "MZPFT.SortedD22MessagesScreenShot",
|
@@ -132,6 +134,7 @@ module Spaceship
|
|
132
134
|
watch: [[312, 390]],
|
133
135
|
ipad: [[1024, 748], [1024, 768], [2048, 1496], [2048, 1536], [768, 1004], [768, 1024], [1536, 2008], [1536, 2048]],
|
134
136
|
ipadPro: [[2048, 2732], [2732, 2048]],
|
137
|
+
ipad105: [[1668, 2224], [2224, 1668]],
|
135
138
|
iphone6: [[750, 1334], [1334, 750]],
|
136
139
|
iphone6Plus: [[1242, 2208], [2208, 1242]],
|
137
140
|
iphone4: [[640, 1096], [640, 1136], [1136, 600], [1136, 640]],
|
@@ -144,7 +147,7 @@ module Spaceship
|
|
144
147
|
def screenshot_picture_type(device, is_messages)
|
145
148
|
map = is_messages ? messages_picture_type_map : picture_type_map
|
146
149
|
device = device.to_sym
|
147
|
-
raise "Unknown picture type for device: #{device}" unless map.key?
|
150
|
+
raise "Unknown picture type for device: #{device}" unless map.key?(device)
|
148
151
|
map[device]
|
149
152
|
end
|
150
153
|
|
@@ -4,7 +4,7 @@ module Spaceship
|
|
4
4
|
# otherwise fallback to $verbose
|
5
5
|
def self.verbose?
|
6
6
|
if Object.const_defined?("FastlaneCore")
|
7
|
-
return FastlaneCore::Globals.verbose? # rubocop:disable
|
7
|
+
return FastlaneCore::Globals.verbose? # rubocop:disable Require/MissingRequireStatement
|
8
8
|
end
|
9
9
|
return $verbose
|
10
10
|
end
|
@@ -33,37 +33,37 @@ module Spaceship
|
|
33
33
|
|
34
34
|
def run
|
35
35
|
begin
|
36
|
-
puts
|
36
|
+
puts("Logging into to iTunes Connect (#{@username})...")
|
37
37
|
Spaceship::Tunes.login(@username)
|
38
|
-
puts
|
39
|
-
puts
|
38
|
+
puts("Successfully logged in to iTunes Connect".green)
|
39
|
+
puts("")
|
40
40
|
rescue
|
41
|
-
puts
|
41
|
+
puts("Could not login to iTunes Connect...".red)
|
42
42
|
end
|
43
43
|
begin
|
44
|
-
puts
|
44
|
+
puts("Logging into the Developer Portal (#{@username})...")
|
45
45
|
Spaceship::Portal.login(@username)
|
46
|
-
puts
|
47
|
-
puts
|
46
|
+
puts("Successfully logged in to the Developer Portal".green)
|
47
|
+
puts("")
|
48
48
|
rescue
|
49
|
-
puts
|
49
|
+
puts("Could not login to the Developer Portal...".red)
|
50
50
|
end
|
51
51
|
|
52
|
-
puts
|
53
|
-
puts
|
54
|
-
puts
|
55
|
-
puts
|
56
|
-
puts
|
57
|
-
puts
|
58
|
-
puts
|
59
|
-
puts
|
60
|
-
puts
|
52
|
+
puts("---------------------------------------".green)
|
53
|
+
puts("| Welcome to the spaceship playground |".green)
|
54
|
+
puts("---------------------------------------".green)
|
55
|
+
puts("")
|
56
|
+
puts("Enter #{'docs'.yellow} to open up the documentation")
|
57
|
+
puts("Enter #{'exit'.yellow} to exit the spaceship playground")
|
58
|
+
puts("Enter #{'_'.yellow} to access the return value of the last executed command")
|
59
|
+
puts("")
|
60
|
+
puts("Just enter the commands and confirm with Enter".green)
|
61
61
|
|
62
62
|
# rubocop:disable Lint/Debugger
|
63
63
|
binding.pry(quiet: true)
|
64
64
|
# rubocop:enable Lint/Debugger
|
65
65
|
|
66
|
-
puts
|
66
|
+
puts("") # Fixes https://github.com/fastlane/spaceship/issues/203
|
67
67
|
end
|
68
68
|
|
69
69
|
def docs
|